xt-element-ui 2.1.11 → 2.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("Vue")):"function"===typeof define&&define.amd?define("xt-element-ui",["Vue"],e):"object"===typeof exports?exports["xt-element-ui"]=e(require("Vue")):t["xt-element-ui"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0157":function(t,e,n){var i=n("662a");function r(t){return i(new Date,t)}t.exports=r},"04c6":function(t,e,n){"use strict";n("8596")},"0978":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setHours(0,0,0,0),e}t.exports=r},"0ba2":function(t,e,n){},"0d3e":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=n.getTime(),a=i(e),o=a.getTime();return r<o?-1:r>o?1:0}t.exports=r},"0e15":function(t,e,n){var i=n("597f");t.exports=function(t,e,n){return void 0===n?i(t,e,!1):i(t,n,!1!==e)}},"10c8":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return n}t.exports=r},"12fd":function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},"145e":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMilliseconds(999),e}t.exports=r},"158b":function(t,e,n){var i=n("c8d5"),r=n("3814");function a(t,e){var n=i(t),a=Number(e),o=Math.floor(n.getMonth()/3)+1,s=a-o;return r(n,n.getMonth()+3*s)}t.exports=a},"176d":function(t,e,n){},"17b4":function(t,e,n){},"17cd":function(t,e,n){var i=n("c8d5"),r=n("b2e9"),a=n("0d3e");function o(t,e){var n=i(t),o=i(e),s=a(n,o),l=Math.abs(r(n,o));n.setMonth(n.getMonth()-s*l);var u=a(n,o)===-s;return s*(l-u)}t.exports=o},"18b7":function(t,e,n){var i=n("72b7");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},"1a07":function(t,e,n){},"1a84":function(t,e,n){var i=n("c8d5");function r(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return i(t)})),n=Math.min.apply(null,e);return new Date(n)}t.exports=r},"1baf":function(t,e,n){var i=n("c7ce");function r(t,e,n){var r=i(t,n),a=i(e,n);return r.getTime()===a.getTime()}t.exports=r},"1cc6":function(t,e,n){var i=n("ec1f"),r=36e5;function a(t,e){var n=Number(e);return i(t,n*r)}t.exports=a},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=d,e.fromByteArray=g;for(var i=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function c(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,i=u(t),o=i[0],s=i[1],l=new a(h(t,o,s)),c=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function f(t,e,n){for(var i,r=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),r.push(p(i));return r.join("")}function g(t){for(var e,n=t.length,r=n%3,a=[],o=16383,s=0,l=n-r;s<l;s+=o)a.push(f(t,s,s+o>l?l:s+o));return 1===r?(e=t[n-1],a.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],a.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"20b1":function(t,e,n){var i=n("0978");function r(t){var e=new Date;return e.setDate(e.getDate()+1),i(t).getTime()===i(e).getTime()}t.exports=r},2299:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMilliseconds(0),e}t.exports=r},"231c":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getSeconds();return n}t.exports=r},2507:function(t,e,n){var i=n("c8d5");function r(t){return 1===i(t).getDay()}t.exports=r},"26be":function(t,e,n){"use strict";n("0ba2")},"26d5":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()===r.getFullYear()}t.exports=r},"271a":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMinutes(59,59,999),e}t.exports=r},"27a1":function(t,e,n){var i=n("8964"),r=n("9706");function a(t,e){var n=Number(e);return r(t,i(t)+n)}t.exports=a},"2a80":function(t,e,n){var i=n("9aaa");function r(t){return i(new Date,t)}t.exports=r},"2a9c":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()-r.getFullYear()}t.exports=r},"2b57":function(t,e,n){var i=n("c8d5");function r(t){return 0===i(t).getDay()}t.exports=r},"2b67":function(t,e,n){var i=n("c8d5");function r(t){return i(t).getTime()>(new Date).getTime()}t.exports=r},"2c86":function(t,e,n){"use strict";n("6d33")},"2d23":function(t,e,n){var i=n("1baf");function r(t,e){return i(new Date,t,e)}t.exports=r},"2d96":function(t,e){function n(){var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function e(e,n,i){var r;return i=i||{},r="string"===typeof t[e]?t[e]:1===n?t[e].one:t[e].other.replace("{{count}}",n),i.addSuffix?i.comparison>0?"in "+r:r+" ago":r}return{localize:e}}t.exports=n},"2f1a":function(t,e,n){var i=n("c7ce"),r=6e4,a=6048e5;function o(t,e,n){var o=i(t,n),s=i(e,n),l=o.getTime()-o.getTimezoneOffset()*r,u=s.getTime()-s.getTimezoneOffset()*r;return Math.round((l-u)/a)}t.exports=o},"2f60":function(t,e,n){},"2f8f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setFullYear(r),n}t.exports=r},"2fff":function(t,e,n){var i=n("4497");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},"30d1":function(t,e,n){var i=n("0978");function r(t){return i(t).getTime()===i(new Date).getTime()}t.exports=r},"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return Nw})),n.d(e,"dependencies",(function(){return Rw})),n.d(e,"PRIORITY",(function(){return tS})),n.d(e,"init",(function(){return KS})),n.d(e,"connect",(function(){return QS})),n.d(e,"disconnect",(function(){return JS})),n.d(e,"disConnect",(function(){return tM})),n.d(e,"dispose",(function(){return eM})),n.d(e,"getInstanceByDom",(function(){return nM})),n.d(e,"getInstanceById",(function(){return iM})),n.d(e,"registerTheme",(function(){return rM})),n.d(e,"registerPreprocessor",(function(){return aM})),n.d(e,"registerProcessor",(function(){return oM})),n.d(e,"registerPostInit",(function(){return sM})),n.d(e,"registerPostUpdate",(function(){return lM})),n.d(e,"registerUpdateLifecycle",(function(){return uM})),n.d(e,"registerAction",(function(){return cM})),n.d(e,"registerCoordinateSystem",(function(){return hM})),n.d(e,"getCoordinateSystemDimensions",(function(){return dM})),n.d(e,"registerCustomSeries",(function(){return pM})),n.d(e,"registerLocale",(function(){return td})),n.d(e,"registerLayout",(function(){return fM})),n.d(e,"registerVisual",(function(){return gM})),n.d(e,"registerLoading",(function(){return mM})),n.d(e,"setCanvasCreator",(function(){return bM})),n.d(e,"registerMap",(function(){return xM})),n.d(e,"getMap",(function(){return _M})),n.d(e,"registerTransform",(function(){return wM})),n.d(e,"dataTool",(function(){return MM})),n.d(e,"zrender",(function(){return a})),n.d(e,"matrix",(function(){return r})),n.d(e,"vector",(function(){return i})),n.d(e,"zrUtil",(function(){return x})),n.d(e,"color",(function(){return xn})),n.d(e,"throttle",(function(){return vx})),n.d(e,"helper",(function(){return s})),n.d(e,"use",(function(){return IM})),n.d(e,"setPlatformAPI",(function(){return Ri["e"]})),n.d(e,"parseGeoJSON",(function(){return xC})),n.d(e,"parseGeoJson",(function(){return xC})),n.d(e,"number",(function(){return l})),n.d(e,"time",(function(){return u})),n.d(e,"graphic",(function(){return c})),n.d(e,"format",(function(){return h})),n.d(e,"util",(function(){return d})),n.d(e,"env",(function(){return b})),n.d(e,"List",(function(){return sO})),n.d(e,"Model",(function(){return Vh})),n.d(e,"Axis",(function(){return QC})),n.d(e,"ComponentModel",(function(){return Hp})),n.d(e,"ComponentView",(function(){return bv})),n.d(e,"SeriesModel",(function(){return vv})),n.d(e,"ChartView",(function(){return px})),n.d(e,"innerDrawElementOnCanvas",(function(){return xw})),n.d(e,"extendComponentModel",(function(){return JC})),n.d(e,"extendComponentView",(function(){return tA})),n.d(e,"extendSeriesModel",(function(){return eA})),n.d(e,"extendChartView",(function(){return nA}));var i={};n.r(i),n.d(i,"create",(function(){return _})),n.d(i,"copy",(function(){return w})),n.d(i,"clone",(function(){return S})),n.d(i,"set",(function(){return M})),n.d(i,"add",(function(){return O})),n.d(i,"scaleAndAdd",(function(){return T})),n.d(i,"sub",(function(){return I})),n.d(i,"len",(function(){return C})),n.d(i,"length",(function(){return A})),n.d(i,"lenSquare",(function(){return k})),n.d(i,"lengthSquare",(function(){return D})),n.d(i,"mul",(function(){return L})),n.d(i,"div",(function(){return P})),n.d(i,"dot",(function(){return j})),n.d(i,"scale",(function(){return N})),n.d(i,"normalize",(function(){return R})),n.d(i,"distance",(function(){return E})),n.d(i,"dist",(function(){return z})),n.d(i,"distanceSquare",(function(){return B})),n.d(i,"distSquare",(function(){return V})),n.d(i,"negate",(function(){return F})),n.d(i,"lerp",(function(){return H})),n.d(i,"applyTransform",(function(){return G})),n.d(i,"min",(function(){return W})),n.d(i,"max",(function(){return Y}));var r={};n.r(r),n.d(r,"create",(function(){return It})),n.d(r,"identity",(function(){return Ct})),n.d(r,"copy",(function(){return At})),n.d(r,"mul",(function(){return kt})),n.d(r,"translate",(function(){return Dt})),n.d(r,"rotate",(function(){return Lt})),n.d(r,"scale",(function(){return Pt})),n.d(r,"invert",(function(){return jt})),n.d(r,"clone",(function(){return Nt}));var a={};n.r(a),n.d(a,"init",(function(){return Mr})),n.d(a,"dispose",(function(){return Or})),n.d(a,"disposeAll",(function(){return Tr})),n.d(a,"getInstance",(function(){return Ir})),n.d(a,"registerPainter",(function(){return Cr})),n.d(a,"getElementSSRData",(function(){return Ar})),n.d(a,"registerSSRDataGetter",(function(){return kr})),n.d(a,"version",(function(){return Dr}));var o={};n.r(o),n.d(o,"updateProps",(function(){return nh})),n.d(o,"initProps",(function(){return ih})),n.d(o,"removeElement",(function(){return ah})),n.d(o,"removeElementWithFadeOut",(function(){return sh})),n.d(o,"isElementRemoved",(function(){return rh})),n.d(o,"XY",(function(){return cb})),n.d(o,"WH",(function(){return hb})),n.d(o,"HOVER_LAYER_NO",(function(){return db})),n.d(o,"HOVER_LAYER_FROM_THRESHOLD",(function(){return pb})),n.d(o,"HOVER_LAYER_FOR_INCREMENTAL",(function(){return fb})),n.d(o,"extendShape",(function(){return gb})),n.d(o,"extendPath",(function(){return vb})),n.d(o,"registerShape",(function(){return mb})),n.d(o,"getShapeClass",(function(){return bb})),n.d(o,"makePath",(function(){return xb})),n.d(o,"makeImage",(function(){return _b})),n.d(o,"mergePath",(function(){return Sb})),n.d(o,"resizePath",(function(){return Mb})),n.d(o,"subPixelOptimizeLine",(function(){return Ob})),n.d(o,"subPixelOptimizeRect",(function(){return Tb})),n.d(o,"subPixelOptimize",(function(){return Ib})),n.d(o,"getTransform",(function(){return Cb})),n.d(o,"applyTransform",(function(){return Ab})),n.d(o,"transformDirection",(function(){return kb})),n.d(o,"groupTransition",(function(){return Pb})),n.d(o,"clipPointsByRect",(function(){return jb})),n.d(o,"clipRectByRect",(function(){return Nb})),n.d(o,"createIcon",(function(){return Rb})),n.d(o,"linePolygonIntersect",(function(){return Eb})),n.d(o,"lineLineIntersect",(function(){return zb})),n.d(o,"expandOrShrinkRect",(function(){return Fb})),n.d(o,"setTooltipConfig",(function(){return Wb})),n.d(o,"traverseElements",(function(){return Ub})),n.d(o,"isBoundingRectAxisAligned",(function(){return Xb})),n.d(o,"ensureCopyRect",(function(){return Zb})),n.d(o,"ensureCopyTransform",(function(){return qb})),n.d(o,"retrieveZInfo",(function(){return Kb})),n.d(o,"calcZ2Range",(function(){return Qb})),n.d(o,"traverseUpdateZ",(function(){return Jb})),n.d(o,"payloadDisableAnimation",(function(){return ex})),n.d(o,"decomposeTransform",(function(){return nx})),n.d(o,"getCurrentCanvasPainter",(function(){return rx})),n.d(o,"Group",(function(){return vr})),n.d(o,"Image",(function(){return Xl})),n.d(o,"Text",(function(){return _u})),n.d(o,"Circle",(function(){return Uv})),n.d(o,"Ellipse",(function(){return Zv})),n.d(o,"Sector",(function(){return pm})),n.d(o,"Ring",(function(){return ym})),n.d(o,"Polygon",(function(){return _m})),n.d(o,"Polyline",(function(){return Mm})),n.d(o,"Rect",(function(){return nu})),n.d(o,"Line",(function(){return Cm})),n.d(o,"BezierCurve",(function(){return Pm})),n.d(o,"Arc",(function(){return Rm})),n.d(o,"IncrementalDisplayable",(function(){return lb})),n.d(o,"CompoundPath",(function(){return zm})),n.d(o,"LinearGradient",(function(){return Hm})),n.d(o,"RadialGradient",(function(){return Wm})),n.d(o,"BoundingRect",(function(){return ue})),n.d(o,"OrientedBoundingRect",(function(){return tb})),n.d(o,"Point",(function(){return Et})),n.d(o,"Path",(function(){return Bl}));var s={};n.r(s),n.d(s,"createList",(function(){return tC})),n.d(s,"getLayoutRect",(function(){return Ap})),n.d(s,"createDimensions",(function(){return lO})),n.d(s,"dataStack",(function(){return eC})),n.d(s,"createSymbol",(function(){return z_})),n.d(s,"createScale",(function(){return nC})),n.d(s,"mixinAxisModelCommonMethods",(function(){return iC})),n.d(s,"getECData",(function(){return wu})),n.d(s,"enableHoverEmphasis",(function(){return Bc})),n.d(s,"createTextStyle",(function(){return rC}));var l={};n.r(l),n.d(l,"linearMap",(function(){return Xr})),n.d(l,"round",(function(){return ta})),n.d(l,"asc",(function(){return ea})),n.d(l,"getPrecision",(function(){return na})),n.d(l,"getPrecisionSafe",(function(){return ia})),n.d(l,"getPixelPrecision",(function(){return ra})),n.d(l,"getPercentWithPrecision",(function(){return oa})),n.d(l,"parsePercent",(function(){return $r})),n.d(l,"MAX_SAFE_INTEGER",(function(){return ua})),n.d(l,"remRadian",(function(){return ca})),n.d(l,"isRadianAroundZero",(function(){return ha})),n.d(l,"parseDate",(function(){return pa})),n.d(l,"quantity",(function(){return fa})),n.d(l,"quantityExponent",(function(){return ga})),n.d(l,"nice",(function(){return va})),n.d(l,"quantile",(function(){return ma})),n.d(l,"reformIntervals",(function(){return ba})),n.d(l,"isNumeric",(function(){return _a})),n.d(l,"numericToNumber",(function(){return xa}));var u={};n.r(u),n.d(u,"parse",(function(){return pa})),n.d(u,"format",(function(){return Cd})),n.d(u,"roundTime",(function(){return Dd}));var c={};n.r(c),n.d(c,"extendShape",(function(){return gb})),n.d(c,"extendPath",(function(){return vb})),n.d(c,"makePath",(function(){return xb})),n.d(c,"makeImage",(function(){return _b})),n.d(c,"mergePath",(function(){return Sb})),n.d(c,"resizePath",(function(){return Mb})),n.d(c,"createIcon",(function(){return Rb})),n.d(c,"updateProps",(function(){return nh})),n.d(c,"initProps",(function(){return ih})),n.d(c,"getTransform",(function(){return Cb})),n.d(c,"clipPointsByRect",(function(){return jb})),n.d(c,"clipRectByRect",(function(){return Nb})),n.d(c,"registerShape",(function(){return mb})),n.d(c,"getShapeClass",(function(){return bb})),n.d(c,"Group",(function(){return vr})),n.d(c,"Image",(function(){return Xl})),n.d(c,"Text",(function(){return _u})),n.d(c,"Circle",(function(){return Uv})),n.d(c,"Ellipse",(function(){return Zv})),n.d(c,"Sector",(function(){return pm})),n.d(c,"Ring",(function(){return ym})),n.d(c,"Polygon",(function(){return _m})),n.d(c,"Polyline",(function(){return Mm})),n.d(c,"Rect",(function(){return nu})),n.d(c,"Line",(function(){return Cm})),n.d(c,"BezierCurve",(function(){return Pm})),n.d(c,"Arc",(function(){return Rm})),n.d(c,"IncrementalDisplayable",(function(){return lb})),n.d(c,"CompoundPath",(function(){return zm})),n.d(c,"LinearGradient",(function(){return Hm})),n.d(c,"RadialGradient",(function(){return Wm})),n.d(c,"BoundingRect",(function(){return ue}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Ud})),n.d(h,"toCamelCase",(function(){return Xd})),n.d(h,"normalizeCssArray",(function(){return $d})),n.d(h,"encodeHTML",(function(){return ct})),n.d(h,"formatTpl",(function(){return Qd})),n.d(h,"getTooltipMarker",(function(){return tp})),n.d(h,"formatTime",(function(){return ep})),n.d(h,"capitalFirst",(function(){return np})),n.d(h,"truncateText",(function(){return es})),n.d(h,"getTextRect",(function(){return _C}));var d={};n.r(d),n.d(d,"map",(function(){return x["map"]})),n.d(d,"each",(function(){return x["each"]})),n.d(d,"indexOf",(function(){return x["indexOf"]})),n.d(d,"inherits",(function(){return x["inherits"]})),n.d(d,"reduce",(function(){return x["reduce"]})),n.d(d,"filter",(function(){return x["filter"]})),n.d(d,"bind",(function(){return x["bind"]})),n.d(d,"curry",(function(){return x["curry"]})),n.d(d,"isArray",(function(){return x["isArray"]})),n.d(d,"isString",(function(){return x["isString"]})),n.d(d,"isObject",(function(){return x["isObject"]})),n.d(d,"isFunction",(function(){return x["isFunction"]})),n.d(d,"extend",(function(){return x["extend"]})),n.d(d,"defaults",(function(){return x["defaults"]})),n.d(d,"clone",(function(){return x["clone"]})),n.d(d,"merge",(function(){return x["merge"]}));
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define("xt-element-ui",["vue"],e):"object"===typeof exports?exports["xt-element-ui"]=e(require("vue")):t["xt-element-ui"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0157":function(t,e,n){var i=n("662a");function r(t){return i(new Date,t)}t.exports=r},"04c6":function(t,e,n){"use strict";n("8596")},"0978":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setHours(0,0,0,0),e}t.exports=r},"0ba2":function(t,e,n){},"0d3e":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=n.getTime(),a=i(e),o=a.getTime();return r<o?-1:r>o?1:0}t.exports=r},"0e15":function(t,e,n){var i=n("597f");t.exports=function(t,e,n){return void 0===n?i(t,e,!1):i(t,n,!1!==e)}},"10c8":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return n}t.exports=r},"12fd":function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},"145e":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMilliseconds(999),e}t.exports=r},"158b":function(t,e,n){var i=n("c8d5"),r=n("3814");function a(t,e){var n=i(t),a=Number(e),o=Math.floor(n.getMonth()/3)+1,s=a-o;return r(n,n.getMonth()+3*s)}t.exports=a},"176d":function(t,e,n){},"17b4":function(t,e,n){},"17cd":function(t,e,n){var i=n("c8d5"),r=n("b2e9"),a=n("0d3e");function o(t,e){var n=i(t),o=i(e),s=a(n,o),l=Math.abs(r(n,o));n.setMonth(n.getMonth()-s*l);var u=a(n,o)===-s;return s*(l-u)}t.exports=o},"18b7":function(t,e,n){var i=n("72b7");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},"1a07":function(t,e,n){},"1a84":function(t,e,n){var i=n("c8d5");function r(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return i(t)})),n=Math.min.apply(null,e);return new Date(n)}t.exports=r},"1baf":function(t,e,n){var i=n("c7ce");function r(t,e,n){var r=i(t,n),a=i(e,n);return r.getTime()===a.getTime()}t.exports=r},"1cc6":function(t,e,n){var i=n("ec1f"),r=36e5;function a(t,e){var n=Number(e);return i(t,n*r)}t.exports=a},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=d,e.fromByteArray=g;for(var i=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var i=n===e?0:4-n%4;return[n,i]}function c(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,i=u(t),o=i[0],s=i[1],l=new a(h(t,o,s)),c=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function f(t,e,n){for(var i,r=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),r.push(p(i));return r.join("")}function g(t){for(var e,n=t.length,r=n%3,a=[],o=16383,s=0,l=n-r;s<l;s+=o)a.push(f(t,s,s+o>l?l:s+o));return 1===r?(e=t[n-1],a.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],a.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"20b1":function(t,e,n){var i=n("0978");function r(t){var e=new Date;return e.setDate(e.getDate()+1),i(t).getTime()===i(e).getTime()}t.exports=r},2299:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMilliseconds(0),e}t.exports=r},"231c":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getSeconds();return n}t.exports=r},2507:function(t,e,n){var i=n("c8d5");function r(t){return 1===i(t).getDay()}t.exports=r},"26be":function(t,e,n){"use strict";n("0ba2")},"26d5":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()===r.getFullYear()}t.exports=r},"271a":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMinutes(59,59,999),e}t.exports=r},"27a1":function(t,e,n){var i=n("8964"),r=n("9706");function a(t,e){var n=Number(e);return r(t,i(t)+n)}t.exports=a},"2a80":function(t,e,n){var i=n("9aaa");function r(t){return i(new Date,t)}t.exports=r},"2a9c":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()-r.getFullYear()}t.exports=r},"2b57":function(t,e,n){var i=n("c8d5");function r(t){return 0===i(t).getDay()}t.exports=r},"2b67":function(t,e,n){var i=n("c8d5");function r(t){return i(t).getTime()>(new Date).getTime()}t.exports=r},"2c86":function(t,e,n){"use strict";n("6d33")},"2d23":function(t,e,n){var i=n("1baf");function r(t,e){return i(new Date,t,e)}t.exports=r},"2d96":function(t,e){function n(){var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function e(e,n,i){var r;return i=i||{},r="string"===typeof t[e]?t[e]:1===n?t[e].one:t[e].other.replace("{{count}}",n),i.addSuffix?i.comparison>0?"in "+r:r+" ago":r}return{localize:e}}t.exports=n},"2f1a":function(t,e,n){var i=n("c7ce"),r=6e4,a=6048e5;function o(t,e,n){var o=i(t,n),s=i(e,n),l=o.getTime()-o.getTimezoneOffset()*r,u=s.getTime()-s.getTimezoneOffset()*r;return Math.round((l-u)/a)}t.exports=o},"2f60":function(t,e,n){},"2f8f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setFullYear(r),n}t.exports=r},"2fff":function(t,e,n){var i=n("4497");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},"30d1":function(t,e,n){var i=n("0978");function r(t){return i(t).getTime()===i(new Date).getTime()}t.exports=r},"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return Nw})),n.d(e,"dependencies",(function(){return Rw})),n.d(e,"PRIORITY",(function(){return tS})),n.d(e,"init",(function(){return KS})),n.d(e,"connect",(function(){return QS})),n.d(e,"disconnect",(function(){return JS})),n.d(e,"disConnect",(function(){return tM})),n.d(e,"dispose",(function(){return eM})),n.d(e,"getInstanceByDom",(function(){return nM})),n.d(e,"getInstanceById",(function(){return iM})),n.d(e,"registerTheme",(function(){return rM})),n.d(e,"registerPreprocessor",(function(){return aM})),n.d(e,"registerProcessor",(function(){return oM})),n.d(e,"registerPostInit",(function(){return sM})),n.d(e,"registerPostUpdate",(function(){return lM})),n.d(e,"registerUpdateLifecycle",(function(){return uM})),n.d(e,"registerAction",(function(){return cM})),n.d(e,"registerCoordinateSystem",(function(){return hM})),n.d(e,"getCoordinateSystemDimensions",(function(){return dM})),n.d(e,"registerCustomSeries",(function(){return pM})),n.d(e,"registerLocale",(function(){return td})),n.d(e,"registerLayout",(function(){return fM})),n.d(e,"registerVisual",(function(){return gM})),n.d(e,"registerLoading",(function(){return mM})),n.d(e,"setCanvasCreator",(function(){return bM})),n.d(e,"registerMap",(function(){return xM})),n.d(e,"getMap",(function(){return _M})),n.d(e,"registerTransform",(function(){return wM})),n.d(e,"dataTool",(function(){return MM})),n.d(e,"zrender",(function(){return a})),n.d(e,"matrix",(function(){return r})),n.d(e,"vector",(function(){return i})),n.d(e,"zrUtil",(function(){return x})),n.d(e,"color",(function(){return xn})),n.d(e,"throttle",(function(){return vx})),n.d(e,"helper",(function(){return s})),n.d(e,"use",(function(){return IM})),n.d(e,"setPlatformAPI",(function(){return Ri["e"]})),n.d(e,"parseGeoJSON",(function(){return xC})),n.d(e,"parseGeoJson",(function(){return xC})),n.d(e,"number",(function(){return l})),n.d(e,"time",(function(){return u})),n.d(e,"graphic",(function(){return c})),n.d(e,"format",(function(){return h})),n.d(e,"util",(function(){return d})),n.d(e,"env",(function(){return b})),n.d(e,"List",(function(){return sO})),n.d(e,"Model",(function(){return Vh})),n.d(e,"Axis",(function(){return QC})),n.d(e,"ComponentModel",(function(){return Hp})),n.d(e,"ComponentView",(function(){return bv})),n.d(e,"SeriesModel",(function(){return vv})),n.d(e,"ChartView",(function(){return px})),n.d(e,"innerDrawElementOnCanvas",(function(){return xw})),n.d(e,"extendComponentModel",(function(){return JC})),n.d(e,"extendComponentView",(function(){return tA})),n.d(e,"extendSeriesModel",(function(){return eA})),n.d(e,"extendChartView",(function(){return nA}));var i={};n.r(i),n.d(i,"create",(function(){return _})),n.d(i,"copy",(function(){return w})),n.d(i,"clone",(function(){return S})),n.d(i,"set",(function(){return M})),n.d(i,"add",(function(){return O})),n.d(i,"scaleAndAdd",(function(){return T})),n.d(i,"sub",(function(){return I})),n.d(i,"len",(function(){return C})),n.d(i,"length",(function(){return A})),n.d(i,"lenSquare",(function(){return k})),n.d(i,"lengthSquare",(function(){return D})),n.d(i,"mul",(function(){return L})),n.d(i,"div",(function(){return P})),n.d(i,"dot",(function(){return j})),n.d(i,"scale",(function(){return N})),n.d(i,"normalize",(function(){return R})),n.d(i,"distance",(function(){return E})),n.d(i,"dist",(function(){return z})),n.d(i,"distanceSquare",(function(){return B})),n.d(i,"distSquare",(function(){return V})),n.d(i,"negate",(function(){return F})),n.d(i,"lerp",(function(){return H})),n.d(i,"applyTransform",(function(){return G})),n.d(i,"min",(function(){return W})),n.d(i,"max",(function(){return Y}));var r={};n.r(r),n.d(r,"create",(function(){return It})),n.d(r,"identity",(function(){return Ct})),n.d(r,"copy",(function(){return At})),n.d(r,"mul",(function(){return kt})),n.d(r,"translate",(function(){return Dt})),n.d(r,"rotate",(function(){return Lt})),n.d(r,"scale",(function(){return Pt})),n.d(r,"invert",(function(){return jt})),n.d(r,"clone",(function(){return Nt}));var a={};n.r(a),n.d(a,"init",(function(){return Mr})),n.d(a,"dispose",(function(){return Or})),n.d(a,"disposeAll",(function(){return Tr})),n.d(a,"getInstance",(function(){return Ir})),n.d(a,"registerPainter",(function(){return Cr})),n.d(a,"getElementSSRData",(function(){return Ar})),n.d(a,"registerSSRDataGetter",(function(){return kr})),n.d(a,"version",(function(){return Dr}));var o={};n.r(o),n.d(o,"updateProps",(function(){return nh})),n.d(o,"initProps",(function(){return ih})),n.d(o,"removeElement",(function(){return ah})),n.d(o,"removeElementWithFadeOut",(function(){return sh})),n.d(o,"isElementRemoved",(function(){return rh})),n.d(o,"XY",(function(){return cb})),n.d(o,"WH",(function(){return hb})),n.d(o,"HOVER_LAYER_NO",(function(){return db})),n.d(o,"HOVER_LAYER_FROM_THRESHOLD",(function(){return pb})),n.d(o,"HOVER_LAYER_FOR_INCREMENTAL",(function(){return fb})),n.d(o,"extendShape",(function(){return gb})),n.d(o,"extendPath",(function(){return vb})),n.d(o,"registerShape",(function(){return mb})),n.d(o,"getShapeClass",(function(){return bb})),n.d(o,"makePath",(function(){return xb})),n.d(o,"makeImage",(function(){return _b})),n.d(o,"mergePath",(function(){return Sb})),n.d(o,"resizePath",(function(){return Mb})),n.d(o,"subPixelOptimizeLine",(function(){return Ob})),n.d(o,"subPixelOptimizeRect",(function(){return Tb})),n.d(o,"subPixelOptimize",(function(){return Ib})),n.d(o,"getTransform",(function(){return Cb})),n.d(o,"applyTransform",(function(){return Ab})),n.d(o,"transformDirection",(function(){return kb})),n.d(o,"groupTransition",(function(){return Pb})),n.d(o,"clipPointsByRect",(function(){return jb})),n.d(o,"clipRectByRect",(function(){return Nb})),n.d(o,"createIcon",(function(){return Rb})),n.d(o,"linePolygonIntersect",(function(){return Eb})),n.d(o,"lineLineIntersect",(function(){return zb})),n.d(o,"expandOrShrinkRect",(function(){return Fb})),n.d(o,"setTooltipConfig",(function(){return Wb})),n.d(o,"traverseElements",(function(){return Ub})),n.d(o,"isBoundingRectAxisAligned",(function(){return Xb})),n.d(o,"ensureCopyRect",(function(){return Zb})),n.d(o,"ensureCopyTransform",(function(){return qb})),n.d(o,"retrieveZInfo",(function(){return Kb})),n.d(o,"calcZ2Range",(function(){return Qb})),n.d(o,"traverseUpdateZ",(function(){return Jb})),n.d(o,"payloadDisableAnimation",(function(){return ex})),n.d(o,"decomposeTransform",(function(){return nx})),n.d(o,"getCurrentCanvasPainter",(function(){return rx})),n.d(o,"Group",(function(){return vr})),n.d(o,"Image",(function(){return Xl})),n.d(o,"Text",(function(){return _u})),n.d(o,"Circle",(function(){return Uv})),n.d(o,"Ellipse",(function(){return Zv})),n.d(o,"Sector",(function(){return pm})),n.d(o,"Ring",(function(){return ym})),n.d(o,"Polygon",(function(){return _m})),n.d(o,"Polyline",(function(){return Mm})),n.d(o,"Rect",(function(){return nu})),n.d(o,"Line",(function(){return Cm})),n.d(o,"BezierCurve",(function(){return Pm})),n.d(o,"Arc",(function(){return Rm})),n.d(o,"IncrementalDisplayable",(function(){return lb})),n.d(o,"CompoundPath",(function(){return zm})),n.d(o,"LinearGradient",(function(){return Hm})),n.d(o,"RadialGradient",(function(){return Wm})),n.d(o,"BoundingRect",(function(){return ue})),n.d(o,"OrientedBoundingRect",(function(){return tb})),n.d(o,"Point",(function(){return Et})),n.d(o,"Path",(function(){return Bl}));var s={};n.r(s),n.d(s,"createList",(function(){return tC})),n.d(s,"getLayoutRect",(function(){return Ap})),n.d(s,"createDimensions",(function(){return lO})),n.d(s,"dataStack",(function(){return eC})),n.d(s,"createSymbol",(function(){return z_})),n.d(s,"createScale",(function(){return nC})),n.d(s,"mixinAxisModelCommonMethods",(function(){return iC})),n.d(s,"getECData",(function(){return wu})),n.d(s,"enableHoverEmphasis",(function(){return Bc})),n.d(s,"createTextStyle",(function(){return rC}));var l={};n.r(l),n.d(l,"linearMap",(function(){return Xr})),n.d(l,"round",(function(){return ta})),n.d(l,"asc",(function(){return ea})),n.d(l,"getPrecision",(function(){return na})),n.d(l,"getPrecisionSafe",(function(){return ia})),n.d(l,"getPixelPrecision",(function(){return ra})),n.d(l,"getPercentWithPrecision",(function(){return oa})),n.d(l,"parsePercent",(function(){return $r})),n.d(l,"MAX_SAFE_INTEGER",(function(){return ua})),n.d(l,"remRadian",(function(){return ca})),n.d(l,"isRadianAroundZero",(function(){return ha})),n.d(l,"parseDate",(function(){return pa})),n.d(l,"quantity",(function(){return fa})),n.d(l,"quantityExponent",(function(){return ga})),n.d(l,"nice",(function(){return va})),n.d(l,"quantile",(function(){return ma})),n.d(l,"reformIntervals",(function(){return ba})),n.d(l,"isNumeric",(function(){return _a})),n.d(l,"numericToNumber",(function(){return xa}));var u={};n.r(u),n.d(u,"parse",(function(){return pa})),n.d(u,"format",(function(){return Cd})),n.d(u,"roundTime",(function(){return Dd}));var c={};n.r(c),n.d(c,"extendShape",(function(){return gb})),n.d(c,"extendPath",(function(){return vb})),n.d(c,"makePath",(function(){return xb})),n.d(c,"makeImage",(function(){return _b})),n.d(c,"mergePath",(function(){return Sb})),n.d(c,"resizePath",(function(){return Mb})),n.d(c,"createIcon",(function(){return Rb})),n.d(c,"updateProps",(function(){return nh})),n.d(c,"initProps",(function(){return ih})),n.d(c,"getTransform",(function(){return Cb})),n.d(c,"clipPointsByRect",(function(){return jb})),n.d(c,"clipRectByRect",(function(){return Nb})),n.d(c,"registerShape",(function(){return mb})),n.d(c,"getShapeClass",(function(){return bb})),n.d(c,"Group",(function(){return vr})),n.d(c,"Image",(function(){return Xl})),n.d(c,"Text",(function(){return _u})),n.d(c,"Circle",(function(){return Uv})),n.d(c,"Ellipse",(function(){return Zv})),n.d(c,"Sector",(function(){return pm})),n.d(c,"Ring",(function(){return ym})),n.d(c,"Polygon",(function(){return _m})),n.d(c,"Polyline",(function(){return Mm})),n.d(c,"Rect",(function(){return nu})),n.d(c,"Line",(function(){return Cm})),n.d(c,"BezierCurve",(function(){return Pm})),n.d(c,"Arc",(function(){return Rm})),n.d(c,"IncrementalDisplayable",(function(){return lb})),n.d(c,"CompoundPath",(function(){return zm})),n.d(c,"LinearGradient",(function(){return Hm})),n.d(c,"RadialGradient",(function(){return Wm})),n.d(c,"BoundingRect",(function(){return ue}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Ud})),n.d(h,"toCamelCase",(function(){return Xd})),n.d(h,"normalizeCssArray",(function(){return $d})),n.d(h,"encodeHTML",(function(){return ct})),n.d(h,"formatTpl",(function(){return Qd})),n.d(h,"getTooltipMarker",(function(){return tp})),n.d(h,"formatTime",(function(){return ep})),n.d(h,"capitalFirst",(function(){return np})),n.d(h,"truncateText",(function(){return es})),n.d(h,"getTextRect",(function(){return _C}));var d={};n.r(d),n.d(d,"map",(function(){return x["map"]})),n.d(d,"each",(function(){return x["each"]})),n.d(d,"indexOf",(function(){return x["indexOf"]})),n.d(d,"inherits",(function(){return x["inherits"]})),n.d(d,"reduce",(function(){return x["reduce"]})),n.d(d,"filter",(function(){return x["filter"]})),n.d(d,"bind",(function(){return x["bind"]})),n.d(d,"curry",(function(){return x["curry"]})),n.d(d,"isArray",(function(){return x["isArray"]})),n.d(d,"isString",(function(){return x["isString"]})),n.d(d,"isObject",(function(){return x["isObject"]})),n.d(d,"isFunction",(function(){return x["isFunction"]})),n.d(d,"extend",(function(){return x["extend"]})),n.d(d,"defaults",(function(){return x["defaults"]})),n.d(d,"clone",(function(){return x["clone"]})),n.d(d,"merge",(function(){return x["merge"]}));
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -24,11 +24,11 @@ var p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
24
24
  * https://github.com/ecomfe/zrender/blob/master/LICENSE
25
25
  */function xr(t){delete br[t]}function _r(t){if(!t)return!1;if("string"===typeof t)return Object(xn["lum"])(t,1)<vi;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Object(xn["lum"])(e[r].color,1);return n/=i,n<vi}return!1}var wr,Sr=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new Ve,a=n.renderer||"canvas";mr[a]||(a=x["keys"](mr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var o=new mr[a](e,r,n,t),s=n.ssr||o.ssrOnly;this.storage=r,this.painter=o;var l,u=b.node||b.worker||s?null:new fi(o.getViewportRoot(),o.root),c=n.useCoarsePointer,h=null==c||"auto"===c?b.touchEventsSupported:!!c,d=44;h&&(l=x["retrieve2"](n.pointerSize,d)),this.handler=new _e(r,o,u,o.root,l),this.animation=new $n({stage:{update:s?null:function(){return i._flush(!1)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=_r(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,n=Un(),i=this._needsRefresh,r=this._needsRefreshHover;(i||r)&&(e=!0,this._refresh({animUpdate:t,refresh:i,refreshHover:r}));var a=Un();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},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;e<t.length;e++)t[e]instanceof vr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,xr(this.id))},t}();function Mr(t,e){var n=new Sr(x["guid"](),t,e);return br[n.id]=n,n}function Or(t){t.dispose()}function Tr(){for(var t in br)br.hasOwnProperty(t)&&br[t].dispose();br={}}function Ir(t){return br[t]}function Cr(t,e){mr[t]=e}function Ar(t){if("function"===typeof wr)return wr(t)}function kr(t){wr=t}var Dr="6.1.0",Lr=1e-4,Pr=20,jr=14;function Nr(t){return t.replace(/^\s+|\s+$/g,"")}var Rr=Math.min,Er=Math.max,zr=Math.abs,Br=Math.round,Vr=Math.floor,Fr=Math.ceil,Hr=Math.pow,Gr=Math.log,Wr=Math.LN10,Yr=Math.PI,Ur=Math.random;function Xr(t,e,n,i){var r=e[0],a=e[1],o=n[0],s=n[1],l=a-r,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(i)if(l>0){if(t<=r)return o;if(t>=a)return s}else{if(t>=r)return o;if(t<=a)return s}else{if(t===r)return o;if(t===a)return s}return(t-r)/l*u+o}var $r=Zr;function Zr(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return qr(t,e,n)}function qr(t,e,n){return x["isString"](t)?Qr(t)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function Kr(t){return x["isString"](t)&&Qr(t)}function Qr(t){return!!Nr(t).match(/%$/)}function Jr(t,e,n){return isNaN(e)?n?""+t:+t:(e=Rr(Er(0,e),Pr),t=(+t).toFixed(e),n?t:+t)}function ta(t,e,n){return null==e&&(e=10),Jr(t,e,n)}function ea(t){return t.sort((function(t,e){return t-e})),t}function na(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Br(t*e)/e===t)return n;return ia(t)}function ia(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,a=e.indexOf("."),o=a<0?0:r-1-a;return Er(0,o-i)}function ra(t,e){var n=Vr(Gr(t[1]-t[0])/Wr),i=Br(Gr(zr(e[1]-e[0]))/Wr),r=Rr(Er(-n+i,0),Pr);return isFinite(r)?r:Pr}function aa(t,e,n){var i=zr(t[1]-t[0]);if(!isFinite(i)||0===i)return NaN;var r=Gr(2*zr(n||1)*zr(i))/Wr,a=Gr(zr(e))/Wr,o=Er(0,Fr(-r+a));return isFinite(o)||(o=NaN),o}function oa(t,e,n){if(!t[e])return 0;var i=sa(t,n);return i[e]||0}function sa(t,e){var n=x["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var i=Hr(10,e),r=x["map"](t,(function(t){return(isNaN(t)?0:t)/n*i*100})),a=100*i,o=x["map"](r,(function(t){return Vr(t)})),s=x["reduce"](o,(function(t,e){return t+e}),0),l=x["map"](r,(function(t,e){return t-o[e]}));while(s<a){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++o[c],l[c]=0,++s}return x["map"](o,(function(t){return t/i}))}function la(t,e){var n=Er(na(t),na(e)),i=t+e;return n>Pr?i:Jr(i,n)}var ua=Hr(2,53)-1;function ca(t){var e=2*Yr;return(t%e+e)%e}function ha(t){return t>-Lr&&t<Lr}var da=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function pa(t){if(t instanceof Date)return t;if(x["isString"](t)){var e=da.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Br(t))}function fa(t){return Hr(10,ga(t))}function ga(t){if(0===t)return 0;var e=Vr(Gr(t)/Wr);return t/Hr(10,e)>=10&&e++,e}var ya=2;function va(t,e){var n,i=ga(t),r=Hr(10,i),a=t/r;return n=e===ya?1:e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*r,Jr(t,-i)}function ma(t,e){var n=(t.length-1)*e+1,i=Vr(n),r=+t[i-1],a=n-i;return a?r+a*(t[i]-r):r}function ba(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,a=t[i].close,o=0;o<2;o++)r[o]<=e&&(r[o]=e,a[o]=o?1:1-n),e=r[o],n=a[o];r[0]===r[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function xa(t){var e=parseFloat(t);return e==t&&(0!==e||!x["isString"](t)||t.indexOf("x")<=0)?e:NaN}function _a(t){return!isNaN(xa(t))}function wa(){return Br(9*Ur())}function Sa(t,e){return 0===e?t:Sa(e,t%e)}function Ma(t,e){return null==t?e:null==e?t:t*e/Sa(t,e)}function Oa(t){return null!=t&&isFinite(t)}function Ta(t,e,n){return(e-t)*n+t}var Ia="series\0",Ca="\0_ec_\0";function Aa(t){return t instanceof Array?t:null==t?[]:[t]}function ka(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var a=n[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Da=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function La(t){return!Object(x["isObject"])(t)||Object(x["isArray"])(t)||t instanceof Date?t:t.value}function Pa(t){return Object(x["isObject"])(t)&&!(t instanceof Array)}function ja(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var o=Object(x["createHashMap"])();Object(x["each"])(e,(function(t,n){Object(x["isObject"])(t)||(e[n]=null)}));var s=Na(t,o,n);return(i||r)&&Ra(s,t,o,e),i&&Ea(s,e),i||r?za(s,e,r):a&&Ba(s,e),Va(s),s}function Na(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var a=t[r];a&&null!=a.id&&e.set(a.id,r),i.push({existing:"replaceMerge"===n||Ya(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function Ra(t,e,n,i){Object(x["each"])(i,(function(r,a){if(r&&null!=r.id){var o=Ha(r.id),s=n.get(o);if(null!=s){var l=t[s];Object(x["assert"])(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=r,l.existing=e[s],i[a]=null}}}))}function Ea(t,e){Object(x["each"])(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var a=t[r].existing;if(!t[r].newOption&&a&&(null==a.id||null==n.id)&&!Ya(n)&&!Ya(a)&&Fa("name",a,n))return t[r].newOption=n,void(e[i]=null)}}))}function za(t,e,n){Object(x["each"])(e,(function(e){if(e){var i,r=0;while((i=t[r])&&(i.newOption||Ya(i.existing)||i.existing&&null!=e.id&&!Fa("id",e,i.existing)))r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}function Ba(t,e){Object(x["each"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Va(t){var e=Object(x["createHashMap"])();Object(x["each"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(x["each"])(t,(function(t){var n=t.newOption;Object(x["assert"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(x["each"])(t,(function(t,n){var i=t.existing,r=t.newOption,a=t.keyInfo;if(Object(x["isObject"])(r)){if(a.name=null!=r.name?Ha(r.name):i?i.name:Ia+n,i)a.id=Ha(i.id);else if(null!=r.id)a.id=Ha(r.id);else{var o=0;do{a.id="\0"+a.name+"\0"+o++}while(e.get(a.id))}e.set(a.id,t)}}))}function Fa(t,e,n){var i=Ga(e[t],null),r=Ga(n[t],null);return null!=i&&null!=r&&i===r}function Ha(t){return Ga(t,"")}function Ga(t,e){return null==t?e:Object(x["isString"])(t)?t:Object(x["isNumber"])(t)||Object(x["isStringSafe"])(t)?t+"":e}function Wa(t){var e=t.name;return!(!e||!e.indexOf(Ia))}function Ya(t){return t&&null!=t.id&&0===Ha(t.id).indexOf(Ca)}function Ua(t){return Ca+t}function Xa(t,e,n){Object(x["each"])(t,(function(t){var i=t.newOption;Object(x["isObject"])(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=$a(e,i,t.existing,n))}))}function $a(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}function Za(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[a(n),a(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var a=Ga(t[i].seriesId,null);if(null==a)return;for(var o=Aa(t[i].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var c=o[l];s&&s[c]?s[c]=null:(e[a]||(e[a]={}))[c]=1}}}function a(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=a(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function qa(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(x["isArray"])(e.dataIndex)?Object(x["map"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(x["isArray"])(e.name)?Object(x["map"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Ka(){var t="__ec_inner_"+Qa++;return function(e){return e[t]||(e[t]={})}}var Qa=wa();function Ja(t,e,n){var i=to(e,n),r=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=n?n.defaultMainType:null;return!r&&l&&a.set(l,{}),a.each((function(e,i){var r=io(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function to(t,e){var n;if(Object(x["isString"])(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Object(x["createHashMap"])(),a={},o=!1;return Object(x["each"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(x["indexOf"])(e.includeMainTypes,s)<0)){o=o||!!s;var u=r.get(s)||r.set(s,{});u[l]=t}}else a[n]=t})),{mainTypeSpecified:o,queryOptionMap:r,others:a}}var eo={useDefault:!0,enableAll:!1,enableNone:!1},no={useDefault:!1,enableAll:!0,enableNone:!0};function io(t,e,n,i){i=i||eo;var r=n.index,a=n.id,o=n.name,s={models:null,specified:null!=r||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r){if(i.enableNone)return s.models=[],s;r=-1}return"all"===r&&(r=i.enableAll?a=o=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:a,name:o}),s}function ro(t,e,n){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var r={mainType:e,query:i};return n&&(r.subType=n),r}function ao(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function oo(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function so(t){return"auto"===t?b.domSupported?"html":"richText":t||"html"}function lo(t,e){var n=Object(x["createHashMap"])(),i=[];return Object(x["each"])(t,(function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)})),{keys:i,buckets:n}}function uo(t,e,n,i,r){var a=null==e||"auto"===e;if(null==i)return i;if(Object(x["isNumber"])(i)){var o=Ta(n||0,i,r);return Jr(o,a?Math.max(na(n||0),na(i)):e)}if(Object(x["isString"])(i))return r<1?n:i;for(var s=[],l=n,u=i,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=t.getDimensionInfo(h);if(d&&"ordinal"===d.type)s[h]=(r<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,f=u[h];o=Ta(p,f,r);s[h]=Jr(o,a?Math.max(na(p),na(f)):e)}}return s}var co=function(){function t(){}return t.prototype.reset=function(t,e,n,i){return this._list=t,this._step=i=i||1,this._idx=e,this._end=null!=n?n:i>0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)},t}();function ho(t){t.option=t.parentModel=t.ecModel=null}function po(){return[1/0,-1/0]}function fo(t,e){mo(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function go(t,e){mo(e)&&e<t[0]&&(t[0]=e)}function yo(t,e){mo(e)&&e>t[1]&&(t[1]=e)}function vo(t,e){bo(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function mo(t){return null!=t&&isFinite(t)}function bo(t,e){return mo(t)&&mo(e)&&t<=e}function xo(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function _o(t){bo(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function wo(){var t="__ec_once_"+So++;return function(e,n){Object(x["hasOwn"])(e,t)||(e[t]=1,n())}}var So=wa();function Mo(t,e,n){var i=Object(x["createHashMap"])(),r=0;Object(x["each"])(t,(function(a){var o=e(a);var s=i.get(o)||0;n&&n(a,s),s||n||(t[r++]=a),i.set(o,s+1)})),n||(t.length=r)}function Oo(t){return t.value+""}function To(t){return t+""}function Io(t,e){return Object(x["retrieve2"])(e,!0)?t.seriesIndex+2:0}function Co(t,e,n){var i=t.getData().count();return{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null}}function Ao(t,e){return{seriesType:t,overallReset:e}}function ko(t){return{overallReset:t}}var Do=".",Lo="___EC__COMPONENT__CONTAINER___",Po="___EC__EXTENDED_CLASS___";function jo(t){var e={main:"",sub:""};if(t){var n=t.split(Do);e.main=n[0]||"",e.sub=n[1]||""}return e}function No(t){x["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Ro(t){return!(!t||!t[Po])}function Eo(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return zo(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return f(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},x["inherits"](e,this)),x["extend"](e.prototype,t),e[Po]=!0,e.extend=this.extend,e.superCall=Ho,e.superApply=Go,e.superClass=n,e}}function zo(t){return x["isFunction"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Bo(t,e){t.extend=e.extend}var Vo=Math.round(10*Math.random());function Fo(t){var e=["__\0is_clz",Vo++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Ho(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Go(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Wo(t){var e={};function n(t){var n=e[t.main];return n&&n[Lo]||(n=e[t.main]={},n[Lo]=!0),n}t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){No(i),t.prototype.type=i;var r=jo(i);if(r.sub){if(r.sub!==Lo){var a=n(r);a[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Lo]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=jo(t),i=[],r=e[n.main];return r&&r[Lo]?x["each"](r,(function(t,e){e!==Lo&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=jo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return x["each"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=jo(t),i=e[n.main];return i&&i[Lo]}}function Yo(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var a={},o=0;o<t.length;o++){var s=t[o][1];if(!(i&&x["indexOf"](i,s)>=0||r&&x["indexOf"](r,s)<0)){var l=n.getShallow(s,e);null!=l&&(a[t[o][0]]=l)}}return a}}var Uo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Xo=Yo(Uo),$o=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Xo(this,t,e)},t}(),Zo=new Ni["a"](50);function qo(t){if("string"===typeof t){var e=Zo.get(t);return e&&e.image}return t}function Ko(t,e,n,i,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var a=Zo.get(t),o={hostEl:n,cb:i,cbPayload:r};return a?(e=a.image,!Jo(e)&&a.pending.push(o)):(e=Ri["d"].loadImage(t,Qo,Qo),e.__zrImageSrc=t,Zo.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}return t}return e}function Qo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Jo(t){return t&&t.width&&t.height}var ts=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function es(t,e,n,i,r){var a={};return ns(a,t,e,n,i,r),a.text}function ns(t,e,n,i,r,a){if(!n)return t.text="",void(t.isTruncated=!1);var o=(e+"").split("\n");a=is(n,i,r,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)rs(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join("\n"),t.isTruncated=s}function is(t,e,n,i){i=i||{};var r=Object(x["extend"])({},i);n=Object(x["retrieve2"])(n,"..."),r.maxIterations=Object(x["retrieve2"])(i.maxIterations,2);var a=r.minChar=Object(x["retrieve2"])(i.minChar,0),o=r.fontMeasureInfo=Ei(e),s=o.asciiCharWidth;r.placeholder=Object(x["retrieve2"])(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var c=Hi(o,n);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function rs(t,e,n){var i=n.containerWidth,r=n.contentWidth,a=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var o=Hi(a,e);if(o<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(o<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?as(e,r,a):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,l),o=Hi(a,e)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function as(t,e,n){for(var i=0,r=0,a=t.length;r<a&&i<e;r++)i+=Fi(n,t.charCodeAt(r));return r}function os(t,e,n,i){var r=bs(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c="truncate"===a,h=Xi(u),d=Object(x["retrieve2"])(e.lineHeight,h),p="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-s);var y,v=e.height;null==v&&null!=i&&(v=i-l),y=null==g||"break"!==a&&"breakAll"!==a?r?r.split("\n"):[]:r?gs(r,e.font,g,"breakAll"===a,0).lines:[];var m=y.length*d;if(null==v&&(v=m),m>v&&p){var b=Math.floor(v/d);f=f||y.length>b,y=y.slice(0,b),m=y.length*d}if(r&&c&&null!=g)for(var _=is(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w={},S=0;S<y.length;S++)rs(w,y[S],_),y[S]=w.textLine,f=f||w.isTruncated;var M=v,O=0,T=Ei(u);for(S=0;S<y.length;S++)O=Math.max(Hi(T,y[S]),O);null==g&&(g=O);var I=g;return M+=l,I+=s,{lines:y,height:v,outerWidth:I,outerHeight:M,lineHeight:d,calculatedLineHeight:h,contentWidth:O,contentHeight:m,width:g,isTruncated:f}}var ss=function(){function t(){}return t}(),ls=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),us=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function cs(t,e,n,i,r){var a=new us,o=bs(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=i&&(h=i-u);var d,p=e.overflow,f="break"!==p&&"breakAll"!==p||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===p},g=ts.lastIndex=0;while(null!=(d=ts.exec(o))){var y=d.index;y>g&&hs(a,o.substring(g,y),e,f),hs(a,d[2],e,f,d[1]),g=ts.lastIndex}g<o.length&&hs(a,o.substring(g,o.length),e,f);var v=[],m=0,b=0,_="truncate"===p,w="truncate"===e.lineOverflow,S={};function M(t,e,n){t.width=e,t.lineHeight=n,m+=n,b=Math.max(b,e)}t:for(var O=0;O<a.lines.length;O++){for(var T=a.lines[O],I=0,C=0,A=0;A<T.tokens.length;A++){var k=T.tokens[A],D=k.styleName&&e.rich[k.styleName]||{},L=k.textPadding=D.padding,P=L?L[1]+L[3]:0,j=k.font=D.font||e.font;k.contentHeight=Xi(j);var N=Object(x["retrieve2"])(D.height,k.contentHeight);if(k.innerHeight=N,L&&(N+=L[0]+L[2]),k.height=N,k.lineHeight=Object(x["retrieve3"])(D.lineHeight,e.lineHeight,N),k.align=D&&D.align||r,k.verticalAlign=D&&D.verticalAlign||"middle",w&&null!=h&&m+k.lineHeight>h){var R=a.lines.length;A>0?(T.tokens=T.tokens.slice(0,A),M(T,C,I),a.lines=a.lines.slice(0,O+1)):a.lines=a.lines.slice(0,O),a.isTruncated=a.isTruncated||a.lines.length<R;break t}var E=D.width,z=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))k.percentWidth=E,v.push(k),k.contentWidth=Hi(Ei(j),k.text);else{if(z){var B=D.backgroundColor,V=B&&B.image;V&&(V=qo(V),Jo(V)&&(k.width=Math.max(k.width,V.width*N/V.height)))}var F=_&&null!=c?c-C:null;null!=F&&F<k.width?!z||F<P?(k.text="",k.width=k.contentWidth=0):(ns(S,k.text,F-P,j,e.ellipsis,{minChar:e.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Hi(Ei(j),k.text)):k.contentWidth=Hi(Ei(j),k.text)}k.width+=P,C+=k.width,D&&(I=Math.max(I,k.lineHeight))}M(T,C,I)}a.outerWidth=a.width=Object(x["retrieve2"])(c,b),a.outerHeight=a.height=Object(x["retrieve2"])(h,m),a.contentHeight=m,a.contentWidth=b,a.outerWidth+=l,a.outerHeight+=u;for(O=0;O<v.length;O++){k=v[O];var H=k.percentWidth;k.width=parseInt(H,10)/100*a.width}return a}function hs(t,e,n,i,r){var a,o,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=$i(l.width,i.width)+p;u.length>0&&f+i.accumWidth>i.width&&(a=e.split("\n"),h=!0),i.accumWidth=f}else{var g=gs(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,o=g.linesWidths,a=g.lines}}a||(a=e.split("\n"));for(var y=Ei(c),v=0;v<a.length;v++){var m=a[v],b=new ss;if(b.styleName=r,b.text=m,b.isLineHolder=!m&&!s,"number"===typeof l.width?b.width=l.width:b.width=o?o[v]:Hi(y,m),v||h)u.push(new ls([b]));else{var x=(u[u.length-1]||(u[0]=new ls)).tokens,_=x.length;1===_&&x[0].isLineHolder?x[0]=b:(m||!_||s)&&x.push(b)}}}function ds(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var ps=Object(x["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function fs(t){return!ds(t)||!!ps[t]}function gs(t,e,n,i,r){for(var a=[],o=[],s="",l="",u=0,c=0,h=Ei(e),d=0;d<t.length;d++){var p=t.charAt(d);if("\n"!==p){var f=Fi(h,p.charCodeAt(0)),g=!i&&!fs(p);(a.length?c+f>n:r+c+f>n)?c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=p,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=p,c=f)):g?(a.push(l),o.push(u),l=p,u=f):(a.push(p),o.push(f)):(c+=f,g?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:o}}function ys(t,e,n,i,r,a){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var o=2*e.width,s=2*e.height;ue.set(vs,Yi(n,o,r),Ui(i,s,a),o,s),ue.intersect(e,vs,null,ms);var l=ms.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Yi(l.x,l.width,r,!0),t.baseY=Ui(l.y,l.height,a,!0)}}var vs=new ue(0,0,0,0),ms={outIntersectRect:{},clamp:!0};function bs(t){return null!=t?t+="":t=""}function xs(t){var e=bs(t.text),n=t.font,i=Hi(Ei(n),e),r=Xi(n);return _s(t,i,r,null)}function _s(t,e,n,i){var r=new ue(Yi(t.x||0,e,t.textAlign),Ui(t.y||0,n,t.textBaseline),e,n),a=null!=i?i:ws(t)?t.lineWidth:0;return a>0&&(r.x-=a/2,r.y-=a/2,r.width+=a,r.height+=a),r}function ws(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var Ss="__zr_style_"+Math.round(10*Math.random()),Ms={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Os={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ms[Ss]=!0;var Ts=["z","z2","invisible"],Is=["invisible"],Cs=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype._init=function(e){for(var n=Object(x["keys"])(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Ds(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(i&&this.parent){var o=this.parent;while(o){if(o.ignore)return!1;o=o.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,a=i.shadowOffsetX||0,o=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ue(0,0,0,0)),e?ue.applyTransform(t,n,e):t.copy(n),(r||a||o)&&(t.width+=2*r+Math.abs(a),t.height+=2*r+Math.abs(o),t.x=Math.min(t.x,t.x+a-r),t.y=Math.min(t.y,t.y+o-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ue(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(x["extend"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Pe,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Pe)},e.prototype.styleUpdated=function(){this.__dirty&=~Pe},e.prototype.createStyle=function(t){return Object(x["createObject"])(Ms,t)},e.prototype.useStyle=function(t){t[Ss]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[Ss]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Ts)},e.prototype._applyStateObj=function(e,n,i,r,a,o){t.prototype._applyStateObj.call(this,e,n,i,r,a,o);var s,l=!(n&&r),u=this.__inHover===ir;if(n&&n.style?a?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=Object(x["keys"])(c),d=0;d<h.length;d++){var p=h[d];p in s&&(s[p]=s[p],this.style[p]=c[p])}var f=Object(x["keys"])(s);for(d=0;d<f.length;d++){p=f[d];this.style[p]=this.style[p]}this._transitionState(e,{style:s},o,this.getAnimationStyleProps())}else u?this._useHoverStyle(s):this.useStyle(s);if(!u){var g=this.__inHover?Is:Ts;for(d=0;d<g.length;d++){p=g[d];n&&null!=n[p]?this[p]=n[p]:l&&null!=i[p]&&(this[p]=i[p])}}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var a=e[r];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return Object(x["extend"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return Os},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Le|Pe}(),e}(gr),As=new ue(0,0,0,0),ks=new ue(0,0,0,0);function Ds(t,e,n){return As.copy(t.getBoundingRect()),t.transform&&As.applyTransform(t.transform),ks.width=e,ks.height=n,!As.intersect(ks)}var Ls=Cs,Ps=Math.min,js=Math.max,Ns=Math.sin,Rs=Math.cos,Es=2*Math.PI,zs=_(),Bs=_(),Vs=_();function Fs(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],a=i[0],o=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=Ps(r,i[0]),a=js(a,i[0]),o=Ps(o,i[1]),s=js(s,i[1]);e[0]=r,e[1]=o,n[0]=a,n[1]=s}}function Hs(t,e,n,i,r,a){r[0]=Ps(t,n),r[1]=Ps(e,i),a[0]=js(t,n),a[1]=js(e,i)}var Gs=[],Ws=[];function Ys(t,e,n,i,r,a,o,s,l,u){var c=an,h=en,d=c(t,n,r,o,Gs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,r,o,Gs[p]);l[0]=Ps(f,l[0]),u[0]=js(f,u[0])}d=c(e,i,a,s,Ws);for(p=0;p<d;p++){var g=h(e,i,a,s,Ws[p]);l[1]=Ps(g,l[1]),u[1]=js(g,u[1])}l[0]=Ps(t,l[0]),u[0]=js(t,u[0]),l[0]=Ps(o,l[0]),u[0]=js(o,u[0]),l[1]=Ps(e,l[1]),u[1]=js(e,u[1]),l[1]=Ps(s,l[1]),u[1]=js(s,u[1])}function Us(t,e,n,i,r,a,o,s){var l=dn,u=un,c=js(Ps(l(t,n,r),1),0),h=js(Ps(l(e,i,a),1),0),d=u(t,n,r,c),p=u(e,i,a,h);o[0]=Ps(t,r,d),o[1]=Ps(e,a,p),s[0]=js(t,r,d),s[1]=js(e,a,p)}function Xs(t,e,n,i,r,a,o,s,l){var u=W,c=Y,h=Math.abs(r-a);if(h%Es<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(zs[0]=Rs(r)*n+t,zs[1]=Ns(r)*i+e,Bs[0]=Rs(a)*n+t,Bs[1]=Ns(a)*i+e,u(s,zs,Bs),c(l,zs,Bs),r%=Es,r<0&&(r+=Es),a%=Es,a<0&&(a+=Es),r>a&&!o?a+=Es:r<a&&o&&(r+=Es),o){var d=a;a=r,r=d}for(var p=0;p<a;p+=Math.PI/2)p>r&&(Vs[0]=Rs(p)*n+t,Vs[1]=Ns(p)*i+e,u(s,Vs,s),c(l,Vs,l))}var $s={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Zs=[],qs=[],Ks=[],Qs=[],Js=[],tl=[],el=Math.min,nl=Math.max,il=Math.cos,rl=Math.sin,al=Math.abs,ol=Math.PI,sl=2*ol,ll="undefined"!==typeof Float32Array,ul=[];function cl(t){var e=Math.round(t/ol*1e8)/1e8;return e%2*ol}function hl(t,e){var n=cl(t[0]);n<0&&(n+=sl);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=sl?r=n+sl:e&&n-r>=sl?r=n-sl:!e&&n>r?r=n+(sl-cl(n-r)):e&&n<r&&(r=n-(sl-cl(r-n))),t[0]=n,t[1]=r}var dl=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=al(n/yi/t)||0,this._uy=al(n/yi/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($s.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=al(t-this._xi),i=al(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData($s.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,a){return this._drawPendingPt(),this.addData($s.C,t,e,n,i,r,a),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,a),this._xi=r,this._yi=a,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData($s.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,a){this._drawPendingPt(),ul[0]=i,ul[1]=r,hl(ul,a),i=ul[0],r=ul[1];var o=r-i;return this.addData($s.A,t,e,n,n,i,o,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,a),this._xi=il(r)*n+t,this._yi=rl(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData($s.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData($s.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){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!ll||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var a=this.data;if(ll&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(i+n),i>0&&a))for(var o=0;o<i;o++)this.data[o]=a[o];for(r=0;r<e;r++){var s=t[r].data;for(o=0;o<s.length;o++)this.data[i++]=s[o]}this._len=i}},t.prototype.addData=function(t,e,n,i,r,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ll&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ks[0]=Ks[1]=Js[0]=Js[1]=Number.MAX_VALUE,Qs[0]=Qs[1]=tl[0]=tl[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,a=0;for(t=0;t<this._len;){var o=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,a=i),o){case $s.M:n=r=e[t++],i=a=e[t++],Js[0]=r,Js[1]=a,tl[0]=r,tl[1]=a;break;case $s.L:Hs(n,i,e[t],e[t+1],Js,tl),n=e[t++],i=e[t++];break;case $s.C:Ys(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Js,tl),n=e[t++],i=e[t++];break;case $s.Q:Us(n,i,e[t++],e[t++],e[t],e[t+1],Js,tl),n=e[t++],i=e[t++];break;case $s.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(r=il(d)*c+l,a=rl(d)*h+u),Xs(l,u,c,h,d,p,f,Js,tl),n=il(p)*c+l,i=rl(p)*h+u;break;case $s.R:r=n=e[t++],a=i=e[t++];var g=e[t++],y=e[t++];Hs(r,a,r+g,a+y,Js,tl);break;case $s.Z:n=r,i=a;break}W(Ks,Ks,Js),Y(Qs,Qs,tl)}return 0===t&&(Ks[0]=Ks[1]=Qs[0]=Qs[1]=0),new ue(Ks[0],Ks[1],Qs[0]-Ks[0],Qs[1]-Ks[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(r=t[h],a=t[h+1],o=r,s=a);var f=-1;switch(d){case $s.M:r=o=t[h++],a=s=t[h++];break;case $s.L:var g=t[h++],y=t[h++],v=g-r,m=y-a;(al(v)>n||al(m)>i||h===e-1)&&(f=Math.sqrt(v*v+m*m),r=g,a=y);break;case $s.C:var b=t[h++],x=t[h++],_=(g=t[h++],y=t[h++],t[h++]),w=t[h++];f=ln(r,a,b,x,g,y,_,w,10),r=_,a=w;break;case $s.Q:b=t[h++],x=t[h++],g=t[h++],y=t[h++];f=gn(r,a,b,x,g,y,10),r=g,a=y;break;case $s.A:var S=t[h++],M=t[h++],O=t[h++],T=t[h++],I=t[h++],C=t[h++],A=C+I;h+=1,p&&(o=il(I)*O+S,s=rl(I)*T+M),f=nl(O,T)*el(sl,Math.abs(C)),r=il(A)*O+S,a=rl(A)*T+M;break;case $s.R:o=r=t[h++],s=a=t[h++];var k=t[h++],D=t[h++];f=2*k+2*D;break;case $s.Z:v=o-r,m=s-a;f=Math.sqrt(v*v+m*m),r=o,a=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,a,o,s,l,u,c,h,d,p=this.data,f=this._ux,g=this._uy,y=this._len,v=e<1,m=0,b=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var _=0;_<y;){var w=p[_++],S=1===_;switch(S&&(r=p[_],a=p[_+1],n=r,i=a),w!==$s.L&&x>0&&(t.lineTo(h,d),x=0),w){case $s.M:n=r=p[_++],i=a=p[_++],t.moveTo(r,a);break;case $s.L:o=p[_++],s=p[_++];var M=al(o-r),O=al(s-a);if(M>f||O>g){if(v){var T=l[b++];if(m+T>c){var I=(c-m)/T;t.lineTo(r*(1-I)+o*I,a*(1-I)+s*I);break t}m+=T}t.lineTo(o,s),r=o,a=s,x=0}else{var C=M*M+O*O;C>x&&(h=o,d=s,x=C)}break;case $s.C:var A=p[_++],k=p[_++],D=p[_++],L=p[_++],P=p[_++],j=p[_++];if(v){T=l[b++];if(m+T>c){I=(c-m)/T;on(r,A,D,P,I,Zs),on(a,k,L,j,I,qs),t.bezierCurveTo(Zs[1],qs[1],Zs[2],qs[2],Zs[3],qs[3]);break t}m+=T}t.bezierCurveTo(A,k,D,L,P,j),r=P,a=j;break;case $s.Q:A=p[_++],k=p[_++],D=p[_++],L=p[_++];if(v){T=l[b++];if(m+T>c){I=(c-m)/T;pn(r,A,D,I,Zs),pn(a,k,L,I,qs),t.quadraticCurveTo(Zs[1],qs[1],Zs[2],qs[2]);break t}m+=T}t.quadraticCurveTo(A,k,D,L),r=D,a=L;break;case $s.A:var N=p[_++],R=p[_++],E=p[_++],z=p[_++],B=p[_++],V=p[_++],F=p[_++],H=!p[_++],G=E>z?E:z,W=al(E-z)>.001,Y=B+V,U=!1;if(v){T=l[b++];m+T>c&&(Y=B+V*(c-m)/T,U=!0),m+=T}if(W&&t.ellipse?t.ellipse(N,R,E,z,F,B,Y,H):t.arc(N,R,G,B,Y,H),U)break t;S&&(n=il(B)*E+N,i=rl(B)*z+R),r=il(Y)*E+N,a=rl(Y)*z+R;break;case $s.R:n=r=p[_],i=a=p[_+1],o=p[_++],s=p[_++];var X=p[_++],$=p[_++];if(v){T=l[b++];if(m+T>c){var Z=c-m;t.moveTo(o,s),t.lineTo(o+el(Z,X),s),Z-=X,Z>0&&t.lineTo(o+X,s+el(Z,$)),Z-=$,Z>0&&t.lineTo(o+nl(X-Z,0),s+$),Z-=X,Z>0&&t.lineTo(o,s+nl($-Z,0));break t}m+=T}t.rect(o,s,X,$);break;case $s.Z:if(v){T=l[b++];if(m+T>c){I=(c-m)/T;t.lineTo(r*(1-I)+n*I,a*(1-I)+i*I);break t}m+=T}t.closePath(),r=n,a=i}}},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.prototype.canSave=function(){return!!this._saveData},t.CMD=$s,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),pl=dl;function fl(t,e,n,i,r,a,o){if(0===r)return!1;var s=r,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>n+s||a<t-s&&a<n-s)return!1;if(t===n)return Math.abs(a-t)<=s/2;l=(e-i)/(t-n),u=(t*i-n*e)/(t-n);var c=l*a-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}function gl(t,e,n,i,r,a,o,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>a+h&&c>s+h||c<e-h&&c<i-h&&c<a-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>o+h||u<t-h&&u<n-h&&u<r-h&&u<o-h)return!1;var d=sn(t,e,n,i,r,a,o,s,u,c,null);return d<=h/2}function yl(t,e,n,i,r,a,o,s,l){if(0===o)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=fn(t,e,n,i,r,a,s,l,null);return c<=u/2}var vl=2*Math.PI;function ml(t){return t%=vl,t<0&&(t+=vl),t}var bl=2*Math.PI;function xl(t,e,n,i,r,a,o,s,l){if(0===o)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%bl<1e-4)return!0;if(a){var h=i;i=ml(r),r=ml(h)}else i=ml(i),r=ml(r);i>r&&(r+=bl);var d=Math.atan2(l,s);return d<0&&(d+=bl),d>=i&&d<=r||d+bl>=i&&d+bl<=r}function _l(t,e,n,i,r,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;1!==o&&0!==o||(s=i<e?.5:-.5);var l=o*(n-t)+t;return l===r?1/0:l>r?s:0}var wl=pl.CMD,Sl=2*Math.PI,Ml=1e-4;function Ol(t,e){return Math.abs(t-e)<Ml}var Tl=[-1,-1,-1],Il=[-1,-1];function Cl(){var t=Il[0];Il[0]=Il[1],Il[1]=t}function Al(t,e,n,i,r,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var c=rn(e,i,a,s,u,Tl);if(0===c)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<c;g++){var y=Tl[g],v=0===y||1===y?.5:1,m=en(t,n,r,o,y);m<l||(d<0&&(d=an(e,i,a,s,Il),Il[1]<Il[0]&&d>1&&Cl(),p=en(e,i,a,s,Il[0]),d>1&&(f=en(e,i,a,s,Il[1]))),2===d?y<Il[0]?h+=p<e?v:-v:y<Il[1]?h+=f<p?v:-v:h+=s<f?v:-v:y<Il[0]?h+=p<e?v:-v:h+=s<p?v:-v)}return h}function kl(t,e,n,i,r,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=hn(e,i,a,s,Tl);if(0===l)return 0;var u=dn(e,i,a);if(u>=0&&u<=1){for(var c=0,h=un(e,i,a,u),d=0;d<l;d++){var p=0===Tl[d]||1===Tl[d]?.5:1,f=un(t,n,r,Tl[d]);f<o||(Tl[d]<u?c+=h<e?p:-p:c+=a<h?p:-p)}return c}p=0===Tl[0]||1===Tl[0]?.5:1,f=un(t,n,r,Tl[0]);return f<o?0:a<e?p:-p}function Dl(t,e,n,i,r,a,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Tl[0]=-l,Tl[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Sl-1e-4){i=0,r=Sl;var c=a?1:-1;return o>=Tl[0]+t&&o<=Tl[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Sl,r+=Sl);for(var d=0,p=0;p<2;p++){var f=Tl[p];if(f+t>o){var g=Math.atan2(s,f);c=a?1:-1;g<0&&(g=Sl+g),(g>=i&&g<=r||g+Sl>=i&&g+Sl<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Ll(t,e,n,i,r){for(var a,o,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,p=0,f=0;f<l;){var g=s[f++],y=1===f;switch(g===wl.M&&f>1&&(n||(u+=_l(c,h,d,p,i,r))),y&&(c=s[f],h=s[f+1],d=c,p=h),g){case wl.M:d=s[f++],p=s[f++],c=d,h=p;break;case wl.L:if(n){if(fl(c,h,s[f],s[f+1],e,i,r))return!0}else u+=_l(c,h,s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case wl.C:if(n){if(gl(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=Al(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case wl.Q:if(n){if(yl(c,h,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else u+=kl(c,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],h=s[f++];break;case wl.A:var v=s[f++],m=s[f++],b=s[f++],x=s[f++],_=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);a=Math.cos(_)*b+v,o=Math.sin(_)*x+m,y?(d=a,p=o):u+=_l(c,h,a,o,i,r);var M=(i-v)*x/b+v;if(n){if(xl(v,m,x,_,_+w,S,e,M,r))return!0}else u+=Dl(v,m,x,_,_+w,S,M,r);c=Math.cos(_+w)*b+v,h=Math.sin(_+w)*x+m;break;case wl.R:d=c=s[f++],p=h=s[f++];var O=s[f++],T=s[f++];if(a=d+O,o=p+T,n){if(fl(d,p,a,p,e,i,r)||fl(a,p,a,o,e,i,r)||fl(a,o,d,o,e,i,r)||fl(d,o,d,p,e,i,r))return!0}else u+=_l(a,p,a,o,i,r),u+=_l(d,o,d,p,i,r);break;case wl.Z:if(n){if(fl(c,h,d,p,e,i,r))return!0}else u+=_l(c,h,d,p,i,r);c=d,h=p;break}}return n||Ol(h,p)||(u+=_l(c,h,d,p,i,r)||0),0!==u}function Pl(t,e,n){return Ll(t,0,!1,e,n)}function jl(t,e,n,i){return Ll(t,e,!0,n,i)}var Nl=Object(x["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ms),Rl={style:Object(x["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Os.style)},El=Di.concat(["invisible","culling","z","z2","zlevel","parent"]),zl=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var a=r.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<El.length;++s)r[El[s]]=this[El[s]];r.__dirty|=Le}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(x["keys"])(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var a=n[r],o=e[a];"style"===a?this.style?Object(x["extend"])(this.style,o):this.useStyle(o):"shape"===a?Object(x["extend"])(this.shape,o):t.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(x["isString"])(t)){var e=Object(xn["lum"])(t,0);return e>.5?mi:e>.2?xi:bi}if(t)return bi}return mi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(x["isString"])(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(xn["lum"])(t,0)<vi;if(i===r)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~je},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new pl(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>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 i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&je)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var a=this.path;if(this.hasStroke()){var o=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),jl(a,o/s,t,e)))return!0}if(this.hasFill())return Pl(a,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=je,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(x["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&je)},e.prototype.createStyle=function(t){return Object(x["createObject"])(Nl,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(x["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,a,o){if(t.prototype._applyStateObj.call(this,e,n,i,r,a,o),this.__inHover!==ir){var s,l=!(n&&r);if(n&&n.shape?a?r?s=n.shape:(s=Object(x["extend"])({},i.shape),Object(x["extend"])(s,n.shape)):(s=Object(x["extend"])({},r?this.shape:i.shape),Object(x["extend"])(s,n.shape)):l&&(s=i.shape),s)if(a){this.shape=Object(x["extend"])({},this.shape);for(var u={},c=Object(x["keys"])(s),h=0;h<c.length;h++){var d=c[h];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},o)}else this.shape=s,this.dirtyShape()}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var a=e[r];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Rl},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return f(n,e),n.prototype.getDefaultStyle=function(){return Object(x["clone"])(t.style)},n.prototype.getDefaultShape=function(){return Object(x["clone"])(t.shape)},n}(e);for(var i in t)"function"===typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Le|Pe|je}(),e}(Ls),Bl=zl,Vl=Object(x["defaults"])({strokeFirst:!0,font:Ri["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Nl),Fl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.hasStroke=function(){return ws(this.style)},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(x["createObject"])(Vl,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=xs(this.style)),this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Ls);Fl.prototype.type="tspan";var Hl=Fl,Gl=Object(x["defaults"])({x:0,y:0},Ms),Wl={style:Object(x["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Os.style)};function Yl(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var Ul=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.createStyle=function(t){return Object(x["createObject"])(Gl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Yl(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",a=e[r];return null==a?i[t]:i[t]/i[r]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Wl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ue(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ls);Ul.prototype.type="image";var Xl=Ul;function $l(t,e){var n,i,r,a,o,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=i=r=a=h:h instanceof Array?1===h.length?n=i=r=a=h[0]:2===h.length?(n=r=h[0],i=a=h[1]):3===h.length?(n=h[0],i=a=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],a=h[3]):n=i=r=a=0,n+i>u&&(o=n+i,n*=u/o,i*=u/o),r+a>u&&(o=r+a,r*=u/o,a*=u/o),i+r>c&&(o=i+r,i*=c/o,r*=c/o),n+a>c&&(o=n+a,n*=c/o,a*=c/o),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+a,l+c),0!==a&&t.arc(s+a,l+c-a,a,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),t.closePath()}var Zl=Math.round;function ql(t,e,n){if(e){var i=e.x1,r=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=r,t.y1=a,t.y2=o;var s=n&&n.lineWidth;return s?(Zl(2*i)===Zl(2*r)&&(t.x1=t.x2=Ql(i,s,!0)),Zl(2*a)===Zl(2*o)&&(t.y1=t.y2=Ql(a,s,!0)),t):t}}function Kl(t,e,n){if(e){var i=e.x,r=e.y,a=e.width,o=e.height;t.x=i,t.y=r,t.width=a,t.height=o;var s=n&&n.lineWidth;return s?(t.x=Ql(i,s,!0),t.y=Ql(r,s,!0),t.width=Math.max(Ql(i+a,s,!1)-t.x,0===a?0:1),t.height=Math.max(Ql(r+o,s,!1)-t.y,0===o?0:1),t):t}}function Ql(t,e,n){if(!e)return t;var i=Zl(2*t);return(i+Zl(e))%2===0?i/2:(i+(n?1:-1))/2}var Jl=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),tu={},eu=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new Jl},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var o=Kl(tu,e,this.style);n=o.x,i=o.y,r=o.width,a=o.height,o.r=e.r,e=o}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?$l(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Bl);eu.prototype.type="rect";var nu=eu,iu={fill:"#000"},ru=2,au={},ou={style:Object(x["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},Os.style)},su=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=iu,n.attr(e),n}return f(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;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,fu(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ue(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var a=e[r],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(t.copy(o),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||o.clone(),i.union(o))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||iu},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return Object(x["extend"])(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Object(x["keys"])(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},Object(x["extend"])(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return ou},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Ri["a"],n=t.padding,i=this._defaultStyle,r=t.x||0,a=t.y||0,o=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";ys(au,i.overflowRect,r,a,o,s),r=au.baseX,a=au.baseY;var l=bu(t),u=os(l,t,au.outerWidth,au.outerHeight),c=xu(t),h=!!t.backgroundColor,d=u.outerHeight,p=u.outerWidth,f=u.lines,g=u.lineHeight;this.isTruncated=!!u.isTruncated;var y=r,v=Ui(a,u.contentHeight,s);if(c||n){var m=Yi(r,p,o),b=Ui(a,d,s);c&&this._renderBackground(t,t,m,b,p,d)}v+=g/2,n&&(y=mu(r,o,n),"top"===s?v+=n[0]:"bottom"===s&&(v-=n[2]));for(var x=0,_=!1,w=!1,S=(vu("fill"in t?t.fill:(w=!0,i.fill))),M=(yu("stroke"in t?t.stroke:h||i.autoStroke&&!w?null:(x=ru,_=!0,i.stroke))),O=t.textShadowBlur>0,T=0;T<f.length;T++){var I=this._getOrCreateChild(Hl),C=I.createStyle();I.useStyle(C),C.text=f[T],C.x=y,C.y=v,o&&(C.textAlign=o),C.textBaseline="middle",C.opacity=t.opacity,C.strokeFirst=!0,O&&(C.shadowBlur=t.textShadowBlur||0,C.shadowColor=t.textShadowColor||"transparent",C.shadowOffsetX=t.textShadowOffsetX||0,C.shadowOffsetY=t.textShadowOffsetY||0),C.stroke=M,C.fill=S,M&&(C.lineWidth=t.lineWidth||x,C.lineDash=t.lineDash,C.lineDashOffset=t.lineDashOffset||0),C.font=e,du(C,t),v+=g,I.setBoundingRect(_s(C,u.contentWidth,u.calculatedLineHeight,_?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,a=t.y||0;ys(au,e.overflowRect,r,a,n,i),r=au.baseX,a=au.baseY;var o=bu(t),s=cs(o,t,au.outerWidth,au.outerHeight,n),l=s.width,u=s.outerWidth,c=s.outerHeight,h=t.padding;this.isTruncated=!!s.isTruncated;var d=Yi(r,u,n),p=Ui(a,c,i),f=d,g=p;h&&(f+=h[3],g+=h[0]);var y=f+l;xu(t)&&this._renderBackground(t,t,d,p,u,c);for(var v=!!t.backgroundColor,m=0;m<s.lines.length;m++){var b=s.lines[m],x=b.tokens,_=x.length,w=b.lineHeight,S=b.width,M=0,O=f,T=y,I=_-1,C=void 0;while(M<_&&(C=x[M],!C.align||"left"===C.align))this._placeToken(C,t,w,g,O,"left",v),S-=C.width,O+=C.width,M++;while(I>=0&&(C=x[I],"right"===C.align))this._placeToken(C,t,w,g,T,"right",v),S-=C.width,T-=C.width,I--;O+=(l-(O-f)-(y-T)-S)/2;while(M<=I)C=x[M],this._placeToken(C,t,w,g,O+C.width/2,"center",v),O+=C.width,M++;g+=w}},e.prototype._placeToken=function(t,e,n,i,r,a,o){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);var c=!t.isLineHolder&&xu(s);c&&this._renderBackground(s,e,"right"===a?r-t.width:"center"===a?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(r=mu(r,a,d),u-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Hl),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=!1,b=vu("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),_=yu("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||o||g.autoStroke&&!y?null:(v=ru,m=!0,g.stroke)),w=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,w&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=a,f.textBaseline="middle",f.font=t.font||Ri["a"],f.opacity=Object(x["retrieve3"])(s.opacity,e.opacity,1),du(f,s),_&&(f.lineWidth=Object(x["retrieve3"])(s.lineWidth,e.lineWidth,v),f.lineDash=Object(x["retrieve2"])(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=_),b&&(f.fill=b),p.setBoundingRect(_s(f,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,a){var o,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,d=l&&!h,p=t.borderRadius,f=this;if(d||t.lineHeight||u&&c){o=this._getOrCreateChild(nu),o.useStyle(o.createStyle()),o.style.fill=null;var g=o.shape;g.x=n,g.y=i,g.width=r,g.height=a,g.r=p,o.dirtyShape()}if(d){var y=o.style;y.fill=l||null,y.fillOpacity=Object(x["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(Xl),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=i,v.width=r,v.height=a}if(u&&c){y=o.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Object(x["retrieve2"])(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(o||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(x["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return pu(t)&&(e=[t.fontStyle,t.fontWeight,hu(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(x["trim"])(e)||t.textFont||t.font},e}(Ls),lu={left:!0,right:1,center:1},uu={top:1,bottom:1,middle:1},cu=["fontStyle","fontWeight","fontSize","fontFamily"];function hu(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Ri["c"]+"px":t+"px":t}function du(t,e){for(var n=0;n<cu.length;n++){var i=cu[n],r=e[i];null!=r&&(t[i]=r)}}function pu(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function fu(t){return gu(t),Object(x["each"])(t.rich,gu),t}function gu(t){if(t){t.font=su.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||lu[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||uu[n]?n:"top";var i=t.padding;i&&(t.padding=Object(x["normalizeCssArray"])(t.padding))}}function yu(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function vu(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function mu(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function bu(t){var e=t.text;return null!=e&&(e+=""),e}function xu(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var _u=su,wu=Ka(),Su=function(t,e,n,i){if(i){var r=wu(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=wu(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"}))}},Mu="undefined",Ou="series",Tu=Object(x["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Iu="original",Cu="arrayRows",Au="objectRows",ku="keyedColumns",Du="typedArray",Lu="unknown",Pu="column",ju="row",Nu="Roam",Ru=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Eu=function(){function t(t){x["each"](Ru,(function(e){this[e]=x["bind"](t[e],t)}),this)}return t}();function zu(t,e){return e.mainType===Ou?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Bu=Eu,Vu=1,Fu={},Hu=Ka(),Gu=Ka(),Wu=0,Yu=1,Uu=2,Xu=["emphasis","blur","select"],$u=["normal","emphasis","blur","select"],Zu=10,qu=9,Ku="highlight",Qu="downplay",Ju="select",tc="unselect",ec="toggleSelect",nc="selectchanged";function ic(t){return null!=t&&"none"!==t}function rc(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ac(t){rc(t,"emphasis",Uu)}function oc(t){t.hoverState===Uu&&rc(t,"normal",Wu)}function sc(t){rc(t,"blur",Yu)}function lc(t){t.hoverState===Yu&&rc(t,"normal",Wu)}function uc(t){t.selected=!0}function cc(t){t.selected=!1}function hc(t,e,n){e(t,n)}function dc(t,e,n){hc(t,e,n),t.isGroup&&t.traverse((function(t){hc(t,e,n)}))}function pc(t,e){switch(e){case"emphasis":t.hoverState=Uu;break;case"normal":t.hoverState=Wu;break;case"blur":t.hoverState=Yu;break;case"select":t.selected=!0}}function fc(t,e,n,i){for(var r=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=r[s];a[s]=null==l?i&&i[s]:l}for(o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(a,e)}return a}function gc(t,e,n,i){var r=n&&Object(x["indexOf"])(n,"select")>=0,a=!1;if(t instanceof Bl){var o=Hu(t),s=r&&o.selectFill||o.normalFill,l=r&&o.selectStroke||o.normalStroke;if(ic(s)||ic(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(a=!0,i=Object(x["extend"])({},i),u=Object(x["extend"])({},u),u.fill=s):!ic(u.fill)&&ic(s)?(a=!0,i=Object(x["extend"])({},i),u=Object(x["extend"])({},u),u.fill=Object(xn["liftColor"])(s)):!ic(u.stroke)&&ic(l)&&(a||(i=Object(x["extend"])({},i),u=Object(x["extend"])({},u)),u.stroke=Object(xn["liftColor"])(l)),i.style=u}}if(i&&null==i.z2){a||(i=Object(x["extend"])({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:Zu)}return i}function yc(t,e,n){if(n&&null==n.z2){n=Object(x["extend"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:qu)}return n}function vc(t,e,n){var i=Object(x["indexOf"])(t.currentStates,e)>=0,r=t.style.opacity,a=i?null:fc(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return null==o.opacity&&(n=Object(x["extend"])({},n),o=Object(x["extend"])({opacity:i?r:.1*a.opacity},o),n.style=o),n}function mc(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return gc(this,t,e,n);if("blur"===t)return vc(this,t,n);if("select"===t)return yc(this,t,n)}return n}function bc(t){t.stateProxy=mc;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=mc),n&&(n.stateProxy=mc)}function xc(t,e){!Cc(t,e)&&!t.__highByOuter&&dc(t,ac)}function _c(t,e){!Cc(t,e)&&!t.__highByOuter&&dc(t,oc)}function wc(t,e){t.__highByOuter|=1<<(e||0),dc(t,ac)}function Sc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&dc(t,oc)}function Mc(t){dc(t,sc)}function Oc(t){dc(t,lc)}function Tc(t){dc(t,uc)}function Ic(t){dc(t,cc)}function Cc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ac(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var a=Gu(r),o=zu(t,r),s="series"===e;!s&&i.push(o),a.isBlured&&(o.group.traverse((function(t){lc(t)})),s&&n.push(r)),a.isBlured=!1})),Object(x["each"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function kc(t,e,n,i){var r=i.getModel();function a(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&Oc(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var o=r.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=o===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!c||"series"===e&&r)){var h=i.getViewOfSeriesModel(t);if(h.group.traverse((function(t){t.__highByOuter&&r&&"self"===e||sc(t)})),Object(x["isArrayLike"])(e))a(t.getData(),e);else if(Object(x["isObject"])(e))for(var d=Object(x["keys"])(e),p=0;p<d.length;p++)a(t.getData(d[p]),e[d[p]]);l.push(t),Gu(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Dc(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Gu(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){sc(t)}))}}}function Lc(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var a=qa(r,e);a=(Object(x["isArray"])(a)?a[0]:a)||0;var o=r.getItemGraphicEl(a);if(!o){var s=r.count(),l=0;while(!o&&l<s)o=r.getItemGraphicEl(l++)}if(o){var u=wu(o);kc(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&kc(i,c,h,n)}}}function Pc(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var a=i.getModel().getComponent(t,e);if(!a)return r;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return r;for(var s,l=o.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===wu(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function jc(t,e,n){var i=wu(t),r=Pc(i.componentMainType,i.componentIndex,i.componentHighDownName,n),a=r.dispatchers,o=r.focusSelf;a?(o&&Dc(i.componentMainType,i.componentIndex,n),Object(x["each"])(a,(function(t){return xc(t,e)}))):(kc(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Dc(i.componentMainType,i.componentIndex,n),xc(t,e))}function Nc(t,e,n){Ac(n);var i=wu(t),r=Pc(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Object(x["each"])(r,(function(t){return _c(t,e)})):_c(t,e)}function Rc(t,e,n){if(qc(e)){var i=e.dataType,r=t.getData(i),a=qa(r,e);Object(x["isArray"])(a)||(a=[a]),t[e.type===ec?"toggleSelect":e.type===Ju?"select":"unselect"](a,i)}}function Ec(t){var e=t.getAllData();Object(x["each"])(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?Tc(e):Ic(e)}))}))}function zc(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(x["each"])(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var a={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(a.dataType=i),e.push(a)}}))})),e}function Bc(t,e,n){Uc(t,!0),dc(t,bc),Hc(t,e,n)}function Vc(t){Uc(t,!1)}function Fc(t,e,n,i){i?Vc(t):Bc(t,e,n)}function Hc(t,e,n){var i=wu(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var Gc=["emphasis","blur","select"],Wc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yc(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Gc.length;r++){var a=Gc[r],o=e.getModel([a,n]),s=t.ensureState(a);s.style=i?i(o):o[Wc[n]]()}}function Uc(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Xc(t){return!(!t||!t.__highDownDispatcher)}function $c(t,e,n){var i=wu(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function Zc(t){var e=Fu[t];return null==e&&Vu<=32&&(e=Fu[t]=Vu++),e}function qc(t){var e=t.type;return e===Ju||e===tc||e===ec}function Kc(t){var e=t.type;return e===Ku||e===Qu}function Qc(t){var e=Hu(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var Jc=Ka();function th(t,e,n,i,r){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,h=void 0;i?(u=Object(x["retrieve2"])(i.duration,200),c=Object(x["retrieve2"])(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),Object(x["isFunction"])(h)&&(h=h(n,r)),Object(x["isFunction"])(u)&&(u=u(n));var d={duration:u||0,delay:h,easing:c};return d}return null}function eh(t,e,n,i,r,a,o){var s,l=!1;Object(x["isFunction"])(r)?(o=a,a=r,r=null):Object(x["isObject"])(r)&&(a=r.cb,o=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=th(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,p=c.easing,f={duration:h,delay:d||0,easing:p,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),o&&o(1),a&&a()}function nh(t,e,n,i,r,a){eh("update",t,e,n,i,r,a)}function ih(t,e,n,i,r,a){eh("enter",t,e,n,i,r,a)}function rh(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function ah(t,e,n,i,r,a){rh(t)||eh("leave",t,e,n,i,r,a)}function oh(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),ah(t,{style:{opacity:0}},e,n,i)}function sh(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||oh(t,e,n,i)})):oh(t,e,n,i)}function lh(t){Jc(t).oldStyle=t.style}function uh(t){return Jc(t).oldStyle}var ch={};function hh(t,e){for(var n=0;n<Xu.length;n++){var i=Xu[n],r=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function dh(t,e,n){var i,r=t.labelFetcher,a=t.labelDataIndex,o=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(x["isFunction"])(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var l={normal:i},u=0;u<Xu.length;u++){var c=Xu[u],h=e[c];l[c]=Object(x["retrieve2"])(r?r.getFormattedLabel(a,c,null,o,h&&h.get("formatter")):null,i)}return l}function ph(t,e,n,i){n=n||ch;for(var r=t instanceof _u,a=!1,o=0;o<$u.length;o++){var s=e[$u[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=r?t:t.getTextContent();if(a){r||(l||(l=new _u,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=dh(n,e),c=e.normal,h=!!c.getShallow("show"),d=gh(c,i&&i.normal,n,!1,!r);d.text=u.normal,r||t.setTextConfig(yh(c,n,!1));for(o=0;o<Xu.length;o++){var p=Xu[o];s=e[p];if(s){var f=l.ensureState(p),g=!!Object(x["retrieve2"])(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=gh(s,i&&i[p],n,!0,!r),f.style.text=u[p],!r){var y=t.ensureState(p);y.textConfig=yh(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),n.enableTextSetter&&(Mh(l).setLabelText=function(t){var i=dh(n,e,t);hh(l,i)})}else l&&(l.ignore=!0);t.dirty()}function fh(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Xu.length;i++){var r=Xu[i];n[r]=t.getModel([r,e])}return n}function gh(t,e,n,i,r){var a={};return vh(a,t,n,i,r),e&&Object(x["extend"])(a,e),a}function yh(t,e,n){e=e||{};var i,r={},a=t.getShallow("rotate"),o=Object(x["retrieve2"])(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=a&&(a*=Math.PI/180,r.rotation=a),null!=o&&(r.distance=o),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}function vh(t,e,n,i,r){n=n||ch;var a,o=e.ecModel,s=o&&o.option.textStyle,l=mh(e);if(l){a={};var u="richInheritPlainLabel",c=Object(x["retrieve2"])(e.get(u),o?o.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=e.getModel(["rich",h]);wh(a[h]={},d,s,e,c,n,i,r,!1,!0)}}a&&(t.rich=a);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=t,y=e.get("minMargin");if(null!=y)y=Object(x["isNumber"])(y)?y/2:0,g.margin=[y,y,y,y],g.__marginType=Ih.minMargin;else{var v=e.get("textMargin");null!=v&&(g.margin=Object(x["normalizeCssArray"])(v),g.__marginType=Ih.textMargin)}wh(t,e,s,null,null,n,i,r,!0,!1)}function mh(t){var e;while(t&&t!==t.ecModel){var n=(t.option||ch).rich;if(n){e=e||{};for(var i=Object(x["keys"])(n),r=0;r<i.length;r++){var a=i[r];e[a]=1}}t=t.parentModel}return e}var bh=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],xh=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_h=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function wh(t,e,n,i,r,a,o,s,l,u){n=!o&&n||ch;var c=a&&a.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=Object(x["retrieve2"])(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var f=Object(x["retrieve2"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=Object(x["retrieve2"])(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var y=Object(x["retrieve2"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=y&&(t.lineDashOffset=y),o||null!=p||u||(p=a&&a.defaultOpacity),null!=p&&(t.opacity=p),o||s||null==t.fill&&a.inheritColor&&(t.fill=a.inheritColor);for(var v=0;v<bh.length;v++){var m=bh[v],b=!1!==r&&i?Object(x["retrieve3"])(e.getShallow(m),i.getShallow(m),n[m]):Object(x["retrieve2"])(e.getShallow(m),n[m]);null!=b&&(t[m]=b)}for(v=0;v<xh.length;v++){m=xh[v],b=e.getShallow(m);null!=b&&(t[m]=b)}if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!l||!a.disableBox){for(v=0;v<_h.length;v++){m=_h[v],b=e.getShallow(m);null!=b&&(t[m]=b)}var w=e.getShallow("borderType");null!=w&&(t.borderDash=w),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function Sh(t,e){var n=e&&e.getModel("textStyle");return Object(x["trim"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Mh=Ka();function Oh(t,e,n,i){if(t){var r=Mh(t);r.prevValue=r.value,r.value=n;var a=e.normal;r.valueAnimation=a.get("valueAnimation"),r.valueAnimation&&(r.precision=a.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function Th(t,e,n,i,r){var a=Mh(t);if(a.valueAnimation&&a.prevValue!==a.value){var o=a.defaultInterpolatedText,s=Object(x["retrieve2"])(a.interpolatedValue,a.prevValue),l=a.value;t.percent=0,(null==a.prevValue?ih:nh)(t,{percent:1},i,e,null,u)}function u(i){var u=uo(n,a.precision,s,l,i);a.interpolatedValue=1===i?null:u;var c=dh({labelDataIndex:e,labelFetcher:r,defaultText:o?o(u):u+""},a.statesModels,u);hh(t,c)}}var Ih={minMargin:1,textMargin:2},Ch=["textStyle","color"],Ah=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],kh=new _u,Dh=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ch):null)},t.prototype.getFont=function(){return Sh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ah.length;n++)e[Ah[n]]=this.getShallow(Ah[n]);return kh.useStyle(e),kh.update(),kh.getBoundingRect()},t}(),Lh=Dh,Ph=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],jh=Yo(Ph),Nh=function(){function t(){}return t.prototype.getLineStyle=function(t){return jh(this,t)},t}(),Rh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Eh=Yo(Rh),zh=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Eh(this,t,e)},t}(),Bh=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Object(x["merge"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,a=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(a,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(x["clone"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!b.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length;i++)if(t[i]&&(n=n&&"object"===typeof n?n[t[i]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Eo(Bh),Fo(Bh),Object(x["mixin"])(Bh,Nh),Object(x["mixin"])(Bh,zh),Object(x["mixin"])(Bh,$o),Object(x["mixin"])(Bh,Lh);var Vh=Bh,Fh=Math.round(10*Math.random());function Hh(t){return[t||"",Fh++].join("_")}function Gh(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=jo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var a=jo(n).main;t.hasSubTypes(n)&&e[a]&&(r=e[a](i))}return r}}function Wh(t,e){function n(t){var n={},a=[];return x["each"](t,(function(o){var s=i(n,o),l=s.originalDeps=e(o),u=r(l,t);s.entryCount=u.length,0===s.entryCount&&a.push(o),x["each"](u,(function(t){x["indexOf"](s.predecessor,t)<0&&s.predecessor.push(t);var e=i(n,t);x["indexOf"](e.successor,t)<0&&e.successor.push(o)}))})),{graph:n,noEntryList:a}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return x["each"](t,(function(t){x["indexOf"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,r){if(t.length){var a=n(e),o=a.graph,s=a.noEntryList,l={};x["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=o[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),x["each"](c.successor,h?p:d)}x["each"](l,(function(){var t="";throw new Error(t)}))}function d(t){o[t].entryCount--,0===o[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}function Yh(t,e){return x["merge"](x["merge"]({},t,!0),e,!0)}var Uh={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:". "}}}},Xh={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:""}}}},$h="ZH",Zh="EN",qh=Zh,Kh={},Qh={},Jh=b.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||qh).toUpperCase();return t.indexOf($h)>-1?$h:qh}():qh;function td(t,e){t=t.toUpperCase(),Qh[t]=new Vh(e),Kh[t]=e}function ed(t){if(Object(x["isString"])(t)){var e=Kh[t.toUpperCase()]||{};return t===$h||t===Zh?Object(x["clone"])(e):Object(x["merge"])(Object(x["clone"])(e),Object(x["clone"])(Kh[qh]),!1)}return Object(x["merge"])(Object(x["clone"])(t),Object(x["clone"])(Kh[qh]),!1)}function nd(t){return Qh[t]}function id(){return Qh[qh]}td(Zh,Uh),td($h,Xh);var rd=null;function ad(t){rd||(rd=t)}function od(){return rd}function sd(t,e){var n=od(),i=e.breakOption,r=e.breakParsed;return!r&&n&&(r=n.parseAxisBreakOption(i,t)),r}function ld(t){var e=t.brk;return e?e.breaks:[]}function ud(t){var e=t.brk;return!!e&&e.hasBreaks()}var cd=1e3,hd=60*cd,dd=60*hd,pd=24*dd,fd=365*pd,gd={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},yd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},vd="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",md="{yyyy}-{MM}-{dd}",bd={year:"{yyyy}",month:"{yyyy}-{MM}",day:md,hour:md+" "+yd.hour,minute:md+" "+yd.minute,second:md+" "+yd.second,millisecond:vd},xd=["year","month","day","hour","minute","second","millisecond"],_d=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wd(t){return x["isString"](t)||x["isFunction"](t)?t:Sd(t)}function Sd(t){t=t||{};var e={},n=!0;return x["each"](xd,(function(e){n&&(n=null==t[e])})),x["each"](xd,(function(i,r){var a=t[i];e[i]={};for(var o=null,s=r;s>=0;s--){var l=xd[s],u=x["isObject"](a)&&!x["isArray"](a)?a[l]:a,c=void 0;x["isArray"](u)?(c=u.slice(),o=c[0]||""):x["isString"](u)?(o=u,c=[o]):(null==o?o=yd[i]:gd[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],n&&(c[1]="{primary|"+o+"}")),e[i][l]=c}})),e}function Md(t,e){return t+="","0000".substr(0,e-t.length)+t}function Od(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 Td(t){return t===Od(t)}function Id(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cd(t,e,n,i){var r=pa(t),a=r[Ld(n)](),o=r[Pd(n)]()+1,s=Math.floor((o-1)/3)+1,l=r[jd(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Nd(n)](),h=(c-1)%12+1,d=r[Rd(n)](),p=r[Ed(n)](),f=r[zd(n)](),g=c>=12?"pm":"am",y=g.toUpperCase(),v=i instanceof Vh?i:nd(i||Jh)||id(),m=v.getModel("time"),b=m.get("month"),x=m.get("monthAbbr"),_=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Md(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Md(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Md(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Md(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Md(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Md(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Md(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Md(f,3)).replace(/{S}/g,f+"")}function Ad(t,e,n,i,r){var a=null;if(x["isString"](n))a=n;else if(x["isFunction"](n)){var o={time:t.time,level:t.time?t.time.level:0},s=od();s&&s.makeAxisLabelFormatterParamBreak(o,t["break"]),a=n(t.value,e,o)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=kd(t.value,r);a=n[c][c][0]}}return Cd(new Date(t.value),a,r,i)}function kd(t,e){var n=pa(t),i=n[Pd(e)]()+1,r=n[jd(e)](),a=n[Nd(e)](),o=n[Rd(e)](),s=n[Ed(e)](),l=n[zd(e)](),u=0===l,c=u&&0===s,h=c&&0===o,d=h&&0===a,p=d&&1===r,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Dd(t,e,n){switch(e){case"year":t[Vd(n)](0);case"month":t[Fd(n)](1);case"day":t[Hd(n)](0);case"hour":t[Gd(n)](0);case"minute":t[Wd(n)](0);case"second":t[Yd(n)](0)}return t}function Ld(t){return t?"getUTCFullYear":"getFullYear"}function Pd(t){return t?"getUTCMonth":"getMonth"}function jd(t){return t?"getUTCDate":"getDate"}function Nd(t){return t?"getUTCHours":"getHours"}function Rd(t){return t?"getUTCMinutes":"getMinutes"}function Ed(t){return t?"getUTCSeconds":"getSeconds"}function zd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Bd(t){return t?"setUTCFullYear":"setFullYear"}function Vd(t){return t?"setUTCMonth":"setMonth"}function Fd(t){return t?"setUTCDate":"setDate"}function Hd(t){return t?"setUTCHours":"setHours"}function Gd(t){return t?"setUTCMinutes":"setMinutes"}function Wd(t){return t?"setUTCSeconds":"setSeconds"}function Yd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ud(t){if(!_a(t))return x["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 Xd(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 $d=x["normalizeCssArray"];function Zd(t,e,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(t){return t&&x["trim"](t)?t:"-"}function a(t){return Oa(t)}var o="time"===e,s=t instanceof Date;if(o||s){var l=o?pa(t):t;if(!isNaN(+l))return Cd(l,i,n);if(s)return"-"}if("ordinal"===e)return x["isStringSafe"](t)?r(t):x["isNumber"](t)&&a(t)?t+"":"-";var u=xa(t);return a(u)?Ud(u):x["isStringSafe"](t)?r(t):"boolean"===typeof t?t+"":"-"}var qd=["a","b","c","d","e","f","g"],Kd=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Qd(t,e,n){x["isArray"](e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],a=0;a<r.length;a++){var o=qd[a];t=t.replace(Kd(o),Kd(o,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Kd(qd[l],s),n?ct(u):u)}return t}function Jd(t,e,n){return x["each"](e,(function(e,i){t=t.replace("{"+i+"}",n?ct(e):e)})),t}function tp(t,e){var n=x["isString"](t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var a=n.renderMode||"html";if(!i)return"";if("html"===a)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ct(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ct(i)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function ep(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=pa(e),r=n?"getUTC":"get",a=i[r+"FullYear"](),o=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),c=i[r+"Seconds"](),h=i[r+"Milliseconds"]();return t=t.replace("MM",Md(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Md(a%100+"",2)).replace("dd",Md(s,2)).replace("d",s).replace("hh",Md(l,2)).replace("h",l).replace("mm",Md(u,2)).replace("m",u).replace("ss",Md(c,2)).replace("s",c).replace("SSS",Md(h,3)),t}function np(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ip(t,e){return e=e||"transparent",x["isString"](t)?t:x["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function rp(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var ap={},op={},sp=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return x["each"](n,(function(n,i){var a=n.create(t,e);r=r.concat(a||[])})),r}this._nonSeriesBoxMasterList=n(ap,!0),this._normalMasterList=n(op,!1)},t.prototype.update=function(t,e){x["each"](this._normalMasterList,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?op[t]=e:ap[t]=e},t.get=function(t){return op[t]||ap[t]},t}();function lp(t){return!!ap[t]}var up=1,cp=2;function hp(t){dp.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var dp=x["createHashMap"]();function pp(t){var e=t.getShallow("coord",!0),n=up;if(null==e){var i=dp.get(t.type);i&&i.getCoord2&&(n=cp,e=i.getCoord2(t))}return{coord:e,from:n}}var fp=0,gp=1,yp=2;function vp(t,e){var n=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),r=fp;if(n){var a="series"===t.mainType;null==i&&(i=a?"data":"box"),"data"===i?(r=gp,a||(r=fp)):"box"===i&&(r=yp,a||lp(n)||(r=fp))}return{coordSysType:n,kind:r}}function mp(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var a=vp(e,!0),o=a.kind,s=a.coordSysType;if(r&&o!==gp&&(o=gp,s=n),o===fp||s!==n)return fp;var l=i(n,e);return l?(o===gp?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):fp}var bp=function(t,e){var n=e.getReferringComponents(t,eo).models[0];return n&&n.coordinateSystem},xp=sp,_p=x["each"],wp=["left","right","top","bottom","width","height"],Sp=[["width","left","right"],["height","top","bottom"]];function Mp(t,e,n,i,r){var a=0,o=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);c=a+g,c>i||l.newline?(a=0,c=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);h=o+y,h>r||l.newline?(a+=s+n,o=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===t?a=c+n:o=h+n)}))}var Op=Mp;x["curry"](Mp,"vertical"),x["curry"](Mp,"horizontal");function Tp(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function Ip(t,e){var n,i,r=Lp(t,e,{enableLayoutOnlyByCenter:!0}),a=t.getBoxLayoutParams();if(r.type===Dp.point)i=r.refPoint,n=Ap(a,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=x["isArray"](o)?o:[o,o];n=Ap(a,r.refContainer),i=r.boxCoordFrom===cp?r.refPoint:[$r(s[0],n.width)+n.x,$r(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function Cp(t,e){var n=Ip(t,e),i=n.viewRect,r=n.center,a=t.get("radius");x["isArray"](a)||(a=[0,a]);var o=$r(i.width,e.getWidth()),s=$r(i.height,e.getHeight()),l=Math.min(o,s),u=$r(a[0],l/2),c=$r(a[1],l/2);return{cx:r[0],cy:r[1],r0:u,r:c,viewRect:i}}function Ap(t,e,n){n=$d(n||0);var i=e.width,r=e.height,a=$r(t.left,i),o=$r(t.top,r),s=$r(t.right,i),l=$r(t.bottom,r),u=$r(t.width,i),c=$r(t.height,r),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-a),isNaN(c)&&(c=r-l-h-o),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(a)&&(a=i-s-u-d),isNaN(o)&&(o=r-l-c-h),t.left||t.right){case"center":a=i/2-u/2-n[3];break;case"right":a=i-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=r/2-c/2-n[0];break;case"bottom":o=r-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-d-a-(s||0)),isNaN(c)&&(c=r-h-o-(l||0));var f=new ue((e.x||0)+a+n[3],(e.y||0)+o+n[0],u,c);return f.margin=n,f}function kp(t,e,n){var i=t.getShallow("preserveAspect",!0);if(!i)return e;var r=e.width/e.height;if(Math.abs(Math.atan(n)-Math.atan(r))<1e-9)return e;var a=t.getShallow("preserveAspectAlign",!0),o=t.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l="cover"===i;return r>n&&!l||r<n&&l?(s.width=e.height*n,"left"===a?s.left=0:"right"===a?s.right=0:s.left="center"):(s.height=e.width/n,"top"===o?s.top=0:"bottom"===o?s.bottom=0:s.top="middle"),Ap(s,e)}var Dp={rect:1,point:2};function Lp(t,e,n){var i,r,a,o,s=t.boxCoordinateSystem;if(s){var l=pp(t),u=l.coord,c=l.from;if(s.dataToLayout){a=Dp.rect,o=c;var h=s.dataToLayout(u);i=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(a=Dp.point,o=c,r=s.dataToPoint(u))}return null==a&&(a=Dp.rect),a===Dp.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:r,boxCoordFrom:o}}function Pp(t,e,n,i,r,a){var o,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(a=a||t,a.x=t.x,a.y=t.y,!s&&!l)return!1;if("raw"===u)o="group"===t.type?new ue(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(o=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();o=o.clone(),o.applyTransform(c)}var h=Ap(x["defaults"]({width:o.width,height:o.height},e),n,i),d=s?h.x-o.x:0,p=l?h.y-o.y:0;return"raw"===u?(a.x=d,a.y=p):(a.x+=d,a.y+=p),a===t&&t.markRedraw(),!0}function jp(t,e){return null!=t[Sp[e][0]]||null!=t[Sp[e][1]]&&null!=t[Sp[e][2]]}function Np(t){var e=t.layoutMode||t.constructor.layoutMode;return x["isObject"](e)?e:e?{type:e}:null}function Rp(t,e,n){var i=n&&n.ignoreSize;!x["isArray"](i)&&(i=[i,i]);var r=o(Sp[0],0),a=o(Sp[1],1);function o(n,r){var a={},o=0,l={},u=0,c=2;if(_p(n,(function(e){l[e]=t[e]})),_p(n,(function(t){x["hasOwn"](e,t)&&(a[t]=l[t]=e[t]),s(a,t)&&o++,s(l,t)&&u++})),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(u!==c&&o){if(o>=c)return a;for(var h=0;h<n.length;h++){var d=n[h];if(!x["hasOwn"](a,d)&&x["hasOwn"](t,d)){a[d]=t[d];break}}return a}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){_p(t,(function(t){e[t]=n[t]}))}l(Sp[0],t,r),l(Sp[1],t,a)}function Ep(t){return zp({},t)}function zp(t,e){return e&&t&&_p(wp,(function(n){x["hasOwn"](e,n)&&(t[n]=e[n])})),t}var Bp=Ka(),Vp=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Hh("ec_cpt_model"),r}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Np(this),i=n?Ep(t):{},r=e.getTheme();x["merge"](t,r.get(this.mainType)),x["merge"](t,this.getDefaultOption()),n&&Rp(t,i,n)},e.prototype.mergeOption=function(t,e){x["merge"](this.option,t,!0);var n=Np(this);n&&Rp(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Ro(t))return t.defaultOption;var e=Bp(this);if(!e.defaultOption){var n=[],i=t;while(i){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var a={},o=n.length-1;o>=0;o--)a=x["merge"](a,n[o],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return io(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){return Tp(this,!1)},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}(Vh);function Fp(t){var e=[];return x["each"](Vp.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=x["map"](e,(function(t){return jo(t).main})),"dataset"!==t&&x["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}Bo(Vp,Vh),Wo(Vp),Gh(Vp),Wh(Vp,Fp);var Hp=Vp,Gp={color:{},darkColor:{},size:{}},Wp=Gp.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var Yp in Object(x["extend"])(Wp,{primary:Wp.neutral80,secondary:Wp.neutral70,tertiary:Wp.neutral60,quaternary:Wp.neutral50,disabled:Wp.neutral20,border:Wp.neutral30,borderTint:Wp.neutral20,borderShade:Wp.neutral40,background:Wp.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Wp.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Wp.neutral70,axisLineTint:Wp.neutral40,axisTick:Wp.neutral70,axisTickMinor:Wp.neutral60,axisLabel:Wp.neutral70,axisSplitLine:Wp.neutral15,axisMinorSplitLine:Wp.neutral05}),Wp)if(Wp.hasOwnProperty(Yp)){var Up=Wp[Yp];"theme"===Yp?Gp.darkColor.theme=Wp.theme.slice():"highlight"===Yp?Gp.darkColor.highlight="rgba(255,231,130,0.4)":0===Yp.indexOf("accent")?Gp.darkColor[Yp]=Object(xn["modifyHSL"])(Up,null,(function(t){return.5*t}),(function(t){return Math.min(1,1.3-t)})):Gp.darkColor[Yp]=Object(xn["modifyHSL"])(Up,null,(function(t){return.9*t}),(function(t){return 1-Math.pow(t,1.5)}))}Gp.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Xp=Gp,$p="";"undefined"!==typeof navigator&&($p=navigator.platform||"");var Zp="rgba(0, 0, 0, 0.2)",qp=Xp.color.theme[0],Kp=Object(xn["modifyHSL"])(qp,null,null,.9),Qp={darkMode:"auto",colorBy:"series",color:Xp.color.theme,gradientColor:[Kp,qp],aria:{decal:{decals:[{color:Zp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$p.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},Jp={Must:1,Might:2,Not:3},tf=Ka();function ef(t){tf(t).datasetMap=Object(x["createHashMap"])()}function nf(t,e,n){var i={},r=af(e);if(!r||!t)return i;var a,o,s=[],l=[],u=e.ecModel,c=tf(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(x["each"])(t,(function(e,n){var r=Object(x["isObject"])(e)?e:t[n]={name:e};"ordinal"===r.type&&null==a&&(a=n,o=f(r)),i[r.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:o,valueWayDim:0});function p(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return Object(x["each"])(t,(function(t,e){var n=t.name,r=f(t);if(null==a){var o=d.valueWayDim;p(i[n],o,r),p(l,o,r),d.valueWayDim+=r}else if(a===e)p(i[n],0,r),p(s,0,r);else{o=d.categoryWayDim;p(i[n],o,r),p(l,o,r),d.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function rf(t,e,n){var i={},r=af(t);if(!r)return i;var a,o=e.sourceFormat,s=e.dimensionsDefine;o!==Au&&o!==ku||Object(x["each"])(s,(function(t,e){"name"===(Object(x["isObject"])(t)?t.name:t)&&(a=e)}));var l=function(){for(var t={},i={},r=[],l=0,u=Math.min(5,n);l<u;l++){var c=lf(e.data,o,e.seriesLayoutBy,s,e.startIndex,l);r.push(c);var h=c===Jp.Not;if(h&&null==t.v&&l!==a&&(t.v=l),(null==t.n||t.n===t.v||!h&&r[t.n]===Jp.Not)&&(t.n=l),d(t)&&r[t.n]!==Jp.Not)return t;h||(c===Jp.Might&&null==i.v&&l!==a&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(l){i.value=[l.v];var u=null!=a?a:l.n;i.itemName=[u],i.seriesName=[u]}return i}function af(t){var e=t.get("data",!0);if(!e)return io(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},eo).models[0]}function of(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?io(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},eo).models:[]}function sf(t,e){return lf(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function lf(t,e,n,i,r,a){var o,s,l,u=5;if(Object(x["isTypedArray"])(t))return Jp.Not;if(i){var c=i[a];Object(x["isObject"])(c)?(s=c.name,l=c.type):Object(x["isString"])(c)&&(s=c)}if(null!=l)return"ordinal"===l?Jp.Must:Jp.Not;if(e===Cu){var h=t;if(n===ju){for(var d=h[a],p=0;p<(d||[]).length&&p<u;p++)if(null!=(o=_(d[r+p])))return o}else for(p=0;p<h.length&&p<u;p++){var f=h[r+p];if(f&&null!=(o=_(f[a])))return o}}else if(e===Au){var g=t;if(!s)return Jp.Not;for(p=0;p<g.length&&p<u;p++){var y=g[p];if(y&&null!=(o=_(y[s])))return o}}else if(e===ku){var v=t;if(!s)return Jp.Not;d=v[s];if(!d||Object(x["isTypedArray"])(d))return Jp.Not;for(p=0;p<d.length&&p<u;p++)if(null!=(o=_(d[p])))return o}else if(e===Iu){var m=t;for(p=0;p<m.length&&p<u;p++){y=m[p];var b=La(y);if(!Object(x["isArray"])(b))return Jp.Not;if(null!=(o=_(b[a])))return o}}function _(t){var e=Object(x["isString"])(t);return null!=t&&isFinite(Number(t))&&""!==t?e?Jp.Might:Jp.Not:e&&"-"!==t?Jp.Must:void 0}return Jp.Not}var uf=Object(x["createHashMap"])();function cf(t,e){Object(x["assert"])(null==uf.get(t)&&e),uf.set(t,e)}function hf(t,e,n){var i=uf.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}var df=Ka(),pf=Ka(),ff=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=Aa(this.get("color",!0)),r=this.get("colorLayer",!0);return vf(this,df,i,r,t,e,n)},t.prototype.clearColorPalette=function(){mf(this,df)},t}();function gf(t,e,n,i){var r=Aa(t.get(["aria","decal","decals"]));return vf(t,pf,r,null,e,n,i)}function yf(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function vf(t,e,n,i,r,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=o&&i?yf(i,o):n;if(c=c||n,c&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function mf(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var bf,xf,_f,wf="[ECharts] ",Sf={},Mf="undefined"!==typeof console&&console.warn&&console.log;function Of(t,e,n){if(Mf){if(n){if(Sf[e])return;Sf[e]=!0}console[t](wf+e)}}function Tf(t,e){Of("error",t,e)}function If(t){0}function Cf(t){throw new Error(t)}var Af="\0_ec_inner",kf=1;var Df=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.init=function(t,e,n,i,r,a){i=i||{},this.option=null,this._theme=new Vh(i),this._locale=new Vh(r),this._optionManager=a},e.prototype.setOption=function(t,e,n){var i=Rf(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Rf(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):_f(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var o=i.getMediaOption(this);o.length&&Object(x["each"])(o,(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,i=this._componentsMap,r=this._componentsCount,a=[],o=Object(x["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var a=hf(this,e,Aa(t[e])),o=i.get(e),l=o?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=ja(o,a,l);Xa(u,e,Hp),n[e]=null,i.set(e,null),r.set(e,0);var c,h=[],d=[],p=0;Object(x["each"])(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,o=Hp.getClass(e,t.keyInfo.subType,!a);if(!o)return;if("tooltip"===e){if(c)return void 0;c=!0}if(i&&i.constructor===o)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Object(x["extend"])({componentIndex:n},t.keyInfo);i=new o(r,this,this,s),Object(x["extend"])(i,s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),d.push(i),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,i.set(e,d),r.set(e,p),"series"===e&&bf(this)}ef(this),Object(x["each"])(t,(function(t,e){null!=t&&(Hp.hasClass(e)?e&&(a.push(e),o.set(e,!0)):n[e]=null==n[e]?Object(x["clone"])(t):Object(x["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){Hp.hasClass(e)&&!o.get(e)&&(a.push(e),o.set(e,!0))})),Hp.topologicalTravel(a,Hp.getAllClassMainTypes(),l,this),this._seriesIndices||bf(this)},e.prototype.getOption=function(){var t=Object(x["clone"])(this.option);return Object(x["each"])(t,(function(e,n){if(Hp.hasClass(n)){for(var i=Aa(e),r=i.length,a=!1,o=r-1;o>=0;o--)i[o]&&!Ya(i[o])?a=!0:(i[o]=null,!a&&r--);i.length=r,t[n]=i}})),delete t[Af],t},e.prototype.setTheme=function(t){this._theme=new Vh(t),this._resetOption("recreate",null)},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 i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,o=this._componentsMap.get(e);return o&&o.length?(null!=i?(n=[],Object(x["each"])(Aa(i),(function(t){o[t]&&n.push(o[t])}))):n=null!=r?jf("id",r,o):null!=a?jf("name",a,o):Object(x["filter"])(o,(function(t){return!!t})),Nf(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=a(e),r=i?this.queryComponents(i):Object(x["filter"])(this._componentsMap.get(n),(function(t){return!!t}));return o(Nf(r,t));function a(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function o(e){return t.filter?Object(x["filter"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Object(x["isFunction"])(t)){var r=e,a=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&a.call(r,e,i,i.componentIndex)}}))}else for(var o=Object(x["isString"])(t)?i.get(t):Object(x["isObject"])(t)?this.findComponents(t):null,s=0;o&&s<o.length;s++){var l=o[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=Ga(t,null);return Object(x["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(x["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(x["filter"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){xf(this),Object(x["each"])(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(x["each"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){xf(this),Object(x["each"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(x["each"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return xf(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){xf(this);var n=[];Object(x["each"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(x["createHashMap"])(n)},e.prototype.restoreData=function(t){bf(this);var e=this._componentsMap,n=[];e.each((function(t,e){Hp.hasClass(e)&&n.push(e)})),Hp.topologicalTravel(n,Hp.getAllClassMainTypes(),(function(n){Object(x["each"])(e.get(n),(function(e){!e||"series"===n&&Lf(e,t)||e.restoreData()}))}))},e.internalField=function(){bf=function(t){var e=t._seriesIndices=[];Object(x["each"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(x["createHashMap"])(e)},xf=function(t){0},_f=function(t,e){t.option={},t.option[Af]=kf,t._componentsMap=Object(x["createHashMap"])({series:[]}),t._componentsCount=Object(x["createHashMap"])();var n=e.aria;Object(x["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),Pf(e,t._theme.option),Object(x["merge"])(e,Qp,!1),t._mergeOption(e,null)}}(),e}(Vh);function Lf(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Pf(t,e){var n=t.color&&!t.colorLayer;Object(x["each"])(e,(function(e,i){"colorLayer"===i&&n||"color"===i&&t.color||Hp.hasClass(i)||("object"===typeof e?t[i]=t[i]?Object(x["merge"])(t[i],e,!1):Object(x["clone"])(e):null==t[i]&&(t[i]=e))}))}function jf(t,e,n){if(Object(x["isArray"])(e)){var i=Object(x["createHashMap"])();return Object(x["each"])(e,(function(t){if(null!=t){var e=Ga(t,null);null!=e&&i.set(t,!0)}})),Object(x["filter"])(n,(function(e){return e&&i.get(e[t])}))}var r=Ga(e,null);return Object(x["filter"])(n,(function(e){return e&&null!=r&&e[t]===r}))}function Nf(t,e){return e.hasOwnProperty("subType")?Object(x["filter"])(t,(function(t){return t&&t.subType===e.subType})):t}function Rf(t){var e=Object(x["createHashMap"])();return t&&Object(x["each"])(Aa(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(x["mixin"])(Df,ff);var Ef=Df,zf=/^(min|max)?(.+)$/,Bf=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(x["each"])(Aa(t.series),(function(t){t&&t.data&&Object(x["isTypedArray"])(t.data)&&Object(x["setAsPrimitive"])(t.data)})),Object(x["each"])(Aa(t.dataset),(function(t){t&&t.source&&Object(x["isTypedArray"])(t.source)&&Object(x["setAsPrimitive"])(t.source)}))),t=Object(x["clone"])(t);var i=this._optionBackup,r=Vf(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(x["clone"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Object(x["clone"])(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],o=[];if(!i.length&&!r)return o;for(var s=0,l=i.length;s<l;s++)Ff(i[s].query,e,n)&&a.push(s);return!a.length&&r&&(a=[-1]),a.length&&!Gf(a,this._currentMediaIndices)&&(o=Object(x["map"])(a,(function(t){return Object(x["clone"])(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=a,o},t}();function Vf(t,e,n){var i,r,a=[],o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||o&&o.timeline);function d(t){Object(x["each"])(e,(function(e){e(t,n)}))}return o?(r=o,r.timeline||(r.timeline=s)):((h||c)&&(t.options=t.media=null),r=t),c&&Object(x["isArray"])(u)&&Object(x["each"])(u,(function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})),d(r),Object(x["each"])(l,(function(t){return d(t)})),Object(x["each"])(a,(function(t){return d(t.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:a}}function Ff(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Object(x["each"])(t,(function(t,e){var n=e.match(zf);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();Hf(i[o],t,a)||(r=!1)}})),r}function Hf(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function Gf(t,e){return t.join(",")===e.join(",")}var Wf=Bf,Yf=x["each"],Uf=x["isObject"],Xf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $f(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Xf.length;n<i;n++){var r=Xf[n],a=e.normal,o=e.emphasis;a&&a[r]&&(t[r]=t[r]||{},t[r].normal?x["merge"](t[r].normal,a[r]):t[r].normal=a[r],a[r]=null),o&&o[r]&&(t[r]=t[r]||{},t[r].emphasis?x["merge"](t[r].emphasis,o[r]):t[r].emphasis=o[r],o[r]=null)}}function Zf(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,x["defaults"](t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function qf(t){Zf(t,"itemStyle"),Zf(t,"lineStyle"),Zf(t,"areaStyle"),Zf(t,"label"),Zf(t,"labelLine"),Zf(t,"upperLabel"),Zf(t,"edgeLabel")}function Kf(t,e){var n=Uf(t)&&t[e],i=Uf(n)&&n.textStyle;if(i){0;for(var r=0,a=Da.length;r<a;r++){var o=Da[r];i.hasOwnProperty(o)&&(n[o]=i[o])}}}function Qf(t){t&&(qf(t),Kf(t,"label"),t.emphasis&&Kf(t.emphasis,"label"))}function Jf(t){if(Uf(t)){$f(t),qf(t),Kf(t,"label"),Kf(t,"upperLabel"),Kf(t,"edgeLabel"),t.emphasis&&(Kf(t.emphasis,"label"),Kf(t.emphasis,"upperLabel"),Kf(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&($f(e),Qf(e));var n=t.markLine;n&&($f(n),Qf(n));var i=t.markArea;i&&Qf(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var a=t.links||t.edges;if(a&&!x["isTypedArray"](a))for(var o=0;o<a.length;o++)Qf(a[o]);x["each"](t.categories,(function(t){qf(t)}))}if(r&&!x["isTypedArray"](r))for(o=0;o<r.length;o++)Qf(r[o]);if(e=t.markPoint,e&&e.data){var s=e.data;for(o=0;o<s.length;o++)Qf(s[o])}if(n=t.markLine,n&&n.data){var l=n.data;for(o=0;o<l.length;o++)x["isArray"](l[o])?(Qf(l[o][0]),Qf(l[o][1])):Qf(l[o])}"gauge"===t.type?(Kf(t,"axisLabel"),Kf(t,"title"),Kf(t,"detail")):"treemap"===t.type?(Zf(t.breadcrumb,"itemStyle"),x["each"](t.levels,(function(t){qf(t)}))):"tree"===t.type&&qf(t.leaves)}}function tg(t){return x["isArray"](t)?t:t?[t]:[]}function eg(t){return(x["isArray"](t)?t[0]:t)||{}}function ng(t,e){Yf(tg(t.series),(function(t){Uf(t)&&Jf(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Yf(n,(function(e){Yf(tg(t[e]),(function(t){t&&(Kf(t,"axisLabel"),Kf(t.axisPointer,"label"))}))})),Yf(tg(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Kf(e,"axisLabel"),Kf(e&&e.axisPointer,"label")})),Yf(tg(t.calendar),(function(t){Zf(t,"itemStyle"),Kf(t,"dayLabel"),Kf(t,"monthLabel"),Kf(t,"yearLabel")})),Yf(tg(t.radar),(function(t){Kf(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Yf(tg(t.geo),(function(t){Uf(t)&&(Qf(t),Yf(tg(t.regions),(function(t){Qf(t)})))})),Yf(tg(t.timeline),(function(t){Qf(t),Zf(t,"label"),Zf(t,"itemStyle"),Zf(t,"controlStyle",!0);var e=t.data;x["isArray"](e)&&x["each"](e,(function(t){x["isObject"](t)&&(Zf(t,"label"),Zf(t,"itemStyle"))}))})),Yf(tg(t.toolbox),(function(t){Zf(t,"iconStyle"),Yf(t.feature,(function(t){Zf(t,"iconStyle")}))})),Kf(eg(t.axisPointer),"label"),Kf(eg(t.tooltip).axisPointer,"label")}function ig(t,e){for(var n=e.split(","),i=t,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function rg(t,e,n,i){for(var r,a=e.split(","),o=t,s=0;s<a.length-1;s++)r=a[s],null==o[r]&&(o[r]={}),o=o[r];(i||null==o[a[s]])&&(o[a[s]]=n)}function ag(t){t&&Object(x["each"])(og,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var og=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sg=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],lg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ug(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<lg.length;n++){var i=lg[n][1],r=lg[n][0];null!=e[i]&&(e[r]=e[i])}}function cg(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function dg(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function pg(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&pg(t[n].children,e)}function fg(t,e){ng(t,e),t.series=Aa(t.series),Object(x["each"])(t.series,(function(t){if(Object(x["isObject"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),cg(t.label);var n=t.data;if(n&&!Object(x["isTypedArray"])(n))for(var i=0;i<n.length;i++)cg(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=ig(t,"pointer.color");null!=r&&rg(t,"itemStyle.color",r)}else if("bar"===e){ug(t),ug(t.backgroundStyle),ug(t.emphasis);n=t.data;if(n&&!Object(x["isTypedArray"])(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(ug(n[i]),ug(n[i]&&n[i].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),hg(t),pg(t.data,hg)}else"graph"===e||"sankey"===e?dg(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(x["defaults"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),ag(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(x["each"])(sg,(function(e){var n=t[e];n&&(Object(x["isArray"])(n)||(n=[n]),Object(x["each"])(n,(function(t){ag(t)})))}))}var gg=ko(yg);function yg(t){var e=Object(x["createHashMap"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;i.push(a)}})),e.each((function(t){if(0!==t.length){var e=t[0].seriesModel,n=e.get("stackOrder")||"seriesAsc";"seriesDesc"===n&&t.reverse(),Object(x["each"])(t,(function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)})),vg(t)}}))}function vg(t){Object(x["each"])(t,(function(e,n){var i=[],r=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,(function(a,u,c){var h,d,p=o.get(e.stackedDimension,c);if(isNaN(p))return r;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=la(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var mg,bg,xg,_g,wg,Sg,Mg=function(){function t(t){this.data=t.data||(t.sourceFormat===ku?{}:[]),this.sourceFormat=t.sourceFormat||Lu,this.seriesLayoutBy=t.seriesLayoutBy||Pu,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;n<e.length;n++){var i=e[n];null==i.type&&sf(this,n)===Jp.Must&&(i.type="ordinal")}}return t}();function Og(t){return t instanceof Mg}function Tg(t,e,n){n=n||Ag(t);var i=e.seriesLayoutBy,r=kg(t,n,i,e.sourceHeader,e.dimensions),a=new Mg({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Object(x["clone"])(e)});return a}function Ig(t){return new Mg({data:t,sourceFormat:Object(x["isTypedArray"])(t)?Du:Iu})}function Cg(t){return new Mg({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(x["clone"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Ag(t){var e=Lu;if(Object(x["isTypedArray"])(t))e=Du;else if(Object(x["isArray"])(t)){0===t.length&&(e=Cu);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(Object(x["isArray"])(r)||Object(x["isTypedArray"])(r)){e=Cu;break}if(Object(x["isObject"])(r)){e=Au;break}}}}else if(Object(x["isObject"])(t))for(var a in t)if(Object(x["hasOwn"])(t,a)&&Object(x["isArrayLike"])(t[a])){e=ku;break}return e}function kg(t,e,n,i,r){var a,o;if(!t)return{dimensionsDefine:Lg(r),startIndex:o,dimensionsDetectedCount:a};if(e===Cu){var s=t;"auto"===i||null==i?Pg((function(t){null!=t&&"-"!==t&&(Object(x["isString"])(t)?null==o&&(o=1):o=0)}),n,s,10):o=Object(x["isNumber"])(i)?i:i?1:0,r||1!==o||(r=[],Pg((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),a=r?r.length:n===ju?s.length:s[0]?s[0].length:null}else if(e===Au)r||(r=Dg(t));else if(e===ku)r||(r=[],Object(x["each"])(t,(function(t,e){r.push(e)})));else if(e===Iu){var l=La(t[0]);a=Object(x["isArray"])(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Lg(r),dimensionsDetectedCount:a}}function Dg(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return Object(x["keys"])(e)}function Lg(t){if(t){var e=Object(x["createHashMap"])();return Object(x["map"])(t,(function(t,n){t=Object(x["isObject"])(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function Pg(t,e,n,i){if(e===ju)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var a=n[0]||[];for(r=0;r<a.length&&r<i;r++)t(a[r],r)}}function jg(t){var e=t.sourceFormat;return e===Au||e===ku}var Ng=function(){function t(t,e){var n=Og(t)?t:Ig(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy;r===Du&&(this._offset=0,this._dimSize=e,this._data=i),Sg(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Sg=function(t,r,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,u=a.dimensionsDefine,c=wg[Ug(o,s)];if(Object(x["extend"])(t,c),o===Du)t.getItem=e,t.count=i,t.fillStorage=n;else{var h=Bg(o,s);t.getItem=Object(x["bind"])(h,null,r,l,u);var d=Hg(o,s);t.count=Object(x["bind"])(d,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,a=0;a<i;a++)e[a]=n[r+a];return e},n=function(t,e,n,i){for(var r=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=i[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[o],d=0;d<c;d++){var p=r[d*a+o];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[Cu+"_"+Pu]={pure:!0,appendData:r},t[Cu+"_"+ju]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Au]={pure:!0,appendData:r},t[ku]={pure:!0,appendData:function(t){var e=this._data;Object(x["each"])(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[Iu]={appendData:r},t[Du]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},wg=t}(),t}(),Rg=function(t){Object(x["isArray"])(t)||Tf("series.data or dataset.source must be an array.")},Eg=(mg={},mg[Cu+"_"+Pu]=Rg,mg[Cu+"_"+ju]=Rg,mg[Au]=Rg,mg[ku]=function(t,e){for(var n=0;n<e.length;n++){var i=e[n].name;null==i&&Tf("dimension name must not be null/undefined.")}},mg[Iu]=Rg,function(t,e,n,i){return t[i]}),zg=(bg={},bg[Cu+"_"+Pu]=function(t,e,n,i){return t[i+e]},bg[Cu+"_"+ju]=function(t,e,n,i,r){i+=e;for(var a=r||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},bg[Au]=Eg,bg[ku]=function(t,e,n,i,r){for(var a=r||[],o=0;o<n.length;o++){var s=n[o].name,l=null!=s?t[s]:null;a[o]=l?l[i]:null}return a},bg[Iu]=Eg,bg);function Bg(t,e){var n=zg[Ug(t,e)];return n}var Vg=function(t,e,n){return t.length},Fg=(xg={},xg[Cu+"_"+Pu]=function(t,e,n){return Math.max(0,t.length-e)},xg[Cu+"_"+ju]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},xg[Au]=Vg,xg[ku]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},xg[Iu]=Vg,xg);function Hg(t,e){var n=Fg[Ug(t,e)];return n}var Gg=function(t,e,n){return t[e]},Wg=(_g={},_g[Cu]=Gg,_g[Au]=function(t,e,n){return t[n]},_g[ku]=Gg,_g[Iu]=function(t,e,n){var i=La(t);return i instanceof Array?i[e]:i},_g[Du]=Gg,_g);function Yg(t){var e=Wg[t];return e}function Ug(t,e){return t===Cu?t+"_"+e:t}function Xg(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),a=r.getSource().sourceFormat;if(null!=n){var o=t.getDimensionIndex(n),s=r.getDimensionProperty(o);return Yg(a)(i,o,s)}var l=i;return a===Iu&&(l=La(i)),l}}}var $g=/\{@(.+?)\}/g,Zg=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),a=n.getName(t),o=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:r,data:o,dataType:e,value:i,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,a){e=e||"normal";var o=this.getData(n),s=this.getDataParams(t,n);if(a&&(s.value=a.interpolatedValue),null!=i&&x["isArray"](s.value)&&(s.value=s.value[i]),!r){var l=o.getItemModel(t);r=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(x["isFunction"](r))return s.status=e,s.dimensionIndex=i,r(s);if(x["isString"](r)){var u=Qd(r,s);return u.replace($g,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Xg(o,t,r);if(a&&x["isArray"](a.interpolatedValue)){var l=o.getDimensionIndex(r);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Xg(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function qg(t){var e,n;return x["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Kg(t){return new Qg(t)}var Qg=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,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,o=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}o===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),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 d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(a||d<p)){var f=this._progress;if(Object(x["isArray"])(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}this._dueIndex=p;var y=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){Jg.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Jg.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(x["isArray"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Jg=function(){var t,e,n,i,r,a={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/n),a.next=n>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%r*n+Math.ceil(e/r),o=e>=t?null:a<i?a:e;return e++,o}}();function ty(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(x["isNumber"])(t)||null==t||"-"===t||(t=+pa(t)),null==t||""===t?NaN:Number(t))}var ey=Object(x["createHashMap"])({number:function(t){return parseFloat(t)},time:function(t){return+pa(t)},trim:function(t){return Object(x["isString"])(t)?Object(x["trim"])(t):t}});function ny(t){return ey.get(t)}var iy={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},ry=function(){function t(t,e){if(!Object(x["isNumber"])(e)){var n="";0,Cf(n)}this._opFn=iy[t],this._rvalFloat=xa(e)}return t.prototype.evaluate=function(t){return Object(x["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(xa(t),this._rvalFloat)},t}(),ay=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(x["isNumber"])(t)?t:xa(t),i=Object(x["isNumber"])(e)?e:xa(e),r=isNaN(n),a=isNaN(i);if(r&&(n=this._incomparable),a&&(i=this._incomparable),r&&a){var o=Object(x["isString"])(t),s=Object(x["isString"])(e);o&&(n=s?t:0),s&&(i=o?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),oy=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=xa(e)}return 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=xa(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function sy(t,e){return"eq"===t||"ne"===t?new oy("eq"===t,e):Object(x["hasOwn"])(iy,t)?new ry(t,e):null}function ly(t){var e="",n=-1/0,i=-1/0,r=1/0,a=1/0;return t&&(null!=t.g&&(e+="G"+t.g,n=t.g),null!=t.ge&&(e+="GE"+t.ge,i=t.ge),null!=t.l&&(e+="L"+t.l,r=t.l),null!=t.le&&(e+="LE"+t.le,a=t.le)),{key:e,g:n,ge:i,l:r,le:a}}function uy(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var cy=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 ty(t,e)},t}();function hy(t,e){var n=new cy,i=t.data,r=n.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Pu&&Cf(o);var s=[],l={},u=t.dimensionsDefine;if(u)Object(x["each"])(u,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(s.push(i),null!=n){var r="";Object(x["hasOwn"])(l,n)&&Cf(r),l[n]=i}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Bg(r,Pu);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(i,a,s,t)},n.getRawData=Object(x["bind"])(dy,null,t)),n.cloneRawData=Object(x["bind"])(py,null,t);var d=Hg(r,Pu);n.count=Object(x["bind"])(d,null,i,a,s);var p=Yg(r);n.retrieveValue=function(t,e){var n=h(i,a,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=Object(x["bind"])(fy,null,s,l),n.cloneAllDimensionInfo=Object(x["bind"])(gy,null,s),n}function dy(t){var e=t.sourceFormat;if(!xy(e)){var n="";0,Cf(n)}return t.data}function py(t){var e=t.sourceFormat,n=t.data;if(!xy(e)){var i="";0,Cf(i)}if(e===Cu){for(var r=[],a=0,o=n.length;a<o;a++)r.push(n[a].slice());return r}if(e===Au){for(r=[],a=0,o=n.length;a<o;a++)r.push(Object(x["extend"])({},n[a]));return r}}function fy(t,e,n){if(null!=n)return Object(x["isNumber"])(n)||!isNaN(n)&&!Object(x["hasOwn"])(e,n)?t[n]:Object(x["hasOwn"])(e,n)?e[n]:void 0}function gy(t){return Object(x["clone"])(t)}var yy=Object(x["createHashMap"])();function vy(t){t=Object(x["clone"])(t);var e=t.type,n="";e||Cf(n);var i=e.split(":");2!==i.length&&Cf(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,yy.set(e,t)}function my(t,e,n){var i=Aa(t),r=i.length,a="";r||Cf(a);for(var o=0,s=r;o<s;o++){var l=i[o];e=by(l,e,n,1===r?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function by(t,e,n,i){var r="";e.length||Cf(r),Object(x["isObject"])(t)||Cf(r);var a=t.type,o=yy.get(a);o||Cf(r);var s=Object(x["map"])(e,(function(t){return hy(t,o)})),l=Aa(o.transform({upstream:s[0],upstreamList:s,config:Object(x["clone"])(t.config)}));return Object(x["map"])(l,(function(t,n){var i="";Object(x["isObject"])(t)||Cf(i),t.data||Cf(i);var r,a=Ag(t.data);xy(a)||Cf(i);var o=e[0];if(o&&0===n&&!t.dimensions){var s=o.startIndex;s&&(t.data=o.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:Pu,sourceHeader:s,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:Pu,sourceHeader:0,dimensions:t.dimensions};return Tg(t.data,r,null)}))}function xy(t){return t===Cu||t===Au}var _y,wy=typeof Uint32Array===Mu?Array:Uint32Array,Sy=typeof Uint16Array===Mu?Array:Uint16Array,My=typeof Int32Array===Mu?Array:Int32Array,Oy=typeof Float64Array===Mu?Array:Float64Array,Ty={float:Oy,int:My,ordinal:Array,number:Array,time:Oy};function Iy(t){return t>65535?wy:Sy}function Cy(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ay(t,e,n,i,r){var a=Ty[n||"float"];if(r){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var ky=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(x["createHashMap"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=_y[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];jg(i);this._dimensions=Object(x["map"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Ty[e||"float"](this._rawCount),this._rawExtent[r]=po(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,a=i.ordinalOffset||0,o=n.length;0===a&&(r[t]=po());for(var s=r[t],l=a;l<o;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=o,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,a=this._rawExtent,o=this.count(),s=o+Math.max(t.length,e||0),l=0;l<r;l++){var u=i[l];Ay(n,l,u.type,s,!0)}for(var c=[],h=o;h<s;h++)for(var d=h-o,p=0;p<r;p++){u=i[p];var f=_y.arrayRows.call(this,t[d]||c,u.property,d,p);n[p][h]=f;var g=a[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:o,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=Object(x["map"])(a,(function(t){return t.property})),u=0;u<o;u++){var c=a[u];s[u]||(s[u]=po()),Ay(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],d=t;d<e;d++){h=i.getItem(d,h);for(var p=0;p<o;p++){var f=r[p],g=this._dimValueGetter(h,l[p],d,p);f[d]=g;var y=s[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.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<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var a=i.length;r<a;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)})),ea(e);var n=this.count();return 0===n?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var i=0,r=this._count-1;while(i<=r){var a=(i+r)/2|0;if(e[a]<t)i=a+1;else{if(!(e[a]>t))return a;r=a-1}}return-1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{n=Iy(this._rawCount);t=new n(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=Iy(n._rawCount),a=new r(i),o=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<i;h++){var d=void 0,p=n.getRawIndex(h);if(0===s)d=e(h);else if(1===s){var f=c[u][p];d=e(f,h)}else{for(var g=0;g<s;g++)o[g]=c[t[g]][p];o[g]=h,d=e.apply(null,o)}d&&(a[l++]=p)}return l<i&&(n._indices=a),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Object(x["keys"])(t),r=i.length;if(!r)return this;var a=e.count(),o=Iy(e._rawCount),s=new o(a),l=0,u=i[0],c=t[u][0],h=t[u][1],d=e._chunks,p=!1;if(!e._indices){var f=0;if(1===r){for(var g=d[i[0]],y=0;y<n;y++){var v=g[y];(v>=c&&v<=h||isNaN(v))&&(s[l++]=f),f++}p=!0}else if(2===r){g=d[i[0]];var m=d[i[1]],b=t[i[1]][0],_=t[i[1]][1];for(y=0;y<n;y++){v=g[y];var w=m[y];(v>=c&&v<=h||isNaN(v))&&(w>=b&&w<=_||isNaN(w))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===r)for(y=0;y<a;y++){var S=e.getRawIndex(y);v=d[i[0]][S];(v>=c&&v<=h||isNaN(v))&&(s[l++]=S)}else for(y=0;y<a;y++){for(var M=!0,O=(S=e.getRawIndex(y),0);O<r;O++){var T=i[O];v=d[T][S];(v<t[T][0]||v>t[T][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(y))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],a=e.length,o=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=po();for(var c=0;c<o;c++){for(var h=t.getRawIndex(c),d=0;d<a;d++)s[d]=i[e[d]][h];s[a]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(r[0]=p,p=r);for(u=0;u<p.length;u++){var f=e[u],g=p[u],y=l[f],v=i[f];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,a=this.clone([t],!0),o=a._chunks,s=o[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(Iy(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),g=Math.min(p+2*c,l),y=(g+f)/2,v=0,m=f;m<g;m++){var b=this.getRawIndex(m),x=s[b];isNaN(x)||(v+=x)}v/=g-f;var _=p,w=Math.min(p+c,l),S=p-1,M=s[h];n=-1,r=_;var O=-1,T=0;for(m=_;m<w;m++){b=this.getRawIndex(m),x=s[b];isNaN(x)?(T++,O<0&&(O=b)):(i=Math.abs((S-y)*(x-M)-(S-m)*(v-M)),i>n&&(n=i,r=b))}T>0&&T<w-_&&(d[u++]=Math.min(O,r),r=Math.max(O,r)),d[u++]=r,h=r}return d[u++]=this.getRawIndex(l-1),a._count=u,a._indices=d,a.getRawIndex=this._getRawIdx,a},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),a=i[t],o=this.count(),s=new(Iy(this._rawCount))(2*Math.ceil(o/r)),l=0,u=0;u<o;u+=r){var c=u,h=a[this.getRawIndex(c)],d=u,p=a[this.getRawIndex(d)],f=r;u+r>o&&(f=o-u);for(var g=0;g<f;g++){var y=this.getRawIndex(u+g),v=a[y];v<h&&(h=v,c=u+g),v>p&&(p=v,d=u+g)}var m=this.getRawIndex(c),b=this.getRawIndex(d);c<d?(s[l++]=m,s[l++]=b):(s[l++]=b,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),a=r._chunks,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),c=r._rawExtent[t]=po(),h=new(Iy(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,o.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);o[f]=l[g]}var y=n(o),v=this.getRawIndex(Math.min(p+i(o,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,a=this.count();r<a;r++){var o=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][o],r);break;case 2:e(i[t[0]][o],i[t[1]][o],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][o];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t,e){var n=this._chunks[t],i=po();if(!n)return i;var r=this.count(),a=!this._indices&&!e;if(a)return this._rawExtent[t].slice();var o=this._extent,s=o[t]||(o[t]={}),l=ly(e),u=l.key,c=s[u];if(c)return c.slice();for(var h=i[0],d=i[1],p=0;p<r;p++){var f=this.getRawIndex(p),g=n[f];e&&!uy(l,g)||(g<h&&(h=g),g>d&&(d=g))}return s[u]=[h,d]},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,a=e&&Object(x["reduce"])(e,(function(t,e){return t[e]=!0,t}),{});if(a)for(var o=0;o<r.length;o++)i._chunks[o]=a[o]?Cy(r[o]):r[o];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(x["clone"])(this._extent),t._rawExtent=Object(x["clone"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=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,i){return ty(t[i],this._dimensions[i])}_y={arrayRows:t,objectRows:function(t,e,n,i){return ty(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return ty(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),Dy=ky,Ly=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,i=this._getUpstreamSourceManagers(),r=!!i.length;if(jy(n)){var a=n,o=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else o=a.get("data",!0),s=Object(x["isTypedArray"])(o)?Du:Iu,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Object(x["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(x["retrieve2"])(c.sourceHeader,h.sourceHeader),f=Object(x["retrieve2"])(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||f;t=g?[Tg(o,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var y=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else{var m=y.get("source",!0);t=[Tg(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var a="";1!==t.length&&Ny(a)}var o=[],s=[];return Object(x["each"])(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||Ny(n),o.push(e),s.push(t._getVersionSign())})),i?e=my(i,o,{datasetIndex:n.componentIndex}):null!=r&&(e=[Cg(o[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=0,r=this._storeList,a=r[i];a||(a=r[i]={});var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];jy(this._sourceHost)&&s?o=s._innerGetDataStore(t,e,n):(o=new Dy,o.initData(new Ng(e,t.length),t)),a[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(jy(t)){var e=af(t);return e?[e.getSourceManager()]:[]}return Object(x["map"])(of(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(jy(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Py(t){var e=t.option.transform;e&&Object(x["setAsPrimitive"])(t.option.transform)}function jy(t){return"series"===t.mainType}function Ny(t){throw new Error(t)}var Ry="line-height:1";function Ey(t){var e=t.lineHeight;return null==e?Ry:"line-height:"+ct(e+"")+"px"}function zy(t,e){var n=t.color||Xp.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",a=t.color||Xp.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ct(i+"")+"px;color:"+ct(n)+";font-weight:"+ct(r+""),valueStyle:"font-size:"+ct(o+"")+"px;color:"+ct(a)+";font-weight:"+ct(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var By=[0,10,20,30],Vy=["","\n","\n\n","\n\n\n"];function Fy(t,e){return e.type=t,e}function Hy(t){return"section"===t.type}function Gy(t){return Hy(t)?Yy:Uy}function Wy(t){if(Hy(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Object(x["each"])(t.blocks,(function(t){var n=Wy(t);n>=e&&(e=n+ +(i&&(!n||Hy(t)&&!t.noHeader)))})),e}return 0}function Yy(t,e,n,i){var r=e.noHeader,a=$y(Wy(e)),o=[],s=e.blocks||[];Object(x["assert"])(!s||Object(x["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(x["hasOwn"])(u,l)){var c=new ay(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(x["each"])(s,(function(n,r){var s=e.valueFormatter,l=Gy(n)(s?Object(x["extend"])(Object(x["extend"])({},t),{valueFormatter:s}):t,n,r>0?a.html:0,i);null!=l&&o.push(l)}));var h="richText"===t.renderMode?o.join(a.richText):Zy(i,o.join(""),r?n:a.html);if(r)return h;var d=Zd(e.header,"ordinal",t.useUTC),p=zy(i,t.renderMode).nameStyle,f=Ey(i);return"richText"===t.renderMode?Qy(t,d,p)+a.richText+h:Zy(i,'<div style="'+p+";"+f+';">'+ct(d)+"</div>"+h,n)}function Uy(t,e,n,i){var r=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(x["isArray"])(t)?t:[t],Object(x["map"])(t,(function(t,e){return Zd(t,Object(x["isArray"])(p)?p[e]:p,u)}))};if(!a||!o){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Xp.color.secondary,r),d=a?"":Zd(l,"ordinal",u),p=e.valueType,f=o?[]:c(e.value,e.rawDataIndex),g=!s||!a,y=!s&&a,v=zy(i,r),m=v.nameStyle,b=v.valueStyle;return"richText"===r?(s?"":h)+(a?"":Qy(t,d,m))+(o?"":Jy(t,f,g,y,b)):Zy(i,(s?"":h)+(a?"":qy(d,!s,m))+(o?"":Ky(f,g,y,b)),n)}}function Xy(t,e,n,i,r,a){if(t){var o=Gy(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function $y(t){return{html:By[t],richText:Vy[t]}}function Zy(t,e,n){var i='<div style="clear:both"></div>',r="margin: "+n+"px 0 0",a=Ey(t);return'<div style="'+r+";"+a+';">'+e+i+"</div>"}function qy(t,e,n){var i=e?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+ct(t)+"</span>"}function Ky(t,e,n,i){var r=n?"10px":"20px",a=e?"float:right;margin-left:"+r:"";return t=Object(x["isArray"])(t)?t:[t],'<span style="'+a+";"+i+'">'+Object(x["map"])(t,(function(t){return ct(t)})).join("&nbsp;&nbsp;")+"</span>"}function Qy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Jy(t,e,n,i,r){var a=[r],o=i?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(x["isArray"])(e)?e.join(" "):e,a)}function tv(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return ip(i)}function ev(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var nv=function(){function t(){this.richTextStyles={},this._nextStyleNameId=wa()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=tp({color:e,type:t,renderMode:n,markerId:i});return Object(x["isString"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(x["isArray"])(e)?Object(x["each"])(e,(function(t){return Object(x["extend"])(n,t)})):Object(x["extend"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function iv(t){var e,n,i,r,a=t.series,o=t.dataIndex,s=t.multipleSeries,l=a.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=a.getRawValue(o),d=Object(x["isArray"])(h),p=tv(a,o);if(c>1||d&&!c){var f=rv(h,a,o,u,p);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Xg(l,o,u[0]),n=g.type}else r=e=d?h[0]:h;var y=Wa(a),v=y&&a.name||"",m=l.getName(o),b=s?v:m;return Fy("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[Fy("nameValue",{markerType:"item",markerColor:p,name:b,noName:!Object(x["trim"])(b),value:e,valueType:n,rawDataIndex:l.getRawIndex(o)})].concat(i||[])})}function rv(t,e,n,i,r){var a=e.getData(),o=Object(x["reduce"])(t,(function(t,e,n){var i=a.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(o?u.push(Fy("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?Object(x["each"])(i,(function(t){c(Xg(a,n,t),t)})):Object(x["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var av=Ka();function ov(t,e){return t.getName(e)||t.getId(e)}var sv="__universalTransitionEnabled",lv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return f(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Kg({count:hv,reset:dv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=av(this).sourceManager=new Ly(this);i.prepareSource();var r=this.getInitialData(t,n);fv(r,this),this.dataTask.context.data=r,av(this).dataBeforeProcessed=r,uv(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Np(this),i=n?Ep(t):{},r=this.subType;Hp.hasClass(r)&&(r+="Series"),x["merge"](t,e.getTheme().get(this.subType)),x["merge"](t,this.getDefaultOption()),ka(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Rp(t,i,n)},e.prototype.mergeOption=function(t,e){t=x["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Np(this);n&&Rp(this.option,t,n);var i=av(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);fv(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,av(this).dataBeforeProcessed=r,uv(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!x["isTypedArray"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ka(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=yv(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return av(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=yv(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}av(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return x["createHashMap"](t)},e.prototype.getSourceManager=function(){return av(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return av(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(t);if(!a||!o)return[];var s=o.dataToCoord(n);null==i&&(i=1/0);for(var l=[],u=1/0,c=-1,h=0,d=r.getDimensionIndex(e),p=r.getStore(),f=0,g=p.count();f<g;f++){var y=p.get(d,f),v=o.dataToCoord(y),m=s-v,b=Math.abs(m);b<=i&&((b<u||b===u&&m>=0&&c<0)&&(u=b,c=m,h=0),m===c&&(l[h++]=f))}return l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return iv({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(b.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=ff.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},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 i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<t.length;a++){var o=t[a],s=ov(r,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=x["keys"](t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[ov(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[sv])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,a=r.selectedMode,o=e.length;if(a&&o)if("series"===a)r.selectedMap="all";else if("multiple"===a){x["isObject"](r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<o;l++){var u=e[l],c=ov(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===a||!0===a){var h=e[o-1];c=ov(t,h);r.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(i={},i[c]=t.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Hp.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}(Hp);function uv(t){var e=t.name;Wa(t)||(t.name=cv(t)||e)}function cv(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return x["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function hv(t){return t.model.getRawData().count()}function dv(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),pv}function pv(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function fv(t,e){x["each"](x["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,x["curry"](gv,e))}))}function gv(t,e){var n=yv(t);return n&&n.setOutputEnd((e||this).count()),e}function yv(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}x["mixin"](lv,Zg),x["mixin"](lv,ff),Bo(lv,Hp);var vv=lv,mv=function(){function t(){this.group=new vr,this.uid=Hh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Eo(mv),Wo(mv);var bv=mv;function xv(){var t=Ka();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,a=!!n.progressiveRender,o=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===o&&a===s)&&"reset"}}var _v=pl.CMD,wv=[[],[],[]],Sv=Math.sqrt,Mv=Math.atan2;function Ov(t,e){if(e){var n,i,r,a,o,s,l=t.data,u=t.len(),c=_v.M,h=_v.C,d=_v.L,p=_v.R,f=_v.A,g=_v.Q;for(r=0,a=0;r<u;){switch(n=l[r++],a=r,i=0,n){case c:i=1;break;case d:i=1;break;case h:i=3;break;case g:i=2;break;case f:var y=e[4],v=e[5],m=Sv(e[0]*e[0]+e[1]*e[1]),b=Sv(e[2]*e[2]+e[3]*e[3]),x=Mv(-e[1]/b,e[0]/m);l[r]*=m,l[r++]+=y,l[r]*=b,l[r++]+=v,l[r++]*=m,l[r++]*=b,l[r++]+=x,l[r++]+=x,r+=2,a=r;break;case p:s[0]=l[r++],s[1]=l[r++],G(s,s,e),l[a++]=s[0],l[a++]=s[1],s[0]+=l[r++],s[1]+=l[r++],G(s,s,e),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<i;o++){var _=wv[o];_[0]=l[r++],_[1]=l[r++],G(_,_,e),l[a++]=_[0],l[a++]=_[1]}}t.increaseVersion()}}var Tv=Math.sqrt,Iv=Math.sin,Cv=Math.cos,Av=Math.PI;function kv(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Dv(t,e){return(t[0]*e[0]+t[1]*e[1])/(kv(t)*kv(e))}function Lv(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Dv(t,e))}function Pv(t,e,n,i,r,a,o,s,l,u,c){var h=l*(Av/180),d=Cv(h)*(t-n)/2+Iv(h)*(e-i)/2,p=-1*Iv(h)*(t-n)/2+Cv(h)*(e-i)/2,f=d*d/(o*o)+p*p/(s*s);f>1&&(o*=Tv(f),s*=Tv(f));var g=(r===a?-1:1)*Tv((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,y=g*o*p/s,v=g*-s*d/o,m=(t+n)/2+Cv(h)*y-Iv(h)*v,b=(e+i)/2+Iv(h)*y+Cv(h)*v,x=Lv([1,0],[(d-y)/o,(p-v)/s]),_=[(d-y)/o,(p-v)/s],w=[(-1*d-y)/o,(-1*p-v)/s],S=Lv(_,w);if(Dv(_,w)<=-1&&(S=Av),Dv(_,w)>=1&&(S=0),S<0){var M=Math.round(S/Av*1e6)/1e6;S=2*Av+M%2*Av}c.addData(u,m,b,o,s,x,S,h,a)}var jv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Nv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Rv(t){var e=new pl;if(!t)return e;var n,i=0,r=0,a=i,o=r,s=pl.CMD,l=t.match(jv);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(Nv)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var y=0;while(y<f){var v=void 0,m=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,M=i,O=r,T=void 0,I=void 0;switch(h){case"l":i+=p[y++],r+=p[y++],d=s.L,e.addData(d,i,r);break;case"L":i=p[y++],r=p[y++],d=s.L,e.addData(d,i,r);break;case"m":i+=p[y++],r+=p[y++],d=s.M,e.addData(d,i,r),a=i,o=r,h="l";break;case"M":i=p[y++],r=p[y++],d=s.M,e.addData(d,i,r),a=i,o=r,h="L";break;case"h":i+=p[y++],d=s.L,e.addData(d,i,r);break;case"H":i=p[y++],d=s.L,e.addData(d,i,r);break;case"v":r+=p[y++],d=s.L,e.addData(d,i,r);break;case"V":r=p[y++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),i=p[y-2],r=p[y-1];break;case"c":d=s.C,e.addData(d,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r),i+=p[y-2],r+=p[y-1];break;case"S":v=i,m=r,T=e.len(),I=e.data,n===s.C&&(v+=i-I[T-4],m+=r-I[T-3]),d=s.C,M=p[y++],O=p[y++],i=p[y++],r=p[y++],e.addData(d,v,m,M,O,i,r);break;case"s":v=i,m=r,T=e.len(),I=e.data,n===s.C&&(v+=i-I[T-4],m+=r-I[T-3]),d=s.C,M=i+p[y++],O=r+p[y++],i+=p[y++],r+=p[y++],e.addData(d,v,m,M,O,i,r);break;case"Q":M=p[y++],O=p[y++],i=p[y++],r=p[y++],d=s.Q,e.addData(d,M,O,i,r);break;case"q":M=p[y++]+i,O=p[y++]+r,i+=p[y++],r+=p[y++],d=s.Q,e.addData(d,M,O,i,r);break;case"T":v=i,m=r,T=e.len(),I=e.data,n===s.Q&&(v+=i-I[T-4],m+=r-I[T-3]),i=p[y++],r=p[y++],d=s.Q,e.addData(d,v,m,i,r);break;case"t":v=i,m=r,T=e.len(),I=e.data,n===s.Q&&(v+=i-I[T-4],m+=r-I[T-3]),i+=p[y++],r+=p[y++],d=s.Q,e.addData(d,v,m,i,r);break;case"A":b=p[y++],x=p[y++],_=p[y++],w=p[y++],S=p[y++],M=i,O=r,i=p[y++],r=p[y++],d=s.A,Pv(M,O,i,r,w,S,b,x,_,d,e);break;case"a":b=p[y++],x=p[y++],_=p[y++],w=p[y++],S=p[y++],M=i,O=r,i+=p[y++],r+=p[y++],d=s.A,Pv(M,O,i,r,w,S,b,x,_,d,e);break}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=a,r=o),n=d}return e.toStatic(),e}var Ev=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.applyTransform=function(t){},e}(Bl);function zv(t){return null!=t.setData}function Bv(t,e){var n=Rv(t),i=Object(x["extend"])({},e);return i.buildPath=function(t){var e=zv(t);if(e&&t.canSave()){t.appendPath(n);var i=t.getContext();i&&t.rebuildPath(i,1)}else{i=e?t.getContext():t;i&&n.rebuildPath(i,1)}},i.applyTransform=function(t){Ov(n,t),this.dirtyShape()},i}function Vv(t,e){return new Ev(Bv(t,e))}function Fv(t,e){var n=Bv(t,e),i=function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return f(e,t),e}(Ev);return i}function Hv(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var a=t[r];n.push(a.getUpdatedPathProxy(!0))}var o=new Bl(e);return o.createPathProxy(),o.buildPath=function(t){if(zv(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},o}function Gv(t,e){e=e||{};var n=new Bl;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Ov(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Wv=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Yv=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new Wv},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Bl);Yv.prototype.type="circle";var Uv=Yv,Xv=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),$v=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new Xv},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(i-a,r),t.bezierCurveTo(i-a,r-l,i-s,r-o,i,r-o),t.bezierCurveTo(i+s,r-o,i+a,r-l,i+a,r),t.bezierCurveTo(i+a,r+l,i+s,r+o,i,r+o),t.bezierCurveTo(i-s,r+o,i-a,r+l,i-a,r),t.closePath()},e}(Bl);$v.prototype.type="ellipse";var Zv=$v,qv=Math.PI,Kv=2*qv,Qv=Math.sin,Jv=Math.cos,tm=Math.acos,em=Math.atan2,nm=Math.abs,im=Math.sqrt,rm=Math.max,am=Math.min,om=1e-4;function sm(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=h*l-c*u;if(!(d*d<om))return d=(c*(e-a)-h*(t-r))/d,[t+d*l,e+d*u]}function lm(t,e,n,i,r,a,o){var s=t-n,l=e-i,u=(o?a:-a)/im(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=n+c,g=i+h,y=(d+f)/2,v=(p+g)/2,m=f-d,b=g-p,x=m*m+b*b,_=r-a,w=d*g-f*p,S=(b<0?-1:1)*im(rm(0,_*_*x-w*w)),M=(w*b-m*S)/x,O=(-w*m-b*S)/x,T=(w*b+m*S)/x,I=(-w*m+b*S)/x,C=M-y,A=O-v,k=T-y,D=I-v;return C*C+A*A>k*k+D*D&&(M=T,O=I),{cx:M,cy:O,x0:-c,y0:-h,x1:M*(r/_-1),y1:O*(r/_-1)}}function um(t){var e;if(Object(x["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 cm(t,e){var n,i=rm(e.r,0),r=rm(e.r0||0,0),a=i>0,o=r>0;if(a||o){if(a||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,d=!!e.clockwise,p=nm(u-l),f=p>Kv&&p%Kv;if(f>om&&(p=f),i>om)if(p>Kv-om)t.moveTo(c+i*Jv(l),h+i*Qv(l)),t.arc(c,h,i,l,u,!d),r>om&&(t.moveTo(c+r*Jv(u),h+r*Qv(u)),t.arc(c,h,r,u,l,d));else{var g=void 0,y=void 0,v=void 0,m=void 0,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0,M=void 0,O=void 0,T=void 0,I=void 0,C=void 0,A=void 0,k=void 0,D=i*Jv(l),L=i*Qv(l),P=r*Jv(u),j=r*Qv(u),N=p>om;if(N){var R=e.cornerRadius;R&&(n=um(R),g=n[0],y=n[1],v=n[2],m=n[3]);var E=nm(i-r)/2;if(b=am(E,v),x=am(E,m),_=am(E,g),w=am(E,y),O=S=rm(b,x),T=M=rm(_,w),(S>om||M>om)&&(I=i*Jv(u),C=i*Qv(u),A=r*Jv(l),k=r*Qv(l),p<qv)){var z=sm(D,L,A,k,I,C,P,j);if(z){var B=D-z[0],V=L-z[1],F=I-z[0],H=C-z[1],G=1/Qv(tm((B*F+V*H)/(im(B*B+V*V)*im(F*F+H*H)))/2),W=im(z[0]*z[0]+z[1]*z[1]);O=am(S,(i-W)/(G+1)),T=am(M,(r-W)/(G-1))}}}if(N)if(O>om){var Y=am(v,O),U=am(m,O),X=lm(A,k,D,L,i,Y,d),$=lm(I,C,P,j,i,U,d);t.moveTo(c+X.cx+X.x0,h+X.cy+X.y0),O<S&&Y===U?t.arc(c+X.cx,h+X.cy,O,em(X.y0,X.x0),em($.y0,$.x0),!d):(Y>0&&t.arc(c+X.cx,h+X.cy,Y,em(X.y0,X.x0),em(X.y1,X.x1),!d),t.arc(c,h,i,em(X.cy+X.y1,X.cx+X.x1),em($.cy+$.y1,$.cx+$.x1),!d),U>0&&t.arc(c+$.cx,h+$.cy,U,em($.y1,$.x1),em($.y0,$.x0),!d))}else t.moveTo(c+D,h+L),t.arc(c,h,i,l,u,!d);else t.moveTo(c+D,h+L);if(r>om&&N)if(T>om){Y=am(g,T),U=am(y,T),X=lm(P,j,I,C,r,-U,d),$=lm(D,L,A,k,r,-Y,d);t.lineTo(c+X.cx+X.x0,h+X.cy+X.y0),T<M&&Y===U?t.arc(c+X.cx,h+X.cy,T,em(X.y0,X.x0),em($.y0,$.x0),!d):(U>0&&t.arc(c+X.cx,h+X.cy,U,em(X.y0,X.x0),em(X.y1,X.x1),!d),t.arc(c,h,r,em(X.cy+X.y1,X.cx+X.x1),em($.cy+$.y1,$.cx+$.x1),d),Y>0&&t.arc(c+$.cx,h+$.cy,Y,em($.y1,$.x1),em($.y0,$.x0),!d))}else t.lineTo(c+P,h+j),t.arc(c,h,r,u,l,d);else t.lineTo(c+P,h+j)}else t.moveTo(c,h);t.closePath()}}}var hm=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}(),dm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new hm},e.prototype.buildPath=function(t,e){cm(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Bl);dm.prototype.type="sector";var pm=dm,fm=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),gm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new fm},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Bl);gm.prototype.type="ring";var ym=gm;function vm(t,e,n,i){var r,a,o,s,l=[],u=[],c=[],h=[];if(i){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)W(o,o,t[d]),Y(s,s,t[d]);W(o,o,i[0]),Y(s,s,i[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)r=t[d?d-1:p-1],a=t[(d+1)%p];else{if(0===d||d===p-1){l.push(S(t[d]));continue}r=t[d-1],a=t[d+1]}I(u,a,r),N(u,u,e);var g=E(f,r),y=E(f,a),v=g+y;0!==v&&(g/=v,y/=v),N(c,u,-g),N(h,u,y);var m=O([],f,c),b=O([],f,h);i&&(Y(m,m,o),W(m,m,s),Y(b,b,o),W(b,b,s)),l.push(m),l.push(b)}return n&&l.push(l.shift()),l}function mm(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var a=vm(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var o=r.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],u=a[2*s+1],c=r[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var bm=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),xm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new bm},e.prototype.buildPath=function(t,e){mm(t,e,!0)},e}(Bl);xm.prototype.type="polygon";var _m=xm,wm=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Sm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wm},e.prototype.buildPath=function(t,e){mm(t,e,!1)},e}(Bl);Sm.prototype.type="polyline";var Mm=Sm,Om={},Tm=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Im=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Tm},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var o=ql(Om,e,this.style);n=o.x1,i=o.y1,r=o.x2,a=o.y2}else n=e.x1,i=e.y1,r=e.x2,a=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,a=i*(1-s)+a*s),t.lineTo(r,a))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Bl);Im.prototype.type="line";var Cm=Im,Am=[],km=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Dm(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?nn:en)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?nn:en)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?cn:un)(t.x1,t.cpx1,t.x2,e),(n?cn:un)(t.y1,t.cpy1,t.y2,e)]}var Lm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new km},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(pn(n,o,r,c,Am),o=Am[1],r=Am[2],pn(i,s,a,c,Am),s=Am[1],a=Am[2]),t.quadraticCurveTo(o,s,r,a)):(c<1&&(on(n,o,l,r,c,Am),o=Am[1],l=Am[2],r=Am[3],on(i,s,u,a,c,Am),s=Am[1],u=Am[2],a=Am[3]),t.bezierCurveTo(o,s,l,u,r,a)))},e.prototype.pointAt=function(t){return Dm(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Dm(this.shape,t,!0);return R(e,e)},e}(Bl);Lm.prototype.type="bezier-curve";var Pm=Lm,jm=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Nm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jm},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,a,o,!s)},e}(Bl);Nm.prototype.type="arc";var Rm=Nm,Em=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return f(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bl.prototype.getBoundingRect.call(this)},e}(Bl),zm=Em,Bm=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Vm=Bm,Fm=function(t){function e(e,n,i,r,a,o){var s=t.call(this,a)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=o||!1,s}return f(e,t),e}(Vm),Hm=Fm,Gm=function(t){function e(e,n,i,r,a){var o=t.call(this,r)||this;return o.x=null==e?.5:e,o.y=null==n?.5:n,o.r=null==i?.5:i,o.type="radial",o.global=a||!1,o}return f(e,t),e}(Vm),Wm=Gm,Ym=Math.min,Um=Math.max,Xm=Math.abs,$m=[0,0],Zm=[0,0],qm=le(),Km=qm.minTv,Qm=qm.maxTv,Jm=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Et;for(n=0;n<2;n++)this._axes[n]=new Et;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,a=t.y,o=r+t.width,s=a+t.height;if(n[0].set(r,a),n[1].set(o,a),n[2].set(o,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);Et.sub(i[0],n[1],n[0]),Et.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&Et.set(e,0,0),qm.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||qm.negativeSize||Et.copy(e,i?qm.useDir?qm.dirMinTv:Km:Qm),i},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,a=0;a<2;a++){var o=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,$m),t._getProjMinMaxOnAxis(a,e._corners,Zm),qm.negativeSize||$m[1]<Zm[0]||$m[0]>Zm[1]){if(r=!1,qm.negativeSize||n)return r;var s=Xm(Zm[0]-$m[1]),l=Xm($m[0]-Zm[1]);Ym(s,l)>Qm.len()&&(s<l?Et.scale(Qm,o,-s*i):Et.scale(Qm,o,l*i))}else if(!n){s=Xm(Zm[0]-$m[1]),l=Xm($m[0]-Zm[1]);(qm.useDir||Ym(s,l)<Km.len())&&((s<l||!qm.bidirectional)&&(Et.scale(Km,o,s*i),qm.useDir&&qm.calcDirMTV()),(s>=l||!qm.bidirectional)&&(Et.scale(Km,o,-l*i),qm.useDir&&qm.calcDirMTV()))}}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,a=e[0].dot(i)+r[t],o=a,s=a,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];o=Ym(u,o),s=Um(u,s)}n[0]=o+qm.touchThreshold,n[1]=s-qm.touchThreshold,qm.negativeSize=n[1]<n[0]},t}(),tb=Jm,eb=0,nb=1,ib=2,rb=1,ab=0,ob=[],sb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=nb,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return f(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ue(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(ob)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var a=this._displayables[r];if(a.contain(t,e))return!0}return!1},e}(Ls),lb=sb,ub={},cb=["x","y"],hb=["width","height"],db=0,pb=1,fb=2;function gb(t){return Bl.extend(t)}var yb=Fv;function vb(t,e){return yb(t,e)}function mb(t,e){ub[t]=e}function bb(t){if(ub.hasOwnProperty(t))return ub[t]}function xb(t,e,n,i){var r=Vv(t,e);return n&&("center"===i&&(n=wb(n,r.getBoundingRect())),Mb(r,n)),r}function _b(t,e,n){var i=new Xl({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(wb(e,r))}}});return i}function wb(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-n/2,width:r,height:n}}var Sb=Hv;function Mb(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function Ob(t,e){return ql(t,t,{lineWidth:e}),t}function Tb(t,e){return Kl(t,t,e),t}var Ib=Ql;function Cb(t,e){var n=Ct([]);while(t&&t!==e)kt(n,t.getLocalTransform(),n),t=t.parent;return n}function Ab(t,e,n){return e&&!Object(x["isArrayLike"])(e)&&(e=ji.getLocalTransform(e)),n&&(e=jt([],e)),G([],t,e)}function kb(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:zr(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:zr(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return a=Ab(a,e,n),zr(a[0])>zr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Db(t){return!t.isGroup}function Lb(t){return null!=t.shape}function Pb(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(Db(t)&&t.anid){var e=i[t.anid];if(e){var r=a(t);t.attr(a(e)),nh(t,r,n,wu(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){Db(t)&&t.anid&&(e[t.anid]=t)})),e}function a(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Lb(t)&&(e.shape=Object(x["clone"])(t.shape)),e}}function jb(t,e){return Object(x["map"])(t,(function(t){var n=t[0];n=Er(n,e.x),n=Rr(n,e.x+e.width);var i=t[1];return i=Er(i,e.y),i=Rr(i,e.y+e.height),[n,i]}))}function Nb(t,e){var n=Er(t.x,e.x),i=Rr(t.x+t.width,e.x+e.width),r=Er(t.y,e.y),a=Rr(t.y+t.height,e.y+e.height);if(i>=n&&a>=r)return{x:n,y:r,width:i-n,height:a-r}}function Rb(t,e,n){var i=Object(x["extend"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(x["defaults"])(r,n),new Xl(i)):xb(t.replace("path://",""),i,n,"center")}function Eb(t,e,n,i,r){for(var a=0,o=r[r.length-1];a<r.length;a++){var s=r[a];if(zb(t,e,n,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function zb(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=Bb(c,h,l,u);if(Vb(d))return!1;var p=t-r,f=e-a,g=Bb(p,f,l,u)/d;if(g<0||g>1)return!1;var y=Bb(p,f,c,h)/d;return!(y<0||y>1)}function Bb(t,e,n,i){return t*i-n*e}function Vb(t){return t<=1e-6&&t>=-1e-6}function Fb(t,e,n,i,r){return null==e||(Object(x["isNumber"])(e)?Hb[0]=Hb[1]=Hb[2]=Hb[3]=e:(Hb[0]=e[0],Hb[1]=e[1],Hb[2]=e[2],Hb[3]=e[3]),i&&(Hb[0]=Er(0,Hb[0]),Hb[1]=Er(0,Hb[1]),Hb[2]=Er(0,Hb[2]),Hb[3]=Er(0,Hb[3])),n&&(Hb[0]=-Hb[0],Hb[1]=-Hb[1],Hb[2]=-Hb[2],Hb[3]=-Hb[3]),Gb(t,Hb,"x","width",3,1,r&&r[0]||0),Gb(t,Hb,"y","height",0,2,r&&r[1]||0)),t}var Hb=[0,0,0,0];function Gb(t,e,n,i,r,a,o){var s=e[a]+e[r],l=t[i];t[i]+=s,o=Er(0,Rr(o,l)),t[i]<o?(t[i]=o,t[n]+=e[r]>=0?-e[r]:e[a]>=0?l+e[a]:zr(s)>1e-8?(l-o)*e[r]/s:0):t[n]-=e[r]}function Wb(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(x["isString"])(e)?{formatter:e}:e,a=n.mainType,o=n.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&Object(x["each"])(Object(x["keys"])(l),(function(t){Object(x["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=wu(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:Object(x["defaults"])({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Yb(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ub(t,e){if(t)if(Object(x["isArray"])(t))for(var n=0;n<t.length;n++)Yb(t[n],e);else Yb(t,e)}function Xb(t){return!t||zr(t[1])<$b&&zr(t[2])<$b||zr(t[0])<$b&&zr(t[3])<$b}var $b=1e-5;function Zb(t,e){return t?ue.copy(t,e):e.clone()}function qb(t,e){return e?At(t||It(),e):void 0}function Kb(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function Qb(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return Yb(t,(function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())})),n>e&&(n=e=0),{min:n,max:e}}function Jb(t,e,n){tx(t,e,n,-1/0)}function tx(t,e,n,i){if(t.ignoreModelZ)return i;var r=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Er(tx(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Er(t.z2||0,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function ex(t){return t.animation={duration:0},t}function nx(t,e){return e?At(ix.transform,e):Ct(ix.transform),ix.decomposeTransform(),Li(t,ix),t}var ix=new ji;function rx(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null}ix.transform=It(),mb("circle",Uv),mb("ellipse",Zv),mb("sector",pm),mb("ring",ym),mb("polygon",_m),mb("polyline",Mm),mb("rect",nu),mb("line",Cm),mb("bezierCurve",Pm),mb("arc",Rm);var ax=Ka(),ox=xv(),sx=function(){function t(){this.group=new vr,this.uid=Hh("viewChart"),this.renderTask=Kg({plan:cx,reset:hx}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&ux(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&ux(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Ub(this.group,t)},t.markUpdateMethod=function(t,e){ax(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function lx(t,e,n){t&&Xc(t)&&("emphasis"===e?wc:Sc)(t,n)}function ux(t,e,n){var i=qa(t,e),r=e&&null!=e.highlightKey?Zc(e.highlightKey):null;null!=i?Object(x["each"])(Aa(i),(function(e){lx(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){lx(t,n,r)}))}function cx(t){return ox(t.model)}function hx(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=r&&ax(r).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,n,i,r),dx[l]}Eo(sx,["dispose"]),Wo(sx);var dx={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},px=sx,fx="\0__throttleOriginMethod",gx="\0__throttleRate",yx="\0__throttleType";function vx(t,e,n){var i,r,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(a,o||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),a=this,o=t;var p=s||e,f=s||n;s=null,r=i-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):r>=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function mx(t,e,n,i){var r=t[e];if(r){var a=r[fx]||r,o=r[yx],s=r[gx];if(s!==n||o!==i){if(null==n||!i)return t[e]=a;r=t[e]=vx(a,n,"debounce"===i),r[fx]=a,r[yx]=i,r[gx]=n}return r}}function bx(t,e){var n=t[e];n&&n[fx]&&(n.clear&&n.clear(),t[e]=n[fx])}var xx=Ka(),_x={itemStyle:Yo(Rh,!0),lineStyle:Yo(Ph,!0)},Sx={lineStyle:"stroke",itemStyle:"fill"};function Mx(t,e){var n=t.visualStyleMapper||_x[e];return n||(console.warn("Unknown style type '"+e+"'."),_x.itemStyle)}function Ox(t,e){var n=t.visualDrawType||Sx[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Tx={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),a=Mx(t,i),o=a(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Ox(t,i),u=o[l],c=Object(x["isFunction"])(u)?u:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(x["isFunction"])(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||Object(x["isFunction"])(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(x["extend"])({},o);r[l]=c(i),e.setItemVisual(n,"style",r)}}}},Ix=new Vh,Cx={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Mx(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){Ix.option=n[i];var o=r(Ix),s=t.ensureUniqueItemVisual(e,"style");Object(x["extend"])(s,o),Ix.option.decal&&(t.setItemVisual(e,"decal",Ix.option.decal),Ix.option.decal.dirty=!0),a in o&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ax={performRawSeries:!0,overallReset:function(t){var e=Object(x["createHashMap"])();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();xx(t).scope=e.get(n)||e.set(n,{})}})),t.eachSeries((function(t){if(!t.isColorBySeries()){var e=t.getRawData(),n={},i=t.getData(),r=xx(t).scope,a=t.visualStyleAccessPath||"itemStyle",o=Ox(t,a);i.each((function(t){var e=i.getRawIndex(t);n[e]=t})),e.each((function(a){var s=n[a],l=i.getItemVisual(s,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(s,"style"),c=e.getName(a)||a+"",h=e.count();u[o]=t.getColorFromPalette(c,r,h)}}))}}))}},kx=Math.PI;function Dx(t,e){e=e||{},x["defaults"](e,{text:"loading",textColor:Xp.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Xp.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new vr,i=new nu({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,a=new _u({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new nu({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(o),e.showSpinner&&(r=new Rm({shape:{startAngle:-kx/2,endAngle:-kx/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*kx/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*kx/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.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&&r.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Lx=function(){function t(t,e,n,i){this._stageTaskMap=Object(x["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=r?n.step:null,o=i&&i.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.__preparePipelineContext?t.__preparePipelineContext(e,n):Co(t,e,n);t.pipelineContext=n.context=i},t.prototype.restorePipelines=function(t,e){var n=this,i=n._pipelineMap=Object(x["createHashMap"])();e.eachSeries((function(e){var r="canvas"===t.painter.type&&e.getProgressive(),a=e.uid;i.set(a,{id:a,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),n._pipe(e,e.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(x["each"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),a="";Object(x["assert"])(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,a=r.context;a.model=e,a.ecModel=n,a.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},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,i){i=i||{};var r=!1,a=this;function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(x["each"])(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){o(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){o(i,s)&&s.dirty();var u=a.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||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,i){var r=this,a=e.seriesTaskMap,o=e.seriesTaskMap=Object(x["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=o.set(s,a&&a.get(s)||Kg({plan:Ex,reset:zx,count:Fx}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,a=e.overallTask=e.overallTask||Kg({reset:Px});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var o=a.agentStubMap,s=a.agentStubMap=Object(x["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=t.dirtyOnOverallProgress,h=!1,d="";function p(t){var e=t.uid,n=s.set(e,o&&o.get(e)||(h=!0,Kg({reset:jx,onDirty:Rx})));n.context={model:t,dirtyOnOverallProgress:c},n.agent=a,n.__block=c,r._pipe(t,n)}Object(x["assert"])(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):Object(x["each"])(n.getSeries(),p),h&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(x["isFunction"])(t)&&(t={overallReset:t,seriesType:Hx(t)}),t.uid=Hh("stageHandler"),e&&(t.visualType=e),t},t}();function Px(t){t.overallReset(t.ecModel,t.api,t.payload)}function jx(t){return t.dirtyOnOverallProgress&&Nx}function Nx(){this.agent.dirty(),this.getDownstream().dirty()}function Rx(){this.agent&&this.agent.dirty()}function Ex(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function zx(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Aa(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(x["map"])(e,(function(t,e){return Vx(e)})):Bx}var Bx=Vx(0);function Vx(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var a=e.start;a<e.end;a++)r.dataEach(i,a);else r&&r.progress&&r.progress(e,i)}}function Fx(t){return t.data.count()}function Hx(t){Gx=null;try{t(Wx,Yx)}catch(e){}return Gx}var Gx,Wx={},Yx={};function Ux(t,e){for(var n in e.prototype)t[n]=x["noop"]}Ux(Wx,Ef),Ux(Yx,Bu),Wx.eachSeriesByType=Wx.eachRawSeriesByType=function(t){Gx=t},Wx.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Gx=t.subType)};var Xx=Lx,$x=Xp.darkColor,Zx=$x.background,qx=function(){return{axisLine:{lineStyle:{color:$x.axisLine}},splitLine:{lineStyle:{color:$x.axisSplitLine}},splitArea:{areaStyle:{color:[$x.backgroundTint,$x.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$x.axisMinorSplitLine}},axisLabel:{color:$x.axisLabel},axisName:{}}},Kx={label:{color:$x.secondary},itemStyle:{borderColor:$x.borderTint},dividerLineStyle:{color:$x.border}},Qx={darkMode:!0,color:$x.theme,backgroundColor:Zx,axisPointer:{lineStyle:{color:$x.border},crossStyle:{color:$x.borderShade},label:{color:$x.tertiary}},legend:{textStyle:{color:$x.secondary},pageTextStyle:{color:$x.tertiary}},textStyle:{color:$x.secondary},title:{textStyle:{color:$x.primary},subtextStyle:{color:$x.quaternary}},toolbox:{iconStyle:{borderColor:$x.accent50},feature:{dataView:{backgroundColor:Zx,textColor:$x.primary,textareaColor:$x.background,textareaBorderColor:$x.border,buttonColor:$x.accent50,buttonTextColor:$x.neutral00}}},tooltip:{backgroundColor:$x.neutral20,defaultBorderColor:$x.border,textStyle:{color:$x.tertiary}},dataZoom:{borderColor:$x.accent10,textStyle:{color:$x.tertiary},brushStyle:{color:$x.backgroundTint},handleStyle:{color:$x.neutral00,borderColor:$x.accent20},moveHandleStyle:{color:$x.accent40},emphasis:{handleStyle:{borderColor:$x.accent50}},dataBackground:{lineStyle:{color:$x.accent30},areaStyle:{color:$x.accent20}},selectedDataBackground:{lineStyle:{color:$x.accent50},areaStyle:{color:$x.accent30}}},visualMap:{textStyle:{color:$x.secondary},handleStyle:{borderColor:$x.neutral30}},timeline:{lineStyle:{color:$x.accent10},label:{color:$x.tertiary},controlStyle:{color:$x.accent30,borderColor:$x.accent30}},calendar:{itemStyle:{color:$x.neutral00,borderColor:$x.neutral20},dayLabel:{color:$x.tertiary},monthLabel:{color:$x.secondary},yearLabel:{color:$x.secondary}},matrix:{x:Kx,y:Kx,backgroundColor:{borderColor:$x.axisLine},body:{itemStyle:{borderColor:$x.borderTint}}},timeAxis:qx(),logAxis:qx(),valueAxis:qx(),categoryAxis:qx(),line:{symbol:"circle"},graph:{color:$x.theme},gauge:{title:{color:$x.secondary},axisLine:{lineStyle:{color:[[1,$x.neutral05]]}},axisLabel:{color:$x.axisLabel},detail:{color:$x.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:$x.background}},radar:function(){var t=qx();return t.axisName={color:$x.axisLabel},t.axisLine.lineStyle.color=$x.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:$x.neutral20,textStyle:{color:$x.secondary}},emphasis:{itemStyle:{color:$x.neutral30}}}},sunburst:{itemStyle:{borderColor:$x.background}},map:{itemStyle:{borderColor:$x.border,areaColor:$x.neutral10},label:{color:$x.tertiary},emphasis:{label:{color:$x.primary},itemStyle:{areaColor:$x.highlight}},select:{label:{color:$x.primary},itemStyle:{areaColor:$x.highlight}}},geo:{itemStyle:{borderColor:$x.border,areaColor:$x.neutral10},emphasis:{label:{color:$x.primary},itemStyle:{areaColor:$x.highlight}},select:{label:{color:$x.primary},itemStyle:{color:$x.highlight}}}};Qx.categoryAxis.splitLine.show=!1;var Jx=Qx,t_=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(x["isString"](t)){var r=jo(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};x["each"](t,(function(t,r){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}o.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),e_=["symbol","symbolSize","symbolRotate","symbolOffset"],n_=e_.concat(["symbolKeepAspect"]),i_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},a=!1,o=0;o<e_.length;o++){var s=e_[o],l=t.get(s);Object(x["isFunction"])(l)?(a=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Object(x["extend"])({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=Object(x["keys"])(r);return{dataEach:a?c:null}}}function c(e,n){for(var i=t.getRawValue(n),a=t.getDataParams(n),o=0;o<u.length;o++){var s=u[o];e.setItemVisual(n,s,r[s](i,a))}}}},r_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}function i(t,e){for(var n=t.getItemModel(e),i=0;i<n_.length;i++){var r=n_[i],a=n.getShallow(r,!0);null!=a&&t.setItemVisual(e,r,a)}}}};function a_(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function o_(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function s_(t,e,n,i){switch(n){case"color":var r=t.ensureUniqueItemVisual(e,"style");r[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}function l_(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}Object(x["each"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=Object(x["extend"])({},e),r.dispatchAction(Object(x["extend"])(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function u_(t,e,n,i,r){var a=t+e;n.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,o=r.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===e){var l=t.getData(),u=qa(l,r.fromActionPayload);n.trigger(a,{type:a,seriesId:t.id,name:Object(x["isArray"])(u)?l.getName(u[0]):l.getName(u),selected:Object(x["isString"])(i)?i:Object(x["extend"])({},i)})}}))}function c_(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(u_("map","selectchanged",e,i,t),u_("pie","selectchanged",e,i,t)):"select"===t.fromAction?(u_("map","selected",e,i,t),u_("pie","selected",e,i,t)):"unselect"===t.fromAction&&(u_("map","unselected",e,i,t),u_("pie","unselected",e,i,t))}))}function h_(t,e,n){var i;while(t){if(e(t)&&(i=t,n))break;t=t.__hostTarget||t.parent}return i}var d_=new q,p_=d_,f_={};function g_(t,e){f_[t]=e}function y_(t){return f_[t]}var v_={};function m_(t,e){v_[t]=e}function b_(t){return v_[t]}var x_=Ka();function __(t){x_(t).prepare={}}function w_(t){x_(t).fullUpdate={}}function S_(t){return x_(t).prepare}function M_(t){return x_(t).fullUpdate}var O_=Math.round(9*Math.random()),T_="function"===typeof Object.defineProperty,I_=function(){function t(){this._id="__ec_inner_"+O_++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return T_?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),C_=I_,A_=Bl.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i+a),t.lineTo(n-r,i+a),t.closePath()}}),k_=Bl.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,a=e.height/2;t.moveTo(n,i-a),t.lineTo(n+r,i),t.lineTo(n,i+a),t.lineTo(n-r,i),t.closePath()}}),D_=Bl.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,a=Math.max(r,e.height),o=r/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),p=.6*o,f=.7*o;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),L_=Bl.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,a=e.y,o=i/3*2;t.moveTo(r,a),t.lineTo(r+o,a+n),t.lineTo(r,a+n/4*3),t.lineTo(r-o,a+n),t.lineTo(r,a),t.closePath()}}),P_={line:Cm,rect:nu,roundRect:nu,square:nu,circle:Uv,diamond:k_,pin:D_,arrow:L_,triangle:A_},j_={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var a=Math.min(n,i);r.x=t,r.y=e,r.width=a,r.height=a},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},N_={};Object(x["each"])(P_,(function(t,e){N_[e]=new t}));var R_=Bl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Zi(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=N_[i];r||(i="rect",r=N_[i]),j_[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function E_(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||Xp.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function z_(t,e,n,i,r,a,o){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?_b(t.slice(8),new ue(e,n,i,r),o?"center":"cover"):0===t.indexOf("path://")?xb(t.slice(7),{},new ue(e,n,i,r),o?"center":"cover"):new R_({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),s.__isEmptyBrush=l,s.setColor=E_,a&&s.setColor(a),s}function B_(t){return Object(x["isArray"])(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function V_(t,e){if(null!=t)return Object(x["isArray"])(t)||(t=[t,t]),[$r(t[0],e[0])||0,$r(Object(x["retrieve2"])(t[1],t[0]),e[1])||0]}function F_(t){return isFinite(t)}function H_(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),i=F_(i)?i:0,r=F_(r)?r:1,a=F_(a)?a:0,o=F_(o)?o:0;var s=t.createLinearGradient(i,a,r,o);return s}function G_(t,e,n){var i=n.width,r=n.height,a=Math.min(i,r),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*i+n.x,s=s*r+n.y,l*=a),o=F_(o)?o:.5,s=F_(s)?s:.5,l=l>=0&&F_(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function W_(t,e,n){for(var i="radial"===e.type?G_(t,e,n):H_(t,e,n),r=e.colorStops,a=0;a<r.length;a++)i.addColorStop(r[a].offset,r[a].color);return i}function Y_(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function U_(t){return parseInt(t,10)}function X_(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||U_(s[i])||U_(t.style[i]))-(U_(s[a])||0)-(U_(s[o])||0)||0}function $_(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(x["isNumber"])(t)?[t]:Object(x["isArray"])(t)?t:null:null}function Z_(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&$_(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=Object(x["map"])(n,(function(t){return t/r})),i/=r)}return[n,i]}var q_=new pl(!0);function K_(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Q_(t){return"string"===typeof t&&"none"!==t}function J_(t){var e=t.fill;return null!=e&&"none"!==e}function tw(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 ew(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 nw(t,e,n){var i=Ko(e.image,e.__image,n);if(Jo(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*x["RADIAN_TO_DEGREE"]),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}function iw(t,e,n,i,r){var a,o=K_(n),s=J_(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var h=e.path||q_,d=e.__dirty;if(!i){var p=n.fill,f=n.stroke,g=s&&!!p.colorStops,y=o&&!!f.colorStops,v=s&&!!p.image,m=o&&!!f.image,b=void 0,x=void 0,_=void 0,w=void 0,S=void 0;(g||y)&&(S=e.getBoundingRect()),g&&(b=d?W_(t,p,S):e.__canvasFillGradient,e.__canvasFillGradient=b),y&&(x=d?W_(t,f,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=d||!e.__canvasFillPattern?nw(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(w=d||!e.__canvasStrokePattern?nw(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=b:v&&(_?t.fillStyle=_:s=!1),y?t.strokeStyle=x:m&&(w?t.strokeStyle=w:o=!1)}var M,O,T=e.getGlobalScale();h.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(a=Z_(e),M=a[0],O=a[1]);var I=!0;(c||d&je)&&(h.setDPR(t.dpr),u?h.setContext(null):(h.setContext(t),I=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),I&&h.rebuildPath(t,u?l:1),M&&(t.setLineDash(M),t.lineDashOffset=O),i?(r.batchFill=s,r.batchStroke=o):n.strokeFirst?(o&&ew(t,n),s&&tw(t,n)):(s&&tw(t,n),o&&ew(t,n)),M&&t.setLineDash([])}function rw(t,e,n){var i=e.__image=Ko(n.image,e.__image,e,e.onload);if(i&&Jo(i)){var r=n.x||0,a=n.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,a,o,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=o-u,d=s-c;t.drawImage(i,u,c,h,d,r,a,o,s)}else t.drawImage(i,r,a,o,s)}}function aw(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Ri["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,o=void 0;t.setLineDash&&n.lineDash&&(i=Z_(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),n.strokeFirst?(K_(n)&&t.strokeText(r,n.x,n.y),J_(n)&&t.fillText(r,n.x,n.y)):(J_(n)&&t.fillText(r,n.x,n.y),K_(n)&&t.strokeText(r,n.x,n.y)),a&&t.setLineDash([])}}var ow=["shadowBlur","shadowOffsetX","shadowOffsetY"],sw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lw(t,e,n,i,r){var a=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){bw(t,r),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Ms.opacity:o}(i||e.blend!==n.blend)&&(a||(bw(t,r),a=!0),t.globalCompositeOperation=e.blend||Ms.blend);for(var s=0;s<ow.length;s++){var l=ow[s];(i||e[l]!==n[l])&&(a||(bw(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(a||(bw(t,r),a=!0),t.shadowColor=e.shadowColor||Ms.shadowColor),a}function uw(t,e,n,i,r){var a=e.style,o=i?null:n&&n.style||{};if(a===o)return!1;var s=lw(t,a,o,i,r);if((i||a.fill!==o.fill)&&(s||(bw(t,r),s=!0),Q_(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(bw(t,r),s=!0),Q_(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(bw(t,r),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(bw(t,r),s=!0),t.lineWidth=u)}for(var c=0;c<sw.length;c++){var h=sw[c],d=h[0];(i||a[d]!==o[d])&&(s||(bw(t,r),s=!0),t[d]=a[d]||h[1])}return s}function cw(t,e,n,i,r){return lw(t,e.style,n&&n.style,i,r)}function hw(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function dw(t,e,n){for(var i=!1,r=0;r<t.length;r++){var a=t[r];i=i||a.isZeroArea(),hw(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}n.allClipped=i}function pw(t,e){return t&&e?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&&!e)}var fw=1,gw=2,yw=3,vw=4;function mw(t){var e=J_(t),n=K_(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function bw(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function xw(t,e){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};_w(t,e,n),ww(t,n)}function _w(t,e,n){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Le,void(e.__isRendered=!1);var r=e.__clipPaths,a=n.prevElClipPaths,o=e.style,s=!1,l=!1;if(a&&!Y_(r,a)||(a&&(bw(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length&&(bw(t,n),t.save(),dw(r,t,n),s=!0,n.prevElClipPaths=r)),n.allClipped)return e.__dirty&=~Le,void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(n.beforeBrushParam),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof Bl&&e.autoBatch&&mw(o);s||pw(i,u.transform)?(bw(t,n),hw(t,e)):c||bw(t,n),e instanceof Bl?(n.lastDrawType!==fw&&(l=!0,n.lastDrawType=fw),uw(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),iw(t,e,o,c,n)):e instanceof Hl?(n.lastDrawType!==yw&&(l=!0,n.lastDrawType=yw),uw(t,e,u,l,n),aw(t,e,o)):e instanceof Xl?(n.lastDrawType!==gw&&(l=!0,n.lastDrawType=gw),cw(t,e,u,l,n),rw(t,e,o)):e.getTemporalDisplayables&&(n.lastDrawType!==vw&&(l=!0,n.lastDrawType=vw),Sw(t,e,n)),e.innerAfterBrush(),e.afterBrush&&(c&&bw(t,n),e.afterBrush()),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function ww(t,e){bw(t,e),e.prevElClipPaths&&t.restore()}function Sw(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}};for(a=e.getCursor(),o=i.length;a<o;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),_w(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}ww(t,s);for(var u=0,c=r.length;u<c;u++){l=r[u];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),_w(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}ww(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Mw=new C_,Ow=new Ni["a"](100),Tw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Iw(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&Mw["delete"](t);var a=Mw.get(t);if(a)return a;var o=Object(x["defaults"])(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=r?1:1/n,Mw.set(t,s),t.dirty=!1,s;function l(t){for(var e,a=[n],s=!0,l=0;l<Tw.length;++l){var u=o[Tw[l]];if(null!=u&&!Object(x["isArray"])(u)&&!Object(x["isString"])(u)&&!Object(x["isNumber"])(u)&&"boolean"!==typeof u){s=!1;break}a.push(u)}if(s){e=a.join(",")+(r?"-svg":"");var c=Ow.get(e);c&&(r?t.svgElement=c:t.image=c)}var h,d=Aw(o.dashArrayX),p=kw(o.dashArrayY),f=Cw(o.symbol),g=Dw(d),y=Lw(p),v=!r&&Ri["d"].createCanvas(),m=r&&{tag:"g",attrs:{},key:"dcl",children:[]},b=_();function _(){for(var t=1,e=0,n=g.length;e<n;++e)t=Ma(t,g[e]);var i=1;for(e=0,n=f.length;e<n;++e)i=Ma(i,f[e].length);t*=i;var r=y*g.length*f.length;return{width:Math.max(1,Math.min(t,o.maxTileWidth)),height:Math.max(1,Math.min(r,o.maxTileHeight))}}function w(){h&&(h.clearRect(0,0,v.width,v.height),o.backgroundColor&&(h.fillStyle=o.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0)){var a=-y,s=0,l=0,u=0;while(a<b.height){if(s%2===0){var c=l/2%f.length,g=0,x=0,_=0;while(g<2*b.width){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(x%2===0){var S=.5*(1-o.symbolSize),M=g+d[u][x]*S,O=a+p[s]*S,T=d[u][x]*o.symbolSize,I=p[s]*o.symbolSize,C=_/2%f[c].length;A(M,O,T,I,f[c][C])}g+=d[u][x],++_,++x,x===d[u].length&&(x=0)}++u,u===d.length&&(u=0)}a+=p[s],++l,++s,s===p.length&&(s=0)}}function A(t,e,a,s,l){var u=r?1:n,c=z_(l,t*u,e*u,a*u,s*u,o.color,o.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(c);d&&m.children.push(d)}else xw(h,c)}}v&&(v.width=b.width*n,v.height=b.height*n,h=v.getContext("2d")),w(),s&&Ow.put(e,v||m),t.image=v,t.svgElement=m,t.svgWidth=b.width,t.svgHeight=b.height}}function Cw(t){if(!t||0===t.length)return[["rect"]];if(Object(x["isString"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(x["isString"])(t[n])){e=!1;break}if(e)return Cw([t]);var i=[];for(n=0;n<t.length;++n)Object(x["isString"])(t[n])?i.push([t[n]]):i.push(t[n]);return i}function Aw(t){if(!t||0===t.length)return[[0,0]];if(Object(x["isNumber"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!Object(x["isNumber"])(t[i])){n=!1;break}if(n)return Aw([t]);var r=[];for(i=0;i<t.length;++i)if(Object(x["isNumber"])(t[i])){e=Math.ceil(t[i]);r.push([e,e])}else{e=Object(x["map"])(t[i],(function(t){return Math.ceil(t)}));e.length%2===1?r.push(e.concat(e)):r.push(e)}return r}function kw(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(x["isNumber"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(x["map"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function Dw(t){return Object(x["map"])(t,(function(t){return Lw(t)}))}function Lw(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}var Pw=ko(jw);function jw(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");if(n){var r=i.ensureUniqueItemVisual(t,"style");r.decal=Iw(n,e)}}));var r=i.getVisual("decal");if(r){var a=i.getVisual("style");a.decal=Iw(r,e)}}}))}var Nw="6.1.0",Rw={zrender:"6.1.0"},Ew=1,zw=800,Bw=900,Vw=920,Fw=1e3,Hw=2e3,Gw=5e3,Ww=1e3,Yw=1100,Uw=2e3,Xw=3e3,$w=4e3,Zw=4500,qw=4600,Kw=5e3,Qw=6e3,Jw=7e3,tS={PROCESSOR:{SERIES_FILTER:zw,AXIS_STATISTICS:Vw,FILTER:Fw,STATISTIC:Gw,STATISTICS:Gw},VISUAL:{LAYOUT:Ww,PROGRESSIVE_LAYOUT:Yw,GLOBAL:Uw,CHART:Xw,POST_CHART_LAYOUT:qw,COMPONENT:$w,BRUSH:Kw,CHART_ITEM:Zw,ARIA:Qw,DECAL:Jw}},eS="__flagInMainProcess",nS="__mainProcessVersion",iS="__pendingUpdate",rS="__needsUpdateStatus",aS=/^[a-zA-Z0-9_]+$/,oS="__connectUpdateStatus",sS=0,lS=1,uS=2;function cS(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return dS(this,t,e);ES(this.id)}}function hS(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return dS(this,t,e)}}function dS(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),q.prototype[e].apply(t,n)}var pS,fS,gS,yS,vS,mS,bS,xS,_S,wS,SS,MS,OS,TS,IS,CS,AS,kS,DS,LS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e}(q),PS=LS.prototype;PS.on=hS("on"),PS.off=hS("off");var jS=function(t){function e(e,n,i){var r=t.call(this,new t_)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r.__v_skip=!0,r._dom=e;var a="canvas",o="auto",s=!1;r[nS]=1,i.ssr&&kr((function(t){var e=wu(t),n=e.dataIndex;if(null!=n){var i=Object(x["createHashMap"])();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}}));var l=r._zr=Mr(e,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(x["retrieve2"])(i.useDirtyRect,s),useCoarsePointer:Object(x["retrieve2"])(i.useCoarsePointer,o),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=vx(Object(x["bind"])(l.flush,l),17),r._updateTheme(n),r._locale=ed(i.locale||Jh),r._coordSysMgr=new xp;var u=r._api=IS(r);function c(t,e){return t.__prio-e.__prio}return De(GS,c),De(FS,c),r._scheduler=new Xx(r,u,FS,GS),r._messageCenter=new LS,r._initEvents(),r.resize=Object(x["bind"])(r.resize,r),l.animation.on("frame",r._onframe,r),wS(l,r),SS(l,r),Object(x["setAsPrimitive"])(r),r}return f(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,n=this._api;if(kS(this),this[iS]){var i=this[iS].silent;this[eS]=!0,DS(this);try{pS(this),yS.update.call(this,null,this[iS].updateParams)}catch(o){throw this[eS]=!1,this[iS]=null,o}this._zr.flush(),this[eS]=!1,this[iS]=null,xS.call(this,i),_S.call(this,i)}else if(t.unfinished){var r=Ew;do{t.unfinished=!1;var a=Ri["d"].getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),mS(this,e),t.performVisualTasks(e),TS(this,this._model,n,"remain",{}),r-=Ri["d"].getTime()-a}while(r>0&&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[eS])if(this._disposed)ES(this.id);else{var i,r,a;if(Object(x["isObject"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,a=e.transition,e=e.notMerge),this[eS]=!0,DS(this),!this._model||e){var o=new Wf(this._api),s=this._theme,l=this._model=new Ef;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(t,{replaceMerge:r},HS);var u={seriesTransition:a,optionChanged:!0};if(n)this[iS]={silent:i,updateParams:u},this[eS]=!1,this.getZr().wakeUp();else{try{pS(this),yS.update.call(this,null,u)}catch(c){throw this[iS]=null,this[eS]=!1,c}this._ssr||this._zr.flush(),this[iS]=null,this[eS]=!1,xS.call(this,i),_S.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[eS])if(this._disposed)ES(this.id);else{var n=this._model;if(n){var i=e&&e.silent,r=null;this[iS]&&(null==i&&(i=this[iS].silent),r=this[iS].updateParams,this[iS]=null),this[eS]=!0,DS(this);try{this._updateTheme(t),n.setTheme(this._theme),pS(this),yS.update.call(this,{type:"setTheme"},r)}catch(a){throw this[eS]=!1,a}this[eS]=!1,xS.call(this,i),_S.call(this,i)}}},e.prototype._updateTheme=function(t){Object(x["isString"])(t)&&(t=WS[t]),t&&(t=Object(x["clone"])(t),t&&fg(t,!0),this._theme=t)},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||b.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(){var t=this._zr,e=t.storage.getDisplayList();return Object(x["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,i=[],r=this;Object(x["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(x["each"])(i,(function(t){t.group.ignore=!1})),a}ES(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,a=1/0;if(XS[n]){var o=a,s=a,l=-a,u=-a,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(x["each"])(US,(function(a,h){if(a.group===n){var d=e?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(Object(x["clone"])(t)),p=a.getDom().getBoundingClientRect();o=i(p.left,o),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}})),o*=h,s*=h,l*=h,u*=h;var d=l-o,p=u-s,f=Ri["d"].createCanvas(),g=Mr(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var y="";return Object(x["each"])(c,(function(t){var e=t.left-o,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new nu({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(x["each"])(c,(function(t){var e=new Xl({style:{x:t.left*h-o,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}ES(this.id)},e.prototype.convertToPixel=function(t,e,n){return vS(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return vS(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return vS(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=Ja(i,t);return Object(x["each"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(x["each"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n=n||a.containPoint(e,t))}else 0}),this)}),this),!!n}ES(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=Ja(n,t,{defaultMainType:"series"}),r=i.seriesModel;var a=r.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?a.indexOfRawIndex(i.dataIndex):null;return null!=o?a_(a,o,e):o_(a,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(x["each"])(RS,(function(e){var n=function(n){var i,r=t.getModel(),a=n.target,o="globalout"===e;if(o?i={}:a&&h_(a,(function(t){var e=wu(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=Object(x["extend"])({},e.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}));var e=this._messageCenter;Object(x["each"])(VS,(function(n,i){e.on(i,(function(e){t.trigger(i,e)}))})),c_(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?ES(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)ES(this.id);else{this._disposed=!0;var t=this.getDom();t&&ao(this.getDom(),qS,"");var e=this,n=e._api,i=e._model;Object(x["each"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(x["each"])(e._chartsViews,(function(t){t.dispose(i,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 US[e.id]}},e.prototype.resize=function(t){if(!this[eS])if(this._disposed)ES(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[iS]&&(null==i&&(i=this[iS].silent),n=!0,this[iS]=null),this[eS]=!0,DS(this);try{n&&pS(this),yS.update.call(this,{type:"resize",animation:Object(x["extend"])({duration:0},t&&t.animation)})}catch(r){throw this[eS]=!1,r}this[eS]=!1,xS.call(this,i),_S.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)ES(this.id);else if(Object(x["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),YS[t]){var n=YS[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?ES(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(x["extend"])({},t);return e.type=BS[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)ES(this.id);else if(Object(x["isObject"])(e)||(e={silent:!!e}),zS[t.type]&&this._model)if(this[eS])this._pendingActions.push(t);else{var n=e.silent;bS.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&b.browser.weChat&&this._throttledZrFlush(),xS.call(this,n),_S.call(this,n)}},e.prototype.updateLabelLayout=function(){p_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)ES(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t,e,n,i,r){if(t._disposed)ES(t.id);else{for(var a,o=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=Ja(o,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(a=c[e](o,l,i,r)))return a}0}}function e(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function n(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var a=r.get("zlevel")||0,o=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:a,z:o,idx:r.componentIndex,type:t,key:s})})),i){var r,a,o=e.concat(n);De(o,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(x["each"])(o,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,o=e.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}function i(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Uu&&t.states.emphasis?e.push("emphasis"):t.hoverState===Yu&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr;if("canvas"===n.painter.type){var i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++}));var a=r>Object(x["retrieve2"])(e.get("hoverLayerThreshold"),Qp.hoverLayerThreshold)&&!b.node&&!b.worker;(t._usingTHL||a)&&(e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){var e=t.states.emphasis;e&&e.hoverLayer!==fb&&(e.hoverLayer=a?pb:db)}))}})),t._usingTHL=a)}}function a(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=Kb(t);e.eachRendered((function(t){return Jb(t,n.z,n.zlevel),!0}))}}function s(t,e){e.eachRendered((function(t){if(!rh(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function l(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),a=n.get("duration"),o=a>0?{duration:a,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(rh(t))return;if(t instanceof Bl&&Qc(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=o;var n=t.getTextContent(),a=t.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&i(t)}}))}pS=function(t){__(t._model);var e=t._scheduler;e.restorePipelines(t._zr,t._model),e.prepareStageTasks(),fS(t,!0),fS(t,!1),e.plan()},fS=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,o=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&a[u];if(!c){var h=jo(t.type),d=e?bv.getClass(h.main,h.sub):px.getClass(h.sub);0,c=new d,c.init(n,s),a[u]=c,r.push(c),o.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),r.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},gS=function(t,e,n,i,r){var a=t._model;if(a.setUpdatePayload(n),i){var o,s=ro(n,i,r),l=n.excludeSeriesId;null!=l&&(o=Object(x["createHashMap"])(),Object(x["each"])(Aa(l),(function(t){var e=Ga(t,null);null!=e&&o.set(e,!0)}))),a&&a.eachComponent(s,(function(e){var i=o&&null!=o.get(e.id);if(!i)if(Kc(n))if(e instanceof vv)n.type!==Ku||n.notBlur||e.get(["emphasis","disabled"])||Lc(e,n,t._api);else{var r=Pc(e.mainType,e.componentIndex,n.name,t._api),a=r.focusSelf,s=r.dispatchers;n.type===Ku&&a&&!n.notBlur&&Dc(e.mainType,e.componentIndex,t._api),s&&Object(x["each"])(s,(function(t){n.type===Ku?wc(t):Sc(t)}))}else qc(n)&&e instanceof vv&&(Rc(e,n,t._api),Ec(e),AS(t))}),t),a&&a.eachComponent(s,(function(e){var n=o&&null!=o.get(e.id);n||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(x["each"])([].concat(t._componentsViews).concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},yS={prepareAndUpdate:function(t){pS(this),yS.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(t,n){var i=this._model,r=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(i){w_(i),i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),o.create(i,r),p_.trigger("coordsys:aftercreate",i,r),s.performDataProcessorTasks(i,t),mS(this,i),o.update(i,r),e(i),s.performVisualTasks(i,t);var l=i.get("backgroundColor")||"transparent";a.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&a.setDarkMode(u),MS(this,i,r,t,n),p_.trigger("afterupdate",i,r)}},updateTransform:function(t){var e=this,n=e._model,i=e._api;if(n){n.setUpdatePayload(t);var r=[];n.eachComponent((function(a,o){if(a!==Ou){var s=e.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,n,i,t);l&&l.update&&r.push(s)}else r.push(s)}}));var a=Object(x["createHashMap"])();n.eachSeries((function(r){var o=e._chartsMap[r.__viewId],s=r.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var l=o.updateTransform(r,n,i,t);l&&l.update&&a.set(r.uid,1)}else a.set(r.uid,1)})),e._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:a}),TS(e,n,i,t,{},a),p_.trigger("afterupdate",n,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),px.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),MS(this,n,this._api,t,{}),p_.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(t){t.getData().clearAllVisual()})),px.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var a=n.getViewOfComponentModel(r);a&&a.__alive&&a.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];r.updateVisual(e,i,n._api,t)})),p_.trigger("afterupdate",i,this._api))},updateLayout:function(t){yS.update.call(this,t)}},vS=t,mS=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},bS=function(t,e){var n=this,i=this.getModel(),r=t.type,a=t.escapeConnect,o=zS[r],s=(o.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&jo(s[0]);this[eS]=!0,DS(this);var c=[t],h=!1;t.batch&&(h=!0,c=Object(x["map"])(t.batch,(function(e){return e=Object(x["defaults"])(Object(x["extend"])({},e),t),e.batch=null,e})));var d,p=[],f=[],g=o.nonRefinedEventType,y=qc(t),v=Kc(t);if(v&&Ac(this._api),Object(x["each"])(c,(function(e){var r=o.action(e,i,n._api);if(o.refineEvent?f.push(r):d=r,d=d||Object(x["extend"])({},e),d.type=g,p.push(d),v){var a=to(t),s=a.queryOptionMap,c=a.mainTypeSpecified,h=c?s.keys()[0]:"series";gS(n,l,e,h),AS(n)}else y?(gS(n,l,e,"series"),AS(n)):u&&gS(n,l,e,u.main,u.sub)})),"none"!==l&&!v&&!y&&!u)try{this[iS]?(pS(this),yS.update.call(this,t),this[iS]=null):yS[l].call(this,t)}catch(w){throw this[eS]=!1,w}if(d=h?{type:g,escapeConnect:a,batch:p}:p[0],this[eS]=!1,!e){var m=void 0;if(o.refineEvent){var b=o.refineEvent(f,t,i,this._api).eventContent;Object(x["assert"])(Object(x["isObject"])(b)),m=Object(x["defaults"])({type:o.refinedEventType},b),m.fromAction=t.type,m.fromActionPayload=t,m.escapeConnect=!0}var _=this._messageCenter;_.trigger(d.type,d),m&&_.trigger(m.type,m)}},xS=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();bS.call(this,n,t)}},_S=function(t){!t&&this.trigger("updated")},wS=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[iS]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")}))},SS=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=h_(n,Xc);i&&(jc(i,t,e._api),AS(e))})).on("mouseout",(function(t){var n=t.target,i=h_(n,Xc);i&&(Nc(i,t,e._api),AS(e))})).on("click",(function(t){var n=t.target,i=h_(n,(function(t){return null!=wu(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",a=wu(i);e._api.dispatchAction({type:r,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}}))},MS=function(t,e,i,r,a){n(e),OS(t,e,i,r,a),Object(x["each"])(t._chartsViews,(function(t){t.__alive=!1})),TS(t,e,i,r,a),Object(x["each"])(t._chartsViews,(function(t){t.__alive||t.remove(e,i)}))},OS=function(t,e,n,i,r,a){Object(x["each"])(a||t._componentsViews,(function(t){var r=t.__model;s(r,t),t.render(r,e,n,i),o(r,t),l(r,t)}))},TS=function(t,e,n,i,u,c){var h=t._scheduler;u=Object(x["extend"])(u||{},{updatedSeries:e.getSeries()}),p_.trigger("series:beforeupdate",e,n,u);var d=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,i),s(e,n),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(d=!0),n.group.silent=!!e.get("silent"),a(e,n),Ec(e)})),h.unfinished=d||h.unfinished,p_.trigger("series:layoutlabels",e,n,u),p_.trigger("series:transition",e,n,u),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];o(e,n),l(e,n)})),r(t,e),p_.trigger("series:afterupdate",e,n,u)},AS=function(t){t[rS]=!0,t.getZr().wakeUp()},DS=function(t){t[nS]=(t[nS]+1)%1e6},kS=function(t){t[rS]&&(t.getZr().storage.traverse((function(t){rh(t)||i(t)})),t[rS]=!1)},IS=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return f(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){wc(e,n),AS(t)},n.prototype.leaveEmphasis=function(e,n){Sc(e,n),AS(t)},n.prototype.enterBlur=function(e){Mc(e),AS(t)},n.prototype.leaveBlur=function(e){Oc(e),AS(t)},n.prototype.enterSelect=function(e){Tc(e),AS(t)},n.prototype.leaveSelect=function(e){Ic(e),AS(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getECUpdateCycleVersion=function(){return t[nS]},n.prototype.usingTHL=function(){return t._usingTHL},n}(Bu))(t)},CS=function(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[oS]=e}}Object(x["each"])(BS,(function(n,i){t._messageCenter.on(i,(function(n){if(XS[t.group]&&t[oS]!==sS){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Object(x["each"])(US,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,sS),Object(x["each"])(r,(function(t){t[oS]!==lS&&t.dispatchAction(i)})),e(r,uS)}}))}))}}(),e}(q),NS=jS.prototype;NS.on=cS("on"),NS.off=cS("off"),NS.one=function(t,e,n){var i=this;function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];e&&e.apply&&e.apply(this,n),i.off(t,r)}If("ECharts#one is deprecated."),this.on.call(this,t,r,n)};var RS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ES(t){0}var zS={},BS={},VS={},FS=[],HS=[],GS=[],WS={},YS={},US={},XS={},$S=+new Date-0,ZS=+new Date-0,qS="_echarts_instance_";function KS(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=nM(t);if(r)return r;0}var a=new jS(t,e,n);return a.id="ec_"+$S++,US[a.id]=a,i&&ao(t,qS,a.id),CS(a),p_.trigger("afterinit",a),a}function QS(t){if(Object(x["isArray"])(t)){var e=t;t=null,Object(x["each"])(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+ZS++,Object(x["each"])(e,(function(e){e.group=t}))}return XS[t]=!0,t}function JS(t){XS[t]=!1}var tM=JS;function eM(t){Object(x["isString"])(t)?t=US[t]:t instanceof jS||(t=nM(t)),t instanceof jS&&!t.isDisposed()&&t.dispose()}function nM(t){return US[oo(t,qS)]}function iM(t){return US[t]}function rM(t,e){WS[t]=e}function aM(t){Object(x["indexOf"])(HS,t)<0&&HS.push(t)}function oM(t,e){vM(FS,t,e,Hw)}function sM(t){uM("afterinit",t)}function lM(t){uM("afterupdate",t)}function uM(t,e){p_.on(t,e)}function cM(t,e,n){var i,r,a,o,s;function l(t){return t.toLowerCase()}Object(x["isFunction"])(e)&&(n=e,e=""),Object(x["isObject"])(t)?(i=t.type,r=t.event,o=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),a=t.refineEvent):(i=t,r=e),r=l(r||i);var u=a?l(i):r;zS[i]||(Object(x["assert"])(aS.test(i)&&aS.test(r)),a&&Object(x["assert"])(r!==i),zS[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:o,action:n,refineEvent:a},VS[r]=1,a&&s&&(VS[u]=1),BS[u]=i)}function hM(t,e){xp.register(t,e)}function dM(t){var e=xp.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function pM(t,e){m_(t,e)}function fM(t,e){vM(GS,t,e,Ww,"layout",!0)}function gM(t,e){vM(GS,t,e,Xw,"visual",!0)}var yM=[];function vM(t,e,n,i,r,a){if((Object(x["isFunction"])(e)||Object(x["isObject"])(e))&&(n=e,e=i),!(Object(x["indexOf"])(yM,n)>=0)){yM.push(n);var o=Xx.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function mM(t,e){YS[t]=e}function bM(t){Object(Ri["e"])({createCanvas:t})}function xM(t,e,n){var i=y_("registerMap");i&&i(t,e,n)}function _M(t){var e=y_("getMap");return e&&e(t)}var wM=vy;function SM(t,e,n,i){return{eventContent:{selected:zc(n),isFromClick:e.isFromClick||!1}}}gM(Uw,Tx),gM(Zw,Cx),gM(Zw,Ax),gM(Uw,i_),gM(Zw,r_),gM(Jw,Pw),aM(fg),oM(Bw,gg),mM("default",Dx),cM({type:Ku,event:Ku,update:Ku},x["noop"]),cM({type:Qu,event:Qu,update:Qu},x["noop"]),cM({type:Ju,event:nc,update:Ju,action:x["noop"],refineEvent:SM,publishNonRefinedEvent:!0}),cM({type:tc,event:nc,update:tc,action:x["noop"],refineEvent:SM,publishNonRefinedEvent:!0}),cM({type:ec,event:nc,update:ec,action:x["noop"],refineEvent:SM,publishNonRefinedEvent:!0}),rM("default",{}),rM("dark",Jx);var MM={},OM=[],TM={registerPreprocessor:aM,registerProcessor:oM,registerPostInit:sM,registerPostUpdate:lM,registerUpdateLifecycle:uM,registerAction:cM,registerCoordinateSystem:hM,registerLayout:fM,registerVisual:gM,registerTransform:wM,registerLoading:mM,registerMap:xM,registerImpl:g_,PRIORITY:tS,ComponentModel:Hp,ComponentView:bv,SeriesModel:vv,ChartView:px,registerComponentModel:function(t){Hp.registerClass(t)},registerComponentView:function(t){bv.registerClass(t)},registerSeriesModel:function(t){vv.registerClass(t)},registerChartView:function(t){px.registerClass(t)},registerCustomSeries:function(t,e){m_(t,e)},registerSubTypeDefaulter:function(t,e){Hp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Cr(t,e)}};function IM(t){Object(x["isArray"])(t)?Object(x["each"])(t,(function(t){IM(t)})):Object(x["indexOf"])(OM,t)>=0||(OM.push(t),Object(x["isFunction"])(t)&&(t={install:t}),t.install(TM))}function CM(t){return null==t?0:t.length||1}function AM(t){return t}var kM=function(){function t(t,e,n,i,r,a){this._old=t,this._new=e,this._oldKeyGetter=n||AM,this._newKeyGetter=i||AM,this.context=r,this._diffModeMultiple="multiple"===a}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={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var a=0;a<t.length;a++){var o=i[a],s=n[o],l=CM(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],a=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<r.length;o++){var s=r[o],l=n[s],u=i[s],c=CM(l),h=CM(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],a=CM(r);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(r[o]);else 1===a&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,a=0;a<t.length;a++){var o="_ec_"+this[i](t[a],a);if(r||(n[a]=o),e){var s=e[o],l=CM(s);0===l?(e[o]=a,r&&n.push(o)):1===l?e[o]=[s,a]:s.push(a)}}},t}(),DM=kM,LM=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function PM(t,e){var n={},i=n.encode={},r=Object(x["createHashMap"])(),a=[],o=[],s={};Object(x["each"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var u=n.coordDimIndex;jM(i,l)[u]=e,n.isExtraCoord||(r.set(l,1),RM(n.type)&&(a[0]=e),jM(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(e)}Tu.each((function(t,e){var r=jM(i,e),a=n.otherDims[e];null!=a&&!1!==a&&(r[a]=n.name)}))}));var l=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(x["map"])(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(a=c.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,n.userOutput=new LM(s,e),n}function jM(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function NM(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function RM(t){return!("ordinal"===t||"time"===t)}var EM=function(){function t(t){this.otherDims={},null!=t&&x["extend"](this,t)}return t}(),zM=EM,BM=Ka(),VM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},FM=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=WM(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(x["retrieve2"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=jg(this.source),n=!YM(t),i="",r=[],a=0,o=0;a<t;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=e?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var h=this.getSourceDimension(a);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=VM[l]||"f",u&&(i+=u.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:r,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var a=this.getSourceDimension(e);a&&(i=a.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function HM(t){return t instanceof FM}function GM(t){for(var e=Object(x["createHashMap"])(),n=0;n<(t||[]).length;n++){var i=t[n],r=Object(x["isObject"])(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function WM(t){var e=BM(t);return e.dimNameMap||(e.dimNameMap=GM(t.dimensionsDefine))}function YM(t){return t>30}var UM,XM,$M,ZM,qM,KM,QM,JM=x["isObject"],tO=x["map"],eO="undefined"===typeof Int32Array?Array:Int32Array,nO="e\0\0",iO=-1,rO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],aO=["_approximateExtent"],oO=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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;HM(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=x["isString"](c)?new zM({name:c}):c instanceof zM?c:new zM(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};a.push(d),r[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(o[d]=[]),i&&(h.storeDimIndex=u),0===p.itemName&&(this._nameDimIdx=h.storeDimIndex),0===p.itemId&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=x["createHashMap"]();x["each"](a,(function(t){f.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(x["isNumber"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof Dy&&(i=t),!i){var a=this.dimensions,o=Og(t)||x["isArrayLike"](t)?new Ng(t,a.length):t;i=new Dy;var s=tO(a,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(o,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=PM(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=i;o<r;o++){var s=o-i;this._nameList[o]=e[s],a&&QM(this,o)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Du&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList,o=i.getSource().sourceFormat,s=o===Iu;if(s&&!i.pure)for(var l=[],u=t;u<e;u++){var c=i.getItem(u,l);if(!this.hasItemOption&&Pa(c)&&(this.hasItemOption=!0),c){var h=c.name;null==r[u]&&null!=h&&(r[u]=Ga(h,null));var d=c.id;null==a[u]&&null!=d&&(a[u]=Ga(d,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)QM(this,u);UM(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){JM(t)?x["extend"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=$M(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return XM(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return x["isArray"](t)?i.getValues(tO(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n&&n[e];return null==i||isNaN(i)?iO:i},t.prototype.each=function(t,e,n){x["isFunction"](t)&&(n=e,e=t,t=[]);var i=n||this,r=tO(ZM(t),this._getStoreDimIndex,this);this._store.each(r,i?x["bind"](e,i):e)},t.prototype.filterSelf=function(t,e,n){x["isFunction"](t)&&(n=e,e=t,t=[]);var i=n||this,r=tO(ZM(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?x["bind"](e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=x["keys"](t),r=[];return x["each"](i,(function(i){var a=e._getStoreDimIndex(i);n[a]=t[i],r.push(a)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){x["isFunction"](t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,a=tO(ZM(t),this._getStoreDimIndex,this),o=KM(this);return o._store=this._store.map(a,r?x["bind"](e,r):e),o},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var a=tO(ZM(t),this._getStoreDimIndex,this);this._store.modify(a,r?x["bind"](e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=KM(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=KM(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=KM(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Vh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new DM(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return XM(t,e)}),(function(t){return XM(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},JM(t)?x["extend"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),x["isArray"](r)?r=r.slice():JM(r)&&(r=x["extend"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,JM(e)?x["extend"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){JM(t)?x["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?x["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;Su(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){x["each"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tO(this.dimensions,this._getDimInfo,this),this.hostModel)),qM(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];x["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(x["slice"](arguments)))})},t.internalField=function(){UM=function(t){var e=t._invertedIndicesMap;x["each"](e,(function(n,i){var r=t._dimInfos[i],a=r.ordinalMeta,o=t._store;if(a){n=e[i]=new eO(a.categories.length);for(var s=0;s<n.length;s++)n[s]=iO;for(s=0;s<o.count();s++)n[o.get(r.storeDimIndex,s)]=s}}))},$M=function(t,e,n){return Ga(t._getCategory(e,n),null)},XM=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=$M(t,t._idDimIdx,e)),null==n&&(n=nO+e),n},ZM=function(t){return x["isArray"](t)||(t=null!=t?[t]:[]),t},KM=function(e){var n=new t(e._schema?e._schema:tO(e.dimensions,e._getDimInfo,e),e.hostModel);return qM(n,e),n},qM=function(t,e){x["each"](rO.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,x["each"](aO,(function(n){t[n]=x["clone"](e[n])})),t._calculationInfo=x["extend"]({},e._calculationInfo)},QM=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,a=t._idDimIdx,o=n[e],s=i[e];if(null==o&&null!=r&&(n[e]=o=$M(t,r,e)),null==s&&null!=a&&(i[e]=s=$M(t,a,e)),null==s&&null!=o){var l=t._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}(),sO=oO;function lO(t,e){return uO(t,e).dimensions}function uO(t,e){Og(t)||(t=Ig(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(x["createHashMap"])(),a=[],o=cO(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&YM(o),l=i===t.dimensionsDefine,u=l?WM(t):GM(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var h=Object(x["createHashMap"])(c),d=new My(o),p=0;p<d.length;p++)d[p]=-1;function f(t){var e=d[t];if(e<0){var n=i[t],r=Object(x["isObject"])(n)?n:{name:n},o=new zM,s=r.name;null!=s&&null!=u.get(s)&&(o.name=o.displayName=s),null!=r.type&&(o.type=r.type),null!=r.displayName&&(o.displayName=r.displayName);var l=a.length;return d[t]=l,o.storeDimIndex=t,a.push(o),o}return a[e]}if(!s)for(p=0;p<o;p++)f(p);h.each((function(t,e){var n=Aa(t).slice();if(1===n.length&&!Object(x["isString"])(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);Object(x["each"])(n,(function(t,n){var r=Object(x["isString"])(t)?u.get(t):t;null!=r&&r<o&&(i[n]=r,y(f(r),e,n))}))}}));var g=0;function y(t,e,n){null!=Tu.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}Object(x["each"])(n,(function(t){var e,n,i,r;if(Object(x["isString"])(t))e=t,r={};else{r=t,e=r.name;var a=r.ordinalMeta;r.ordinalMeta=null,r=Object(x["extend"])({},r),r.ordinalMeta=a,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(s=Aa(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<o&&null!=f(g).coordDim)g++;g<o&&s.push(g++)}Object(x["each"])(s,(function(t,a){var o=f(t);if(l&&null!=r.type&&(o.type=r.type),y(Object(x["defaults"])(o,r),e,a),null==o.name&&n){var s=n[a];!Object(x["isObject"])(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}i&&Object(x["defaults"])(o.otherDims,i)}))}}));var v=e.generateCoord,m=e.generateCoordCount,b=null!=m;m=v?m||1:0;var _=v||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(x["each"])(a,(function(t){w(t)})),a.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var S=0;S<o;S++){var M=f(S),O=M.coordDim;null==O&&(M.coordDim=hO(_,r,b),M.coordDimIndex=0,(!v||m<=0)&&(M.isExtraCoord=!0),m--),w(M),null!=M.type||sf(t,S)!==Jp.Must&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}return Mo(a,(function(t){return t.name}),(function(t,e){e>0&&(t.name=t.name+(e-1))})),new FM({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function cO(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(x["each"])(e,(function(t){var e;Object(x["isObject"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function hO(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}var dO=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(x["createHashMap"])(),this.categoryAxisMap=Object(x["createHashMap"])(),this.coordSysName=t}return t}();function pO(t){var e=t.get("coordinateSystem"),n=new dO(e),i=fO[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var fO={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",eo).models[0],a=t.getReferringComponents("yAxis",eo).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",a),gO(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),gO(a)&&(i.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",eo).models[0];e.coordSysDims=["single"],n.set("single",r),gO(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",eo).models[0],a=r.findAxisModel("radiusAxis"),o=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),gO(a)&&(i.set("radius",a),e.firstCategoryDimIndex=0),gO(o)&&(i.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,a=r.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();Object(x["each"])(a.parallelAxisIndex,(function(t,a){var s=r.getComponent("parallelAxis",t),l=o[a];n.set(l,s),gO(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=a))}))},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",eo).models[0];e.coordSysDims=["x","y"];var a=r.getDimensionModel("x"),o=r.getDimensionModel("y");n.set("x",a),n.set("y",o),i.set("x",a),i.set("y",o)}};function gO(t){return"category"===t.get("type")}function yO(t,e,n){n=n||{};var i,r,a,o=n.byIndex,s=n.stackedCoordDimension;vO(e)?i=e:(r=e.schema,i=r.dimensions,a=e.store);var l,u,c,h,d=!(!t||!t.get("stack")),p=!0;function f(t){return"ordinal"!==t.type&&"time"!==t.type}if(Object(x["each"])(i,(function(t,e){Object(x["isString"])(t)&&(i[e]=t={name:t}),f(t)||(p=!1)})),Object(x["each"])(i,(function(t,e){d&&!t.isExtraCoord&&(o||l||!t.ordinalMeta||(l=t),u||!f(t)||p&&("x"===t.coordDim||"angle"===t.coordDim)||s&&s!==t.coordDim||(u=t))})),!u||o||l||(o=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=u.coordDim,y=u.type,v=0;Object(x["each"])(i,(function(t){t.coordDim===g&&v++}));var m={name:c,coordDim:g,coordDimIndex:v,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},b={name:h,coordDim:h,coordDimIndex:v+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(a&&(m.storeDimIndex=a.ensureCalculationDimension(h,y),b.storeDimIndex=a.ensureCalculationDimension(c,y)),r.appendCalculationDimension(m),r.appendCalculationDimension(b)):(i.push(m),i.push(b))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:h,stackResultDimension:c}}function vO(t){return!HM(t.schema)}function mO(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function bO(t,e){return mO(t,e)?t.getCalculationInfo("stackResultDimension"):e}function xO(t,e){var n,i=t.get("coordinateSystem"),r=xp.get(i);return e&&e.coordSysDims&&(n=x["map"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=NM(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function _O(t,e,n){var i,r;return n&&x["each"](t,(function(t,a){var o=t.coordDim,s=n.categoryAxisMap.get(o);s&&(null==i&&(i=a),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}function wO(t,e,n){n=n||{};var i,r=e.getSourceManager(),a=!1;t?(a=!0,i=Ig(t)):(i=r.getSource(),a=i.sourceFormat===Iu);var o=pO(e),s=xO(e,o),l=n.useEncodeDefaulter,u=x["isFunction"](l)?l:l?x["curry"](nf,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=uO(i,c),d=_O(h.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(h),f=yO(e,{schema:h,store:p}),g=new sO(h,e);g.setCalculationInfo(f);var y=null!=d&&SO(i)?function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)}:null;return g.hasItemOption=!1,g.initData(a?i:p,null,y),g}function SO(t){if(t.sourceFormat===Iu){var e=MO(t.data||[]);return!x["isArray"](La(e))}}function MO(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var OO=wO,TO=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Wo(TO);var IO=TO,CO=0,AO=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++CO,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Object(x["map"])(i,kO);return new t({categories:r,needCollect:!r,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(x["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(x["createHashMap"])(this.categories))},t}();function kO(t){return Object(x["isObject"])(t)&&null!=t.value?t.value:t+""}var DO=AO,LO=0,PO=1,jO={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},NO=Object(x["keys"])(jO),RO=2,EO=3;function zO(t,e,n){var i;t=t||{};var r=od();if(r){var a=r.createBreakScaleMapper(e,n);a.hasBreaks()&&(Object(x["each"])(NO,(function(e){a[e]&&(t[e]=Object(x["bind"])(a[e],a))})),i=a)}return null==i&&YO(t,n),{brk:i,mapper:t}}function BO(t,e){Object(x["each"])(NO,(function(n){t[n]=e[n]}))}function VO(t,e){t.freeze=x["noop"]}function FO(t){return t.getExtentUnsafe(LO,RO)}function HO(t,e){return t.getExtentUnsafe(PO,e)||t.getExtentUnsafe(LO,e)}function GO(t){var e=HO(t,EO);return e[1]-e[0]}function WO(t){var e=t.getExtentUnsafe(LO,EO);return e[1]-e[0]}function YO(t,e){var n=t||{},i=[];return n._extents=i,i[LO]=e?e.slice():po(),Object(x["extend"])(n,UO),n}var UO={needTransform:function(){return!1},normalize:function(t){var e=this._extents[PO]||this._extents[LO];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[PO]||this._extents[LO];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=HO(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[LO].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){XO(this._extents,LO,t,e)},setExtent2:function(t,e,n){var i=this._extents;i[t]||(i[t]=i[LO].slice()),XO(i,t,e,n)},freeze:function(){0}};function XO(t,e,n,i){bo(n,i)&&(t[e][0]=n,t[e][1]=i)}function $O(t){return ZO(t)||KO(t)}function ZO(t){return"interval"===t.type}function qO(t){return"time"===t.type}function KO(t){return"log"===t.type}function QO(t){return"ordinal"===t.type}function JO(t){var e=ga(t),n=Hr(10,e),i=Br(t/n);return i?2===i?i=3:3===i?i=5:i*=2:i=1,Jr(i*n,-e)}function tT(t){return na(t)+2}function eT(t,e){return Gr(t)/Gr(e)}function nT(t,e,n){var i=n&&n.lookup;if(i)for(var r=0;r<i.from.length;r++)if(t===i.from[r])return i.to[r];return Hr(e,t)}function iT(t,e,n){var i=t.slice();if(i[0]===i[1]){var r=n&&n.ctnShp;if(0!==i[0]){var a=zr(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else r?(i[0]=-1,i[1]=1):i[1]=1}return mo(i[0])&&mo(i[1])||(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function rT(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function aT(t,e){return t=t||e,Br(Er(t,1))}function oT(t,e,n){var i=FO(t),r=i[0],a=t.count(),o=Math.max((e||0)+1,1);0!==r&&o>1&&a/o>2&&(r=Math.round(Math.ceil(r/o)*o)),r!==i[0]&&l(i[0],!0,!0);for(var s=r;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);function l(t,e,i){n({value:t,offInterval:e},i)}s-o!==i[1]&&l(i[1],!0,!0)}var sT=function(t){function e(n){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,BO(i,e.decoratedMethods);var r=n.ordinalMeta;r||(r=new DO({})),Object(x["isArray"])(r)&&(r=new DO({categories:Object(x["map"])(r,(function(t){return Object(x["isObject"])(t)?t.value:t}))})),i._ordinalMeta=r;var a=zO(null,null,n.extent||[0,r.categories.length-1]);return i._mapper=a.mapper,VO(i,a.mapper),i}return f(e,t),e.parse=function(t){return null==t?t=NaN:Object(x["isString"])(t)?(t=this._ordinalMeta.getOrdinal(t),null==t&&(t=NaN)):t=Br(t),t},e.prototype.getTicks=function(){var t=[];return oT(this,0,(function(e){t.push(e)})),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,a=this._ordinalMeta.categories.length,o=Rr(a,e.length);r<o;++r){var s=n[r]=e[r];i[s]=r}for(var l=0;r<a;++r){while(null!=i[l])l++;n[r]=l,i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){var t=FO(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Br(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,n){return this._mapper.setExtent2(t,e,n)}},e}(IO);IO.registerClass(sT);var lT=sT;function uT(t,e,n,i){for(var r=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<r.length;s++){var l=r[s],u=r[s-1];if(!u["break"]&&!l["break"]){var c=0,h=[],d=l.value-u.value,p=d/e,f=tT(p);while(c<e-1){var g=Jr(u.value+(c+1)*p,f);g>o[0]&&g<o[1]&&h.push(g),c++}var y=od();y&&y.pruneTicksByBreak("auto",h,n,(function(t){return t}),i,o),a.push(h)}}return a}var cT=function(t){function e(n){var i=t.call(this)||this;i.type="interval",i.parse=e.parse,n=n||{};var r=sd(i,n),a=zO(i,r,null);return i.brk=a.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return f(e,t),e.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.getConfig=function(){return Object(x["clone"])(this._cfg)},e.prototype.setConfig=function(t){var e=FO(this);this._cfg=t=Object(x["clone"])(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=tT(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,n=e.interval,i=FO(this),r=e.niceExtent,a=e.intervalPrecision,o=od(),s=this.brk,l=o&&s,u=[];if(!n)return u;if("only_break"===t.breakTicks&&l)return o.addBreaksToTicks(u,s.breaks,i),u;var c=3e3;i[0]<r[0]&&u.push({value:t.expandToNicedExtent?Jr(r[0]-n,a):i[0]});for(var h=function(t,e){return Br((e-t)/n)},d=e.intervalCount,p=r[0],f=0;;f++){if(null==d){if(p>r[1]||!isFinite(p)||!isFinite(r[1]))break}else{if(f>d)break;p=Rr(p,r[1]),f===d&&(p=r[1])}if(u.push({value:p}),p=Jr(p+n,a),s){var g=s.calcNiceTickMultiple(p,h);g>=0&&(p=Jr(p+g*n,a))}if(u.length>0&&p===u[u.length-1].value)break;if(u.length>c)return[]}var y=u.length?u[u.length-1].value:r[1];return i[1]>y&&u.push({value:t.expandToNicedExtent?Jr(y+n,a):i[1]}),l&&o.pruneTicksByBreak(t.pruneByBreak,u,s.breaks,(function(t){return t.value}),e.interval,i),l&&"none"!==t.breakTicks&&o.addBreaksToTicks(u,s.breaks,i),u},e.prototype.getMinorTicks=function(t){return uT(this,t,ld(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=na(t.value)||0:"auto"===n&&(n=this._cfg.intervalPrecision);var i=Jr(t.value,n,!0);return Ud(i)},e.type="interval",e}(IO);IO.registerClass(cT);var hT=cT,dT=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},pT=function(t){function e(n){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=n.locale,i._useUTC=n.useUTC,i._interval=0;var r=sd(i,n),a=zO(i,r,null);return i.brk=a.brk,i}return f(e,t),e.prototype.getLabel=function(t){return Cd(t.value,bd[Id(Od(this._minLevelUnit))]||bd.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,n){return Ad(t,e,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=FO(this),i=od(),r=this.brk,a=i&&r,o=[];if(!e)return o;var s=this._useUTC;if(a&&"only_break"===t.breakTicks)return od().addBreaksToTicks(o,r.breaks,n),o;o=ST(this._minLevelUnit,this._approxInterval,s,n,WO(this),r);var l=xd.length-1,u=0;return Object(x["each"])(o,(function(t){t.time&&(l=Math.min(l,Object(x["indexOf"])(xd,t.time.upperTimeUnit)),u=Math.max(u,t.time.level))})),a&&od().pruneTicksByBreak(t.pruneByBreak,o,r.breaks,(function(t){return t.value}),this._approxInterval,n),a&&"none"!==t.breakTicks&&od().addBreaksToTicks(o,r.breaks,n,(function(t){for(var e=Math.max(Object(x["indexOf"])(xd,kd(t.vmin,s)),Object(x["indexOf"])(xd,kd(t.vmax,s))),n=0,i=0;i<xd.length;i++)if(!gT(xd[i],t.vmin,t.vmax,s)){n=i;break}var r=Math.min(n,l),a=Math.max(r,e);return{level:u,lowerTimeUnit:xd[a],upperTimeUnit:xd[r]}})),o},e.prototype.getMinorTicks=function(t){return uT(this,t,ld(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Object(x["isNumber"])(t)?Math.round(t):+pa(t)},e.type="time",e}(IO),fT=[["second",cd],["minute",hd],["hour",dd],["quarter-day",6*dd],["half-day",12*dd],["day",1.2*pd],["half-week",3.5*pd],["week",7*pd],["month",31*pd],["quarter",95*pd],["half-year",fd/2],["year",fd]];function gT(t,e,n,i){return Dd(new Date(e),t,i).getTime()===Dd(new Date(n),t,i).getTime()}function yT(t,e){return t/=pd,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function vT(t){var e=30*pd;return t/=e,t>6?6:t>3?3:t>2?2:1}function mT(t){return t/=dd,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function bT(t,e){return t/=e?hd:cd,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function xT(t){return Er(va(t,!0),1)}function _T(t,e,n){var i=Math.max(0,Object(x["indexOf"])(xd,e)-1);return Dd(new Date(t),xd[i],n).getTime()}function wT(t,e){var n=new Date(0);n[t](1);var i=n.getTime();n[t](1+e);var r=n.getTime()-i;return function(t,e){return Math.max(0,Math.round((e-t)/r))}}function ST(t,e,n,i,r,a){var o=3e3,s=_d,l=0;function u(t,e,n,r,s,u,c){var h=wT(s,t),d=e,p=new Date(d);while(d<n&&d<=i[1]){if(c.push({value:d}),l++>o){0;break}if(p[s](p[r]()+t),d=p.getTime(),a){var f=a.calcNiceTickMultiple(d,h);f>0&&(p[s](p[r]()+f*t),d=p.getTime())}}c.push({value:d,notAdd:d>i[1]})}function c(t,r,a){var o=[],s=!r.length;if(!gT(Od(t),i[0],i[1],n)){s&&(r=[{value:_T(i[0],t,n)},{value:i[1]}]);for(var l=0;l<r.length-1;l++){var c=r[l].value,h=r[l+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/pd/365)),p=Ld(n),f=Bd(n);break;case"half-year":case"quarter":case"month":d=vT(e),p=Pd(n),f=Vd(n);break;case"week":case"half-week":case"day":d=yT(e,31),p=jd(n),f=Fd(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=mT(e),p=Nd(n),f=Hd(n);break;case"minute":d=bT(e,!0),p=Rd(n),f=Gd(n);break;case"second":d=bT(e,!1),p=Ed(n),f=Wd(n);break;case"millisecond":d=xT(e),p=zd(n),f=Yd(n);break}h>=i[0]&&c<=i[1]&&u(d,c,h,p,f,g,o),"year"===t&&a.length>1&&0===l&&a.unshift({value:a[0].value-d})}}for(l=0;l<o.length;l++)a.push(o[l])}}for(var h=[],d=[],p=0,f=0,g=0;g<s.length;++g){var y=Od(s[g]);if(Td(s[g])){c(s[g],h[h.length-1]||[],d);var v=s[g+1]?Od(s[g+1]):null;if(y!==v){if(d.length){f=p,d.sort((function(t,e){return t.value-e.value}));for(var m=[],b=0;b<d.length;++b){var _=d[b].value;0!==b&&d[b-1].value===_||(m.push(d[b]),_>=i[0]&&_<=i[1]&&p++)}var w=r/e;if(p>1.5*w&&f>w/1.5)break;if(h.push(m),p>w||t===s[g])break}d=[]}}}var S=Object(x["filter"])(Object(x["map"])(h,(function(t){return Object(x["filter"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),M=S.length-1,O=[];for(g=0;g<S.length;++g)for(var T=S[g],I=0;I<T.length;++I){var C=kd(T[I].value,n);O.push({value:T[I].value,time:{level:M-g,upperTimeUnit:C,lowerTimeUnit:C}})}Mo(O,Oo,null),O.sort((function(t,e){return t.value-e.value}));var A=O[0],k=O[O.length-1],D=kd(i[0],n),L=kd(i[1],n);return(!A||A.value>i[0])&&O.unshift({value:i[0],time:{level:0,upperTimeUnit:D,lowerTimeUnit:D},notNice:!0}),(!k||k.value<i[1])&&O.push({value:i[1],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),O}var MT=function(t,e){var n=t.getExtent();if(n[0]===n[1]&&(n[0]-=pd,n[1]+=pd),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-pd}t.setExtent(n[0],n[1]);var r=aT(e.splitNumber,10),a=WO(t)/r,o=e.minInterval,s=e.maxInterval;null!=o&&a<o&&(a=o),null!=s&&a>s&&(a=s);var l=fT.length,u=Math.min(dT(fT,a,0,l),l-1),c=fT[u][1],h=fT[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:c,minLevelUnit:h})};IO.registerClass(pT);var OT=pT,TT=0,IT=1,CT=2,AT=function(t){function e(n){var i=t.call(this)||this;i.type="log",i.parse=hT.parse,i.base=n.logBase||10;var r=[],a=[],o=i._lookup={from:r,to:a};r[TT]=r[IT]=a[TT]=a[IT]=NaN,BO(i,e.mapperMethods);var s=od(),l=n.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},CT,u),i.powStub=new hT({breakParsed:u.original}),i.intervalStub=new hT({breakParsed:u.transformed}),VO(i,i.intervalStub),i}return f(e,t),e.prototype.getTicks=function(t){var e=this.base,n=this.powStub,i=od(),r=this.intervalStub,a=r.getExtent(),o=n.getExtent(),s={lookup:{from:a,to:o}};return Object(x["map"])(r.getTicks(t||{}),(function(t){var r,a=t.value,o=nT(a,e,s);if(i){var l=i.getTicksBreakOutwardTransform(this,t,ld(n),this._lookup);l&&(r=l.vBreak,o=l.tickVal)}return{value:o,break:r}}),this)},e.prototype.getMinorTicks=function(t){return uT(this,t,ld(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(eT(t,this.base))},scale:function(t){return nT(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){return t=eT(t,this.base),e&&e.depth===RO?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var n=e?e.depth:null;return kT.depth=n,DT.lookup=this._lookup,nT(n===RO?t:this.intervalStub.transformOut(t,kT),this.base,DT)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(LO,t,e)},setExtent2:function(t,e,n){if(!(!bo(e,n)||e<=0||n<=0)){var i=LT,r=LT;if(t===LO){var a=this._lookup;i=a.to,r=a.from}this.powStub.setExtent2(t,i[TT]=e,i[IT]=n);var o=this.base;this.intervalStub.setExtent2(t,r[TT]=eT(e,o),r[IT]=eT(n,o))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return bo(e[0],e[1])&&Oa(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(IO);IO.registerClass(AT);var kT={},DT={},LT=[],PT=AT,jT={value:1,category:1,time:1,log:1},NT=Ka();function RT(t){var e=t.get("type");return null!=e&&(x["hasOwn"](jT,e)||IO.getClass(e))||(e="value"),e}function ET(t,e,n){var i,r=od();switch(r&&(i=KT(t,e,n)),e){case"category":return new lT({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:po()});case"time":return new OT({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new PT({logBase:t.get("logBase"),breakOption:i});case"value":return new hT({breakOption:i});default:return new(IO.getClass(e)||hT)({})}}function zT(t,e,n){var i=n?HO(t,null):t.getExtentUnsafe(LO,null),r=i[0],a=i[1];return bo(r,a)?r===e||a===e?VT:r<e&&a>e?BT:FT:FT}var BT=1,VT=2,FT=3;function HT(t){NT(t).noOnMyZero=!0}function GT(t){return NT(t).noOnMyZero}function WT(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n=wd(e);return function(e,i){return t.scale.getFormattedLabel(e,i,n)}}if(x["isString"](e))return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r};if(x["isFunction"](e)){if("category"===t.type)return function(n,i){return e(YT(t,n),n.value-t.scale.getExtent()[0],null)};var i=od();return function(n,r){var a=null;return i&&(a=i.makeAxisLabelFormatterParamBreak(a,n["break"])),e(YT(t,n),r,a)}}return function(e){return t.scale.getLabel(e)}}function YT(t,e){var n=t.scale;return QO(n)?n.getLabel(e):e.value}function UT(t){var e=t.get("interval");return null==e?"auto":e}function XT(t){return"category"===t.type&&0===UT(t.getLabelModel())}function $T(t,e){var n={};return x["each"](t.mapDimensionsAll(e),(function(e){n[bO(t,e)]=!0})),x["keys"](n)}function ZT(t){return"middle"===t||"center"===t}function qT(t){return t.getShallow("show")}function KT(t,e,n){var i=t.get("breaks",!0);if(null!=i){if(!od())return void 0;if(!n||!QT(e))return;return i}}function QT(t){return"category"!==t}function JT(t,e,n,i,r,a){var o=KO(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:RO},c=t.transformOut(i[0],u),h=t.transformOut(i[1],u),d=rT(n,i);e[0]&&!d[0]&&(c=r[0]),e[1]&&!d[1]&&(h=r[1]),l.setExtent(c,h)}s.setConfig(a)}function tI(t,e){return QO(t)?t.getRawOrdinalNumber(e.value):e.value}function eI(t,e){return QO(t)&&!!e.get("boundaryGap")}var nI=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),iI=wo(),rI="|&",aI=Ka(),oI=-2,sI=-1,lI=Ka();function uI(t,e){var n=t.model,i=aI(M_(n.ecModel)).keyed,r=i&&i.get(e);return r&&r.get(n.uid)}function cI(t,e){return pI(uI(t,e))}function hI(t,e){var n=[];return dI(t.model.ecModel,(function(t){for(var i=0;i<e.length;i++)e[i]&&t.serByIdx[e[i].seriesIndex]&&n.push(pI(t))})),n}function dI(t,e){var n=aI(M_(t)).keyed;n&&n.each((function(t,n){t.each((function(t,i){e(t,n,i)}))}))}function pI(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function fI(t,e){var n=t.model.ecModel,i=aI(M_(n)).axSer;i&&yI(n,i.get(t.model.uid),e)}function gI(t,e,n){var i=uI(t,e);i&&yI(t.model.ecModel,i.sers,n)}function yI(t,e,n){if(e)for(var i=0;i<e.length;i++){var r=e[i];t.isSeriesFiltered(r)||n(r)}}function vI(t,e){var n=uI(t,e);if(!n||!n.sers.length)return 0;var i=0;return yI(t.model.ecModel,n.sers,(function(){i++})),i}function mI(t,e,n){var i=aI(M_(t)).keyed,r=i&&i.get(e);r&&r.each((function(t){n(t.axis)}))}function bI(t,e){var n=t.model,i=aI(M_(n.ecModel)).keys;i&&Object(x["each"])(i.get(n.uid),(function(t){e(t)}))}function xI(t){var e=lI(S_(t)),n=e.keyed||(e.keyed=Object(x["createHashMap"])());dI(t,(function(e,i,r){var a=n.get(i)||n.set(i,Object(x["createHashMap"])()),o=a.get(r)||a.set(r,{});e.metrics.liPosMinGap&&wI.liPosMinGap(t,e,o)}))}function _I(t,e){wI[t]=e}var wI={};function SI(t,e,n){if(t){var i=e.ecModel,r=aI(M_(i)),a=t.model.uid,o=r.axSer||(r.axSer=Object(x["createHashMap"])()),s=o.get(a)||o.set(a,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,c=TI.get(MI(l,u,n))||TI.get(MI(l,u,null));if(c){var h=r.keyed||(r.keyed=Object(x["createHashMap"])()),d=r.keys||(r.keys=Object(x["createHashMap"])()),p=c.key,f=h.get(p)||h.set(p,Object(x["createHashMap"])()),g=f.get(a);g||(g=f.set(a,{axis:t,sers:[],serByIdx:[]}),g.metrics=c.getMetrics(t),(d.get(a)||d.set(a,[])).push(p)),g.sers.push(e),g.serByIdx[e.seriesIndex]=e}}}function MI(t,e,n){return t+rI+Object(x["retrieve2"])(e,!0)+rI+(n||"")}function OI(t,e){var n=MI(e.seriesType,e.baseAxis,e.coordSysType);TI.set(n,e),iI(t,(function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:xI})}))}var TI=Object(x["createHashMap"])(),II=Ka(),CI=1,AI=2,kI=3,DI=function(){function t(t,e,n,i,r){var a,o=QO(t),s=o?e.getCategories().length:null;if(o){var l=e.getCategories(!0);a=l&&!l.length}var u=n.slice();(ZO(t)||KO(t)||qO(t))&&(go(u,PI(t,e.get("dataMin",!0))),yo(u,PI(t,e.get("dataMax",!0)))),xo(u)||(u[0]=u[1]=NaN);var c=[],h=[!1,!1],d=e.get("min",!0);"dataMin"===d?(c[0]=u[0],h[0]=!0):(c[0]=PI(t,Object(x["isFunction"])(d)?d({min:u[0],max:u[1]}):d),h[0]=null!=c[0]);var p=e.get("max",!0);"dataMax"===p?(c[1]=u[1],h[1]=!0):(c[1]=PI(t,Object(x["isFunction"])(p)?p({min:u[0],max:u[1]}):p),h[1]=null!=c[1]);var f=jI(t,e),g=o?null:u[1]-u[0]||Math.abs(u[0]);null==c[0]&&(c[0]=o?a?u[0]:s?0:NaN:u[0]-f[0]*g),null==c[1]&&(c[1]=o?a?u[1]:s?s-1:NaN:u[1]+f[1]*g),!mo(c[0])&&(c[0]=NaN),!mo(c[1])&&(c[1]=NaN);var y=a||Object(x["eqNaN"])(c[0])||Object(x["eqNaN"])(c[1])||o&&!s,v=ZO(t),m=v&&e.needIncludeZero&&e.needIncludeZero();m&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var b=!1;c[0]>c[1]&&(c.reverse(),b=!0);var _=PI(t,e.get("startValue",!0)),w=null!=_;!Oa(_)&&i&&(_=t.getDefaultStartValue?t.getDefaultStartValue():0),Oa(_)&&(w||!v||m)&&(_<c[0]&&!h[0]?(c[0]=_,h[0]=!0):_>c[1]&&!h[1]&&(c[1]=_,h[1]=!0));var S=this._i={scale:t,dataMM:u,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:_,isBlank:y,incl0:m,tggAxInv:b,ctnShp:r};LI(S,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,i=t.zoomFixMM,r=t.fixMM,a={fixMM:r,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},o=a.effMM;return null!=e[0]&&(o[0]=e[0],r[0]=i[0]=!0),null!=e[1]&&(o[1]=e[1],r[1]=i[1]=!0),LI(t,o),a},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function LI(t,e){var n=t.scale,i=t.dataMM;n.sanitize&&(e[0]=n.sanitize(e[0],i),e[1]=n.sanitize(e[1],i),_o(e))}function PI(t,e){return null==e?null:Object(x["eqNaN"])(e)?NaN:t.parse(e)}function jI(t,e){var n;if(QO(t))n=[0,0];else{var i=e.get("boundaryGap");"boolean"===typeof i&&(i=null),n=Object(x["isArray"])(i)?i:[i,i]}return[NI(n[0]),NI(n[1])]}function NI(t){return $i("boolean"===typeof t?0:t,1)||0}function RI(t){var e=II(t.scale);return e.extent||(e.extent=po()),e}function EI(t,e){RI(t).dimIdxInCoord=e.get(t.dim)}function zI(t,e){var n=t.scale,i=t.model,r=t.dim;n.rawExtentInfo||BI(n,t,r,i,e)}function BI(t,e,n,i,r){var a=RI(e),o=a.extent,s=!1;fI(e,(function(i){if(i.boxCoordinateSystem){var r=pp(i).coord,l=a.dimIdxInCoord;if(l>=0){if(Object(x["isArray"])(r)){var u=r[l];null==u||Object(x["isArray"])(u)||fo(o,t.parse(u))}}else 0}else if(i.coordinateSystem){var c=i.getData();if(c){var h=t.getFilter?t.getFilter():null;Object(x["each"])($T(c,n),(function(t){vo(o,c.getApproximateExtent(t,h))}))}i.__requireStartValue&&i.__requireStartValue(e)&&(s=!0)}}));var l=YI(t,e,i),u=new DI(t,i,o,s,l);FI(t,u,r),a.extent=null}function VI(t,e){var n=t.scale;FI(n,new DI(n,t.model,e,!1,!1),kI)}function FI(t,e,n){t.rawExtentInfo=e,e.from=n}function HI(t,e){GI.set(t,e)}var GI=Object(x["createHashMap"])();function WI(t,e,n,i,r){t.rawExtentInfo||VI({scale:t,model:e},r||po());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),a}function YI(t,e,n){var i=eI(t,n),r=n.get("containShape",!0);if(null!=r||i||(r=!0),!r)return!1;var a=!1;return bI(e,(function(t){a=!!GI.get(t)||a})),a}function UI(t,e,n,i){var r;if(n.ctnShp&&(bI(t,(function(e){var n=GI.get(e);if(n){var a=n(t,i);a&&(r=r||[0,0],go(r,a[0]),yo(r,a[1]),HT(t))}})),r)){var a=e.getExtent();if(QO(e))t.onBand||e.setExtent2(PO,Rr(a[0],a[0]+r[0]),Er(a[1],a[1]+r[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Rr(o[0],e.transformOut(e.transformIn(o[0],null)+r[0],null))),n.zoomFixMM[1]||(o[1]=Er(o[1],e.transformOut(e.transformIn(o[1],null)+r[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(PO,o[0],o[1])}}}function XI(t,e){var n=KO(t),i=n?t.intervalStub:t,r=e.fixMinMax||[],a=n?t.getExtent():null,o=i.getExtent(),s=iT(o,r,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=n?ZI(i,e):$I(i,e),u=l.intervalPrecision,c=l.interval,h=e.userInterval;null!=h&&(l.interval=h,l.intervalPrecision=tT(h)),r[0]||(s[0]=Jr(Vr(s[0]/c)*c,u)),r[1]||(s[1]=Jr(Fr(s[1]/c)*c,u)),null!=h&&(l.niceExtent=s.slice()),JT(t,r,o,s,a,l)}function $I(t,e){var n=aT(e.splitNumber,5),i=WO(t);var r=e.minInterval,a=e.maxInterval,o=va(i/n,!0);null!=r&&o<r&&(o=r),null!=a&&o>a&&(o=a);var s=tT(o),l=t.getExtent(),u=[Jr(Fr(l[0]/o)*o,s),Jr(Vr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function ZI(t,e){var n=aT(e.splitNumber,10),i=t.getExtent(),r=WO(t);var a=Er(fa(r),1),o=n/r*a;o<=.5&&(a*=10);var s=tT(a),l=[Jr(Fr(i[0]/a)*a,s),Jr(Vr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function qI(t){var e=t.scale,n=t.model,i=n.axis,r=n.ecModel;KI(e,n,i,r,null)}function KI(t,e,n,i,r){var a=WI(t,e,i,n,r),o=ZO(t)||qO(t);QI(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),n&&i&&UI(n,t,a,i)}function QI(t,e){JI[t.type](t,e)}var JI={interval:XI,log:XI,time:MT,ordinal:x["noop"]};function tC(t){return OO(null,t)}var eC={isDimensionStacked:mO,enableDataStack:yO,getStackedDimension:bO};function nC(t,e){var n=e;e instanceof Vh||(n=new Vh(e));var i=RT(n),r=ET(n,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),KI(r,n,null,null,t),r}function iC(t){x["mixin"](t,nI)}function rC(t,e){return e=e||{},gh(t,null,null,"normal"!==e.state)}var aC=1e-8;function oC(t,e){return Math.abs(t-e)<aC}function sC(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var a=1;a<t.length;a++){var o=t[a];i+=_l(r[0],r[1],o[0],o[1],e,n),r=o}var s=t[0];return oC(r[0],s[0])&&oC(r[1],s[1])||(i+=_l(r[0],r[1],s[0],s[1],e,n)),0!==i}var lC=[];function uC(t,e){for(var n=0;n<t.length;n++)G(t[n],t[n],e)}function cC(t,e,n,i){for(var r=0;r<t.length;r++){var a=t[r];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(W(e,e,a),Y(n,n,a))}}function hC(t){for(var e=0,n=0,i=0,r=t.length,a=t[r-1][0],o=t[r-1][1],s=0;s<r;s++){var l=t[s][0],u=t[s][1],c=a*u-l*o;e+=c,n+=(a+l)*c,i+=(o+u)*c,a=l,o=u}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var dC=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),pC=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),fC=function(){function t(t){this.type="linestring",this.points=t}return t}(),gC=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return f(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],a=r.exterior,o=a&&a.length;o>n&&(t=r,n=o)}if(t)return hC(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],i=[-1/0,-1/0],r=this.geometries;return Object(x["each"])(r,(function(e){"polygon"===e.type?cC(e.exterior,n,i,t):Object(x["each"])(e.points,(function(e){cC(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new ue(n[0],n[1],i[0]-n[0],i[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 i=0,r=n.length;i<r;i++){var a=n[i];if("polygon"===a.type){var o=a.exterior,s=a.interiors;if(sC(o,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(sC(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),a=r.width/r.height;n?i||(i=n/a):n=a*i;for(var o=new ue(t,e,n,i),s=r.calculateTransform(o),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(uC(c.exterior,s),Object(x["each"])(c.interiors,(function(t){uC(t,s)}))):Object(x["each"])(c.points,(function(t){uC(t,s)}))}r=this._rect,r.copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(dC),yC=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return f(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=Ct(lC),r=t;while(r&&!r.isGeoSVGGraphicRoot)kt(i,r.getLocalTransform(),i),r=r.parent;return jt(i,i),G(n,n,i),n},e}(dC);function vC(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return x["each"](i,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=bC(r,i,n);break;case"Polygon":mC(r,i,n);break;case"MultiLineString":mC(r,i,n);break;case"MultiPolygon":x["each"](r,(function(t,e){return mC(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}function mC(t,e,n){for(var i=0;i<t.length;i++)t[i]=bC(t[i],e[i],n)}function bC(t,e,n){for(var i=[],r=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=a,r=s,a=l,i.push([s/n,l/n])}return i}function xC(t,e){return t=vC(t),x["map"](x["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var a=i.coordinates;r.push(new pC(a[0],a.slice(1)));break;case"MultiPolygon":x["each"](i.coordinates,(function(t){t[0]&&r.push(new pC(t[0],t.slice(1)))}));break;case"LineString":r.push(new fC([i.coordinates]));break;case"MultiLineString":r.push(new fC(i.coordinates))}var o=new gC(n[e||"name"],r,n.cp);return o.properties=n,o}))}function _C(t,e,n,i,r,a,o,s){var l=new _u({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var wC=Ka(),SC=Ka(),MC={estimate:1,determine:2};function OC(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function TC(t,e){var n=t.getLabelModel().get("customValues");if(n){var i=t.scale;return{labels:x["map"](CC(n,i),(function(e,n){return{formattedLabel:WT(t)(e,n),rawLabel:i.getLabel(e),tick:e}}))}}return"category"===t.type?AC(t,e):LC(t)}function IC(t,e,n){var i=t.scale,r=t.getTickModel().get("customValues");return r?{ticks:CC(r,i)}:"category"===t.type?DC(t,e):{ticks:i.getTicks(n)}}function CC(t,e){var n=e.getExtent(),i=[];return x["each"](t,(function(t){t=e.parse(t),t>=n[0]&&t<=n[1]&&i.push(t)})),Mo(i,To,null),ea(i),x["map"](i,(function(t){return{value:t}}))}function AC(t,e){var n=t.getLabelModel(),i=kC(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:i}function kC(t,e,n){var i,r,a=jC(t),o=UT(e),s=n.kind===MC.estimate;if(!s){var l=RC(a,o);if(l)return l}x["isFunction"](o)?i=GC(t,o,!1):(r="auto"===o?zC(t,n):o,i=GC(t,r,!1));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push((function(){return EC(a,o,u),!0})):EC(a,o,u),u}function DC(t,e){var n,i,r=PC(t),a=UT(e),o=RC(r,a);if(o)return o;if(e.get("show")&&!t.scale.isBlank()||(n=[]),x["isFunction"](a))n=GC(t,a,!0);else if("auto"===a){var s=kC(t,t.getLabelModel(),OC(MC.determine));i=s.labelCategoryInterval,n=x["map"](s.labels,(function(t){return t.tick}))}else i=a,n=GC(t,i,!0);return EC(r,a,{ticks:n,tickCategoryInterval:i})}function LC(t){var e=t.scale.getTicks(),n=WT(t);return{labels:x["map"](e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tick:e}}))}}var PC=NC("axisTick"),jC=NC("axisLabel");function NC(t){return function(e){return SC(e)[t]||(SC(e)[t]={list:[]})}}function RC(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function EC(t,e,n){return t.list.push({key:e,value:n}),n}function zC(t,e){if(e.kind===MC.estimate){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push((function(){return SC(t).autoInterval=n,!0})),n}var i=SC(t).autoInterval;return null!=i?i:SC(t).autoInterval=t.calculateCategoryInterval(e)}function BC(t,e){var n=e.kind,i=HC(t),r=WT(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var h=s[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),p=Math.abs(d*Math.cos(a)),f=Math.abs(d*Math.sin(a)),g=0,y=0;h<=s[1];h+=u){var v=0,m=0,b=Wi(r({value:h}),i.font,"center","top");v=1.3*b.width,m=1.3*b.height,g=Math.max(g,v,7),y=Math.max(y,m,7)}var _=g/p,w=y/f;isNaN(_)&&(_=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(_,w)));if(n===MC.estimate)return e.out.noPxChangeTryDetermine.push(x["bind"](VC,null,t,S,l)),S;var M=FC(t,S,l);return null!=M?M:S}function VC(t,e,n){return null==FC(t,e,n)}function FC(t,e,n){var i=wC(t.model),r=t.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(null!=a&&null!=o&&Math.abs(a-e)<=1&&Math.abs(o-n)<=1&&a>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return a;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function HC(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 GC(t,e,n){var i=WT(t),r=t.scale,a=[],o=x["isFunction"](e);return oT(r,o?0:e,(function(t,s){var l=r.getLabel(t);if(o){var u=!!e(t.value,l);if(t.offInterval=!u,!u&&!s)return}a.push(n?t:{formattedLabel:i(t),rawLabel:l,tick:t})})),a}var WC=.8;function YC(t,e){e=e||{};var n={w:NaN,w2:NaN},i=t.scale,r=e.fromStat,a=e.min,o=GO(i);Oa(o)||(o=NaN);var s=t.getExtent(),l=zr(s[1]-s[0]);return QO(i)?UC(n,t,o,l):r&&XC(n,t,o,l,r),null!=a&&(n.w=Oa(n.w)?Er(a,n.w):a),n}function UC(t,e,n,i){var r=e.onBand,a=n+(r?1:0);0===a&&(a=1),t.w=i/a,!r&&n&&i&&(t.w2=t.w*n/i)}function XC(t,e,n,i,r){var a=!1,o=-1/0;Object(x["each"])(r.key?[cI(e,r.key)]:hI(e,r.sers||[]),(function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>o&&(o=e),a=!1):e===oI&&(a=!0))})),Oa(n)&&n>0&&Oa(o)?(t.w=i/n*o,t.w2=o):a&&(t.w=i*WC,t.w2=t.w*n/i)}var $C=[0,1],ZC=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]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},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.scale;return t=n.normalize(n.parse(t)),Xr(t,$C,qC(this),e)},t.prototype.coordToData=function(t,e){var n=Xr(t,qC(this),$C,e);return this.scale.scale(n)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=IC(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=Object(x["map"])(n.ticks,(function(t){return{coord:this.dataToCoord(tI(this.scale,t)),tick:t}}),this),r=e.get("alignWithLabel"),a=KC(this,i,r);return Object(x["map"])(i,(function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:a}}))},t.prototype.getMinorTicksCoords=function(){if(QO(this.scale))return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Object(x["map"])(n,(function(t){return Object(x["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(t){return t=t||OC(MC.determine),TC(this,t).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return YC(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return t=t||OC(MC.determine),BC(this,t)},t}();function qC(t){var e=t.getExtent();if(t.onBand){var n=e[1]-e[0],i=n/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}function KC(t,e,n){var i=e.length;if(!t.onBand||n||!i)return!1;var r=YC(t).w;if(!r)return!1;Object(x["each"])(e,(function(t){t.coord-=r/2}));var a=t.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+r,tick:{value:a[1]+1}}),!0}var QC=ZC;function JC(t){var e=Hp.extend(t);return Hp.registerClass(e),e}function tA(t){var e=bv.extend(t);return bv.registerClass(e),e}function eA(t){var e=vv.extend(t);return vv.registerClass(e),e}function nA(t){var e=px.extend(t);return px.registerClass(e),e}var iA=2*Math.PI,rA=pl.CMD,aA=["top","right","bottom","left"];function oA(t,e,n,i,r){var a=n.width,o=n.height;switch(t){case"top":i.set(n.x+a/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+a/2,n.y+o+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+o/2),r.set(-1,0);break;case"right":i.set(n.x+a+e,n.y+o/2),r.set(1,0);break}}function sA(t,e,n,i,r,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+t,h=s*n+e;if(Math.abs(i-r)%iA<1e-4)return l[0]=c,l[1]=h,u-n;if(a){var d=i;i=ml(r),r=ml(d)}else i=ml(i),r=ml(r);i>r&&(r+=iA);var p=Math.atan2(s,o);if(p<0&&(p+=iA),p>=i&&p<=r||p+iA>=i&&p+iA<=r)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-o)*(f-o)+(g-s)*(g-s),b=(y-o)*(y-o)+(v-s)*(v-s);return m<b?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(b))}function lA(t,e,n,i,r,a,o,s){var l=r-t,u=a-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=o[0]=t+f*c,y=o[1]=e+f*h;return Math.sqrt((g-r)*(g-r)+(y-a)*(y-a))}function uA(t,e,n,i,r,a,o){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=o[0]=Math.min(Math.max(r,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-r)*(u-r)+(c-a)*(c-a))}var cA=[];function hA(t,e,n){var i=uA(e.x,e.y,e.width,e.height,t.x,t.y,cA);return n.set(cA[0],cA[1]),i}function dA(t,e,n){for(var i,r,a=0,o=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(a=c[p],o=c[p+1],s=a,l=o);var g=u;switch(f){case rA.M:s=c[p++],l=c[p++],a=s,o=l;break;case rA.L:g=lA(a,o,c[p],c[p+1],h,d,cA,!0),a=c[p++],o=c[p++];break;case rA.C:g=sn(a,o,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,cA),a=c[p++],o=c[p++];break;case rA.Q:g=fn(a,o,c[p++],c[p++],c[p],c[p+1],h,d,cA),a=c[p++],o=c[p++];break;case rA.A:var y=c[p++],v=c[p++],m=c[p++],b=c[p++],x=c[p++],_=c[p++];p+=1;var w=!!(1-c[p++]);i=Math.cos(x)*m+y,r=Math.sin(x)*b+v,p<=1&&(s=i,l=r);var S=(h-y)*b/m+y;g=sA(y,v,b,x,x+_,w,S,d,cA),a=Math.cos(x+_)*m+y,o=Math.sin(x+_)*b+v;break;case rA.R:s=a=c[p++],l=o=c[p++];var M=c[p++],O=c[p++];g=uA(s,l,M,O,h,d,cA);break;case rA.Z:g=lA(a,o,s,l,h,d,cA,!0),a=s,o=l;break}g<u&&(u=g,n.set(cA[0],cA[1]))}return u}var pA=new Et,fA=new Et,gA=new Et,yA=new Et,vA=new Et;function mA(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=r.candidates||aA,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,c=t.getComputedTransform(),h=c&&jt([],c),d=e.get("length2")||0;u&&gA.copy(u);for(var p=0;p<o.length;p++){var f=o[p];oA(f,0,s,pA,yA),Et.scaleAndAdd(fA,pA,yA,d),fA.transform(h);var g=t.getBoundingRect(),y=u?u.distance(fA):t instanceof Bl?dA(fA,t.path,gA):hA(fA,g,gA);y<l&&(l=y,fA.transform(c),gA.transform(c),gA.toArray(a[0]),fA.toArray(a[1]),pA.toArray(a[2]))}_A(a,e.get("minTurnAngle")),n.setShape({points:a})}}}var bA=[],xA=new Et;function _A(t,e){if(e<=180&&e>0){e=e/180*Math.PI,pA.fromArray(t[0]),fA.fromArray(t[1]),gA.fromArray(t[2]),Et.sub(yA,pA,fA),Et.sub(vA,gA,fA);var n=yA.len(),i=vA.len();if(!(n<.001||i<.001)){yA.scale(1/n),vA.scale(1/i);var r=yA.dot(vA),a=Math.cos(e);if(a<r){var o=lA(fA.x,fA.y,gA.x,gA.y,pA.x,pA.y,bA,!1);xA.fromArray(bA),xA.scaleAndAdd(vA,o/Math.tan(Math.PI-e));var s=gA.x!==fA.x?(xA.x-fA.x)/(gA.x-fA.x):(xA.y-fA.y)/(gA.y-fA.y);if(isNaN(s))return;s<0?Et.copy(xA,fA):s>1&&Et.copy(xA,gA),xA.toArray(t[1])}}}}function wA(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,pA.fromArray(t[0]),fA.fromArray(t[1]),gA.fromArray(t[2]),Et.sub(yA,fA,pA),Et.sub(vA,gA,fA);var i=yA.len(),r=vA.len();if(!(i<.001||r<.001)){yA.scale(1/i),vA.scale(1/r);var a=yA.dot(e),o=Math.cos(n);if(a<o){var s=lA(fA.x,fA.y,gA.x,gA.y,pA.x,pA.y,bA,!1);xA.fromArray(bA);var l=Math.PI/2,u=Math.acos(vA.dot(e)),c=l+u-n;if(c>=l)Et.copy(xA,gA);else{xA.scaleAndAdd(vA,s/Math.tan(Math.PI/2-c));var h=gA.x!==fA.x?(xA.x-fA.x)/(gA.x-fA.x):(xA.y-fA.y)/(gA.y-fA.y);if(isNaN(h))return;h<0?Et.copy(xA,fA):h>1&&Et.copy(xA,gA)}xA.toArray(t[1])}}}}function SA(t,e,n,i){var r="normal"===n,a=r?t:t.ensureState(n);a.ignore=e;var o=i.get("smooth");o=!0===o?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):a.style=s}function MA(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=z(i[0],i[1]),a=z(i[1],i[2]);if(!r||!a)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var o=Math.min(r,a)*n,s=H([],i[1],i[0],o/r),l=H([],i[1],i[2],o/a),u=H([],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],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function OA(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var a=e.normal,o=a.get("show"),s=r.ignore,l=0;l<$u.length;l++){var u=$u[l],c=e[u],h="normal"===u;if(c){var d=c.get("show"),p=h?s:Object(x["retrieve2"])(r.states[u]&&r.states[u].ignore,s);if(p||!Object(x["retrieve2"])(d,o)){var f=h?i:i&&i.states[u];f&&(f.ignore=!0),i&&SA(i,!0,u,c);continue}i||(i=new Mm,t.setTextGuideLine(i),h||!s&&o||SA(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),SA(i,!1,u,c)}}if(i){Object(x["defaults"])(i.style,n),i.style.fill=null;var g=a.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=g||!1,i.buildPath=MA}}else i&&t.removeTextGuideLine()}function TA(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Xu.length;i++){var r=Xu[i];n[r]=t.getModel([r,e])}return n}var IA=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],CA=1,AA=2,kA=CA|AA;function DA(t,e,n){n=n||kA,e?t.dirty|=n:t.dirty&=~n}function LA(t,e){return e=e||kA,null==t.dirty||!!(t.dirty&e)}function PA(t){if(t)return LA(t)&&jA(t,t.label,t),t}function jA(t,e,n){var i=e.getComputedTransform();t.transform=qb(t.transform,i);var r=t.localRect=Zb(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=a.__marginType;null==c&&u&&(o=u,c=Ih.textMargin);for(var h=0;h<4;h++)NA[h]=c===Ih.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:o?o[h]:0;c===Ih.textMargin&&Fb(r,NA,!1,!1);var d=t.rect=Zb(t.rect,r);return i&&d.applyTransform(i),c===Ih.minMargin&&Fb(d,NA,!1,!1),t.axisAligned=Xb(i),(t.label=t.label||{}).ignore=e.ignore,DA(t,!1),DA(t,!0,AA),t}var NA=[0,0,0,0];function RA(t,e,n){return t.transform=qb(t.transform,n),t.localRect=Zb(t.localRect,e),t.rect=Zb(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=Xb(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function EA(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}function zA(t,e){for(var n=0;n<IA.length;n++){var i=IA[n];null==t[i]&&(t[i]=e[i])}return PA(t)}function BA(t){var e=t.obb;return e&&!LA(t,AA)||(t.obb=e=e||new tb,e.fromBoundingRect(t.localRect,t.transform),DA(t,!1,AA)),e}function VA(t,e,n,i,r){var a=t.length,o=cb[e],s=hb[e];if(a<2)return!1;t.sort((function(t,e){return t.rect[o]-e.rect[o]}));for(var l,u=0,c=!1,h=0,d=0;d<a;d++){var p=t[d],f=p.rect;l=f[o]-u,l<0&&(f[o]-=l,p.label[o]-=l,c=!0);var g=Math.max(-l,0);h+=g,u=f[o]+f[s]}h>0&&r&&w(-h/a,0,a);var y,v,m=t[0],b=t[a-1];function x(){y=m.rect[o]-n,v=i-b.rect[o]-b.rect[s]}function _(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(e,n,i){0!==e&&(c=!0);for(var r=n;r<i;r++){var a=t[r],s=a.rect;s[o]+=e,a.label[o]+=e}}function S(e,n){for(var i=[],r=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[o]-u[o]-u[s],0);i.push(c),r+=c}if(r){var h=Math.min(Math.abs(e)/r,n);if(e>0)for(l=0;l<a-1;l++){var d=i[l]*h;w(d,0,l+1)}else for(l=a-1;l>0;l--){d=i[l-1]*h;w(-d,l,a)}}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?w(n,0,i+1):w(-n,a-i-1,a),t-=n,t<=0)return}return x(),y<0&&S(-y,.8),v<0&&S(v,.8),x(),_(y,v,1),_(v,y,-1),x(),y<0&&M(-y),v<0&&M(v),c}function FA(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.defaultAttr,r=n.labelLine;n.label.attr("ignore",i.ignore),r&&r.attr("ignore",i.labelGuideIgnore)}}function HA(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort((function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority}));for(var i=0;i<t.length;i++){var r=PA(t[i]);if(!r.label.ignore){for(var a=r.label,o=r.labelLine,s=!1,l=0;l<e.length;l++)if(GA(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):e.push(r)}}}function GA(t,e,n,i){return!(!t||!e)&&(!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&(!!t.rect.intersect(e.rect,n,i)&&(!(!t.axisAligned||!e.axisAligned)||BA(t).intersect(BA(e),n,i))))}function WA(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function YA(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:WA(i&&i.shape.points)}}var UA=["align","verticalAlign","width","height","fontSize"],XA=new ji,$A=Ka(),ZA=Ka();function qA(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var KA=["x","y","rotation"],QA=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var a=i.style,o=i.__hostTarget,s=o.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain();ue.applyTransform(u,u,l),l?XA.setLocalTransform(l):(XA.x=XA.y=XA.rotation=XA.originX=XA.originY=0,XA.scaleX=XA.scaleY=1),XA.rotation=ml(XA.rotation);var c,h=i.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();ue.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:r,layoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:XA.x,y:XA.y,scaleX:XA.scaleX,scaleY:XA.scaleY,rotation:XA.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Object(x["isFunction"])(i)||Object(x["keys"])(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),a=wu(t);r&&!r.disableLabelLayout&&e._addLabel(a.dataIndex,a.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){mA(t,e)}}for(var r=0;r<this._labelList.length;r++){var a=this._labelList[r],o=a.label,s=o.__hostTarget,l=a.defaultAttr,u=void 0;u=Object(x["isFunction"])(a.layoutOptionOrCb)?a.layoutOptionOrCb(YA(a,s)):a.layoutOptionOrCb,u=u||{},a.layoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(o.x=$r(u.x,e),o.setStyle("x",0),h=!0):(o.x=l.x,o.setStyle("x",l.style.x)),null!=u.y?(o.y=$r(u.y,n),o.setStyle("y",0),h=!0):(o.y=l.y,o.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var p=$A(o);p.needsUpdateLabelLine=h,o.rotation=null!=u.rotate?u.rotate*c:l.rotation,o.scaleX=l.scaleX,o.scaleY=l.scaleY;for(var f=0;f<UA.length;f++){var g=UA[f];o.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(o.draggable=!0,o.cursor="move",s){var y=a.seriesModel;if(null!=a.dataIndex){var v=a.seriesModel.getData(a.dataType);y=v.getItemModel(a.dataIndex)}o.on("drag",i(s,y.getModel("labelLine")))}}else o.off("drag"),o.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=[];Object(x["each"])(this._labelList,(function(t){t.defaultAttr.ignore||i.push(zA({},t))}));var r=Object(x["filter"])(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=Object(x["filter"])(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));VA(r,0,0,e),VA(a,1,0,n);var o=Object(x["filter"])(i,(function(t){return t.layoutOption.hideOverlap}));FA(o),HA(o)},t.prototype.processLabelsOverall=function(){var t=this;Object(x["each"])(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var a=!i,o=e.getTextContent();!a&&o&&(a=$A(o).needsUpdateLabelLine),a&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=wu(t),r=i.dataIndex;if(n&&null!=r){var a=e.getData(i.dataType),o=a.getItemModel(r),s={},l=a.getItemVisual(r,"style");if(l){var u=a.getVisual("drawType");s.stroke=l[u]}var c=o.getModel("labelLine");OA(t,TA(o),s),mA(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!rh(t))){var r=$A(n),a=r.oldLayout,o=wu(t),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(o.dataType);if(a){n.attr(a);var c=t.prevStates;c&&(Object(x["indexOf"])(c,"select")>=0&&n.attr(r.oldLayoutSelect),Object(x["indexOf"])(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),nh(n,l,e,s)}else if(n.attr(l),!Mh(n).valueAnimation){var h=Object(x["retrieve2"])(n.style.opacity,1);n.style.opacity=0,ih(n,{style:{opacity:h}},e,s)}if(r.oldLayout=l,n.states.select){var d=r.oldLayoutSelect={};qA(d,l,KA),qA(d,n.states.select,KA)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};qA(p,l,KA),qA(p,n.states.emphasis,KA)}Th(n,s,u,e,e)}if(i&&!i.ignore&&!i.invisible){r=ZA(i),a=r.oldLayout;var f={points:i.shape.points};a?(i.attr({shape:a}),nh(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,ih(i,{style:{strokePercent:1}},e)),r.oldLayout=f}},t}(),JA=QA,tk=Ka();function ek(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=tk(e).labelManager;i||(i=tk(e).labelManager=new JA),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=tk(e).labelManager;Object(x["each"])(n.updatedSeries,(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function nk(t,e,n){var i=Ri["d"].createCanvas(),r=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=a*n,i}function ik(t){return!t.__cursors.get(eb)}function rk(t){var e=t.__cursors.get(eb);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}IM(ek);var ak=function(t){function e(e,n,i){var r,a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=ab,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0},i=i||yi,"string"===typeof e?r=nk(e,n,i):x["isObject"](e)&&(r=e,e=r.id),a.id=e,a.dom=r;var o=r.style;return o&&(x["disableUserSelect"](r),r.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=i,a}return f(e,t),e.prototype.afterBrush=function(){this.__prevIdx=rk(this)},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=nk("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,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r=[],a=this.maxRepaintRectCount,o=!1,s=new ue(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===r.length){var e=new ue(0,0,0,0);e.copy(t),r.push(e)}else{for(var n=!1,i=1/0,l=0,u=0;u<r.length;++u){var c=r[u];if(c.intersect(t)){var h=new ue(0,0,0,0);h.copy(c),h.union(t),r[u]=h,n=!0;break}if(o){s.copy(t),s.union(c);var d=t.width*t.height,p=c.width*c.height,f=s.width*s.height,g=f-d-p;g<i&&(i=g,l=u)}}if(o&&(r[l].union(t),n=!0),!n){e=new ue(0,0,0,0);e.copy(t),r.push(e)}o||(o=r.length>=a)}}for(var u=rk(this),c=u.startIdx;c<u.endIdx;++c){var h=t[c];if(h){var d=h.shouldBePainted(n,i,!0,!0),p=h.__isRendered&&(h.__dirty&Le||!d)?h.getPrevPaintRect():null;p&&l(p);var f=d&&(h.__dirty&Le||!h.__isRendered)?h.getPaintRect():null;f&&l(f)}}var g,y=this.__prevIdx;for(c=y.startIdx;c<y.endIdx;++c){h=e[c],d=h&&h.shouldBePainted(n,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&l(p)}}do{g=!1;for(c=0;c<r.length;)if(r[c].isZero())r.splice(c,1);else{for(var v=c+1;v<r.length;)r[c].intersect(r[v])?(g=!0,r[c].union(r[v]),r.splice(v,1)):v++;c++}}while(g);return this._paintRects=r,r},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,a=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,a=i.width,o=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/u,o/u));var h=this.domBack;function d(t,n,i,a){if(r.clearRect(t,n,i,a),e&&"transparent"!==e){var o=void 0;if(x["isGradientObject"](e)){var d=e.global||e.__width===i&&e.__height===a;o=d&&e.__canvasGradient||W_(r,e,{x:0,y:0,width:i,height:a}),e.__canvasGradient=o,e.__width=i,e.__height=a}else x["isImagePatternObject"](e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,o=nw(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));r.save(),r.fillStyle=o||e,r.fillRect(t,n,i,a),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,a),r.restore())}!n||s?d(0,0,a,o):n.length&&x["each"](n,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(q),ok=ak,sk=1e5,lk=314159,uk=void 0,ck=1,hk=2;function dk(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function pk(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function fk(t,e,n,i){var r=new ok(t,e,e.dpr);return r.zlevel=n,r.zlevel2=i,r.__builtin__=!0,gk(r),r}function gk(t){t.__cursorStack=[],t.__cursors=x["createHashMap"]()}function yk(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function vk(t,e){var n=t.__cursors,i=+e;return n.get(i)||(t.__cursorStack.push(i),n.set(i,yk({key:i})))}function mk(t,e){for(var n=t.__cursorStack,i=0;i<n.length;i++)e(t.__cursors.get(n[i]))}function bk(t,e){var n=t.layers;return n[e]||(n[e]=new Array(3))}function xk(t,e,n){for(var i=t.layerStack,r=0;r<i.length;r++){var a=i[r].zl,o=i[r].zl2,s=t.layers[a][o];n&&(n&_k&&!s.__builtin__||n&wk&&s.__builtin__||n&Sk&&s===t.hoverlayer)||e(s,a,o,r)}}var _k=1,wk=2,Sk=4,Mk=_k|Sk,Ok=function(){function t(t,e,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=x["extend"]({},n||{}),this.dpr=n.devicePixelRatio||yi,this._singleCanvas=r,this.root=t;var a=t.style;if(a&&(x["disableUserSelect"](t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],r){var o=t,s=o.width,l=o.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,o.width=s*this.dpr,o.height=l*this.dpr,this._width=s,this._height=l;var u=fk(o,this,lk,ab);u.initContext(),this._insertLayer(u,lk,ab,!0),this._domRoot=t}else{this._width=X_(t,0,n),this._height=X_(t,1,n);var c=this._domRoot=pk(this._width,this._height);t.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e;e=t&&!x["isObject"](t)?{paintAll:!!t}:t||{};var n=x["retrieve2"](e.refresh,!0),i=x["retrieve2"](e.refreshHover,!1);if(i&&(this._hoverLayerDirty=hk),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var r=this.storage.getDisplayList(!0);this._updateLayerStatus(r,e.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(r,a,this._redrawId);var o=this._backgroundColor;return xk(this._i,(function(t,e,n,i){t.refresh&&t.refresh(0===i?o:null)}),wk),this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=uk,n!==uk&&(e||n!==hk||(e=this._i.hoverlayer=this._ensureLayer(sk)),e)){e.clear();for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a=0,o=t.length;a<o;a++){var s=t[a];if(s.__inHover){i||(i=e.ctx,i.save());var l=s.__hoverStyle,u=void 0;l&&(u=s.style,s.style=l),_w(i,s,r),l&&(s.style=u)}}i&&(ww(i,r),i.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(sk)},t.prototype.paintOne=function(t,e){xw(t,e)},t.prototype._paintList=function(t,e,n){if(this._redrawId===n){var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),i)xk(this._i,(function(t){t.afterBrush&&t.afterBrush()}),Mk),this._paintHoverList(t);else{var r=this;Fe((function(){r._paintList(t,e,n)}))}}},t.prototype._compositeManually=function(){var t=this._ensureLayer(lk).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),xk(this._i,(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}),_k)},t.prototype._doPaintList=function(t,e){var n=this,i=!0;return xk(this._i,(function(r){var a=!1;if(mk(r,(function(t){(t.drawIdx<t.endIdx||t.notClearIdx>=0)&&(a=!0)})),a||r.__dirty){var o=n._opts.useDirtyRect&&!ik(r)?r.createRepaintRects(t,e,n._width,n._height):null,s=n._i.layerStack[0],l=!0;if(r.__dirty){l=!1,r.__dirty=!1;var u=r.zlevel===s.zl&&r.zlevel2===s.zl2?n._backgroundColor:null;r.clear(!1,u,o)}mk(r,(function(e){var a=n._paintPerCursor(r,e,t,o,l);i=i&&a}))}}),Mk),b.wxa&&xk(this._i,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),i},t.prototype._paintPerCursor=function(t,e,n,i,r){var a=t.ctx;if(i)if(i.length)for(var o=this.dpr,s=0;s<i.length;++s){var l=i[s];a.save(),a.beginPath(),a.rect(l.x*o,l.y*o,l.width*o,l.height*o),a.clip(),this._paintPerCursorInRect(t,e,n,l,r),a.restore()}else e.drawIdx=e.endIdx;else a.save(),this._paintPerCursorInRect(t,e,n,null,r),a.restore();return e.drawIdx>=e.endIdx},t.prototype._paintPerCursorInRect=function(t,e,n,i,r){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:r}},o=t.ctx,s=ik(t),l=s&&Ri["d"].getTime(),u=e.drawIdx,c=e.notClearIdx,h=c>=0?Math.min(c,u):u;h<e.endIdx;h++){var d=n[h];if(!(h<u)||d.notClear){if(d.__inHover&&(this._hoverLayerDirty=hk),null!=i){var p=d.getPaintRect();p&&p.intersect(i)&&(_w(o,d,a),d.setPrevPaintRect(p))}else _w(o,d,a);if(s){var f=Ri["d"].getTime()-l;if(f>15){h++;break}}}}ww(o,a),e.drawIdx=Math.max(h,u)},t.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},t.prototype._ensureLayer=function(t,e,n){e=e||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(t=lk,e=0);var r=bk(this._i,t)[e];return r||(r=fk("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&x["merge"](r,this._layerConfig[t],!0),(n||i&&t!==lk)&&(r.virtual=!0),this._insertLayer(r,t,e,!1),r.initContext()),r},t.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},t.prototype._insertLayer=function(t,e,n,i){var r=this._i,a=r.layers,o=r.layerStack,s=this._domRoot,l=null;if((!a[e]||!a[e][n])&&dk(t)){var u=o.length,c=0;while(c<u&&(o[c].zl<e||o[c].zl===e&&o[c].zl2<n))c++;if(c>0&&(l=bk(r,o[c-1].zl)[o[c-1].zl2]),o.splice(c,0,{zl:e,zl2:n}),bk(r,e)[n]=t,!i&&!t.virtual)if(l){var h=l.dom;h.nextSibling?s.insertBefore(t.dom,h.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom);t.painter||(t.painter=this)}},t.prototype.eachLayer=function(t,e){return xk(this._i,(function(n,i){t.call(e,n,i)}))},t.prototype.eachBuiltinLayer=function(t,e){return xk(this._i,(function(n,i){t.call(e,n,i)}),_k)},t.prototype.eachOtherLayer=function(t,e){return xk(this._i,(function(n,i){t.call(e,n,i)}),wk)},t.prototype.getLayers=function(){var t={};return xk(this._i,(function(e,n,i){t[e.id]=e})),t},t.prototype._updateLayerStatus=function(t,e){var n,i=this;if(i._singleCanvas)for(var r=1;r<t.length;r++){var a=t[r];if(a.zlevel!==t[r-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}xk(i._i,(function(t){t.__dirty=!1,mk(t,(function(t){t.used=!1,t.endIdxNew=0,t.notClearIdx=-1}))}),Mk);for(var o=null,s=null,l=!1,u=0,c=t.length;u<c;u++){a=t[u];var h=a.zlevel,d=a.incremental,p=void 0;if(n!==h&&(n=h,l=!1),d?(l=!0,p=rb):p=l?ib:ab,o&&h===o.zlevel&&p===o.zlevel2||(o=i._ensureLayer(h,p),s=null,o.__builtin__)){if((!s||d!==s.key)&&(s=vk(o,d),!s.used))if(s.used=!0,e||s.first!==a.id)o.__dirty=!0,s.first=a.id,s.startIdx=s.drawIdx=u,s.endIdx=u+1;else{var f=u-s.startIdx;s.startIdx=u,s.drawIdx+=f,s.endIdx+=f}s.endIdxNew=u+1,a.__dirty&Le&&!a.__inHover&&((!d||!a.notClear&&u<s.drawIdx)&&(o.__dirty=!0),d&&a.notClear&&s.notClearIdx<0&&(s.notClearIdx=u))}else x["logError"]("ZLevel "+h+" has been used by unknown layer "+o.id)}xk(i._i,(function(e){for(var n=e.__cursorStack,r=e.__cursors,a=n.length-1;a>=0;a--){var o=r.get(n[a]);if(o.used){var s=o.endIdxNew;(ik(e)?s<o.drawIdx:s!==o.endIdx||!s||t[s-1].id!==o.last)&&(e.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?t[s-1].id:NaN}else e.__dirty=!0,r.removeKey(n[a]),n.splice(a,1)}e.__dirty&&(mk(e,(function(t){t.drawIdx=t.startIdx})),i._hoverLayerDirty===uk&&(i._hoverLayerDirty=ck))}),Mk)},t.prototype.clear=function(){return xk(this._i,(function(t){t.clear(),gk(t)}),_k),this},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,xk(this._i,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?x["merge"](n[t],e,!0):n[t]=e,xk(this._i,(function(t,e){x["merge"](t,n[e],!0)}))}},t.prototype.delLayer=function(t){for(var e=this._i.layerStack,n=this._i.layers,i=e.length-1;i>=0;i--){var r=e[i];if(r.zl===t){var a=n[t][r.zl2];if(a.__builtin__)continue;if(e.splice(i,1),n[t][r.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;null!=t&&(i.width=t),null!=e&&(i.height=e),t=X_(r,0,i),e=X_(r,1,i),n.style.display="",this._width===t&&e===this._height||(n.style.width=t+"px",n.style.height=e+"px",xk(this._i,(function(n){n.resize(t,e)})),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this._ensureLayer(lk).resize(t,e)}return this},t.prototype.clearLayer=function(t){x["each"](this._i.layers[t],(function(t){t&&!t.__builtin__&&t.clear()}))},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[lk][0].dom;var e=new ok("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;xk(this._i,(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var u=o[s];_w(n,u,a)}ww(n,a)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),Tk=Ok;function Ik(t){t.registerPainter("canvas",Tk)}var Ck=Math.sin,Ak=Math.cos,kk=Math.PI,Dk=2*Math.PI,Lk=180/kk,Pk=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,a){this._add("C",t,e,n,i,r,a)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,a){this.ellipse(t,e,n,n,0,i,r,a)},t.prototype.ellipse=function(t,e,n,i,r,a,o,s){var l=o-a,u=!s,c=Math.abs(l),h=Object(_n["j"])(c-Dk)||(u?l>=Dk:-l>=Dk),d=l>0?l%Dk:l%Dk+Dk,p=!1;p=!!h||!Object(_n["j"])(c)&&d>=kk===!!u;var f=t+n*Ak(a),g=e+i*Ck(a);this._start&&this._add("M",f,g);var y=Math.round(r*Lk);if(h){var v=1/this._p,m=(u?1:-1)*(Dk-v);this._add("A",n,i,y,1,+u,t+n*Ak(a+m),e+i*Ck(a+m)),v>.01&&this._add("A",n,i,y,0,+u,f,g)}else{var b=t+n*Ak(o),x=e+i*Ck(o);this._add("A",n,i,y,+p,+u,b,x)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,a,o,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),jk=Pk,Nk="none",Rk=Math.round;function Ek(t){var e=t.fill;return null!=e&&e!==Nk}function zk(t){var e=t.stroke;return null!=e&&e!==Nk}var Bk=["lineCap","miterLimit","lineJoin"],Vk=Object(x["map"])(Bk,(function(t){return"stroke-"+t.toLowerCase()}));function Fk(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof Xl)t("opacity",r);else{if(Ek(e)){var a=Object(_n["p"])(e.fill);t("fill",a.color);var o=null!=e.fillOpacity?e.fillOpacity*a.opacity*r:a.opacity*r;(i||o<1)&&t("fill-opacity",o)}else t("fill",Nk);if(zk(e)){var s=Object(_n["p"])(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,h=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||h)&&t("paint-order",h?"stroke":"fill"),(i||c<1)&&t("stroke-opacity",c),e.lineDash){var d=Z_(n),p=d[0],f=d[1];p&&(f=Rk(f||0),t("stroke-dasharray",p.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray",Nk);for(var g=0;g<Bk.length;g++){var y=Bk[g];if(i||e[y]!==Nl[y]){var v=e[y]||Nl[y];v&&t(Vk[g],v)}}}else i&&t("stroke",Nk)}}var Hk="http://www.w3.org/2000/svg",Gk="http://www.w3.org/1999/xlink",Wk="http://www.w3.org/2000/xmlns/",Yk="http://www.w3.org/XML/1998/namespace",Uk="ecmeta_";function Xk(t){return document.createElementNS(Hk,t)}function $k(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function Zk(t,e){var n=[];if(e)for(var i in e){var r=e[i],a=i;!1!==r&&(!0!==r&&null!=r&&(a+='="'+r+'"'),n.push(a))}return"<"+t+" "+n.join(" ")+">"}function qk(t){return"</"+t+">"}function Kk(t,e){e=e||{};var n=e.newline?"\n":"";function i(t){var e=t.children,r=t.tag,a=t.attrs,o=t.text;return Zk(r,a)+("style"!==r?ct(o):o||"")+(e?""+n+Object(x["map"])(e,(function(t){return i(t)})).join(n)+n:"")+qk(r)}return i(t)}function Qk(t,e,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,a=i+"}",o=Object(x["map"])(Object(x["keys"])(t),(function(e){return e+r+Object(x["map"])(Object(x["keys"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),s=Object(x["map"])(Object(x["keys"])(e),(function(t){return"@keyframes "+t+r+Object(x["map"])(Object(x["keys"])(e[t]),(function(n){return n+r+Object(x["map"])(Object(x["keys"])(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+a})).join(i)+a})).join(i);return o||s?["<![CDATA[",o,s,"]]>"].join(i):""}function Jk(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function tD(t,e,n,i){return $k("svg","root",{width:t,height:e,xmlns:Hk,"xmlns:xlink":Gk,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var eD=0;function nD(){return eD++}var iD={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},rD="transform-origin";function aD(t,e,n){var i=Object(x["extend"])({},t.shape);Object(x["extend"])(i,e),t.buildPath(n,i);var r=new jk;return r.reset(Object(_n["f"])(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function oD(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[rD]=n+"px "+i+"px")}var sD={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function lD(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function uD(t,e,n){var i,r,a=t.shape.paths,o={};if(Object(x["each"])(a,(function(t){var e=Jk(n.zrId);e.animation=!0,hD(t,{},e,!0);var a=e.cssAnims,s=e.cssNodes,l=Object(x["keys"])(a),u=l.length;if(u){r=l[u-1];var c=a[r];for(var h in c){var d=c[h];o[h]=o[h]||{d:""},o[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=lD(o,n);return i.replace(r,s)}}function cD(t){return Object(x["isString"])(t)?iD[t]?"cubic-bezier("+iD[t]+")":vn(t)?t:"":""}function hD(t,e,n,i){var r=t.animators,a=r.length,o=[];if(t instanceof zm){var s=uD(t,e,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=r[u],h=[c.getMaxTime()/1e3+"s"],d=cD(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(r){var a,o=r[1],s=o.length,l={},u={},c={},h="animation-timing-function";function d(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),a=0;a<i.length;a++){var o=i[a];if(o.needsAnimate()){var s=o.keyframes,l=o.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/r*100)+"%",p=cD(c.easing),f=c.rawValue;(Object(x["isString"])(f)||Object(x["isNumber"])(f))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,p&&(e[d][h]=p))}}}}for(var p=0;p<s;p++){var f=o[p],g=f.targetName;g?"shape"===g&&d(f,u):!i&&d(f,l)}for(var y in l){var v={};Li(v,t),Object(x["extend"])(v,l[y]);var m=Object(_n["g"])(v),b=l[y][h];c[y]=m?{transform:m}:{},oD(c[y],v),b&&(c[y][h]=b)}var _=!0;for(var y in u){c[y]=c[y]||{};var w=!a;b=u[y][h];w&&(a=new pl);var S=a.len();a.reset(),c[y].d=aD(t,u[y],a);var M=a.len();if(!w&&S!==M){_=!1;break}b&&(c[y][h]=b)}if(!_)for(var y in c)delete c[y].d;if(!i)for(p=0;p<s;p++){f=o[p],g=f.targetName;"style"===g&&d(f,c,(function(t){return sD[t]}))}var O,T=Object(x["keys"])(c),I=!0;for(p=1;p<T.length;p++){var C=T[p-1],A=T[p];if(c[C][rD]!==c[A][rD]){I=!1;break}O=c[C][rD]}if(I&&O){for(var y in c)c[y][rD]&&delete c[y][rD];e[rD]=O}if(Object(x["filter"])(T,(function(t){return Object(x["keys"])(c[t]).length>0})).length){var k=lD(c,n);return k+" "+r[0]+" both"}}for(var y in l){s=g(l[y]);s&&o.push(s)}if(o.length){var v=n.zrId+"-cls-"+nD();n.cssNodes["."+v]={animation:o.join(",")},e["class"]=v}}function dD(t,e,n){if(!t.ignore)if(t.isSilent()){var i={"pointer-events":"none"};pD(i,e,n,!0)}else{var r=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=r.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=Object(xn["liftColor"])(l))}var u=r.lineWidth;if(u){var c=!r.strokeNoScale&&t.transform?t.transform[0]:1;u/=c}i={cursor:"pointer"};a&&(i.fill=a),r.stroke&&(i.stroke=r.stroke),u&&(i["stroke-width"]=u),pD(i,e,n,!0)}}function pD(t,e,n,i){var r=JSON.stringify(t),a=n.cssStyleCache[r];a||(a=n.zrId+"-cls-"+nD(),n.cssStyleCache[r]=a,n.cssNodes["."+a+(i?":hover":"")]=t),e["class"]=e["class"]?e["class"]+" "+a:a}var fD=Math.round;function gD(t){return t&&Object(x["isString"])(t.src)}function yD(t){return t&&Object(x["isFunction"])(t.toDataURL)}function vD(t,e,n,i){Fk((function(r,a){var o="fill"===r||"stroke"===r;o&&Object(_n["k"])(a)?LD(e,t,r,i):o&&Object(_n["n"])(a)?PD(n,t,r,i):t[r]=a,o&&i.ssr&&"none"===a&&(t["pointer-events"]="visible")}),e,n,!1),DD(n,t,i)}function mD(t,e){var n=Ar(e);n&&(n.each((function(e,n){null!=e&&(t[(Uk+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[Uk+"silent"]="true"))}function bD(t){return Object(_n["j"])(t[0]-1)&&Object(_n["j"])(t[1])&&Object(_n["j"])(t[2])&&Object(_n["j"])(t[3]-1)}function xD(t){return Object(_n["j"])(t[4])&&Object(_n["j"])(t[5])}function _D(t,e,n){if(e&&(!xD(e)||!bD(e))){var i=n?10:1e4;t.transform=bD(e)?"translate("+fD(e[4]*i)/i+" "+fD(e[5]*i)/i+")":Object(_n["e"])(e)}}function wD(t,e,n){for(var i=t.points,r=[],a=0;a<i.length;a++)r.push(fD(i[a][0]*n)/n),r.push(fD(i[a][1]*n)/n);e.points=r.join(" ")}function SD(t){return!t.smooth}function MD(t){var e=Object(x["map"])(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,i){for(var r=0;r<e.length;r++){var a=e[r],o=t[a[0]];null!=o&&(n[a[1]]=fD(o*i)/i)}}}var OD={circle:[MD(["cx","cy","r"])],polyline:[wD,SD],polygon:[wD,SD]};function TD(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function ID(t,e){var n=t.style,i=t.shape,r=OD[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Object(_n["f"])(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||o&&TD(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new jk),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),a.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);r[0](i,a,g)}return _D(a,t.transform),vD(a,n,t,e),mD(a,t),e.animation&&hD(t,a,e),e.emphasis&&dD(t,a,e),$k(s,t.id+"",a)}function CD(t,e){var n=t.style,i=n.image;if(i&&!Object(x["isString"])(i)&&(gD(i)?i=i.src:yD(i)&&(i=i.toDataURL())),i){var r=n.x||0,a=n.y||0,o=n.width,s=n.height,l={href:i,width:o,height:s};return r&&(l.x=r),a&&(l.y=a),_D(l,t.transform),vD(l,n,t,e),mD(l,t),e.animation&&hD(t,l,e),$k("image",t.id+"",l)}}function AD(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||Ri["a"],a=n.x||0,o=Object(_n["b"])(n.y||0,Xi(r),n.textBaseline),s=_n["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(pu(n)){var u="",c=n.fontStyle,h=hu(n.fontSize);if(!parseFloat(h))return;var d=n.fontFamily||Ri["b"],p=n.fontWeight;u+="font-size:"+h+";font-family:"+d+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),_D(l,t.transform),vD(l,n,t,e),mD(l,t),e.animation&&hD(t,l,e),$k("text",t.id+"",l,void 0,i)}}function kD(t,e){return t instanceof Bl?ID(t,e):t instanceof Xl?CD(t,e):t instanceof Hl?AD(t,e):void 0}function DD(t,e,n){var i=t.style;if(Object(_n["i"])(i)){var r=Object(_n["h"])(t),a=n.shadowCache,o=a[r];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,d=i.shadowBlur,p=Object(_n["p"])(i.shadowColor),f=p.opacity,g=p.color,y=d/2/l,v=d/2/u,m=y+" "+v;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=$k("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[$k("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),a[r]=o}e.filter=Object(_n["d"])(o)}}function LD(t,e,n,i){var r,a=t[n],o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(_n["m"])(a))r="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!Object(_n["o"])(a))return void 0;r="radialGradient",o.cx=Object(x["retrieve2"])(a.x,.5),o.cy=Object(x["retrieve2"])(a.y,.5),o.r=Object(x["retrieve2"])(a.r,.5)}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Object(_n["q"])(s[u].offset)+"%",d=s[u].color,p=Object(_n["p"])(d),f=p.color,g=p.opacity,y={offset:h};y["stop-color"]=f,g<1&&(y["stop-opacity"]=g),l.push($k("stop",u+"",y))}var v=$k(r,"",o,l),m=Kk(v),b=i.gradientCache,_=b[m];_||(_=i.zrId+"-g"+i.gradientIdx++,b[m]=_,o.id=_,i.defs[_]=$k(r,_,o,l)),e[n]=Object(_n["d"])(_)}function PD(t,e,n,i){var r,a=t.style[n],o=t.getBoundingRect(),s={},l=a.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Object(_n["l"])(a)){var d=a.imageWidth,p=a.imageHeight,f=void 0,g=a.image;if(Object(x["isString"])(g)?f=g:gD(g)?f=g.src:yD(g)&&(f=g.toDataURL()),"undefined"===typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";Object(x["assert"])(d,y),Object(x["assert"])(p,y)}else if(null==d||null==p){var v=function(t,e){if(t){var n=t.elm,i=d||e.width,r=p||e.height;"pattern"===t.tag&&(c?(r=1,i/=o.width):h&&(i=1,r/=o.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},m=Ko(f,null,t,(function(t){u||v(S,t),v(r,t)}));m&&m.width&&m.height&&(d=d||m.width,p=p||m.height)}r=$k("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else a.svgElement&&(r=Object(x["clone"])(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(r){var b,_;u?b=_=1:c?(_=1,b=s.width/o.width):h?(b=1,_=s.height/o.height):s.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(s.width=b),null==_||isNaN(_)||(s.height=_);var w=Object(_n["g"])(a);w&&(s.patternTransform=w);var S=$k("pattern","",s,[r]),M=Kk(S),O=i.patternCache,T=O[M];T||(T=i.zrId+"-p"+i.patternIdx++,O[M]=T,s.id=T,S=i.defs[T]=$k("pattern",T,s,[r])),e[n]=Object(_n["d"])(T)}}function jD(t,e,n){var i=n.clipPathCache,r=n.defs,a=i[t.id];if(!a){a=n.zrId+"-c"+n.clipPathIdx++;var o={id:a};i[t.id]=a,r[a]=$k("clipPath",a,o,[ID(t,n)])}e["clip-path"]=Object(_n["d"])(a)}function ND(t){return document.createTextNode(t)}function RD(t,e,n){t.insertBefore(e,n)}function ED(t,e){t.removeChild(e)}function zD(t,e){t.appendChild(e)}function BD(t){return t.parentNode}function VD(t){return t.nextSibling}function FD(t,e){t.textContent=e}var HD=58,GD=120,WD=$k("","");function YD(t){return void 0===t}function UD(t){return void 0!==t}function XD(t,e,n){for(var i={},r=e;r<=n;++r){var a=t[r].key;void 0!==a&&(i[a]=r)}return i}function $D(t,e){var n=t.key===e.key,i=t.tag===e.tag;return i&&n}function ZD(t){var e,n=t.children,i=t.tag;if(UD(i)){var r=t.elm=Xk(i);if(QD(WD,t),Object(x["isArray"])(n))for(e=0;e<n.length;++e){var a=n[e];null!=a&&zD(r,ZD(a))}else UD(t.text)&&!Object(x["isObject"])(t.text)&&zD(r,ND(t.text))}else t.elm=ND(t.text);return t.elm}function qD(t,e,n,i,r){for(;i<=r;++i){var a=n[i];null!=a&&RD(t,ZD(a),e)}}function KD(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(UD(r.tag)){var a=BD(r.elm);ED(a,r.elm)}else ED(t,r.elm)}}function QD(t,e){var n,i=e.elm,r=t&&t.attrs||{},a=e.attrs||{};if(r!==a){for(n in a){var o=a[n],s=r[n];s!==o&&(!0===o?i.setAttribute(n,""):!1===o?i.removeAttribute(n):"style"===n?i.style.cssText=o:n.charCodeAt(0)!==GD?i.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(Wk,n,o):n.charCodeAt(3)===HD?i.setAttributeNS(Yk,n,o):n.charCodeAt(5)===HD?i.setAttributeNS(Gk,n,o):i.setAttribute(n,o))}for(n in r)n in a||i.removeAttribute(n)}}function JD(t,e,n){var i,r,a,o,s=0,l=0,u=e.length-1,c=e[0],h=e[u],d=n.length-1,p=n[0],f=n[d];while(s<=u&&l<=d)null==c?c=e[++s]:null==h?h=e[--u]:null==p?p=n[++l]:null==f?f=n[--d]:$D(c,p)?(tL(c,p),c=e[++s],p=n[++l]):$D(h,f)?(tL(h,f),h=e[--u],f=n[--d]):$D(c,f)?(tL(c,f),RD(t,c.elm,VD(h.elm)),c=e[++s],f=n[--d]):$D(h,p)?(tL(h,p),RD(t,h.elm,c.elm),h=e[--u],p=n[++l]):(YD(i)&&(i=XD(e,s,u)),r=i[p.key],YD(r)?RD(t,ZD(p),c.elm):(a=e[r],a.tag!==p.tag?RD(t,ZD(p),c.elm):(tL(a,p),e[r]=void 0,RD(t,a.elm,c.elm))),p=n[++l]);(s<=u||l<=d)&&(s>u?(o=null==n[d+1]?null:n[d+1].elm,qD(t,o,n,l,d)):KD(t,e,s,u))}function tL(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(QD(t,e),YD(e.text)?UD(i)&&UD(r)?i!==r&&JD(n,i,r):UD(r)?(UD(t.text)&&FD(n,""),qD(n,null,r,0,r.length-1)):UD(i)?KD(n,i,0,i.length-1):UD(t.text)&&FD(n,""):t.text!==e.text&&(UD(i)&&KD(n,i,0,i.length-1),FD(n,e.text)))}function eL(t,e){if($D(t,e))tL(t,e);else{var n=t.elm,i=BD(n);ZD(e),null!==i&&(RD(i,e.elm,VD(n)),KD(i,[t],0,0))}return e}var nL=0,iL=function(){function t(t,e,n){if(this.type="svg",this.configLayer=rL("configLayer"),this.storage=e,this._opts=n=Object(x["extend"])({},n),this.root=t,this._id="zr"+nL++,this._oldVNode=tD(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=Xk("svg");QD(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",eL(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return kD(t,Jk(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=Jk(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis,r.ssr=this._opts.ssr;var a=[],o=this._bgVNode=aL(n,i,this._backgroundColor,r);o&&a.push(o);var s=t.compress?null:this._mainVNode=$k("g","main",{},[]);this._paintList(e,r,s?s.children:a),s&&a.push(s);var l=Object(x["map"])(Object(x["keys"])(r.defs),(function(t){return r.defs[t]}));if(l.length&&a.push($k("defs","defs",{},l)),t.animation){var u=Qk(r.cssNodes,r.cssAnims,{newline:!0});if(u){var c=$k("style","stl",{},[],u);a.push(c)}}return tD(n,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},Kk(this.renderToVNode({animation:Object(x["retrieve2"])(t.cssAnimation,!0),emphasis:Object(x["retrieve2"])(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(x["retrieve2"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,a=t.length,o=[],s=0,l=0,u=0;u<a;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0;f--)if(h&&r&&h[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=o[s-1];for(var y=f+1;y<d;y++){var v={};jD(h[y],v,e);var m=$k("g","clip-g-"+l++,v,[]);(i?i.children:n).push(m),o[s++]=m,i=m}r=h;var b=kD(c,e);b&&(i?i.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=X_(i,0,n),e=X_(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var a=r.style;a.width=t+"px",a.height=e+"px"}if(Object(_n["n"])(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",t),o.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Object(_n["c"])(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function rL(t){return function(){0}}function aL(t,e,n,i){var r;if(n&&"none"!==n)if(r=$k("rect","bg",{width:t,height:e,x:"0",y:"0"}),Object(_n["k"])(n))LD({fill:n},r.attrs,"fill",i);else if(Object(_n["n"])(n))PD({style:{fill:n},dirty:x["noop"],getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var a=Object(_n["p"])(n),o=a.color,s=a.opacity;r.attrs.fill=o,s<1&&(r.attrs["fill-opacity"]=s)}return r}var oL=iL;function sL(t){t.registerPainter("svg",oL)}var lL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.getInitialData=function(t){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new vr,n=z_("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),a="none"===i?"circle":i,o=.8*t.itemHeight,s=z_(a,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=Xp.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(vv),uL=lL;function cL(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Xg(t,e,n[0]);return null!=r?r+"":null}if(i){for(var a=[],o=0;o<n.length;o++)a.push(Xg(t,e,n[o]));return a.join(" ")}}function hL(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(x["isArray"])(e))return e+"";for(var i=[],r=0;r<n.length;r++){var a=t.getDimensionIndex(n[r]);a>=0&&i.push(e[a])}return i.join(" ")}var dL=function(t){function e(e,n,i,r){var a=t.call(this)||this;return a.updateData(e,n,i,r),a}return f(e,t),e.prototype._createSymbol=function(t,e,n,i,r,a){this.removeAll();var o=z_(t,-1,-1,2,2,null,a);o.attr({z2:Object(x["retrieve2"])(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=pL,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){wc(this.childAt(0))},e.prototype.downplay=function(){Sc(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",o=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=a!==this._symbolType,c=r&&r.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,s,l,h)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):nh(d,p,o,n),lh(d)}if(this._updateCommon(t,n,s,i,r),u){d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,ih(d,p,o,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var a,o,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(i&&(a=i.emphasisItemStyle,o=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");a=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),o=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=fh(y),d=v.getShallow("scale"),p=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var b=V_(t.getItemVisual(e,"symbolOffset"),n);b&&(f.x=b[0],f.y=b[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),w=_.fill;if(f instanceof Xl){var S=f.style;f.useStyle(Object(x["extend"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else f.__isEmptyBrush?f.useStyle(Object(x["extend"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(w,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),O=this._z2;null!=M?null==O&&(this._z2=f.z2,f.z2+=M):null!=O&&(f.z2=O,this._z2=null);var T=r&&r.useNameLabel;function I(e){return T?t.getName(e):cL(t,e)}ph(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:I,inheritColor:w,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=a,f.ensureState("select").style=s,f.ensureState("blur").style=o;var A=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*A,C.scaleY=this._sizeY*A,this.setSymbolScale(1),Fc(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=wu(this).dataIndex,a=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var o=i.getTextContent();o&&ah(o,{style:{opacity:0}},e,{dataIndex:r,removeOpt:a,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ah(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return B_(t.getItemVisual(e,"symbolSize"))},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(vr);function pL(t,e){this.parent.drift(t,e)}var fL=dL;function gL(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(n))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function yL(t){return null==t||Object(x["isObject"])(t)||(t={isIgnore:t}),t||{}}function vL(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:fh(e),cursorStyle:e.get("cursor")}}function mL(t,e,n,i,r,a,o){var s=new t(e,n,i,r);return s.setPosition(a),e.setItemGraphicEl(n,s),o.add(s),s}var bL=function(){function t(t){this.group=new vr,this._SymbolCtor=t||fL}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yL(e);var n=this.group,i=t.hostModel,r=this._data,a=this._SymbolCtor,o=e.disableAnimation,s=this._seriesScope=vL(t),l={disableAnimation:o},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);gL(t,r,i,e)&&mL(a,t,i,s,l,r,n)})).update((function(c,h){var d=r.getItemGraphicEl(h),p=u(c);if(gL(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new a(t,c,s,l),d.setPosition(p);else{d.updateData(t,c,s,l);var y={x:p[0],y:p[1]};o?d.attr(y):nh(d,y,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=this,i=e.getStore(),r=0,a=i.count();r<a;r++){var o=e.getItemGraphicEl(r),s=n._getSymbolPoint(r);gL(e,s,r,t)?(o=o||mL(n._SymbolCtor,e,r,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),e.setItemGraphicEl(r,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vL(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n,i){function r(t){t.isGroup||(t.incremental=n,t.ensureState("emphasis").hoverLayer=fb)}this._progressiveEls=[],i=yL(i);for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(gL(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(r),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){Ub(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),xL=bL;function _L(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),a=wL(r,n),o=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(o),c="x"===s||"radius"===s?1:0,h=Object(x["map"])(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return mO(e,h[0])&&(d=!0,h[0]=p),mO(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function wL(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:Object(x["isNumber"])(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function SL(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,i),o[1-a]=r,e.dataToPoint(o)}function ML(t,e){return!isFinite(t)||!isFinite(e)}typeof Int8Array!==Mu&&Int8Array,typeof Int16Array!==Mu&&Int16Array,typeof Int32Array!==Mu&&Int32Array,typeof Uint8Array!==Mu&&Uint8Array,typeof Uint16Array!==Mu&&Uint16Array,typeof Uint32Array!==Mu&&Uint32Array,typeof Uint8ClampedArray!==Mu&&Uint8ClampedArray;var OL=typeof Float32Array!==Mu?Float32Array:void 0,TL=typeof Float64Array!==Mu?Float64Array:void 0;function IL(t){return CL({ctor:OL},t).arr}function CL(t,e){var n=t.arr,i=t.ctor;if(e>ua&&(e=ua),!n||t.typed&&n.length<e){var r=void 0;if(i)try{r=new i(e),t.typed=!0,n&&r.set(n)}catch(s){0}if(!r&&(r=[],t.typed=!1,n))for(var a=0,o=n.length;a<o;a++)r[a]=n[a];t.arr=r}return t}function AL(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function kL(t,e,n,i,r,a,o,s){for(var l=AL(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],y=_L(r,e,o),v=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],_=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var M=v[w],O=v[w+1],T=m[S],I=m[S+1];(isNaN(M)||isNaN(O))&&(M=T,O=I),u.push(M,O),c.push(T,I),h.push(n[w],n[w+1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var C=x.idx,A=y.dataDimsForPoint,k=r.dataToPoint([e.get(A[0],C),e.get(A[1],C)]);S=2*C,u.push(k[0],k[1]),c.push(m[S],m[S+1]);var D=SL(y,r,e,C);h.push(D[0],D[1]),d.push(i[S],i[S+1]),g.push(e.getRawIndex(C));break;case"-":_=!1}_&&(p.push(x),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var L=u.length,P=IL(L),j=IL(L),N=IL(L),R=IL(L),E=[];for(b=0;b<f.length;b++){var z=f[b],B=2*b,V=2*z;P[B]=u[V],P[B+1]=u[V+1],j[B]=c[V],j[B+1]=c[V+1],N[B]=h[V],N[B+1]=h[V+1],R[B]=d[V],R[B+1]=d[V+1],E[b]=p[z]}return{current:P,next:j,stackedOnCurrent:N,stackedOnNext:R,status:E}}var DL=Math.min,LL=Math.max;function PL(t,e,n,i,r,a,o,s,l){for(var u,c,h,d,p,f,g=n,y=0;y<i;y++){var v=e[2*g],m=e[2*g+1];if(g>=r||g<0)break;if(ML(v,m)){if(l){g+=a;continue}break}if(g===n)t[a>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var b=v-u,x=m-c;if(b*b+x*x<.5){g+=a;continue}if(o>0){var _=g+a,w=e[2*_],S=e[2*_+1];while(w===v&&S===m&&y<i)y++,_+=a,g+=a,w=e[2*_],S=e[2*_+1],v=e[2*g],m=e[2*g+1],b=v-u,x=m-c;var M=y+1;if(l)while(ML(w,S)&&M<i)M++,_+=a,w=e[2*_],S=e[2*_+1];var O=.5,T=0,I=0,C=void 0,A=void 0;if(M>=i||ML(w,S))p=v,f=m;else{T=w-u,I=S-c;var k=v-u,D=w-v,L=m-c,P=S-m,j=void 0,N=void 0;if("x"===s){j=Math.abs(k),N=Math.abs(D);var R=T>0?1:-1;p=v-R*j*o,f=m,C=v+R*N*o,A=m}else if("y"===s){j=Math.abs(L),N=Math.abs(P);var E=I>0?1:-1;p=v,f=m-E*j*o,C=v,A=m+E*N*o}else j=Math.sqrt(k*k+L*L),N=Math.sqrt(D*D+P*P),O=N/(N+j),p=v-T*o*(1-O),f=m-I*o*(1-O),C=v+T*o*O,A=m+I*o*O,C=DL(C,LL(w,v)),A=DL(A,LL(S,m)),C=LL(C,DL(w,v)),A=LL(A,DL(S,m)),T=C-v,I=A-m,p=v-T*j/N,f=m-I*j/N,p=DL(p,LL(u,v)),f=DL(f,LL(c,m)),p=LL(p,DL(u,v)),f=LL(f,DL(c,m)),T=v-p,I=m-f,C=v+T*N/j,A=m+I*N/j}t.bezierCurveTo(h,d,p,f,v,m),h=C,d=A}else t.lineTo(v,m)}u=v,c=m,g+=a}return y}var jL=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),NL=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new jL},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0;r--)if(!ML(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!ML(n[2*i],n[2*i+1]))break}while(i<r)i+=PL(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,a=r.data,o=pl.CMD,s="x"===e,l=[],u=0;u<a.length;){var c=a[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,y=void 0,v=void 0;switch(c){case o.M:n=a[u++],i=a[u++];break;case o.L:if(h=a[u++],d=a[u++],v=s?(t-n)/(h-n):(t-i)/(d-i),v<=1&&v>=0){var m=s?(d-i)*v+i:(h-n)*v+n;return s?[t,m]:[m,t]}n=h,i=d;break;case o.C:h=a[u++],d=a[u++],p=a[u++],f=a[u++],g=a[u++],y=a[u++];var b=s?rn(n,h,p,g,t,l):rn(i,d,f,y,t,l);if(b>0)for(var x=0;x<b;x++){var _=l[x];if(_<=1&&_>=0){m=s?en(i,d,f,y,_):en(n,h,p,g,_);return s?[t,m]:[m,t]}}n=g,i=y;break}}},e}(Bl),RL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e}(jL),EL=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return f(e,t),e.prototype.getDefaultShape=function(){return new RL},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,a=n.length/2,o=e.smoothMonotone;if(e.connectNulls){for(;a>0;a--)if(!ML(n[2*a-2],n[2*a-1]))break;for(;r<a;r++)if(!ML(n[2*r],n[2*r+1]))break}while(r<a){var s=PL(t,n,r,a,a,1,e.smooth,o,e.connectNulls);PL(t,i,r+s-1,s,a,-1,e.stackedOnSmooth,o,e.connectNulls),r+=s+1,t.closePath()}},e}(Bl);function zL(t,e,n,i,r){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=n.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new nu({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=Object(x["isFunction"])(r)?function(t){r(t,h)}:null;ih(h,{shape:{width:l,height:u,x:o,y:s}},n,null,i,g)}return h}function BL(t,e,n){var i=t.getArea(),r=Jr(i.r0,1),a=Jr(i.r,1),o=new pm({shape:{cx:Jr(t.cx,1),cy:Jr(t.cy,1),r0:r,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?o.shape.endAngle=i.startAngle:o.shape.r=r,ih(o,{shape:{endAngle:i.endAngle,r:a}},n)}return o}function VL(t,e,n,i,r){return t?"polar"===t.type?BL(t,e,n):"cartesian2d"===t.type?zL(t,e,n,i,r):null:null}var FL=0,HL=1,GL=2;function WL(t,e,n){t?e.setClipPath(n):e.removeClipPath()}function YL(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function UL(t,e){return t.type===e}function XL(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]&&!!t.getViewRect}function $L(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function ZL(t){for(var e=po(),n=po(),i=0;i<t.length;){var r=t[i++],a=t[i++];ML(r,a)||(fo(e,r),fo(n,a))}return[e,n]}function qL(t,e){var n=ZL(t),i=n[0],r=n[1],a=ZL(e),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(r[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(r[1]-s[1]))}function KL(t){return x["isNumber"](t)?t:t?.5:0}function QL(t,e,n){if(null==n.valueDim)return[];for(var i=e.count(),r=IL(2*i),a=0;a<i;a++){var o=SL(n,t,e,a);r[2*a]=o[0],r[2*a+1]=o[1]}return r}function JL(t,e,n,i,r){var a=n.getBaseAxis(),o="x"===a.dim||"radius"===a.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(r){for(l=0;l<t.length;l+=2){var p=e||t;ML(p[l],p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[o]=h[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var f=(c[o]+h[o])/2,g=[];u[o]=g[o]=f,u[1-o]=c[1-o],g[1-o]=h[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function tP(t,e){var n,i,r=[],a=t.length;function o(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i),a=Object(xn["lerp"])(r,[t.color,e.color]);return{coord:n,color:a}}for(var s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?r.push(o(i,l,e)):n&&r.push(o(n,l,0),o(n,l,e));break}n&&(r.push(o(n,l,0)),n=null),r.push(l),i=l}}return r}function eP(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,a,o=i.length-1;o>=0;o--){var s=t.getDimensionInfo(i[o].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){a=i[o];break}}if(a){var l=e.getAxis(r),u=x["map"](a.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=tP(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=10,g=d[0].coord-f,y=d[p-1].coord+f,v=y-g;if(v<.001)return"transparent";x["each"](d,(function(t){t.offset=(t.coord-g)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new Hm(0,0,0,0,d,!0);return m[r]=g,m[r+"2"]=y,m}}}function nP(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var a=n.getAxesByScale("ordinal")[0];if(a&&(!r||!iP(a,e))){var o=e.mapDimension(a.dim),s={};return x["each"](a.getViewLabels(),(function(t){t.tick.offInterval||(s[tI(a.scale,t.tick)]=1)})),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}function iP(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),a=Math.max(1,Math.round(r/5)),o=0;o<r;o+=a)if(1.5*fL.getSymbolSize(e,o)[t.isHorizontal()?1:0]>i)return!1;return!0}function rP(t){for(var e=t.length/2;e>0;e--)if(!ML(t[2*e-2],t[2*e-1]))break;return e-1}function aP(t,e){return[t[2*e],t[2*e+1]]}function oP(t,e,n){for(var i,r,a=t.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u<a;u++)if(r=t[2*u+o],!ML(r,t[2*u+1-o]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function sP(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Xu.length;e++)if(t.get([Xu[e],"endLabel","show"]))return!0;return!1}function lP(t,e,n,i){if(UL(e,"cartesian2d")){var r=i.getModel("endLabel"),a=r.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=sP(i)?function(n,i){t._endLabelOnDuring(n,i,o,s,a,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=zL(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return BL(e,n,i)}function uP(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,a=i?r?"right":"left":"center",o=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var cP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.init=function(){var t=new vr,e=new xL;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=x["bind"](this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,a=t.getData(),o=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=a.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),y=!s.isEmpty(),v=s.get("origin"),m=_L(i,a,v),b=y&&QL(i,a,m),_=t.get("showSymbol"),w=t.get("connectNulls"),S=_&&!u&&nP(t,a,i),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),M.setItemGraphicEl(e,null))})),_||h.remove(),r.add(f);var O,T=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(O=i.getArea(),null!=O.width?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var I=eP(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&c.type===i.type&&T===this._step){y&&!p?p=this._newPolygon(l,b):p&&!y&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,ip(I));var C=f.getClipPath();if(C){var A=lP(this,i,!1,t);ih(C,{shape:A.shape},t)}else f.setClipPath(lP(this,i,!0,t));_&&h.updateData(a,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),$L(this._stackedOnPoints,b)&&$L(this._points,l)||(g?this._doUpdateAnimation(a,b,i,n,T,v,w):(T&&(b&&(b=JL(b,l,i,T,w)),l=JL(l,null,i,T,w)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:b})))}else _&&h.updateData(a,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(a,i,O),T&&(b&&(b=JL(b,l,i,T,w)),l=JL(l,null,i,T,w)),d=this._newPolyline(l),y?p=this._newPolygon(l,b):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,ip(I)),f.setClipPath(lP(this,i,!0,t));var k=t.getModel("emphasis"),D=k.get("focus"),L=k.get("blurScope"),P=k.get("disabled");if(d.useStyle(x["defaults"](o.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Yc(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var j=d.getState("emphasis").style;j.lineWidth=+d.style.lineWidth+1}wu(d).seriesIndex=t.seriesIndex,Fc(d,D,L,P);var N=KL(t.get("smooth")),R=t.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:R,connectNulls:w}),p){var E=a.getCalculationInfo("stackedOnSeries"),z=0;p.useStyle(x["defaults"](s.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),E&&(z=KL(E.get("smooth"))),p.setShape({smooth:N,stackedOnSmooth:z,smoothMonotone:R,connectNulls:w}),Yc(p,t,"areaStyle"),wu(p).seriesIndex=t.seriesIndex,Fc(p,D,L,P)}var B=this._changePolyState;a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=i,this._stackedOnPoints=b,this._points=l,this._step=T,this._valueOrigin=v;var V=t.get("triggerEvent"),F=t.get("triggerLineEvent");var H=!0===F||!0===V||"line"===V,G=!0===F||!0===V||"area"===V;this.packEventData(t,d,H),p&&this.packEventData(t,p,G)},e.prototype.packEventData=function(t,e,n){wu(e).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:e===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),a=qa(r,i);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=r.getLayout("points"),s=r.getItemGraphicEl(a);if(!s){var l=o[2*a],u=o[2*a+1];if(ML(l,u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;s=new fL(r,a),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else px.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),a=qa(r,i);if(this._changePolyState("normal"),null!=a&&a>=0){var o=r.getItemGraphicEl(a);o&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else px.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;pc(this._polyline,t),e&&pc(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new NL({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new EL({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,a=e.getBaseAxis(),o=a.inverse;"cartesian2d"===e.type?(i=a.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===a.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");x["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=x["isFunction"](u)?u(null):u;t.eachItemGraphicEl((function(t,a){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(h);i?(d=g.startAngle,p=g.endAngle,f=-y[1]/180*Math.PI):(d=g.r0,p=g.r,f=y[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,f=t.x):(d=v.y+v.height,p=v.y,f=t.y)}var m=p===d?0:(f-d)/(p-d);o&&(m=1-m);var b=x["isFunction"](u)?u(a):l*m+c,_=s.getSymbolPath(),w=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(sP(t)){var r=t.getData(),a=this._polyline,o=r.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new _u({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=rP(o);l>=0&&(ph(a,fh(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?hL(r,n):cL(r,t)},enableTextSetter:!0},uP(i,e)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,a,o){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=a.get("precision"),p=a.get("distance")||0,f=o.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?p:0)*(y?-1:1),x=(g?0:-p)*(y?-1:1),_=g?"x":"y",w=oP(u,m,_),S=w.range,M=S[1]-S[0],O=void 0;if(M>=1){if(M>1&&!h){var T=aP(u,S[0]);s.attr({x:T[0]+b,y:T[1]+x}),r&&(O=c.getRawValue(S[0]))}else{T=l.getPointOn(m,_);T&&s.attr({x:T[0]+b,y:T[1]+x});var I=c.getRawValue(S[0]),C=c.getRawValue(S[1]);r&&(O=uo(n,d,I,C,w.t))}i.lastFrameIndex=S[0]}else{var A=1===t||i.lastFrameIndex>0?S[0]:0;T=aP(u,A);r&&(O=c.getRawValue(A)),s.attr({x:T[0]+b,y:T[1]+x})}if(r){var k=Mh(s);"function"===typeof k.setLabelText&&k.setLabelText(O)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,a,o){var s=this._polyline,l=this._polygon,u=t.hostModel,c=kL(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=JL(c.stackedOnCurrent,c.current,n,r,o),h=JL(c.current,null,n,r,o),f=JL(c.stackedOnNext,c.next,n,r,o),p=JL(c.next,null,n,r,o)),qL(h,p)>3e3||l&&qL(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),nh(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),nh(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=c.status,m=0;m<v.length;m++){var b=v[m].cmd;if("="===b){var x=t.getItemGraphicEl(v[m].idx1);x&&y.push({el:x,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,i=2*y[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(px),hP=cP;function dP(t,e){return{seriesType:t,plan:xv(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,a=e||r.large;if(i){var o=Object(x["map"])(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");mO(n,o[0])&&(o[0]=l),mO(n,o[1])&&(o[1]=l);var u=n.getStore(),c=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=a&&IL(n*s),o=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=i.dataToPoint(g,null,l)}else o[0]=u.get(c,d),o[1]=u.get(h,d),f=i.dataToPoint(o,null,l);a?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(d,f.slice())}a&&(e.setLayout("points",r),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}}var pP={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},fP=function(t){return Math.round(t.length/2)};function gP(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,o=i.count();if(o>10&&"cartesian2d"===a.type&&r){var s=a.getBaseAxis(),l=a.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(o/h);if(isFinite(d)&&d>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/d));var p=void 0;Object(x["isString"])(r)?p=pP[r]:Object(x["isFunction"])(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,fP))}}}}}function yP(t){t.registerChartView(hP),t.registerSeriesModel(uL),t.registerLayout(dP("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,gP("line"))}var vP=null;function mP(t){vP||(vP=t)}function bP(){return vP}var xP="expandAxisBreak",_P="collapseAxisBreak",wP="toggleAxisBreak",SP="axisbreakchanged",MP={type:xP,event:SP,update:"update",refineEvent:IP},OP={type:_P,event:SP,update:"update",refineEvent:IP},TP={type:wP,event:SP,update:"update",refineEvent:IP};function IP(t,e,n,i){var r=[];return Object(x["each"])(t,(function(t){r=r.concat(t.eventBreaks)})),{eventContent:{breaks:r}}}function CP(t){function e(t,e){var n=[],i=Ja(e,t);function r(e,r){Object(x["each"])(i[e],(function(e){var i=e.updateAxisBreaks(t);Object(x["each"])(i.breaks,(function(t){var i;n.push(Object(x["defaults"])((i={},i[r]=e.componentIndex,i),t))}))}))}return r("xAxisModels","xAxisIndex"),r("yAxisModels","yAxisIndex"),r("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}t.registerAction(MP,e),t.registerAction(OP,e),t.registerAction(TP,e)}var AP=Math.PI,kP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],DP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],LP=Ka(),PP=Ka(),jP=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}();function NP(t,e,n,i){var r,a=n.axis,o=e.ensureRecord(n),s=[],l=aj(t.axisName)&&ZT(t.nameLocation);Object(x["each"])(i,(function(t){var e=PA(t);if(e&&!e.label.ignore){s.push(e);var n=o.transGroup;l&&(n.transform?jt(RP,n.transform):Ct(RP),e.transform&&kt(RP,RP,e.transform),ue.copy(EP,e.localRect),EP.applyTransform(RP),r?r.union(EP):ue.copy(r=new ue(0,0,0,0),EP))}}));var u=Math.abs(o.dirVec.x)>.1?"x":"y",c=o.transGroup[u];if(s.sort((function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)})),l&&r){var h=a.getExtent(),d=Math.min(h[0],h[1]),p=Math.max(h[0],h[1])-d;r.union(new ue(d,0,p,1))}o.stOccupiedRect=r,o.labelInfoList=s}var RP=It(),EP=new ue(0,0,0,0),zP=function(t,e,n,i,r,a){if(ZT(t.nameLocation)){var o=a.stOccupiedRect;o&&BP(RA({},o,a.transGroup.transform),i,r)}else VP(a.labelInfoList,a.dirVec,i,r)};function BP(t,e,n){var i=new Et;GA(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&EA(e,i)}function VP(t,e,n,i){for(var r=Et.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[r?a:o-1-a];s.label.ignore||BP(s,n,i)}}var FP=function(){function t(t,e,n,i){this.group=new vr,this._axisModel=t,this._api=e,this._local={},this._shared=i||new jP(zP),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=Object(x["retrieve2"])(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");null!=r&&"auto"!==r||(r=Object(x["retrieve2"])(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:Object(x["retrieve2"])(t.nameDirection,1),tickDirection:Object(x["retrieve2"])(t.tickDirection,1),labelDirection:Object(x["retrieve2"])(t.labelDirection,1),labelOffset:Object(x["retrieve2"])(t.labelOffset,0),silent:Object(x["retrieve2"])(t.silent,!0),axisName:i,nameLocation:Object(x["retrieve3"])(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:aj(i)&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=a;var o=new vr({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new Et(Math.cos(-a.rotation),Math.sin(-a.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Object(x["each"])(HP,(function(i){t[i]&&GP[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})})),this},t.innerTextLayout=function(t,e,n){var i,r,a=ca(e-t);return ha(a)?(r=n>0?"top":"bottom",i="center"):ha(a-AP)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=a>0&&a<AP?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:r}},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}(),HP=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],GP={axisLine:function(t,e,n,i,r,a,o){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=a.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(G(c,c,u),G(h,h,u));var p=Object(x["extend"])({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(i.get(["axisLine","breakLine"])&&ud(i.axis.scale))bP().buildAxisBreakLine(i,r,a,f);else{var g=new Cm(Object(x["extend"])({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},f));Ob(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var y=i.get(["axisLine","symbol"]);if(null!=y){var v=i.get(["axisLine","symbolSize"]);Object(x["isString"])(y)&&(y=[y,y]),(Object(x["isString"])(v)||Object(x["isNumber"])(v))&&(v=[v,v]);var m=V_(i.get(["axisLine","symbolOffset"])||0,v),b=v[0],_=v[1];Object(x["each"])([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(e,n){if("none"!==y[n]&&null!=y[n]){var i=z_(y[n],-b/2,-_/2,b,_,p.stroke,!0),a=e.r+e.offset,o=d?h:c;i.attr({rotation:e.rotate,x:o[0]+a*Math.cos(t.rotation),y:o[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}}))}}},axisTickLabelEstimate:function(t,e,n,i,r,a,o,s){var l=QP(e,r,s);l&&WP(t,e,n,i,r,a,o,MC.estimate)},axisTickLabelDetermine:function(t,e,n,i,r,a,o,s){var l=QP(e,r,s);l&&WP(t,e,n,i,r,a,o,MC.determine);var u=qP(t,r,a,i);XP(t,e.labelLayoutList,u),KP(t,r,a,i,t.tickDirection)},axisName:function(t,e,n,i,r,a,o,s){var l=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(aj(u)){var c=t.nameLocation,h=t.nameDirection,d=i.getModel("nameTextStyle"),p=i.get("nameGap")||0,f=i.axis.getExtent(),g=i.axis.inverse?-1:1,y=new Et(0,0),v=new Et(0,0);"start"===c?(y.x=f[0]-g*p,v.x=-g):"end"===c?(y.x=f[1]+g*p,v.x=g):(y.x=(f[0]+f[1])/2,y.y=t.labelOffset+h*p,v.y=h);var m=It();v.transform(Lt(m,m,t.rotation));var b,_,w=i.get("nameRotate");null!=w&&(w=w*AP/180),ZT(c)?b=FP.innerTextLayout(t.rotation,null!=w?w:t.rotation,h):(b=YP(t.rotation,c,w||0,f),_=t.raw.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(b.rotation)),!isFinite(_)&&(_=null)));var S=d.getFont(),M=i.get("nameTruncate",!0)||{},O=M.ellipsis,T=Object(x["retrieve"])(t.raw.nameTruncateMaxWidth,M.maxWidth,_),I=s.nameMarginLevel||0,C=new _u({x:y.x,y:y.y,rotation:b.rotation,silent:FP.isLabelSilent(i),style:gh(d,{text:u,font:S,overflow:"truncate",width:T,ellipsis:O,fill:d.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:d.get("align")||b.textAlign,verticalAlign:d.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Wb({el:C,componentModel:i,itemName:u}),C.__fullText=u,C.anid="name",i.get("triggerEvent")){var A=FP.makeAxisEventDataBase(i);A.targetType="axisName",A.name=u,wu(C).eventData=A}a.add(C),C.updateTransform(),e.nameEl=C;var k=l.nameLayout=PA({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:ZT(c)?kP[I]:DP[I]});if(l.nameLocation=c,r.add(C),C.decomposeTransform(),t.shouldNameMoveOverlap&&k){var D=n.ensureRecord(i);0,n.resolveAxisNameOverlap(t,n,i,k,v,D)}}}};function WP(t,e,n,i,r,a,o,s){tj(e)||JP(t,e,r,s,i,o);var l=e.labelLayoutList;nj(t,i,l,a),sj(i,t.rotation,l);var u=t.optionHideOverlap;UP(i,l,u),u&&HA(Object(x["filter"])(l,(function(t){return t&&!t.label.ignore}))),NP(t,n,i,l)}function YP(t,e,n,i){var r,a,o=ca(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return ha(o-AP/2)?(a=l?"bottom":"top",r="center"):ha(o-1.5*AP)?(a=l?"top":"bottom",r="center"):(a="middle",r=o<1.5*AP&&o>AP/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function UP(t,e,n){var i=t.axis,r=t.get(["axisLabel","customValues"]);if(!XT(i)){var a=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]),s=e.length;l(a,0,1),l(o,s-1,s-2)}function l(t,a,o){var s=PA(e[a]),l=PA(e[o]),u=i.scale;if(s&&l){if(null==t){if(!n&&r)return;var c=LP(s.label).labelInfo.tick;if(qO(u)&&c.notNice||QO(u)&&c.offInterval)return void $P(s.label)}if(!1===t||s.suggestIgnore)$P(s.label);else if(l.suggestIgnore)$P(l.label);else{var h=.1;if(!n){var d=[0,0,0,0];s=zA({marginForce:d},s),l=zA({marginForce:d},l)}GA(s,l,null,{touchThreshold:h})&&$P(t?l.label:s.label)}}}}function XP(t,e,n){t.showMinorTicks||Object(x["each"])(e,(function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var i=n[e],r=PP(i),a=LP(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===a.labelInfo.tick.value)return void $P(i)}}))}function $P(t){t&&(t.ignore=!0)}function ZP(t,e,n,i,r){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&(G(o,o,e),G(s,s,e));var c=new Cm({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Ob(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,a.push(c);var h=PP(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return a}function qP(t,e,n,i){var r=i.axis,a=i.getModel("axisTick"),o=a.get("show");if("auto"===o&&(o=!0,null!=t.raw.axisTickAutoShow&&(o=!!t.raw.axisTickAutoShow)),!o||r.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=r.getTicksCoords(),c=ZP(u,n.transform,l,Object(x["defaults"])(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)e.add(c[h]);return c}function KP(t,e,n,i,r){var a=i.axis,o=i.getModel("minorTick");if(t.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=r*o.get("length"),c=Object(x["defaults"])(l.getLineStyle(),Object(x["defaults"])(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=ZP(s[h],n.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)e.add(d[p])}}function QP(t,e,n){if(tj(t)){var i=t.axisLabelsCreationContext;0;var r=i.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<r.length;o++)a=a&&r[o]();if(a)return!1}r.length&&(e.remove(t.labelGroup),ej(t,null,null,null))}return!0}function JP(t,e,n,i,r,a){var o=r.axis,s=Object(x["retrieve"])(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new vr;n.add(l);var u=OC(i);if(s&&!o.scale.isBlank()){var c=r.getModel("axisLabel"),h=o.getViewLabels(u),d=(Object(x["retrieve"])(t.raw.labelRotate,c.get("rotate"))||0)*AP/180,p=FP.innerTextLayout(t.rotation,d,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],y=r.get("triggerEvent"),v=1/0,m=-1/0;Object(x["each"])(h,(function(t,e){var n,i=t.tick,s=t.formattedLabel,u=t.rawLabel,d=c,b=tI(o.scale,i);if(f&&f[b]){var _=f[b];Object(x["isObject"])(_)&&_.textStyle&&(d=new Vh(_.textStyle,c,r.ecModel))}var w=d.getTextColor()||r.get(["axisLine","lineStyle","color"]),S=d.getShallow("align",!0)||p.textAlign,M=Object(x["retrieve2"])(d.getShallow("alignMinLabel",!0),S),O=Object(x["retrieve2"])(d.getShallow("alignMaxLabel",!0),S),T=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||p.textVerticalAlign,I=Object(x["retrieve2"])(d.getShallow("verticalAlignMinLabel",!0),T),C=Object(x["retrieve2"])(d.getShallow("verticalAlignMaxLabel",!0),T),A=10+((null===(n=i.time)||void 0===n?void 0:n.level)||0);v=Math.min(v,A),m=Math.max(m,A);var k=new _u({x:0,y:0,rotation:0,silent:FP.isLabelSilent(r),z2:A,style:gh(d,{text:s,align:0===e?M:e===h.length-1?O:S,verticalAlign:0===e?I:e===h.length-1?C:T,fill:Object(x["isFunction"])(w)?w("category"===o.type?u:"value"===o.type?b+"":b,e):w})});k.anid="label_"+b;var D=LP(k);if(D.labelInfo=t,D.layoutRotation=p.rotation,Wb({el:k,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:u,tickIndex:e}}),y){var L=FP.makeAxisEventDataBase(r);L.targetType="axisLabel",L.value=u,L.tickIndex=e;var P=t.tick["break"];if(P){var j=P.parsedBreak;L["break"]={start:j.vmin,end:j.vmax}}"category"===o.type&&(L.dataIndex=b),wu(k).eventData=L,P&&oj(r,a,k,P)}g.push(k),l.add(k)}));var b=Object(x["map"])(g,(function(t){return{label:t,priority:LP(t).labelInfo.tick["break"]?t.z2+(m-v+1):t.z2,defaultAttr:{ignore:t.ignore}}}));ej(e,b,l,u)}else ej(e,[],l,u)}function tj(t){return!!t.labelLayoutList}function ej(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}function nj(t,e,n,i){var r=e.get(["axisLabel","margin"]);Object(x["each"])(n,(function(n,a){var o=PA(n);if(o){var s=o.label,l=LP(s);o.suggestIgnore=s.ignore,s.ignore=!1,Li(ij,rj);var u=e.axis;ij.x=u.dataToCoord(tI(u.scale,l.labelInfo.tick)),ij.y=t.labelOffset+t.labelDirection*r,ij.rotation=l.layoutRotation,i.add(ij),ij.updateTransform(),i.remove(ij),ij.decomposeTransform(),Li(s,ij),s.markRedraw(),DA(o,!0),PA(o)}}))}var ij=new nu,rj=new nu;function aj(t){return!!t}function oj(t,e,n,i){n.on("click",(function(n){var r={type:xP,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};r[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(r)}))}function sj(t,e,n){var i=od();if(i){var r=i.retrieveAxisBreakPairs(n,(function(t){return t&&LP(t.label).labelInfo.tick["break"]}),!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==a&&"auto"!==a||Object(x["each"])(r,(function(i){bP().adjustBreakLabelPair(t.axis.inverse,e,[PA(n[i[0]]),PA(n[i[1]])])}))}}var lj=FP;function uj(t,e,n){n=n||{};var i=e.axis,r={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}r.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],r.rotation=Math.PI/2*("x"===l?0:1);var f={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=f[o],r.labelOffset=a?d[c[o]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),x["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var g=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-g:g,r.z2=1,r}function cj(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function hj(t){var e={xAxisModel:null,yAxisModel:null};return x["each"](e,(function(n,i){var r=i.replace(/Model$/,""),a=t.getReferringComponents(r,eo).models[0];e[i]=a})),e}function dj(t,e,n,i,r,a){for(var o=uj(t,n),s=!1,l=!1,u=0;u<e.length;u++)$O(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new lj(n,i,o,r)}function pj(t,e,n){var i=uj(e,n);t.updateCfg(i)}function fj(t){return t.dim+"_"+t.index}function gj(){_I("liPosMinGap",yj)}function yj(t,e,n){var i,r=Object(x["createHashMap"])(),a=n.serUids,o=n.liPosMinGap,s=e.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,h=ly(c);function d(n){yI(t,e.sers,(function(t){var e=t.getRawData(),i=e.getDimensionIndex(e.mapDimension(s.dim));i>=0&&n(i,t,e.getStore())}))}var p=0;if(d((function(t,e,n){r.set(e.uid,1),a&&a.hasKey(e.uid)||(i=!0),p+=n.count()})),a&&a.keys().length===r.keys().length||(i=!0),i||null==o){CL(vj,p);var f=0;d((function(t,e,n){for(var i=0,r=n.count();i<r;++i){var a=n.get(t,i);!isFinite(a)||c&&!uy(h,a)||(u&&(a=l.transformIn(a,null)),vj.arr[f++]=a)}}));var g=vj.typed?vj.arr.subarray(0,f):(vj.arr.length=f,vj.arr);vj.typed?g.sort():ea(g);for(var y=1/0,v=1;v<f;++v){var m=g[v]-g[v-1];m>0&&m<y&&(y=m)}n.liPosMinGap=e.liPosMinGap=Oa(y)?y:f>0?oI:sI,n.serUids=r}else e.liPosMinGap=o}var vj=CL({ctor:TL},50);function mj(t){return function(e,n){var i=YC(e,{fromStat:{key:t}});if(Oa(i.w2))return[-i.w2/2,i.w2/2]}}function bj(t){return t+rI}function xj(t,e){return t+rI+e}function _j(t){return gj(),{liPosMinGap:!QO(t.scale)}}var wj="bar",Sj="pictorialBar";function Mj(t,e,n,i){OI(t,{key:e,seriesType:n,coordSysType:i,getMetrics:_j})}function Oj(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var Tj={left:0,right:0,top:0,bottom:0},Ij=["25%","25%"],Cj="cartesian2d",Aj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=Ep(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&Rp(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Rp(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Tj,outerBoundsContain:"all",outerBoundsClampWidth:Ij[0],outerBoundsClampHeight:Ij[1],backgroundColor:Xp.color.transparent,borderWidth:1,borderColor:Xp.color.neutral30},e}(Hp),kj=Aj,Dj=wo(),Lj="__ec_stack_";function Pj(t){return t.get("stack")||Lj+t.seriesIndex}function jj(t){if(QO(t.axis.scale)){for(var e=YC(t.axis),n=[],i=0;i<t.count;i++)n.push(Object(x["defaults"])({stackId:Lj+i},t));var r=Ej({bandWidthResult:e,seriesInfo:n}),a=[];for(i=0;i<t.count;i++){var o=r[Lj+i];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function Nj(t,e){var n=Rj(t,e);return n.columnMap=Ej(n),n}function Rj(t,e){var n=xj(e,Cj),i=[],r=YC(t,{fromStat:{key:n},min:1});return gI(t,n,(function(t){i.push({barWidth:$r(t.get("barWidth"),r.w),barMaxWidth:$r(t.get("barMaxWidth"),r.w),barMinWidth:$r(t.get("barMinWidth")||(Vj(t)?.5:1),r.w),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),defaultBarGap:t.get("defaultBarGap"),stackId:Pj(t)})})),{bandWidthResult:r,seriesInfo:i}}function Ej(t){var e,n,i=t.bandWidthResult.w,r=i,a=0,o=[],s={};Object(x["each"])(t.seriesInfo,(function(t,i){i||(n=t.defaultBarGap||0);var l=t.stackId;Object(x["hasOwn"])(s,l)||a++;var u=s[l];u||(u=s[l]={width:0,maxWidth:0},o.push(l));var c=t.barWidth;c&&!u.width&&(u.width=c,c=Rr(r,c),r-=c);var h=t.barMaxWidth;h&&(u.maxWidth=h);var d=t.barMinWidth;d&&(u.minWidth=d);var p=t.barGap;null!=p&&(n=p);var f=t.barCategoryGap;null!=f&&(e=f)})),null==e&&(e=Er(35-4*o.length,15)+"%");var l=$r(e,i),u=$r(n,1),c=(r-l)/(a+(a-1)*u);c=Er(c,0),Object(x["each"])(o,(function(t){var e=s[t],n=e.maxWidth,i=e.minWidth;if(e.width){o=e.width;n&&(o=Rr(o,n)),i&&(o=Er(o,i)),e.width=o,r-=o+u*o,a--}else{var o=c;n&&n<o&&(o=Rr(n,r)),i&&i>o&&(o=i),o!==c&&(e.width=o,r-=o+u*o,a--)}})),c=(r-l)/(a+(a-1)*u),c=Er(c,0);var h,d=0;Object(x["each"])(o,(function(t){var e=s[t];e.width||(e.width=c),h=e,d+=e.width*(1+u)})),h&&(d-=h.width*u);var p={},f=-d/2;return Object(x["each"])(o,(function(t){var e=s[t];p[t]=p[t]||{bandWidth:i,offset:f,width:e.width},f+=e.width*(1+u)})),p}function zj(t){return{seriesType:t,overallReset:function(e){var n=xj(t,Cj);mI(e,n,(function(e){var i=Nj(e,t);gI(e,n,(function(t){var e=i.columnMap[Pj(t)];t.getData().setLayout({bandWidth:e.bandWidth,offset:e.offset,size:e.width})}))}))}}}function Bj(t){return{seriesType:t,plan:xv(),reset:function(t){if(cj(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(r.dim)),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=mO(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=r.toGlobalCoord(r.dataToCoord(Oj(r))),p=Vj(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var i,r=t.count,l=p&&IL(3*r),u=p&&s&&IL(3*r),m=p&&IL(r),b=n.master.getRect(),x=h?b.width:b.height,_=e.getStore(),w=0;while(null!=(i=t.next())){var S=_.get(c?g:a,i),M=_.get(o,i),O=d,T=void 0;c&&(T=+S-_.get(a,i));var I=void 0,C=void 0,A=void 0,k=void 0;if(h){var D=n.dataToPoint([S,M]);c&&(O=n.dataToPoint([T,M])[0]),I=O,C=D[1]+v,A=D[0]-O,k=y,zr(A)<f&&(A=(A<0?-1:1)*f)}else{D=n.dataToPoint([M,S]);c&&(O=n.dataToPoint([M,T])[1]),I=D[0]+v,C=O,A=y,k=D[1]-O,zr(k)<f&&(k=(k<=0?-1:1)*f)}p?(l[w]=I,l[w+1]=C,l[w+2]=h?A:k,u&&(u[w]=h?b.x:I,u[w+1]=h?C:b.y,u[w+2]=x),m[i]=i):e.setItemLayout(i,{x:I,y:C,width:A,height:k}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function Vj(t){return t.pipelineContext&&t.pipelineContext.large}function Fj(t){return mj(xj(t,Cj))}function Hj(t){Dj(t,(function(){function e(e){var n=xj(e,Cj);Mj(t,n,e,Cj),HI(n,Fj(e))}e("bar"),e("pictorialBar")}))}var Gj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),a=i.dataToPoint(r);if(n)Object(x["each"])(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),o=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!o&&(s+=1),i.length<2)return;if(2===i.length)return void(a[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),a[n]=t.toGlobalCoord(c)}}));else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;a[u]+=s+l/2}return a}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(vv);vv.registerClass(Gj);var Wj=Gj,Yj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(){return OO(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.__preparePipelineContext=function(t,e){var n=Co(this,t,e);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series."+wj,e.dependencies=["grid","polar"],e.defaultOption=Yh(Wj.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Xp.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Wj),Uj=Yj,Xj=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}return t}(),$j=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return f(e,t),e.prototype.getDefaultShape=function(){return new Xj},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-r),s=r+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);d?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,o,-Math.PI+l,l,!c)):t.moveTo(p*a+n,f*a+i),t.arc(n,i,a,l,u,!c),t.arc(g*s+n,y*s+i,o,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(Bl),Zj=$j;function qj(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var a=i.position;if(!a||a instanceof Array)return Zi(e,i,r);var o=t(a),s=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(h-d)/2:0,m=Math.cos,b=Math.sin,x=u+h*m(f),_=c+h*b(f),w="left",S="top";switch(o){case"startArc":x=u+(d-s)*m(y),_=c+(d-s)*b(y),w="center",S="top";break;case"insideStartArc":x=u+(d+s)*m(y),_=c+(d+s)*b(y),w="center",S="bottom";break;case"startAngle":x=u+p*m(f)+Qj(f,s+v,!1),_=c+p*b(f)+Jj(f,s+v,!1),w="right",S="middle";break;case"insideStartAngle":x=u+p*m(f)+Qj(f,-s+v,!1),_=c+p*b(f)+Jj(f,-s+v,!1),w="left",S="middle";break;case"middle":x=u+p*m(y),_=c+p*b(y),w="center",S="middle";break;case"endArc":x=u+(h+s)*m(y),_=c+(h+s)*b(y),w="center",S="bottom";break;case"insideEndArc":x=u+(h-s)*m(y),_=c+(h-s)*b(y),w="center",S="top";break;case"endAngle":x=u+p*m(g)+Qj(g,s+v,!0),_=c+p*b(g)+Jj(g,s+v,!0),w="left",S="middle";break;case"insideEndAngle":x=u+p*m(g)+Qj(g,-s+v,!0),_=c+p*b(g)+Jj(g,-s+v,!0),w="right",S="middle";break;default:return Zi(e,i,r)}return e=e||{},e.x=x,e.y=_,e.align=w,e.verticalAlign=S,e}}function Kj(t,e,n,i){if(Object(x["isNumber"])(i))t.setTextConfig({rotation:i});else if(Object(x["isArray"])(e))t.setTextConfig({rotation:0});else{var r,a=t.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(o+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=o;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function Qj(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Jj(t,e,n){return e*Math.cos(t)*(n?1:-1)}function tN(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(x["isArray"])(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(x["map"])(i,(function(t){return $i(t,r)}))}}var eN=Math.max,nN=Math.min,iN=function(t){function e(){var e=t.call(this)||this;return e.type=wj,e._isFirstFrame=!0,e}return f(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Ub(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=oN(t,l);h&&this._enableRealtimeSort(h,o,n);var d=t.get("clip",!0)||h,p=l.getArea();a.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],b=this._backgroundEls,x=i&&i.isInitSort,_=i&&"changeAxisOrder"===i.type;function w(t){var e=dN[l.type](o,t);if(!e)return null;var n=SN(l,r,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}o.diff(s).add((function(e){var n=o.getItemModel(e),i=dN[l.type](o,e,n);if(i&&(g&&w(e),o.hasValue(e)&&hN[l.type](i))){var s=!1;d&&(s=rN[l.type](p,i));var y=aN[l.type](t,o,e,i,r,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),gN(y,o,e,n,i,t,r,"polar"===l.type),x?y.attr({shape:i}):h?sN(h,c,y,i,e,r,!1,!1):ih(y,{shape:i},t,e),o.setItemGraphicEl(e,y),a.add(y),y.ignore=s}})).update((function(e,n){var i=o.getItemModel(e),S=dN[l.type](o,e,i);if(S){if(g){var M=void 0;0===b.length?M=w(n):(M=b[n],M.useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),m[e]=M);var O=dN[l.type](o,e),T=wN(r,O,l);nh(M,{shape:T},c,e)}var I=s.getItemGraphicEl(n);if(o.hasValue(e)&&hN[l.type](S)){var C=!1;d&&(C=rN[l.type](p,S),C&&a.remove(I));var A=I&&("sector"===I.type&&f||"sausage"===I.type&&!f);if(A&&(I&&sh(I,t,n),I=null),I?lh(I):I=aN[l.type](t,o,e,S,r,c,u.model,!0,f),h&&(I.forceLabelAnimation=!0),_){var k=I.getTextContent();if(k){var D=Mh(k);null!=D.prevValue&&(D.prevValue=D.value)}}else gN(I,o,e,i,S,t,r,"polar"===l.type);x?I.attr({shape:S}):h?sN(h,c,I,S,e,r,!0,_):nh(I,{shape:S},t,e,null),o.setItemGraphicEl(e,I),I.ignore=C,a.add(I)}else a.remove(I)}})).remove((function(e){var n=s.getItemGraphicEl(e);n&&sh(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new vr);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);a.add(S),this._backgroundEls=m,this._data=o},e.prototype._renderLarge=function(t,e,n){this._clear(),bN(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),bN(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&VL(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var a=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,a,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(x["map"])(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=i.getOrdinalMeta().categories.length;o<s;++o){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>a)return!0;a=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),a=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=a;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){sh(e,t,wu(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=wj,e}(px),rN={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,a=t.y+t.height,o=eN(e.x,t.x),s=nN(e.x+e.width,r),l=eN(e.y,t.y),u=nN(e.y+e.height,a),c=s<o,h=u<l;return e.x=c&&o>r?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=nN(e.r,t.r),a=eN(e.r0,t.r0);e.r=r,e.r0=a;var o=r-a<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return o}},aN={cartesian2d:function(t,e,n,i,r,a,o,s,l){var u=new nu({shape:Object(x["extend"])({},i),z2:1});if(u.__dataIndex=n,u.name="item",a){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(t,e,n,i,r,a,o,s,l){var u=!r&&l?Zj:pm,c=new u({shape:i,z2:1});c.name="item";var h=fN(r);if(c.calculateTextPosition=qj(h,{isRoundCap:u===Zj}),a){var d=c.shape,p=r?"r":"endAngle",f={};d[p]=r?i.r0:i.startAngle,f[p]=i[p],(s?nh:ih)(c,{shape:f},a)}return c}};function oN(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function sN(t,e,n,i,r,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?nh:ih)(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(o?nh:ih)(n,{shape:u},c,r)}function lN(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var uN=["x","y","width","height"],cN=["cx","cy","r","startAngle","endAngle"],hN={cartesian2d:function(t){return!lN(t,uN)},polar:function(t){return!lN(t,cN)}},dN={cartesian2d:function(t,e,n){var i=t.getItemLayout(e);if(!i)return null;var r=n?yN(n,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*r/2,y:i.y+o*r/2,width:i.width-a*r,height:i.height-o*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function pN(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function fN(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function gN(t,e,n,i,r,a,o,s){var l=e.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var u=t.shape,c=tN(i.getModel("itemStyle"),u,!0);Object(x["extend"])(u,c),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=i.getShallow("cursor");d&&t.attr("cursor",d);var p=s?o?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":o?MN(r,a.coordinateSystem):ON(r,a.coordinateSystem),f=fh(i);ph(t,f,{labelFetcher:a,labelDataIndex:n,defaultText:cL(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var y=i.get(["label","position"]);t.textConfig.inside="middle"===y||null,Kj(t,"outside"===y?p:y,fN(o),i.get(["label","rotate"]))}Oh(g,f,a.getRawValue(n),(function(t){return hL(e,t)}));var v=i.getModel(["emphasis"]);Fc(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Yc(t,i),pN(r)&&(t.style.fill="none",t.style.stroke="none",Object(x["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function yN(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,a)}var vN=function(){function t(){}return t}(),mN=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return f(e,t),e.prototype.getDefaultShape=function(){return new vN},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,l=0;l<n.length;l+=3)o[i]=s,o[r]=n[l+2],a[i]=n[l+i],a[r]=n[l+r],t.rect(a[0],a[1],o[0],o[1])},e}(Bl);function bN(t,e,n,i){var r=t.getData(),a=r.getLayout("valueAxisHorizontal")?1:0,o=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints"),c=i?Io(t):0;if(u){var h=new mN({shape:{points:u},incremental:c,silent:!0,z2:0});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var d=new mN({shape:{points:r.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,e.add(d),d.useStyle(r.getVisual("style")),d.style.stroke=null,wu(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",xN),d.on("mousemove",xN)),n&&n.push(d)}var xN=vx((function(t){var e=this,n=_N(e,t.offsetX,t.offsetY);wu(e).dataIndex=n>=0?n:null}),30,!1);function _N(t,e,n){for(var i=t.baseDimIdx,r=1-i,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=a.length/3;c<h;c++){var d=3*c;if(l[i]=u,l[r]=a[d+2],s[i]=a[d+i],s[r]=a[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function wN(t,e,n){if(UL(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}r=n.getArea();var a=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:a.r0,r:t?r.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:2*Math.PI}}function SN(t,e,n){var i="polar"===t.type?pm:nu;return new i({shape:wN(e,n,t),silent:!0,z2:0})}function MN(t,e){if(0===t.height){var n=e.getOtherAxis(e.getBaseAxis());return n.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function ON(t,e){if(0===t.width){var n=e.getOtherAxis(e.getBaseAxis());return n.inverse?"left":"right"}return t.width>=0?"right":"left"}var TN=iN;function IN(t){t.registerChartView(TN),t.registerSeriesModel(Uj),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,zj(wj)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Bj(wj)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,gP(wj)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))})),Hj(t)}function CN(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}function AN(t,e,n){e=Object(x["isArray"])(e)&&{coordDimensions:e}||Object(x["extend"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=uO(i,e).dimensions,a=new sO(r,t);return a.initData(i,n),a}var kN=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}(),DN=kN,LN="pie",PN=Ka(),jN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DN(x["bind"](this.getData,this),x["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return AN(this,{coordDimensions:["value"],encodeDefaulter:x["curry"](rf,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=PN(n),r=i.seats;if(!r){var a=[];n.each(n.mapDimension("value"),(function(t){a.push(t)})),r=i.seats=sa(a,n.hostModel.get("percentPrecision"))}var o=t.prototype.getDataParams.call(this,e);return o.percent=r[e]||0,o.$vars.push("percent"),o},e.prototype._defaultLabelLine=function(t){ka(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."+LN,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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}(vv);hp({fullType:jN.type,getCoord2:function(t){return t.getShallow("center")}});var NN=jN,RN=Math.PI/180;function EN(t,e,n,i,r,a,o,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}VA(t,1,l,l+o)&&f(t)}function p(t){for(var a=t.rB,o=a*a,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=i+l.len,h=c*c,d=Math.sqrt(Math.abs((1-u*u/o)*h)),p=e+(d+l.len2)*r,f=p-l.label.x,g=l.targetTextWidth-f*r;BN(l,g,!0),l.label.x=p}}function f(t){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?o:a,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(a),p(o)}}function zN(t,e,n,i,r,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;GN(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++){var f=t[d];if(!GN(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,y=void 0;y="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-o-f.edgeDistance:o+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?c-o-f.bleedMargin:o+r-h-f.bleedMargin:p.x<e?p.x-o-f.bleedMargin:o+r-p.x-f.bleedMargin,f.targetTextWidth=y,BN(f,y,!1)}}EN(u,e,n,i,1,r,a,o,s,h),EN(l,e,n,i,-1,r,a,o,s,c);for(d=0;d<t.length;d++){f=t[d];if(!GN(f)&&f.linePoints){p=f.label,g=f.linePoints;var v="edge"===f.labelAlignTo,m=p.style.padding,b=m?m[1]+m[3]:0,x=p.style.backgroundColor?0:b,_=f.rect.width+x,w=g[1][0]-g[2][0];v?p.x<e?g[2][0]=o+f.edgeDistance+_+f.labelDistance:g[2][0]=o+r-f.edgeDistance-_-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function BN(t,e,n){if(null==t.labelStyleWidth){var i=t.label,r=i.style,a=t.rect,o=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=a.width+(o?0:l);if(e<c||n){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",o)}else{var d=e-l,p=e<c?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",p)}VN(a,i)}}}function VN(t,e){HN.rect=t,jA(HN,e,FN)}var FN={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},HN={};function GN(t){return"center"===t.position}function WN(t){var e,n,i=t.getData(),r=[],a=!1,o=(t.get("minShowLabelAngle")||0)*RN,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}function f(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,g=s.getTextContent(),y=s.getTextGuideLine(),v=i.getItemModel(t),m=v.getModel("label"),b=m.get("position")||v.get(["emphasis","label","position"]),_=m.get("distanceToLabelLine"),w=m.get("alignTo"),S=$r(m.get("edgeDistance"),u),M=m.get("bleedMargin");null==M&&(M=Math.min(u,d)>200?10:2);var O=v.getModel("labelLine"),T=O.get("length");T=$r(T,u);var I=O.get("length2");if(I=$r(I,u),Math.abs(h.endAngle-h.startAngle)<o)return Object(x["each"])(g.states,p),g.ignore=!0,void(y&&(Object(x["each"])(y.states,p),y.ignore=!0));if(f(g)){var C,A,k,D,L=(h.startAngle+h.endAngle)/2,P=Math.cos(L),j=Math.sin(L);e=h.cx,n=h.cy;var N="inside"===b||"inner"===b;if("center"===b)C=h.cx,A=h.cy,D="center";else{var R=(N?(h.r+h.r0)/2*P:h.r*P)+e,E=(N?(h.r+h.r0)/2*j:h.r*j)+n;if(C=R+3*P,A=E+3*j,!N){var z=R+P*(T+l-h.r),B=E+j*(T+l-h.r),V=z+(P<0?-1:1)*I,F=B;C="edge"===w?P<0?c+S:c+u-S:V+(P<0?-_:_),A=F,k=[[R,E],[z,B],[V,F]]}D=N?"center":"edge"===w?P>0?"right":"left":P>0?"left":"right"}var H=Math.PI,G=0,W=m.get("rotate");if(Object(x["isNumber"])(W))G=W*(H/180);else if("center"===b)G=0;else if("radial"===W||!0===W){var Y=P<0?-L+H:-L;G=Y}else if("tangential"===W||"tangential-noflip"===W&&"outside"!==b&&"outer"!==b){var U=Math.atan2(P,j);U<0&&(U=2*H+U);var X=j>0;X&&"tangential-noflip"!==W&&(U=H+U),G=U-H}if(a=!!G,g.x=C,g.y=A,g.rotation=G,g.setStyle({verticalAlign:"middle"}),N){g.setStyle({align:D});var $=g.states.select;$&&($.x+=g.x,$.y+=g.y)}else{var Z=new ue(0,0,0,0);VN(Z,g),r.push({label:g,labelLine:y,position:b,len:T,len2:I,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Et(P,j),linePoints:k,textAlign:D,labelDistance:_,labelAlignTo:w,edgeDistance:S,bleedMargin:M,rect:Z,unconstrainedWidth:Z.width,labelStyleWidth:g.style.width})}s.setTextConfig({inside:N})}})),!a&&t.get("avoidLabelOverlap")&&zN(r,e,n,l,u,d,c,h);for(var g=0;g<r.length;g++){var y=r[g],v=y.label,m=y.labelLine,b=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),b&&(Object(x["each"])(v.states,p),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(m){var w=y.linePoints;b||!w?(Object(x["each"])(m.states,p),m.ignore=!0):(_A(w,y.minTurnAngle),wA(w,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:w}),v.__hostTarget.textGuideLineConfig={anchor:new Et(w[0][0],w[0][1])})}}}var YN=2*Math.PI,UN=Math.PI/180,XN=Ao(LN,$N);function $N(t,e){t.eachSeriesByType(LN,(function(t){var n=t.getData(),i=n.mapDimension("value"),r=Cp(t,e),a=r.cx,o=r.cy,s=r.r,l=r.r0,u=r.viewRect,c=-t.get("startAngle")*UN,h=t.get("endAngle"),d=t.get("padAngle")*UN;h="auto"===h?c-YN:-h*UN;var p=t.get("minAngle")*UN,f=p+d,g=0;n.each(i,(function(t){!isNaN(t)&&g++}));var y=n.getSum(i),v=Math.PI/(y||g)*2,m=t.get("clockwise"),b=t.get("roseType"),x=t.get("stillShowZeroSum"),_=n.getDataExtent(i);_[0]=0;var w=m?1:-1,S=[c,h],M=w*d/2;hl(S,!m),c=S[0],h=S[1];var O=ZN(t);O.startAngle=c,O.endAngle=h,O.clockwise=m,O.cx=a,O.cy=o,O.r=s,O.r0=l;var T=Math.abs(h-c),I=T,C=0,A=c;if(n.setLayout({viewRect:u,r:s}),n.each(i,(function(t,e){var i;if(isNaN(t))n.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:o,r0:l,r:b?NaN:s});else{i="area"!==b?0===y&&x?v:t*v:T/g,i<f?(i=f,I-=f):C+=t;var r=A+w*i,u=0,c=0;d>i?(u=A+w*i/2,c=u):(u=A+M,c=r-M),n.setItemLayout(e,{angle:i,startAngle:u,endAngle:c,clockwise:m,cx:a,cy:o,r0:l,r:b?Xr(t,_,[l,s]):s}),A=r}})),I<YN&&g)if(I<=.001){var k=T/g;n.each(i,(function(t,e){if(!isNaN(t)){var i=n.getItemLayout(e);i.angle=k;var r=0,a=0;k<d?(r=c+w*(e+.5)*k,a=r):(r=c+w*e*k+M,a=c+w*(e+1)*k-M),i.startAngle=r,i.endAngle=a}}))}else v=I/C,A=c,n.each(i,(function(t,e){if(!isNaN(t)){var i=n.getItemLayout(e),r=i.angle===f?f:t*v,a=0,o=0;r<d?(a=A+w*r/2,o=a):(a=A+M,o=A+w*r-M),i.startAngle=a,i.endAngle=o,A+=w*r}}))}))}var ZN=Ka(),qN=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var a=new _u;return r.setTextContent(a),r.updateData(e,n,i,!0),r}return f(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,a=t.hostModel,o=t.getItemModel(e),s=o.getModel("emphasis"),l=t.getItemLayout(e),u=Object(x["extend"])(tN(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=a.getShallow("animationType");a.ecModel.ssr?(ih(r,{scaleX:0,scaleY:0},a,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,ih(r,{shape:{r:l.r}},a,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),ih(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},a,e)):(r.shape.endAngle=l.startAngle,nh(r,{shape:{endAngle:l.endAngle}},a,e))}else lh(r),nh(r,{shape:u},a,e);r.useStyle(t.getItemVisual(e,"style")),Yc(r,o);var h=(l.startAngle+l.endAngle)/2,d=a.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=o.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(a,t,e),r.ensureState("emphasis").shape=Object(x["extend"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},tN(s.getModel("itemStyle"),l)),Object(x["extend"])(r.ensureState("select"),{x:p,y:f,shape:tN(o.getModel(["select","itemStyle"]),l)}),Object(x["extend"])(r.ensureState("blur"),{shape:tN(o.getModel(["blur","itemStyle"]),l)});var y=r.getTextGuideLine(),v=r.getTextContent();y&&Object(x["extend"])(y.ensureState("select"),{x:p,y:f}),Object(x["extend"])(v.ensureState("select"),{x:p,y:f}),Fc(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),a=r.getModel("labelLine"),o=e.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;ph(i,fh(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=r.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Mm,this.setTextGuideLine(h)),OA(this,TA(r),{stroke:s,opacity:Object(x["retrieve3"])(a.get(["lineStyle","opacity"]),l,1)})}},e}(pm),KN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=LN,e.ignoreLabelLineUpdate=!0,e}return f(e,t),e.prototype.render=function(t,e,n,i){var r,a=t.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var l=a.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<a.count();++u)l=a.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&t.get("showEmptyCircle")){var c=ZN(t),h=new pm({shape:Object(x["clone"])(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}a.diff(o).add((function(t){var e=new qN(a,t,r);a.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(a,t,r),n.off("click"),s.add(n),a.setItemGraphicEl(t,n)})).remove((function(e){var n=o.getItemGraphicEl(e);sh(n,t,e)})).execute(),WN(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}},e.type=LN,e}(px),QN=KN;function JN(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(x["isNumber"])(i)&&!isNaN(i)&&i<0)}))}}}function tR(t){t.registerChartView(QN),t.registerSeriesModel(NN),l_(LN,t.registerAction),t.registerLayout(XN),t.registerProcessor(CN(LN)),t.registerProcessor(JN(LN))}var eR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Xp.color.primary}},universalTransition:{divideShape:"clone"}},e}(vv),nR=eR,iR=4,rR=function(){function t(){}return t}(),aR=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return f(e,t),e.prototype.getDefaultShape=function(){return new rR},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,a=this.symbolProxy,o=a.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<iR,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(o.x=c-r[0]/2,o.y=h-r[1]/2,o.width=r[0],o.height=r[1],a.buildPath(t,o,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,a=this.softClipShape;if(r){for(t=this._off;t<n.length;){var o=n[t++],s=n[t++];isNaN(o)||isNaN(s)||(a&&!a.contain(o,s)||r.fillRect(o-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,a=Math.max(r[0],4),o=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-a/2,c=i[l+1]-o/2;if(t>=u&&e>=c&&t<=u+a&&e<=c+o)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],a=i[1],o=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];o=Math.min(h,o),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new ue(o-r/2,s-a/2,l-o+r,u-s+a)}return t},e}(Bl),oR=function(){function t(){this.group=new vr}return t.prototype.updateData=function(t,e){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=this._data;if(e){var n=e.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var e=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;n=new Float32Array(n.buffer,i,e)}t.setShape("points",n),t.reset(),t.stopAnimation()}))}},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n,i){var r=this._newAdded[0],a=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),r.endIndex=t.end,r.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=n,u.setShape({points:a}),this._setCommon(u,e,i)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new aR({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=z_(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<iR;t.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var o=e.getVisual("style"),s=o&&o.fill;s&&t.setColor(s);var l=wu(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),sR=oR,lR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,uR(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),Io(e),uR(e)),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished)return{update:!0};var r=dP("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(uR(t))},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new sR:new xL,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(px);function uR(t){return{clipShape:YL(t)}}var cR=lR,hR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",eo).models[0]},e.type="cartesian2dAxis",e}(Hp);x["mixin"](hR,nI);var dR={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:Xp.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Xp.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Xp.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Xp.color.backgroundTint,Xp.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Xp.color.neutral00,borderColor:Xp.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},pR=x["merge"]({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},dR),fR=x["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Xp.color.axisMinorSplitLine,width:1}}},dR),gR=x["merge"]({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fR),yR=x["defaults"]({logBase:10},fR),vR={category:pR,value:fR,time:gR,log:yR};function mR(t,e,n,i){Object(x["each"])(jT,(function(r,a){var o=Object(x["merge"])(Object(x["merge"])({},vR[a],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return f(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Np(this),i=n?Ep(t):{},r=e.getTheme();Object(x["merge"])(t,r.get(a+"Axis")),Object(x["merge"])(t,this.getDefaultOption()),t.type=bR(t),n&&Rp(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=DO.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(t){var e=bP();return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+a,n.defaultOption=o,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",bR)}function bR(t){return t.type||(t.data?"category":"value")}var xR=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return x["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),x["filter"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),_R=xR,wR=["x","y"];function SR(t){return("interval"===t.type||"time"===t.type)&&!ud(t)}var MR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Cj,e.dimensions=wR,e}return f(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(SR(t)&&SR(e)){var n=HO(t,null),i=HO(e,null),r=this.dataToPoint([n[0],i[0]]),a=this.dataToPoint([n[1],i[1]]),o=n[1]-n[0],s=i[1]-i[0];if(o&&s){var l=(a[0]-r[0])/o,u=(a[1]-r[1])/s,c=r[0]-n[0]*l,h=r[1]-i[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=jt([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),a=new ue(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return G(n,t,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(i,e)),n[1]=o.toGlobalCoord(o.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),a=i.getExtent(),o=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),o),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),e},e.prototype.pointToData=function(t,e,n){if(n=n||[],this._invTransform)return G(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,a=Math.max(e[0],e[1])-i+t,o=Math.max(n[0],n[1])-r+t;return new ue(i,r,a,o)},e}(_R),OR=MR,TR=function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.index=0,o.type=r||"value",o.position=a||"bottom",o}return f(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(QC),IR=TR;function CR(t,e){var n=t.scale,i=t.model;var r,a,o,s=WI(n,i,i.ecModel,t,null),l=KO(n),u=KO(e)?e.intervalStub:e,c=l?n.intervalStub:n,h=n.base,d=u.getTicks(),p=u.getTicks({expandToNicedExtent:!0}),f=d.length-1;if(1===f)r=a=0,o=1;else if(2===f){var g=zr(d[0].value-d[1].value),y=zr(d[1].value-d[2].value);r=a=0,g===y?o=2:(o=1,g<y?r=g/y:a=y/g)}else{var v=u.getConfig().interval;r=(1-(d[0].value-p[0].value)/v)%1,a=(1-(p[f].value-d[f].value)/v)%1,o=f-(r?1:0)-(a?1:0)}var m,b,x,_,w,S,M=s.zoomFixMM,O=M[0]||M[1],T=[s.fixMM[0]||O,s.fixMM[1]||O],I=n.getExtent(),C=c.getExtent(),A=iT(C,T);function k(t){for(var e=50,n=0;n<e;n++){if(t())break;x=l?x*Er(h,2):JO(x),_=tT(x)}}function D(){m=Jr(S-x*r,_)}function L(){b=Jr(w+x*a,_)}function P(){S=r?Jr(m+x*r,_):m}function j(){w=a?Jr(b-x*a,_):b}if(T[0]&&T[1]){m=A[0],b=A[1],x=(b-m)/(o+r+a);var N=t.getExtent(),R=zr(N[1]-N[0]);_=aa([b,m],R,.5/o),P(),j(),Oa(_)&&(x=Jr(x,_))}else{var E=A[1]-A[0];x=l?Er(fa(E),1):va(E/o,ya),_=tT(x),T[0]?(m=A[0],k((function(){if(P(),w=Jr(S+x*o,_),L(),b>=A[1])return!0}))):T[1]?(b=A[1],k((function(){if(j(),S=Jr(w-x*o,_),D(),m<=A[0])return!0}))):k((function(){S=Jr(Fr(A[0]/x)*x,_),w=Jr(Vr(A[1]/x)*x,_);var t=Br((w-S)/x);if(t<=o){var e=o-t,n=void 0,i=s.incl0||l;if(i&&0===A[0])n=[0,e];else if(i&&0===A[1])n=[e,0];else{var r=Vr(e/2);n=e%2===0?[r,r]:m+b<A[0]+A[1]?[r,r+1]:[r+1,r]}if(S=Jr(S-x*n[0],_),w=Jr(w+x*n[1],_),D(),L(),m<=A[0]&&b>=A[1])return!0}}))}JT(n,T,C,[m,b],I,{interval:x,intervalCount:o,intervalPrecision:_,niceExtent:[S,w]})}var AR,kR=[[3,1],[0,2]],DR=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wR,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){for(var e=Object(x["keys"])(t),n=[],i=e.length-1;i>=0;i--){var r=t[+e[i]];r.__alignTo?n.push(r):qI(r)}Object(x["each"])(n,(function(t){RR(t,t.__alignTo)?qI(t):CR(t,t.__alignTo.scale)}))}Object(x["each"])(this._axesList,(function(t){zI(t,CI);var e=t.scale;QO(e)&&e.setSortInfo(t.model.get("categorySortInfo"))})),i(n.x),i(n.y);var r={};Object(x["each"])(n.x,(function(t){PR(n,"y",t,r)})),Object(x["each"])(n.y,(function(t){PR(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=Lp(t,e),r=this._rect=Ap(t.getBoxLayoutParams(),i.refContainer),a=this._axesMap,o=this._coordsList,s=t.get("containLabel");if(zR(a,r),!n){var l=HR(r,o,a,s,e),u=void 0;if(s)AR?(AR(this._axesList,r),zR(a,r)):u=FR(r.clone(),"axisLabel",null,r,a,l,i);else{var c=WR(t,r,i),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,p=c.outerBoundsClamp;h&&(u=FR(h,d,p,r,a,l,i))}GR(r,a,MC.determine,null,u,i),Object(x["each"])(this._coordsList,(function(t){t.calcAffineTransform()}))}},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(x["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",eo).models[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis",eo).models[0],o=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,Object(x["indexOf"])(s,e)<0&&(e=null);else if(r&&a)e=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){var l=o.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(LR(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=a.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=a.left?"right":"left"),a[l]=!0;var u=RT(n),c=new IR(e,ET(n,u,!0),[0,0],u,l);c.onBand=eI(c.scale,n),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=r,c.index=i,r._axesList.push(c),o[e][i]=c,s[e]++}}}this._axesMap=o,Object(x["each"])(o.x,(function(e,n){Object(x["each"])(o.y,(function(r,a){var o="x"+n+"y"+a,s=new OR(o);s.master=i,s.model=t,i._coordsMap[o]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))})),NR(o.x),NR(o.y)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(x["each"])(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(r);Object(x["indexOf"])(e,r)<0&&e.push(r),Object(x["indexOf"])(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,a){var o=new t(r,e,n);o.name="grid_"+a,o.resize(r,n,!0),r.coordinateSystem=o,i.push(o),Object(x["each"])(o._axesList,(function(e){EI(e,t.dimIdxMap)}))})),e.eachSeries((function(t){var e,n;function i(){var i=hj(t),r=i.xAxisModel,a=i.yAxisModel;e=r.axis,n=a.axis;var o=r.getCoordSysModel();var s=o.coordinateSystem;return s.getCartesian(r.componentIndex,a.componentIndex)}mp({targetModel:t,coordSysType:Cj,coordSysProvider:i}),e&&n&&(SI(e,t,Cj),SI(n,t,Cj))}),this),i},t.dimensions=wR,t.dimIdxMap=GM(wR),t}();function LR(t,e){return t.getCoordSysModel()===e}function PR(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,a=t[e],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)jR(s,a[l])&&(r=a[l]);else for(var u in a)if(Object(x["hasOwn"])(a,u)&&jR(s,a[u])&&!i[c(a[u])]){r=a[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function jR(t,e){if(!e)return!1;var n=e.scale,i=zT(n,0,!1),r=e&&"category"!==e.type&&"time"!==e.type&&i!==FT;return r&&"auto"===t&&GT(e)&&(r=!1),r}function NR(t){for(var e,n=Object(x["keys"])(t),i=[],r=n.length-1;r>=0;r--){var a=t[+n[r]];$O(a.scale)&&null==KT(a.model,a.type,!0)&&(a.model.get("alignTicks")&&null==a.model.get("interval")?i.push(a):e=a)}e||(e=i.pop()),e&&Object(x["each"])(i,(function(t){t.__alignTo=e}))}function RR(t,e){return ud(t.scale)||ud(e.scale)||e.scale.getTicks().length<2}function ER(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}function zR(t,e){Object(x["each"])(t.x,(function(t){return BR(t,e.x,e.width)})),Object(x["each"])(t.y,(function(t){return BR(t,e.y,e.height)}))}function BR(t,e,n){var i=[0,n],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),ER(t,e)}function VR(t){AR=t}function FR(t,e,n,i,r,a,o){GR(i,r,MC.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=null==Object(x["find"])(s,(function(t){return t>0}));return Fb(i,s,!0,!0,n),zR(r,i),l;function u(t){Object(x["each"])(r[cb[t]],(function(e){if(qT(e.model)){var n=a.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var o=i[r],s=e.scale.normalize(tI(e.scale,LP(o.label).labelInfo.tick));s=1===t?1-s:s,c(o.rect,t,s),c(o.rect,1-t,NaN)}var l=n.nameLayout;if(l){s=ZT(n.nameLocation)?.5:NaN;c(l.rect,t,s),c(l.rect,1-t,NaN)}}}))}function c(e,n,i){var r=t[cb[n]]-e[cb[n]],a=e[hb[n]]+e[cb[n]]-(t[hb[n]]+t[cb[n]]);r=h(r,1-i),a=h(a,i);var o=kR[n][0],l=kR[n][1];s[o]=Er(s[o],r),s[l]=Er(s[l],a)}function h(t,e){return t>0&&!Object(x["eqNaN"])(e)&&e>1e-4&&(t/=e),t}}function HR(t,e,n,i,r){var a=new jP(YR);return Object(x["each"])(n,(function(n){return Object(x["each"])(n,(function(n){if(qT(n.model)){var o=!i;n.axisBuilder=dj(t,e,n.model,r,a,o)}}))})),a}function GR(t,e,n,i,r,a){var o=n===MC.determine;Object(x["each"])(e,(function(e){return Object(x["each"])(e,(function(e){qT(e.model)&&(pj(e.axisBuilder,t,e.model),e.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))}))}));var s={x:0,y:0};function l(e){s[cb[1-e]]=t[hb[e]]<=.5*a.refContainer[hb[e]]?0:1-e===1?2:1}l(0),l(1),Object(x["each"])(e,(function(t,e){return Object(x["each"])(t,(function(t){qT(t.model)&&(("all"===i||o)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),o&&t.axisBuilder.build({axisLine:!0}))}))}))}function WR(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=Ap(t.get("outerBounds",!0)||Tj,n.refContainer));var a,o=t.get("outerBoundsContain",!0);a=null==o||"auto"===o||Object(x["indexOf"])(["all","axisLabel"],o)<0?"all":o;var s=[qr(Object(x["retrieve2"])(t.get("outerBoundsClampWidth",!0),Ij[0]),e.width),qr(Object(x["retrieve2"])(t.get("outerBoundsClampHeight",!0),Ij[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:a,outerBoundsClamp:s}}var YR=function(t,e,n,i,r,a){var o="x"===n.axis.dim?"y":"x";zP(t,e,n,i,r,a),ZT(t.nameLocation)||Object(x["each"])(e.recordMap[o],(function(t){t&&t.labelInfoList&&t.dirVec&&VP(t.labelInfoList,t.dirVec,i,r)}))},UR=DR;function XR(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $R(n,t,e),n.seriesInvolved&&qR(n,t),n}function $R(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),a=r.get("link",!0)||[],o=[];Object(x["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=iE(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",i);if(Object(x["each"])(n.getAxes(),Object(x["curry"])(f,!1,null)),n.getTooltipAxes&&i&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Object(x["each"])(p.baseAxes,Object(x["curry"])(f,!d||"cross",h)),d&&Object(x["each"])(p.otherAxes,Object(x["curry"])(f,"cross",!1))}}function f(i,s,u){var h=u.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||nE(h))){null==s&&(s=h.get("triggerTooltip")),h=i?ZR(u,c,r,e,i,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=iE(u.model),y=s||p||"category"===u.type,v=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:nE(h),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=KR(a,u);if(null!=m){var b=o[m]||(o[m]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=a[m].mapper,v.linkGroup=b}}}}))}function ZR(t,e,n,i,r,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(x["each"])(s,(function(t){l[t]=Object(x["clone"])(o.get(t))})),l.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===r){var c=o.get(["label","show"]);if(u.show=null==c||c,!a){var h=l.lineStyle=o.get("crossStyle");h&&Object(x["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Vh(l,n,i))}function qR(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(x["each"])(t.coordSysAxesInfo[iE(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function KR(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var a=t[r]||{};if(QR(a[i+"AxisId"],n.id)||QR(a[i+"AxisIndex"],n.componentIndex)||QR(a[i+"AxisName"],n.name))return r}}function QR(t,e){return"all"===t||Object(x["isArray"])(t)&&Object(x["indexOf"])(t,e)>=0||t===e}function JR(t){var e=tE(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=i.parse(o));var s=nE(n);null==a&&(r.status=s?"show":"hide");var l=i.getExtent();(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function tE(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[iE(t)]}function eE(t){var e=tE(t);return e&&e.axisPointerModel}function nE(t){return!!t.get(["handle","show"])}function iE(t){return t.type+"||"+t.id}var rE={},aE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&JR(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var a=eE(t);a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){rE[t]=e},e.getAxisPointerClass=function(t){return t&&rE[t]},e.type="axis",e}(bv),oE=aE,sE=Ka();function lE(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=sE(t).splitAreaColors,d=x["createHashMap"](),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var y=r.toGlobalCoord(u[0].coord),v=o.getAreaStyle();s=x["isArray"](s)?s:[s];for(f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),b=void 0,_=void 0,w=void 0,S=void 0;r.isHorizontal()?(b=y,_=l.y,w=m-b,S=l.height,y=b+w):(b=l.x,_=y,w=l.width,S=m-_,y=_+S);var M=u[f-1].tickValue;null!=M&&d.set(M,p),e.add(new nu({anid:null!=M?"area_"+M:null,shape:{x:b,y:_,width:w,height:S},style:x["defaults"]({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}sE(t).splitAreaColors=d}}}function uE(t){sE(t).splitAreaColors=null}var cE=["splitArea","splitLine","minorSplitLine","breakArea"],hE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return f(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new vr,this.group.add(this._axisGroup),qT(e)){this._axisGroup.add(e.axis.axisBuilder.group),x["each"](cE,(function(t){e.get([t,"show"])&&dE[t](this,this._axisGroup,e,e.getCoordSysModel(),i)}),this);var o=r&&"changeAxisOrder"===r.type&&r.isInitSort;o||Pb(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){uE(this)},e.type="cartesianAxis",e}(oE),dE={splitLine:function(t,e,n,i,r){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=!1!==o.get("showMinLine"),c=!1!==o.get("showMaxLine");l=x["isArray"](l)?l:[l];for(var h=i.coordinateSystem.getRect(),d=a.isHorizontal(),p=0,f=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],v=s.getLineStyle(),m=0;m<f.length;m++){var b=a.toGlobalCoord(f[m].coord);if((0!==m||u)&&(m!==f.length-1||c)){var _=f[m].tickValue;d?(g[0]=b,g[1]=h.y,y[0]=b,y[1]=h.y+h.height):(g[0]=h.x,g[1]=b,y[0]=h.x+h.width,y[1]=b);var w=p++%l.length,S=new Cm({anid:null!=_?"line_"+_:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:x["defaults"]({stroke:l[w]},v),silent:!0});Ob(S.shape,v.lineWidth),e.add(S)}}}},minorSplitLine:function(t,e,n,i,r){var a=n.axis,o=n.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var h=[],d=[],p=s.getLineStyle(),f=0;f<c.length;f++)for(var g=0;g<c[f].length;g++){var y=a.toGlobalCoord(c[f][g].coord);u?(h[0]=y,h[1]=l.y,d[0]=y,d[1]=l.y+l.height):(h[0]=l.x,h[1]=y,d[0]=l.x+l.width,d[1]=y);var v=new Cm({anid:"minor_line_"+c[f][g].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:p,silent:!0});Ob(v.shape,p.lineWidth),e.add(v)}},splitArea:function(t,e,n,i,r){lE(t,e,n,i)},breakArea:function(t,e,n,i,r){var a=bP(),o=n.axis.scale;a&&"ordinal"!==o.type&&a.rectCoordBuildBreakAxis(e,t,n,i.coordinateSystem.getRect(),r)}},pE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="xAxis",e}(hE),fE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=pE.type,e}return f(e,t),e.type="yAxis",e}(hE),gE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return f(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new nu({shape:t.coordinateSystem.getRect(),style:Object(x["defaults"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(bv),yE={offset:0};function vE(t){t.registerComponentView(gE),t.registerComponentModel(kj),t.registerCoordinateSystem("cartesian2d",UR),mR(t,"x",hR,yE),mR(t,"y",hR,yE),t.registerComponentView(pE),t.registerComponentView(fE),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}var mE="single",bE="singleAxis",xE="singleAxis",_E=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getCoordSysModel=function(){return this},e.type=xE,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(Hp);Object(x["mixin"])(_E,nI.prototype);var wE=_E;function SE(t,e){var n=t.coordinateSystem,i=n&&n.type,r=n&&n.getBaseAxis&&n.getBaseAxis(),a=r&&r.scale&&r.scale.type,o=i===Cj&&"ordinal"===a||i===mE,s=e.model.get("jitter")>0;return o&&s}var ME=Ka();function OE(t,e,n,i){if(t instanceof IR){var r=t.scale.type;if("ordinal"!==r)return n}var a=t.model,o=a.get("jitter");if(!(o>0))return n;var s=a.get("jitterOverlap"),l=a.get("jitterMargin")||0,u=QO(t.scale)?YC(t).w:null;return s?TE(n,o,u,i):IE(t,e,n,i,o,l)}function TE(t,e,n,i){if(null===n)return t+(Math.random()-.5)*e;var r=n-2*i,a=Math.min(Math.max(0,e),r);return t+(Math.random()-.5)*a}function IE(t,e,n,i,r,a){var o=ME(t);o.items||(o.items=[]);var s=o.items,l=CE(s,e,n,i,r,a,1),u=CE(s,e,n,i,r,a,-1),c=Math.abs(l-n)<Math.abs(u-n)?l:u,h=QO(t.scale)?YC(t).w:null,d=Math.abs(c-n);return d>r/2||h&&d>h/2-i?TE(n,r,h,i):(s.push({fixedCoord:e,floatCoord:c,r:i}),c)}function CE(t,e,n,i,r,a,o){for(var s=n,l=0;l<t.length;l++){var u=t[l],c=e-u.fixedCoord,h=s-u.floatCoord,d=c*c+h*h,p=i+u.r+a;if(d<p*p){var f=u.floatCoord+Math.sqrt(p*p-c*c)*o;if(Math.abs(f-n)>r/2)return Number.MAX_VALUE;if(1===o&&f>s||-1===o&&f<s){s=f,l=-1;continue}}}return s}function AE(){return{seriesType:"scatter",plan:xv(),reset:function(t){var e=t.coordinateSystem;if(e&&(e.type===Cj||e.type===mE)){var n=e.getBaseAxis&&e.getBaseAxis(),i=n&&SE(t,n);if(i){var r=n.dim,a=n.orient,o="horizontal"===a&&"category"!==n.type||"vertical"===a&&"category"===n.type,s="y"===r||"single"===r&&o,l="x"===r||"single"===r&&!o;if(s||l)return{progress:function(t,e){var i=e.getLayout("points"),r=!!i;for(var a=t.start;a<t.end;a++){var o=r?2*(a-t.start):-1,u=r?[i[o],i[o+1]]:e.getItemLayout(a);if(u){var c=e.getItemVisual(a,"symbolSize"),h=c instanceof Array?(c[1]+c[0])/2:c;if(s){var d=OE(n,u[0],u[1],h/2);r?i[o+1]=d:u[1]=d}else if(l){d=OE(n,u[1],u[0],h/2);r?i[o]=d:u[0]=d}}}}}}}}}}function kE(t){IM(vE),t.registerSeriesModel(nR),t.registerChartView(cR),t.registerLayout(dP("scatter"))}function DE(t){t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,AE())}function LE(t){var e=t.polar;if(e){x["isArray"](e)||(e=[e]);var n=[];x["each"](e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],x["isArray"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}x["each"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var PE="radar",jE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DN(x["bind"](this.getData,this),x["bind"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return AN(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem,a=r.getIndicatorAxes(),o=this.getData().getName(t),s=""===o?this.name:o,l=tv(this,t);return Fy("section",{header:s,sortBlocks:!0,blocks:x["map"](a,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Fy("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(x["map"](n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,a=i.length;r<a;r++)if(!isNaN(i[r])){var o=n.getIndicatorAxes();return n.coordToPoint(o[r].dataToCoord(i[r]),r)}},e.type="series."+PE,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(vv),NE=jE,RE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=PE,e}return f(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,a=t.getData(),s=this._data;function l(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=B_(t.getItemVisual(e,"symbolSize")),r=z_(n,-1,-1,2,2),a=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:a*Math.PI/180||0}),r}}function u(e,n,i,r,a,s){i.removeAll();for(var u=0;u<n.length-1;u++){var c=l(r,a);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),o[s?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,a)):c.setPosition(n[u]),i.add(c))}}function c(t){return x["map"](t,(function(t){return[i.cx,i.cy]}))}a.diff(s).add((function(e){var n=a.getItemLayout(e);if(n){var i=new _m,r=new Mm,o={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),ih(i,o,t,e),ih(r,o,t,e);var s=new vr,l=new vr;s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var i=s.getItemGraphicEl(n),r=i.childAt(0),o=i.childAt(1),l=i.childAt(2),c={shape:{points:a.getItemLayout(e)}};c.shape.points&&(u(r.shape.points,c.shape.points,l,a,e,!1),lh(o),lh(r),nh(r,c,t),nh(o,c,t),a.setItemGraphicEl(e,i))})).remove((function(t){r.remove(s.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),o=t.childAt(1),s=t.childAt(2),l=a.getItemVisual(e,"style"),u=l.fill;r.add(t),i.useStyle(x["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Yc(i,n,"lineStyle"),Yc(o,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();o.ignore=h,x["each"](["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=r&&h;var a=n.getModel([t,"lineStyle"]).getLineStyle();i.ensureState(t).style=a;var l=e.getAreaStyle();o.ensureState(t).style=l;var u=n.getModel([t,"itemStyle"]).getItemStyle();s.eachChild((function(e){e.ensureState(t).style=x["clone"](u)}))})),o.useStyle(x["defaults"](n.getModel("areaStyle").getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis");s.eachChild((function(t){if(t instanceof Xl){var i=t.style;t.useStyle(x["extend"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;var r=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),ph(t,fh(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:u,defaultOpacity:l.opacity})})),Fc(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=PE,e}(px),EE=RE,zE=vR.value,BE="radar",VE=BE,FE=BE,HE=5;function GE(t,e){return x["defaults"]({show:e},t)}var WE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("clockwise"),i=this.get("scale"),r=this.get("axisLine"),a=this.get("axisTick"),o=this.get("axisLabel"),s=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=x["map"](this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=s;null!=d.color&&(p=x["defaults"]({color:d.color},s));var f=x["merge"](x["clone"](d),{boundaryGap:t,splitNumber:e,clockwise:n,scale:i,axisLine:r,axisTick:a,axisLabel:o,name:d.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(x["isString"](u)){var g=f.name;f.name=u.replace("{value}",null!=g?g:"")}else x["isFunction"](u)&&(f.name=u(f.name,f));var y=new Vh(f,null,this.ecModel);return x["mixin"](y,nI.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y.uid=Hh("ec_radar"),y}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=VE,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Xp.color.axisLabel},boundaryGap:[0,0],splitNumber:HE,axisNameGap:15,scale:!1,shape:"polygon",axisLine:x["merge"]({lineStyle:{color:Xp.color.neutral20}},zE.axisLine),axisLabel:GE(zE.axisLabel,!1),axisTick:GE(zE.axisTick,!1),splitLine:GE(zE.splitLine,!0),splitArea:GE(zE.splitArea,!0),indicator:[]},e}(Hp),YE=WE,UE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,e){var n=t.coordinateSystem,i=n.getIndicatorAxes(),r=x["map"](i,(function(t){var i=t.model.get("showName")?t.name:"",r=new lj(t.model,e,{axisName:i,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));x["each"](r,(function(t){t.build(),this.group.add(t.group)}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),a=t.getModel("splitArea"),o=r.getModel("lineStyle"),s=a.getModel("areaStyle"),l=r.get("show"),u=a.get("show"),c=o.get("color"),h=s.get("color"),d=x["isArray"](c)?c:[c],p=x["isArray"](h)?h:[h],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,b=0;b<y.length;b++){if(l){var _=A(f,d,b);f[_].push(new Uv({shape:{cx:v,cy:m,r:y[b].coord}}))}if(u&&b<y.length-1){_=A(g,p,b);g[_].push(new ym({shape:{cx:v,cy:m,r0:y[b].coord,r:y[b+1].coord}}))}}else{var w,S=x["map"](n,(function(t,n){var i=t.getTicksCoords();return w=null==w?i.length-1:Math.min(i.length-1,w),x["map"](i,(function(t){return e.coordToPoint(t.coord,n)}))})),M=[];for(b=0;b<=w;b++){for(var O=[],T=0;T<n.length;T++)O.push(S[T][b]);if(O[0]&&O.push(O[0].slice()),l){_=A(f,d,b);f[_].push(new Mm({shape:{points:O}}))}if(u&&M){_=A(g,p,b-1);g[_].push(new _m({shape:{points:O.concat(M)}}))}M=O.slice().reverse()}}var I=o.getLineStyle(),C=s.getAreaStyle();x["each"](g,(function(t,e){this.group.add(Sb(t,{style:x["defaults"]({stroke:"none",fill:p[e%p.length]},C),silent:!0}))}),this),x["each"](f,(function(t,e){this.group.add(Sb(t,{style:x["defaults"]({fill:"none",stroke:d[e%d.length]},I),silent:!0}))}),this)}function A(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(bv),XE=UE,$E=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return f(e,t),e}(QC),ZE=$E,qE=function(){function t(t,e,n){this.type=BE,this.dimensions=[],this._model=t,this._indicatorAxes=Object(x["map"])(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new ZE(n,new hT);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),a=this.cy-t*Math.sin(i);return[r,a]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,a=Math.atan2(-n,e),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(r=u,s=l,o=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=Lp(t,e).refContainer,i=t.get("center"),r=t.get("clockwise")||!1,a=Math.min(n.width,n.height)/2;this.cx=$r(i[0],n.width)+n.x,this.cy=$r(i[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(Object(x["isString"])(o)||Object(x["isNumber"])(o))&&(o=[0,o]),this.r0=$r(o[0],a),this.r=$r(o[1],a);var s=r?-1:1;Object(x["each"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+s*e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model,r=aT(i.get("splitNumber"),HE),a=new hT;a.setExtent(0,r),a.setConfig({interval:1}),Object(x["each"])(n,(function(t){zI(t,CI),CR(t,a)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent(VE,(function(r){var a=new t(r,e,n);i.push(a),r.coordinateSystem=a})),e.eachSeriesByType(FE,(function(t){if(t.get("coordinateSystem")===BE){var e=t.coordinateSystem=i[t.get("radarIndex")||0];e&&Object(x["each"])(e.getIndicatorAxes(),(function(e){SI(e,t,BE)}))}})),i},t.dimensions=[],t}(),KE=qE;function QE(t){t.registerCoordinateSystem("radar",KE),t.registerComponentModel(YE),t.registerComponentView(XE),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var JE=Ao(PE,tz);function tz(t){t.eachSeriesByType(PE,(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();x["each"](r,(function(t,a){e.each(e.mapDimension(r[a].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,a);n[e][a]=ez(r)?r:nz(i)}))})),e.each((function(t){var r=x["find"](n[t],(function(t){return ez(t)}))||nz(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function ez(t){return!isNaN(t[0])&&!isNaN(t[1])}function nz(t){return[t.cx,t.cy]}function iz(t){IM(QE),t.registerChartView(EE),t.registerSeriesModel(NE),t.registerLayout(JE),t.registerProcessor(CN("radar")),t.registerPreprocessor(LE)}var rz=Ka();function az(t,e,n){rz(t)[e]=n}function oz(t,e,n){var i=rz(t),r=i[e];r===n&&(i[e]=null)}function sz(t,e){return!!rz(t)[e]}cM({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},x["noop"]);var lz={axisPointer:1,tooltip:1,brush:1};function uz(t,e,n){var i=e.getComponentByElement(t.topTarget);if(!i||i===n||lz.hasOwnProperty(i.mainType))return!1;var r=i.coordinateSystem;if(!r||r.model===n)return!1;var a=Kb(i),o=Kb(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var cz=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Object(x["bind"])(n._mousedownHandler,n),r=Object(x["bind"])(n._mousemoveHandler,n),a=Object(x["bind"])(n._mouseupHandler,n),o=Object(x["bind"])(n._mousewheelHandler,n),s=Object(x["bind"])(n._pinchHandler,n);return n.enable=function(t,n){var l=n.zInfo,u=Kb(l.component),c=u.z,h=u.zlevel,d={component:l.component,z:c,zlevel:h,z2:Object(x["retrieve2"])(l.z2,-1/0)},p=Object(x["extend"])({},n.triggerInfo);this._opt=Object(x["defaults"])(Object(x["extend"])({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:p,cursorGrab:"grab",cursorGrabbing:"grabbing"}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this.disable(),this._enabled=!0,!0!==t&&"move"!==t&&"pan"!==t||(fz(e,"mousedown",i,d),fz(e,"mousemove",r,d),fz(e,"mouseup",a,d)),!0!==t&&"scale"!==t&&"zoom"!==t||(fz(e,"mousewheel",o,d),fz(e,"pinch",s,d)))},n.disable=function(){this._enabled&&(this._enabled=!1,gz(e,"mousedown",i),gz(e,"mousemove",r),gz(e,"mouseup",a),gz(e,"mousewheel",o),gz(e,"pinch",s))},n}return f(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,n){var i=this._opt,r=i.zInfoParsed;if(uz(t,i.api,r.component))return!1;var a=i.triggerInfo,o=a.roamTrigger,s=!1;return"global"===o&&(s=!0),s||(s=a.isInSelf(t,e,n)),s&&a.isInClip&&!a.isInClip(t,e,n)&&(s=!1),s},e.prototype._decideCursorStyle=function(t,e,n,i){var r=t.target;return!r&&this._checkPointer(t,e,n)?this._opt.cursorGrab:i?r&&r.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!wt(t)&&!hz(t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if("pinch"!==t.gestureEvent&&!sz(e,"globalPan")&&!hz(t)){var n=t.offsetX,i=t.offsetY;if(this._dragging&&bz("moveOnMouseMove",t,this._opt)){e.setCursorStyle(this._opt.cursorGrabbing);var r=this._x,a=this._y,o=n-r,s=i-a;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&_t(t.event),t.__ecRoamConsumed=!0,mz(this,"pan","moveOnMouseMove",t,{dx:o,dy:s,oldX:r,oldY:a,newX:n,newY:i,isAvailableBehavior:null})}else{var l=this._decideCursorStyle(t,n,i,!1);l&&e.setCursorStyle(l)}}},e.prototype._mouseupHandler=function(t){if(!hz(t)){var e=this._zr;if(!wt(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&e.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!hz(t)){var e=bz("zoomOnMouseWheel",t,this._opt),n=bz("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),a=t.offsetX,o=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:o,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:a,originY:o,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!sz(this._zr,"globalPan")&&!hz(t)){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,n,i,r){t._checkPointer(i,r.originX,r.originY)&&(_t(i.event),i.__ecRoamConsumed=!0,mz(t,e,n,i,r))},e}(q);function hz(t){return t.__ecRoamConsumed}var dz=Ka();function pz(t){var e=dz(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function fz(t,e,n,i){for(var r=pz(t),a=r.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:n,zInfoParsed:i}),yz(t,e)}function gz(t,e,n){for(var i=pz(t),r=i.roam[e]||[],a=0;a<r.length;a++)if(r[a].listener===n)return r.splice(a,1),void(r.length||vz(t,e))}function yz(t,e){var n=pz(t);n.uniform[e]||t.on(e,n.uniform[e]=function(t){var i=n.roam[e];if(i)for(var r=0;r<i.length;r++)i[r].listener(t)})}function vz(t,e){var n=pz(t),i=n.uniform;i[e]&&(t.off(e,i[e]),i[e]=null)}function mz(t,e,n,i,r){r.isAvailableBehavior=Object(x["bind"])(bz,null,n,i),t.trigger(e,r)}function bz(t,e,n){var i=n[t];return!t||i&&(!Object(x["isString"])(i)||e.event[i+"Key"])}var xz,_z=cz;function wz(t){if(Object(x["isString"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var Sz={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Mz=Object(x["keys"])(Sz),Oz={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Tz=Object(x["keys"])(Oz),Iz=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=wz(t);this._defsUsePending=[];var i=new vr;this._root=i;var r=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Pz(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(Ez(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=Bz(a);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=s&&(u=Uz(l,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var d=i;i=new vr,i.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==o||null==s||i.setClipPath(new nu({shape:{x:0,y:0,width:o,height:s}})),{root:i,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,a){var o,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=e;else{if(!r){var u=xz[s];if(u&&Object(x["hasOwn"])(xz,s)){o=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:o};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:o});e.add(o)}}var d=Cz[s];if(d&&Object(x["hasOwn"])(Cz,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(o&&o.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,o,n,l,r,a):3===g.nodeType&&a&&this._parseText(g,o),g=g.nextSibling}},t.prototype._parseText=function(t,e){var n=new Hl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Dz(e,n),Pz(t,n,this._defsUsePending,!1,!1),jz(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},t.internalField=function(){xz={g:function(t,e){var n=new vr;return Dz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new nu;return Dz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Uv;return Dz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Cm;return Dz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Zv;return Dz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Lz(i));var r=new _m({shape:{points:n||[]},silent:!0});return Dz(e,r),Pz(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Lz(i));var r=new Mm({shape:{points:n||[]},silent:!0});return Dz(e,r),Pz(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new Xl;return Dz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(a);var o=new vr;return Dz(e,o),Pz(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",o=new vr;return Dz(e,o),Pz(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),o},path:function(t,e){var n=t.getAttribute("d")||"",i=Vv(n);return Dz(e,i),Pz(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),Cz={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),a=new Hm(e,n,i,r);return Az(t,a),kz(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Wm(e,n,i);return Az(t,r),kz(t,r),r}};function Az(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function kz(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var a={};Wz(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000",s=a.stopOpacity||n.getAttribute("stop-opacity");if(s){var l=xn["parse"](o),u=l&&l[3];u&&(l[3]*=xn["parseCssFloat"](s),o=xn["stringify"](l,"rgba"))}e.colorStops.push({offset:r,color:o})}n=n.nextSibling}}function Dz(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(x["defaults"])(e.__inheritedStyle,t.__inheritedStyle))}function Lz(t){for(var e=Bz(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),a=parseFloat(e[i+1]);n.push([r,a])}return n}function Pz(t,e,n,i,r){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===t.nodeType&&(Hz(t,e),Wz(t,o,s),i||Yz(t,o,s)),a.style=a.style||{},null!=o.fill&&(a.style.fill=Rz(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=Rz(a,"stroke",o.stroke,n)),Object(x["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=o[t]&&(a.style[t]=parseFloat(o[t]))})),Object(x["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=o[t]&&(a.style[t]=o[t])})),r&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Object(x["map"])(Bz(o.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}function jz(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),t.style.textAlign=s)}}var Nz=/^url\(\s*#(.*?)\)/;function Rz(t,e,n,i){var r=n&&n.match(Nz);if(!r)return"none"===n&&(n=null),n;var a=Object(x["trim"])(r[1]);i.push([t,e,a])}function Ez(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}var zz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Bz(t){return t.match(zz)||[]}var Vz=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Fz=Math.PI/180;function Hz(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(Vz,(function(t,e,n){return i.push(e,n),""}));for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=Bz(o);switch(r=r||It(),s){case"translate":Dt(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Pt(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Lt(r,r,-parseFloat(l[0])*Fz,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Fz);kt(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Fz);kt(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}e.setLocalTransform(r)}}var Gz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Wz(t,e,n){var i=t.getAttribute("style");if(i){var r;Gz.lastIndex=0;while(null!=(r=Gz.exec(i))){var a=r[1],o=Object(x["hasOwn"])(Sz,a)?Sz[a]:null;o&&(e[o]=r[2]);var s=Object(x["hasOwn"])(Oz,a)?Oz[a]:null;s&&(n[s]=r[2])}}}function Yz(t,e,n){for(var i=0;i<Mz.length;i++){var r=Mz[i],a=t.getAttribute(r);null!=a&&(e[Sz[r]]=a)}for(i=0;i<Tz.length;i++){r=Tz[i],a=t.getAttribute(r);null!=a&&(n[Oz[r]]=a)}}function Uz(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}function Xz(t,e){var n=new Iz;return n.parse(t,e)}var $z=Object(x["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Zz=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(x["createHashMap"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=wz(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=Kz(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Xz(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(x["assert"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new vr;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=e.width,a=e.height,o=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=r?(l=0,c=r):o&&(l=o.x,c=o.width),null!=a?(u=0,h=a):o&&(u=o.y,h=o.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,h=d.height)}s=this._boundingRect=new ue(l,u,c,h)}if(o){var p=Uz(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new nu({shape:s.plain()}));var f=[];return Object(x["each"])(e.named,(function(t){null!=$z.get(t.svgNodeTagLower)&&(f.push(t),qz(t.el))})),{root:i,boundingRect:s,named:f}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function qz(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function Kz(t){var e=[],n=Object(x["createHashMap"])();return Object(x["each"])(t,(function(t){if(null==t.namedFrom){var i=new yC(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}for(var Qz=[126,25],Jz="南海诸岛",tB=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],eB=0;eB<tB.length;eB++)for(var nB=0;nB<tB[eB].length;nB++)tB[eB][nB][0]/=10.5,tB[eB][nB][1]/=-14,tB[eB][nB][0]+=Qz[0],tB[eB][nB][1]+=Qz[1];function iB(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Jz)return;e.push(new gC(Jz,x["map"](tB,(function(t){return{type:"polygon",exterior:t}})),Qz))}}var rB={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function aB(t,e){if("china"===t){var n=rB[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var oB=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function sB(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:oB[0]})}var lB="name",uB=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Object(x["createHashMap"])(),this._mapName=t,this._specialAreas=n,this._geoJSON=hB(e)}return t.prototype.load=function(t,e){e=e||lB;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:cB(i)})}var r=Object(x["createHashMap"])(),a=[];return Object(x["each"])(n.regions,(function(e){var n=e.name;t&&Object(x["hasOwn"])(t,n)&&(e=e.cloneShallow(n=t[n])),a.push(e),r.set(n,e)})),{regions:a,boundingRect:n.boundingRect||new ue(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?xC(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return iB(n,e),Object(x["each"])(e,(function(t){var e=t.name;aB(n,t),sB(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function cB(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function hB(t){return Object(x["isString"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var dB=Object(x["createHashMap"])(),pB={registerMap:function(t,e,n){if(e.svg){var i=new Zz(t,e.svg);dB.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new uB(t,r,n);dB.set(t,i)}},getGeoResource:function(t){return dB.get(t)},getMapForUser:function(t){var e=dB.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=dB.get(t);if(i)return i.load(e,n)}},fB=0,gB=1,yB=2;function vB(t){return t}var mB="view",bB=function(t){function e(e,n,i){var r=t.call(this)||this;r.type=mB,r.dimensions=["x","y"];var a=vB(r);a.invertY=e,a.lgCt=n,a.lgGeo=i;var o=a.trans=[];return o[fB]=ki(),o[gB]=ki(),o[yB]=ki(),a.mtRaw=It(),a.mtRawInv=It(),a.mtOverall=It(),a.mtOverallInv=It(),a.zoom=1,r}return f(e,t),e.prototype.getBoundingRect=function(){return SB(null,this)},e.prototype.getViewRect=function(){return MB(null,this)},e.prototype.getRoamTransform=function(){return Ai(vB(this).trans[gB])},e.prototype.dataToPoint=function(t,e,n){var i=e?vB(this).mtRaw:vB(this).mtOverall;return n=n||[],i?G(n,t,i):w(n,t)},e.prototype.pointToData=function(t,e,n){n=n||[];var i=vB(this).mtOverallInv;return i?G(n,t,i):w(n,t)},e.prototype.convertToPixel=function(t,e,n){var i=WB(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=WB(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){var e=vB(this);return te(xB,e.dataRect),ne(xB,xB,e.mtOverall),ie(xB,t[0],t[1])},e.dimensions=["x","y"],e}(ji),xB=Qt();function _B(t,e){return At(t||[],vB(e).mtOverall)}function wB(t){return vB(t).zoom}function SB(t,e){return te(t||Qt(),vB(e).dataRect)}function MB(t,e){return te(t||Qt(),vB(e).viewRect)}function OB(t,e,n){return Li(t||ki(),vB(e).trans[n])}function TB(t){return!(!t.dataRect||!t.viewRect)}function IB(t,e,n,i){i===gB?FB(t,e.trans[fB],n):Li(t,n)}function CB(t,e,n){Ai(n,AB),kt(AB,AB,e.mtRawInv),nx(t,AB)}var AB=It();function kB(t,e){var n=vB(t);n.centerOption=e.getShallow("center");var i=n.zoomLimit=e.getShallow("scaleLimit"),r=e.getShallow("zoom");n.zoom=cV(r||1,i)||1,TB(n)&&PB(n)}function DB(t,e,n,i,r){var a=vB(t);a.dataRect=new ue(e,n,i,r),TB(a)&&PB(a)}function LB(t,e,n,i,r){var a=vB(t);a.viewRect=new ue(e,n,i,r),TB(a)&&PB(a)}function PB(t){jB(t),EB(t),BB(t)}function jB(t){var e=t.dataRect,n=t.viewRect,i=t.trans[fB],r=t.invertY;r&&(e=te(RB,e),e.y=-e.y-e.height),ee(NB,e,n),nx(i,NB),r&&(i.scaleY=-i.scaleY);var a=Ai(i,t.mtRaw);jt(t.mtRawInv,a)}var NB=It(),RB=Qt();function EB(t){var e=YB(t),n=iV(zB,t,t.centerOption)?G(zB,zB,t.mtRaw):e,i=t.zoom,r=t.trans[gB];r.x=e[0]-i*n[0],r.y=e[1]-i*n[1],r.scaleX=r.scaleY=i}var zB=[];function BB(t){var e=t.trans,n=e[gB],i=e[fB],r=e[yB];FB(r,i,n);var a=Ai(r,t.mtOverall),o=jt(t.mtOverallInv,a);VB(t,r,a,o),VB(t.lgGeo,r,a,o)}function VB(t,e,n,i){t&&(Li(t,e),At(t.transform||(t.transform=[]),n),At(t.invTransform||(t.invTransform=[]),i))}function FB(t,e,n){Ai(e,HB),Ai(n,GB),kt(GB,GB,HB),nx(t,GB)}var HB=It(),GB=It();function WB(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function YB(t){var e=t.viewRect;return UB[0]=e.x+e.width/2,UB[1]=e.y+e.height/2,UB}var UB=[];function XB(t){return t&&"view"===t.type}function $B(t,e,n,i){var r=vB(n);r.syncBackEl=t,r.syncBackType=e,i?nh(t,OB(null,n,e),i):(OB(t,n,e),t.dirty())}function ZB(t,e,n,i){var r=vB(t),a=r.syncBackEl;a?(a.stopAnimation(),IB(qB,r,a,r.syncBackType)):Li(qB,r.trans[yB]),CB(KB,r,qB),i?eV(qB,KB,r,i):Li(qB,KB),CB(qB,r,qB),sV(r,e,n,qB)}var qB=ki(),KB=ki();function QB(t,e,n){var i=JB(e);i&&(ZB(i,e,n,t),kB(i,e))}function JB(t){return t.__ownRoamView?t.__ownRoamView():null}function tV(t,e,n,i){n.setUpdatePayload(ex(t));var r=zu(i,e);r&&r.__updateOnOwnRoam&&r.__updateOnOwnRoam(t,e,i)}function eV(t,e,n,i){null!=i.dx&&null!=i.dy&&(t.x+=i.dx,t.y+=i.dy);var r=i.zoom;if(null!=r){var a=nV(e),o=cV(a*r,n.zoomLimit),s=o/a;t.x-=(i.originX-t.x)*(s-1),t.y-=(i.originY-t.y)*(s-1),t.scaleX*=s,t.scaleY*=s}}function nV(t){return t.scaleX}function iV(t,e,n){var i=e.dataRect;if(!n)return!1;var r=e.lgCt;return r?M(t,$r(n[0],r.w),$r(n[1],r.h)):i&&M(t,$r(n[0],i.width,i.x),$r(n[1],i.height,i.y)),!0}function rV(t,e){var n=t.centerOption,i=t.dataRect;return!n||t.lgCt?e.slice():[aV(0,e,n,i),aV(1,e,n,i)]}function aV(t,e,n,i){return n&&i&&i[hb[t]]&&Kr(n[t])?(e[t]-i[cb[t]])/i[hb[t]]*100+"%":e[t]}function oV(t,e){return e&&t&&t.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function sV(t,e,n,i){var r=YB(t),a=nV(i),o=zr(a)>1e-6;lV[0]=o?(r[0]-i.x)/a:r[0],lV[1]=o?(r[1]-i.y)/a:r[1],G(lV,lV,t.mtRawInv);var s=rV(t,lV);uV(e,s,a),Object(x["each"])(n,(function(t){t!==e&&uV(t,s.slice(),a)}))}var lV=[];function uV(t,e,n){var i=t.option;i.center=e,i.zoom=n}function cV(t,e){if(e){var n=e.min||0,i=e.max||1/0;t=Math.max(Math.min(i,t),n)}return t}function hV(t,e){var n=e.getShallow("nodeScaleRatio",!0)||1,i=vB(t);return((i.zoom-1)*n+1)/(i.trans[yB].scaleX||1)}var dV=bB;function pV(t,e,n,i,r,a,o,s){var l=JB(t);function u(n){var i=t.mainType,r=ex(Object(x["defaults"])({type:vV(i,t.subType,Nu)},n));s&&(r.componentType=i),r[i+"Id"]=t.id,e.dispatchAction(r)}l?(n.enable(Object(x["retrieve2"])(t.get("roam"),o),{api:e,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:i,isInClip:function(t,e,n){return!r||r.contain(e,n)}}}),n.off("pan").off("zoom").on("pan",(function(t){a&&a("pan"),u({dx:t.dx,dy:t.dy})})).on("zoom",(function(t){a&&a("zoom"),u({zoom:t.scale,originX:t.originX,originY:t.originY})}))):n.disable()}function fV(t){return function(e,n,i){return gV.copy(t.getBoundingRect()),gV.applyTransform(t.getComputedTransform()),gV.contain(n,i)}}var gV=new ue(0,0,0,0);function yV(t,e,n){var i=vV(e,n,Nu);t.registerAction({type:i,event:i,update:"none"},(function(t,i,r){i.eachComponent(ro(t,e,n),(function(e){QB(t,e),tV(t,e,i,r)}))}))}function vV(t,e,n){return(t!==Ou?t:"map"===e?"geo":e)+n}function mV(t){return null!=t.zoom}function bV(t,e,n,i,r,a,o){var s=new dV(null,oV(t.ecModel,e));return DB(s,n,i,r,a),o?LB(s,o.x,o.y,o.width,o.height):LB(s,n,i,r,a),kB(s,t),s}var xV=["rect","circle","line","ellipse","polygon","polyline","path"],_V=x["createHashMap"](xV),wV=x["createHashMap"](xV.concat(["g"])),SV=x["createHashMap"](xV.concat(["g"])),MV=Ka();function OV(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function TV(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var IV=function(){function t(t){var e=this.group=new vr,n=this._transformGroup=new vr;e.add(n),this.uid=Hh("ec_map_draw"),this._controller=new _z(t.getZr()),n.add(this._regionsGroup=new vr),n.add(this._svgGroup=new vr)}return t.prototype.draw=function(t,e,n,i,r){var a=this,o=t.getData&&t.getData();jV(t)&&e.eachComponent({mainType:"series",subType:"map"},(function(e){o||e.getHostGeoModel()!==t||(o=e.getData())}));var s,l=t.coordinateSystem,u=l.view,c=this._regionsGroup,h=this._transformGroup,d=!c.childAt(0)||r;l.shouldClip()?(s=MB(null,u),this.group.setClipPath(new nu({shape:s.clone()}))):this.group.removeClipPath(),$B(h,gB,u,d?null:t);var p=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0;"geoJSON"===l.resourceType?this._buildGeoJSON(u,n,l,t,o,p):"geoSVG"===l.resourceType&&this._buildSVG(u,n,l,t,o,p),pV(t,n,this._controller,(function(e,n,i){return t.coordinateSystem.containPoint([n,i])}),s,(function(){a._mouseDownFlag=!1}),!1,!0),this._updateMapSelectHandler(t,c,n,i)},t.prototype.__updateOnOwnRoam=function(t){$B(this._transformGroup,gB,t.coordinateSystem.view,null)},t.prototype._buildGeoJSON=function(t,e,n,i,r,a){var o=this._regionsGroupByName=x["createHashMap"](),s=x["createHashMap"](),l=this._regionsGroup,u=n.projection,c=u&&u.stream,h=Ai(OB(null,t,fB));function d(t,e){return e&&(t=e(t)),t&&G([],t,h)}function p(t){for(var e=[],n=!c&&u&&u.project,i=0;i<t.length;++i){var r=d(t[i],n);r&&e.push(r)}return e}function f(t){return{shape:{points:p(t)}}}l.removeAll(),x["each"](n.regions,(function(t){var n=t.name,h=o.get(n),p=s.get(n)||{},g=p.dataIdx,y=p.regionModel;if(!h){h=o.set(n,new vr),l.add(h),g=r?r.indexOfName(n):null,y=jV(i)?i.getRegionModel(n):r?r.getItemModel(g):null;var v=y.get("silent",!0);null!=v&&(h.silent=v),s.set(n,{dataIdx:g,regionModel:y})}var m=[],b=[];x["each"](t.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);c&&(e=PV(e,c)),x["each"](e,(function(t){m.push(new _m(f(t)))}))}else{var n=t.points;c&&(n=PV(n,c,!0)),x["each"](n,(function(t){b.push(new Mm(f(t)))}))}}));var _=d(t.getCenter(),u&&u.project);function w(t,o){if(t.length){var s=new zm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(s),CV(e,r,a,s,g,y),AV(i,r,s,n,y,g,_),o&&(TV(s),x["each"](s.states,TV))}}w(m),w(b,!0)})),o.each((function(t,e){var n=s.get(e),a=n.dataIdx,o=n.regionModel;kV(i,r,t,e,o,a),DV(i,r,t,e,o),LV(i,t,e,o)}),this)},t.prototype._buildSVG=function(t,e,n,i,r,a){var o=n.map;OB(this._svgGroup,t,fB),this._svgResourceChanged(o)&&(this._freeSVG(),this._useSVG(o));var s=this._svgDispatcherMap=x["createHashMap"](),l=!1;x["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,o=t.svgNodeTagLower,u=t.el,c=r?r.indexOfName(n):null,h=i.getRegionModel(n);null!=_V.get(o)&&u instanceof Ls&&CV(e,r,a,u,c,h),u instanceof Ls&&(u.culling=!0);var d=h.get("silent",!0);if(null!=d&&(u.silent=d),u.z2EmphasisLift=0,!t.namedFrom&&(null!=SV.get(o)&&AV(i,r,u,n,h,c,null),kV(i,r,u,n,h,c),DV(i,r,u,n,h),null!=wV.get(o))){var p=LV(i,u,n,h);"self"===p&&(l=!0);var f=s.get(n)||s.set(n,[]);f.push(u)}}),this),this._enableBlurEntireSVG(l,i)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&jV(e)){var n=e.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){bc(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=pB.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=pB.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=MV(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function CV(t,e,n,i,r,a){var o=a.getModel("itemStyle"),s=a.getModel(["emphasis","itemStyle"]),l=a.getModel(["blur","itemStyle"]),u=a.getModel(["select","itemStyle"]),c=OV(o),h=OV(s),d=OV(u),p=OV(l);if(e){var f=e.getItemVisual(r,"style"),g=e.getItemVisual(r,"decal");n&&f.fill&&(c.fill=f.fill),g&&(c.decal=Iw(g,t))}i.setStyle(c),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=h,i.ensureState("select").style=d,i.ensureState("blur").style=p,bc(i)}function AV(t,e,n,i,r,a,o){var s=e&&isNaN(e.get(e.mapDimension("value"),a)),l=e&&e.getItemLayout(a);if(jV(t)||s||l&&l.showLabel){var u=jV(t)?i:a,c=void 0;(!e||a>=0)&&(c=t);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ph(n,fh(r),{labelFetcher:c,labelDataIndex:u,defaultText:i},h);var d=n.getTextContent();if(d&&(MV(d).ignore=d.ignore,n.textConfig&&o)){var p=n.getBoundingRect().clone();n.textConfig.layoutRect=p,n.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}n.disableLabelAnimation=!0}else n.removeTextContent(),n.removeTextConfig(),n.disableLabelAnimation=null}function kV(t,e,n,i,r,a){e?e.setItemGraphicEl(a,n):wu(n).eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:i,region:r&&r.option||{}}}function DV(t,e,n,i,r){e||Wb({el:n,componentModel:t,itemName:i,itemTooltipOption:r.get("tooltip")})}function LV(t,e,n,i){e.highDownSilentOnTouch=!!t.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return Fc(e,a,r.get("blurScope"),r.get("disabled")),jV(t)&&$c(e,t,n),a}function PV(t,e,n){var i,r=[];function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),x["each"](t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}function jV(t){return"geo"===t.mainType}var NV=IV,RV="map",EV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return f(e,t),e.prototype.getInitialData=function(t){for(var e=AN(this,{coordDimensions:["value"],encodeDefaulter:x["curry"](rf,this)}),n=x["createHashMap"](),i=[],r=0,a=e.count();r<a;r++){var o=e.getName(r);n.set(o,r)}var s=pB.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return x["each"](s.regions,(function(t){var r,a=t.name,o=n.get(a),s=t.properties&&t.properties.echartsStyle;null==o?(r={name:a},i.push(r)):r=e.getRawDataItem(o),s&&x["merge"](r,s)})),e.appendData(i),e},e.prototype.getHostGeoModel=function(){if(vp(this).kind!==yp)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getName(t),o=[];return x["each"](this.seriesGroup.f,(function(t){var e=t.originalData.indexOfName(a),n=i.mapDimension("value");isNaN(t.originalData.get(n,e))||o.push(t.name)})),Fy("section",{header:o.join(", "),noHeader:!o.length,blocks:[Fy("nameValue",{name:a,value:r})]})},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=z_(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=Xp.color.neutral00,n.style.lineWidth=2),n},e.prototype.__ownRoamView=function(){return BV(this)?this.coordinateSystem.view:null},e.type="series."+RV,e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Xp.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Xp.color.border,areaColor:Xp.color.background},emphasis:{label:{show:!0,color:Xp.color.primary},itemStyle:{areaColor:Xp.color.highlight}},select:{label:{show:!0,color:Xp.color.primary},itemStyle:{color:Xp.color.highlight}},nameProperty:"name"},e}(vv);function zV(t){return 0===t.indexOf("i")}function BV(t){return VV(t.seriesGroup)===t&&!t.getHostGeoModel()}function VV(t){return t.f[0]}function FV(t,e){var n={};return t.eachRawSeriesByType(RV,(function(i){var r=i.getHostGeoModel(),a=r?"o"+r.id:"i"+i.getMapType(),o=n[a]=n[a]||{f:[],r:[]};t.isSeriesFiltered(i)||e||o.f.push(i),o.r.push(i)})),n}var HV=EV,GV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=RV,e}return f(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){var a=this._mapDraw;a&&i&&"geoRoam"===i.type&&a.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?a&&r.add(a.group):BV(t)?(a=a||(this._mapDraw=new NV(n)),r.add(a.group),a.draw(t,e,n,this,i)):this._clearMapDraw(),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,e,n){var i=this._mapDraw;BV(e)&&i&&i.__updateOnOwnRoam(e)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var e=t.originalData,n=this.group;e.each(e.mapDimension("value"),(function(i,r){if(!isNaN(i)){var a=e.getItemLayout(r);if(a&&a.point){var o=a.point,s=a.offset,l=new Uv({style:{fill:t.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:Zu+1)});if(!s){var u=VV(t.seriesGroup).getData(),c=e.getName(r),h=u.indexOfName(c),d=e.getItemModel(r),p=d.getModel("label"),f=u.getItemGraphicEl(h);ph(l,fh(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){pc(l,t)}}n.add(l)}}}))},e.type=RV,e}(px),WV=GV,YV={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},UV=["lng","lat"],XV=function(t){function e(e,n,i){var r=t.call(this)||this;r.dimensions=UV,r.type="geo",r._nameCoordMap=x["createHashMap"](),r.name=e;var a=i.projection,o=pB.load(n,i.nameMap,i.nameProperty),s=pB.getGeoResource(n),l=(r.resourceType=s?s.type:null,r.regions=o.regions),u=YV[s.type];r._clip=i.clip;var c,h=!a&&u.invertLongitute;if(r.view=new dV(h,oV(i.ecModel,i.api),r),r.map=n,r._regionsMap=o.regionsMap,r.regions=o.regions,r.projection=a,a)for(var d=0;d<l.length;d++){var p=l[d].getBoundingRect(a);c=c||p.clone(),c.union(p)}else c=o.boundingRect;return DB(r.view,c.x,c.y,c.width,c.height),r.aspectScale=a?1:x["retrieve2"](i.aspectScale,u.aspectScale),r}return f(e,t),e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(x["isString"](t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.view.dataToPoint(t,e,n)}},e.prototype.pointToData=function(t,e,n){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.view.pointToData(t,n)},e.prototype.convertToPixel=function(t,e,n){var i=$V(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=$V(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var e=MB(null,this.view);return e.x-=t,e.y-=t,e.width+=2*t,e.height+=2*t,e},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e}(ji);function $V(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",eo).models[0]||{}).coordinateSystem:null}var ZV=XV;function qV(t,e){var n=this.view,i=t.get("boundingCoords");if(null!=i){var r=i[0],a=i[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var s=r[0],l=r[1],u=a[0],c=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var h=function(t,e,n,i){for(var s=n-t,l=i-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);W(r,r,h),Y(a,a,h)}};h(s,l,u,l),h(u,l,u,c),h(u,c,s,c),h(s,c,u,l)}DB(n,r[0],r[1],a[0]-r[0],a[1]-r[1])}else 0}var d,p,f,g=n.getBoundingRect(),y=t.get("layoutCenter"),v=t.get("layoutSize"),m=Lp(t,e).refContainer,b=g.width/g.height*this.aspectScale,x=!1;if(y&&v&&(d=[$r(y[0],m.width)+m.x,$r(y[1],m.height)+m.y],p=$r(v,Math.min(m.width,m.height)),isNaN(d[0])||isNaN(d[1])||isNaN(p)||(x=!0)),x)f={},b>1?(f.width=p,f.height=p/b):(f.height=p,f.width=p*b),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var _=t.getBoxLayoutParams();_.aspect=b,f=Ap(_,m),f=kp(t,f,b)}LB(n,f.x,f.y,f.width,f.height),kB(n,t)}function KV(t,e){x["each"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var QV=function(){function t(){this.dimensions=UV}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection"),clip:t.getShallow("clip",!0)}}return t.eachComponent("geo",(function(r,a){var o=r.get("map"),s=new ZV(o+a,o,x["extend"]({nameMap:r.get("nameMap"),api:e,ecModel:t},i(r)));n.push(s),r.coordinateSystem=s,s.model=r,s.resize=qV,s.resize(r,e)})),t.eachSeries((function(t){mp({targetModel:t,coordSysType:"geo",coordSysProvider:function(){var e=t.subType===RV?t.getHostGeoModel():t.getReferringComponents("geo",eo).models[0];return e&&e.coordinateSystem},allowNotFound:!0})})),x["each"](FV(t,!0),(function(r,a){if(zV(a)){var o=r.r[0],s=[];x["each"](r.r,(function(t){s.push(t.get("nameMap")),t.seriesGroup=null}));var l,u=a.slice(1),c=new ZV(u,u,x["extend"]({nameMap:x["mergeAll"](s),api:e,ecModel:t},i(o)));x["each"](r.r,(function(t){l=x["retrieve2"](l,t.get("scaleLimit"))})),n.push(c),c.resize=qV,c.resize(o,e),x["each"](r.r,(function(t){t.coordinateSystem=c,KV(c,t)}))}})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),a=x["createHashMap"](),o=0;o<r.length;o++)a.set(r[o].name,r[o]);var s=pB.load(e,n,i);return x["each"](s.regions,(function(t){var e=t.name,n=a.get(e),i=t.properties&&t.properties.echartsStyle;n||(n={name:e},r.push(n)),i&&x["merge"](n,i)})),r},t}(),JV=new QV,tF=JV,eF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n);var i=pB.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color=t.defaultItemStyleColor||Xp.color.backgroundTint)}ka(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=tF.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=x["reduce"](e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new Vh(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),x["createHashMap"]()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Vh(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return x["isFunction"](i)?(r.status=e,i(r)):x["isString"](i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var i=e.selectedMap||(e.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:Xp.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Xp.color.border},emphasis:{label:{show:!0,color:Xp.color.primary},itemStyle:{color:Xp.color.highlight}},select:{label:{show:!0,color:Xp.color.primary},itemStyle:{color:Xp.color.highlight}},regions:[]},e}(Hp),nF=eF,iF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return f(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new NV(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype.__updateOnOwnRoam=function(t,e,n){var i=this._mapDraw;i&&i.__updateOnOwnRoam(e)},e.prototype._handleRegionClick=function(t){var e;h_(t.target,(function(t){return null!=(e=wu(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=wu(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(bv),rF=iF;function aF(t,e,n){pB.registerMap(t,e,n)}function oF(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var a=n.coordinateSystem;Object(x["each"])(a.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var o=[];Object(x["each"])(i,(function(t,e){i[e]&&o.push(e)})),r.push({geoIndex:n.componentIndex,name:o})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",tF),t.registerComponentModel(nF),t.registerComponentView(rF),t.registerImpl("registerMap",aF),t.registerImpl("getMap",(function(t){return pB.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||(null!=t.geoId||null!=t.geoName||null!=t.geoIndex?"geo":Ou),r=i===Ou;if("geo"===i||r){var a=r?"map":null;e.eachComponent(ro(t,i,a),(function(i){r&&!BV(i)||(QB(t,i,r?i.seriesGroup.r:null),tV(t,i,e,n))}))}}))}var sF=Ao(RV,lF);function lF(t){Object(x["each"])(FV(t),(function(e,n){if(VV(e)&&zV(n)){var i={};Object(x["each"])(e.f,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var a=r.getName(e),o=n.getRegion(a);if(o&&!isNaN(t)){var s=i[a]||0,l=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var r=VV(e).getData();r.each((function(t){var e=r.getName(t),n=r.getItemLayout(t)||{};n.showLabel=!i[e],r.setItemLayout(t,n)}))}}))}function uF(t,e){var n={};return x["each"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var a,o="ec-"+t[0].getName(r),s=0,l=1/0,u=-1/0,c=n[o].length,h=0;h<c;h++)l=Math.min(l,n[o][h]),u=Math.max(u,n[o][h]),s+=n[o][h];return a="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:a}))}var cF=Ao(RV,hF);function hF(t){x["each"](FV(t),(function(t){var e=VV(t);if(e){var n=uF(x["map"](t.f,(function(t){return t.getData()})),e.get("mapValueCalculation"));x["each"](t.f,(function(e){e.seriesGroup=t,e.originalData=e.getData(),e.setData(n.cloneShallow())}))}}))}function dF(t){IM(oF),t.registerChartView(WV),t.registerSeriesModel(HV),t.registerLayout(sF),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,cF),l_("map",t.registerAction)}function pF(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[e];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function fF(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){mF(t);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=bF(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function gF(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function yF(t){return arguments.length?t:MF}function vF(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function mF(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var a=e[n];a.hierNode.prelim+=i,a.hierNode.modifier+=i,r+=a.hierNode.change,i+=a.hierNode.shift+r}}function bF(t,e,n,i){if(e){var r=t,a=t,o=a.parentNode.children[0],s=e,l=r.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;while(s=xF(s),a=_F(a),s&&a){r=xF(r),o=_F(o),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-a.hierNode.prelim-u+i(s,a);d>0&&(SF(wF(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=r.hierNode.modifier,c+=o.hierNode.modifier}s&&!xF(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),a&&!_F(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=t)}return n}function xF(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function _F(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function wF(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function SF(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function MF(t,e){return t.parentNode===e.parentNode?1:2}var OF=Ka();function TF(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,PF(e,n,t),Object(x["each"])(n,(function(n){Object(x["each"])(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(x["curry"])(IF,t))}))})),e.wrapMethod("cloneShallow",Object(x["curry"])(AF,t)),Object(x["each"])(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(x["curry"])(CF,t))})),Object(x["assert"])(n[e.dataType]===e)}function IF(t,e){if(LF(this)){var n=Object(x["extend"])({},OF(this).datas);n[this.dataType]=e,PF(e,n,t)}else jF(e,this.dataType,OF(this).mainData,t);return e}function CF(t,e){return t.struct&&t.struct.update(),e}function AF(t,e){return Object(x["each"])(OF(e).datas,(function(n,i){n!==e&&jF(n.cloneShallow(),i,e,t)})),e}function kF(t){var e=OF(this).mainData;return null==t||null==e?e:OF(e).datas[t]}function DF(){var t=OF(this).mainData;return null==t?[{data:t}]:Object(x["map"])(Object(x["keys"])(OF(t).datas),(function(e){return{type:e,data:OF(t).datas[e]}}))}function LF(t){return OF(t).mainData===t}function PF(t,e,n){OF(t).datas={},Object(x["each"])(e,(function(e,i){jF(e,i,t,n)}))}function jF(t,e,n,i){OF(n).datas[e]=t,OF(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=kF,t.getLinkedDataAll=DF}var NF=TF,RF=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){x["isFunction"](t)&&(n=e,e=t,t=null),t=t||{},x["isString"](t)&&(t={order:t});var i,r=t.order||"preorder",a=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var o=0;!i&&o<a.length;o++)a[o].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),EF=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),a=[],o=1;function s(t,e){var n=t.value;o=Math.max(o,x["isArray"](n)?n.length:1),a.push(t);var i=new RF(Ga(t.name,""),r);e?zF(i,e):r.root=i,r._nodes.push(i);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],i)}s(e),r.root.updateDepthAndHeight(0);var l=uO(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new sO(l,n);return u.initData(a),i&&i(u),NF({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},t}();function zF(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var BF=EF;function VF(t,e,n){if(t&&x["indexOf"](e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(x["isString"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var a=t.targetNodeId;if(null!=a&&(r=i.getNodeById(a)))return{node:r}}}function FF(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function HF(t,e){var n=FF(t);return x["indexOf"](n,e)>=0}function GF(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var WF="tree",YF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return f(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Vh(n,this,this.ecModel),r=BF.createTree(e,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,r=i.root.children[0],a=i.getNodeByDataIndex(t),o=a.getValue(),s=a.name;while(a&&a!==r)s=a.parentNode.name+"."+s,a=a.parentNode;return Fy("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=GF(i,this),n.collapsed=!i.isExpand,n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+WF,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Xp.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(vv),UF=YF,XF=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),$F=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new XF},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,a=n[0],o=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=$r(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(o[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(Bl),ZF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=WF,e._mainGroup=new vr,e}return f(e,t),e.prototype.init=function(t,e){this._controller=new _z(e.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,a=this._mainGroup,o=t.get("layout");"radial"===o?(a.x=r.x+r.width/2,a.y=r.y+r.height/2):(a.x=r.x,a.y=r.y),this._updateViewCoordSys(t,n),pV(t,n,this._controller,fV(this.group),null);var s=this._data;i.diff(s).add((function(e){qF(i,e)&&KF(i,e,null,a,t)})).update((function(e,n){var r=s.getItemGraphicEl(n);qF(i,e)?KF(i,e,r,a,t):r&&eH(s,n,r,a,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&eH(s,e,n,a,t)})).execute(),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,e,n){$B(this.group,yB,e.coordinateSystem,null),mV(t)&&this._updateNodeAndLinkScale(e)},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],a=[];Fs(i,r,a);var o=this._min,s=this._max;a[0]-r[0]===0&&(r[0]=o?o[0]:r[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-r[1]===0&&(r[1]=o?o[1]:r[1]-1,a[1]=s?s[1]:a[1]+1);var l=t.coordinateSystem=bV(t,e,r[0],r[1],a[0]-r[0],a[1]-r[1]);$B(this.group,yB,l,this._firstRender?null:t),this._min=r,this._max=a},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=hV(t.coordinateSystem,t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=WF,e}(px);function qF(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function KF(t,e,n,i,r){var a=!n,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:Xp.color.neutral00,c=t.tree.root,h=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=o.getLayout();a?(n=new fL(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,nh(n,{x:g.x,y:g.y},r);var y=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],m=v.getLayout(),b=v.children.length,_=void 0,w=void 0;if(g.x===m.x&&!0===o.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};_=Math.atan2(S.y-m.y,S.x-m.x),_<0&&(_=2*Math.PI+_),w=S.x<m.x,w&&(_-=Math.PI)}else _=Math.atan2(g.y-m.y,g.x-m.x),_<0&&(_=2*Math.PI+_),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(w=g.x<m.x,w&&(_-=Math.PI)):(w=g.x>m.x,w||(_-=Math.PI));var M=w?"left":"right",O=s.getModel("label"),T=O.get("rotate"),I=T*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:O.get("position")||M,rotation:null==T?-_:I,origin:"center"}),C.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),k="relative"===A?x["concatArray"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===A?o.getAncestorsIndices():"descendant"===A?o.getDescendantIndices():null;k&&(wu(n).focus=k),QF(r,o,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);i&&i.hoverState===Yu||pc(n.__edge,e)}})}function QF(t,e,n,i,r,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Pm({shape:nH(c,h,d,r,r)})),nh(g,{shape:nH(c,h,d,a,o)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;m<y.length;m++){var b=y[m].getLayout();v.push([b.x,b.y])}g||(g=i.__edge=new $F({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),nh(g,{shape:{parentPoint:[o.x,o.y],childPoints:v}},t)}}else 0;g&&("polyline"!==u||e.isExpand)&&(g.useStyle(x["defaults"]({strokeNoScale:!0,fill:null},f)),Yc(g,l,"lineStyle"),bc(g),s.add(g))}function JF(t,e,n,i,r){var a=e.tree.root,o=tH(a,t),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),y=i.get(["lineStyle","curveness"]);d&&("curve"===p?ah(d,{shape:nH(f,g,y,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===p&&"orthogonal"===i.get("layout")&&ah(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function tH(t,e){var n,i=e.parentNode===t?e:e.parentNode||e;while(n=i.getLayout(),null==n)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function eH(t,e,n,i,r){var a=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=tH(o,a).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};ah(n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),x["each"](a.children,(function(e){JF(e,t,i,r,l)})),JF(a,t,i,r,l)}function nH(t,e,n,i,r){var a,o,s,l,u,c,h,d;if("radial"===t){u=i.rawX,h=i.rawY,c=r.rawX,d=r.rawY;var p=vF(u,h),f=vF(u,h+(d-h)*n),g=vF(c,d+(h-d)*n),y=vF(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,h=i.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(a=u+(c-u)*n,o=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(a=u,o=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var iH=ZF;function rH(t,e,n){var i,r=[t],a=[];while(i=r.pop())if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}while(i=a.pop())e(i,n)}function aH(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var r=n.children;if(r.length)for(var a=r.length-1;a>=0;a--)i.push(r[a])}}function oH(t,e){t.eachSeriesByType("tree",(function(t){sH(t,e)}))}function sH(t,e){var n=Lp(t,e).refContainer,i=Ap(t.getBoxLayoutParams(),n);t.layoutInfo=i;var r=t.get("layout"),a=0,o=0,s=null;"radial"===r?(a=2*Math.PI,o=Math.min(i.height,i.width)/2,s=yF((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=i.width,o=i.height,s=yF());var l=t.getData().tree.root,u=l.children[0];if(u){pF(l),rH(u,fF,s),l.hierNode.modifier=-u.hierNode.prelim,aH(u,gF);var c=u,h=u,d=u;aH(u,(function(t){var e=t.getLayout().x;e<c.getLayout().x&&(c=t),e>h.getLayout().x&&(h=t),t.depth>d.depth&&(d=t)}));var p=c===h?1:s(c,h)/2,f=p-c.getLayout().x,g=0,y=0,v=0,m=0;if("radial"===r)g=a/(h.getLayout().x+p+f),y=o/(d.depth-1||1),aH(u,(function(t){v=(t.getLayout().x+f)*g,m=(t.depth-1)*y;var e=vF(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)}));else{var b=t.getOrient();"RL"===b||"LR"===b?(y=o/(h.getLayout().x+p+f),g=a/(d.depth-1||1),aH(u,(function(t){m=(t.getLayout().x+f)*y,v="LR"===b?(t.depth-1)*g:a-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)}))):"TB"!==b&&"BT"!==b||(g=a/(h.getLayout().x+p+f),y=o/(d.depth-1||1),aH(u,(function(t){v=(t.getLayout().x+f)*g,m="TB"===b?(t.depth-1)*y:o-(t.depth-1)*y,t.setLayout({x:v,y:m},!0)})))}}}function lH(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:Ou,subType:WF,query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),yV(t,Ou,WF)}var uH=Ao(WF,cH);function cH(t){t.eachSeriesByType(WF,(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(x["extend"])(r,i)}))}))}function hH(t){t.registerChartView(iH),t.registerSeriesModel(UF),t.registerLayout(oH),t.registerVisual(uH),lH(t)}var dH=["treemapZoomToNode","treemapRender","treemapMove"];function pH(t){for(var e=0;e<dH.length;e++)t.registerAction({type:dH[e],update:"updateView"},x["noop"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],r=VF(t,i,e);if(r){var a=e.getViewRoot();a&&(t.direction=HF(a,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function fH(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var r=gf(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var gH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};yH(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},a=new Vh({itemStyle:r},this,e);i=t.levels=vH(i,e);var o=x["map"](i||[],(function(t){return new Vh(t,a,e)}),this),s=BF.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?o[n.depth]:null;return t.parentModel=i||a,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getName(t);return Fy("nameValue",{name:a,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=GF(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},x["extend"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=x["createHashMap"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){fH(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:Xp.size.l,top:Xp.size.xxxl,right:Xp.size.l,bottom:Xp.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:Xp.size.m,emptyItemWidth:25,itemStyle:{color:Xp.color.backgroundShade,textStyle:{color:Xp.color.secondary}},emphasis:{itemStyle:{color:Xp.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:Xp.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Xp.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(vv);function yH(t){var e=0;x["each"](t.children,(function(t){yH(t);var n=t.value;x["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;x["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),x["isArray"](t.value)?t.value[0]=n:t.value=n}function vH(t,e){var n=Aa(e.get("color")),i=Aa(e.get(["aria","decal","decals"]));if(n){var r,a;t=t||[],x["each"](t,(function(t){var e=new Vh(t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(a=!0)}));var o=t[0]||(t[0]={});return r||(o.color=n.slice()),!a&&i&&(o.decal=i.slice()),t}}var mH=gH,bH=8,xH=8,_H=5,wH=function(){function t(t){this.group=new vr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),r.get("show")&&n){var o=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c=Lp(t,e).refContainer,h={left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},d={emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=Ap(h,c);this._prepare(n,d,l),this._renderContent(t,d,p,o,s,l,u,i),Pp(a,h,c)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Ga(i.getModel().get("name"),""),a=n.getTextRect(r),o=Math.max(a.width+2*bH,e.emptyItemWidth);e.totalWidth+=o+xH,e.renderList.push({node:i,text:r,width:o})}},t.prototype._renderContent=function(t,e,n,i,r,a,o,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),h=e.totalWidth,d=e.renderList,p=r.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],y=g.node,v=g.width,m=g.text;h>n.width&&(h-=v-u,v=u,m=null);var b=new _m({shape:{points:SH(l,0,v,c,f===d.length-1,0===f)},style:Object(x["defaults"])(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new _u({style:gh(a,{text:m})}),textConfig:{position:"inside"},z2:1e4*Zu,onclick:Object(x["curry"])(s,y)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=gh(o,{text:m}),b.ensureState("emphasis").style=p,Fc(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),MH(b,t,y),l+=v+xH}},t.prototype.remove=function(){this.group.removeAll()},t}();function SH(t,e,n,i,r,a){var o=[[r?t:t-_H,e],[t+n,e],[t+n,e+i],[r?t:t-_H,e+i]];return!a&&o.splice(2,0,[t+n+_H,e+i/2]),!r&&o.push([t,e+i/2]),o}function MH(t,e,n){wu(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&GF(n,e)}}var OH=wH,TH=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function IH(){return new TH}var CH=Math.max,AH=Math.min,kH=x["each"],DH=["itemStyle","borderWidth"],LH=["itemStyle","gapWidth"],PH=["upperLabel","show"],jH=["upperLabel","height"],NH={seriesType:"treemap",reset:function(t,e,n,i){var r=t.option,a=Lp(t,n).refContainer,o=Ap(t.getBoxLayoutParams(),a),s=i&&i.type,l=["treemapZoomToNode","treemapRootToNode"],u=VF(i,l,t),c="treemapRender"===s||"treemapMove"===s?i.rootRect:null,h=t.getViewRoot(),d=FF(h);if("treemapMove"!==s){var p=!1,f="treemapZoomToNode"===s?(p=!0,GH(t,u,h,o)):c?(p=!0,x["extend"]({},c)):x["extend"]({},o);if(p){var g=XH(o,f);g=$H(g,t),f.width=o.width*g,f.height=o.height*g}var y=r.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var v={squareRatio:r.squareRatio,sort:y,leafDepth:r.leafDepth};h.hostTree.clearLayouts();var m={x:0,y:0,width:f.width,height:f.height,area:f.width*f.height};h.setLayout(m),RH(h,v,!1,0),m=h.getLayout(),kH(d,(function(t,e){var n=(d[e+1]||h).getValue();t.setLayout(x["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},m))}))}var b=t.getData().tree.root;b.setLayout(WH(o,c,u),!0),t.setLayoutInfo(o),YH(b,new ue(-o.x,-o.y,n.getWidth(),n.getHeight()),d,h,0)}};function RH(t,e,n,i){var r,a;if(!t.isRemoved()){var o=t.getLayout();r=o.width,a=o.height;var s=t.getModel(),l=s.get(DH),u=s.get(LH)/2,c=UH(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),r=CH(r-2*d,0),a=CH(a-d-p,0);var f=r*a,g=EH(t,s,f,e,n,i);if(g.length){var y={x:d,y:p,width:r,height:a},v=AH(r,a),m=1/0,b=[];b.area=0;for(var x=0,_=g.length;x<_;){var w=g[x];b.push(w),b.area+=w.getLayout().area;var S=FH(b,v,e.squareRatio);S<=m?(x++,m=S):(b.area-=b.pop().getLayout().area,HH(b,v,y,u,!1),v=AH(y.width,y.height),b.length=b.area=0,m=1/0)}if(b.length&&HH(b,v,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(x=0,_=g.length;x<_;x++)RH(g[x],e,n,i+1)}}}function EH(t,e,n,i,r,a){var o=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=a;if(r&&!l)return t.viewChildren=[];o=x["filter"](o,(function(t){return!t.isRemoved()})),BH(o,s);var u=VH(e,o,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=zH(e,n,u.sum,s,o),0===u.sum)return t.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function zH(t,e,n,i,r){if(!i)return n;for(var a=t.get("visibleMin"),o=r.length,s=o,l=o-1;l>=0;l--){var u=r["asc"===i?o-l-1:l].getValue();u/n*e<a&&(s=l,n-=u)}return"asc"===i?r.splice(0,o-s):r.splice(s,o-s),n}function BH(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function VH(t,e,n){for(var i=0,r=0,a=e.length;r<a;r++)i+=e[r].getValue();var o,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(o=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&o.reverse()):(o=po(),kH(e,(function(t){var e=t.getValue(s);e<o[0]&&(o[0]=e),e>o[1]&&(o[1]=e)}))):o=[NaN,NaN],{sum:i,dataExtent:o}}function FH(t,e,n){for(var i=0,r=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<r&&(r=o),o>i&&(i=o));var l=t.area*t.area,u=e*e*n;return l?CH(u*i/l,l/(u*r)):1/0}function HH(t,e,n,i,r){var a=e===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=e?t.area/e:0;(r||c>n[l[o]])&&(c=n[l[o]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,y=f[l[o]]=CH(c-2*i,0),v=n[s[a]]+n[l[a]]-u,m=h===d-1||v<g?v:g,b=f[l[a]]=CH(m-2*i,0);f[s[o]]=n[s[o]]+AH(i,y/2),f[s[a]]=u+AH(i,b/2),u+=m,p.setLayout(f,!0)}n[s[o]]+=c,n[l[o]]-=c}function GH(t,e,n,i){var r,a=(e||{}).node,o=i.width,s=i.height,l=x["extend"]({},i);if(!a||a===n)return l;var u=o*s,c=u*t.option.zoomToNodeRatio;while(r=a.parentNode){for(var h=0,d=r.children,p=0,f=d.length;p<f;p++)h+=d[p].getValue();var g=a.getValue();if(0===g)return l;c*=h/g;var y=r.getModel(),v=y.get(DH),m=Math.max(v,UH(y));c+=4*v*v+(3*v+m)*Math.pow(c,.5),c>ua&&(c=ua),a=r}c<u&&(c=u);var b=Math.pow(c/u,.5);return{width:o*b,height:s*b}}function WH(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,a=r.getLayout();if(!a)return i;var o=[a.width/2,a.height/2],s=r;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function YH(t,e,n,i,r){var a=t.getLayout(),o=n[r],s=o&&o===t;if(!(o&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new ue(e.x-a.x,e.y-a.y,e.width,e.height);kH(t.viewChildren||[],(function(t){YH(t,l,n,i,r+1)}))}}function UH(t){return t.get(PH)?t.get(jH):0}function XH(t,e){return e.width/t.width||e.height/t.height||1}function $H(t,e){return cV(t,e.get("scaleLimit",!0))}var ZH=vr,qH=nu,KH=3,QH="label",JH="upperLabel",tG=10*Zu,eG=2*Zu,nG=3*Zu,iG=Yo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rG=function(t){var e=iG(t);return e.stroke=e.fill=e.lineWidth=null,e},aG=Ka(),oG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=sG(),n}return f(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(x["indexOf"])(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=["treemapZoomToNode","treemapRootToNode"],o=VF(i,a,t),s=i&&i.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&o&&c?{rootNodeGroup:c.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=t.get("animation"),f=this._doRender(d,t,h);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(d,f,t,h),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new ZH,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,a=sG(),o=sG(),s=this._storage,l=[];function u(t,i,r,u){return lG(e,o,s,n,a,l,t,i,r,u)}h(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=d(s);return this._oldTree=i,this._storage=o,{lastsForAnimation:a,willDeleteEls:c,renderFinally:p};function h(t,e,n,i,r){function a(t){return t.getId()}function o(a,o){var s=null!=a?t[a]:null,l=null!=o?e[o]:null,c=u(s,l,n,r);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(e=t,Object(x["each"])(t,(function(t,e){!t.isRemoved()&&o(e,e)}))):new DM(e,t,a,a).add(o).update(o).remove(Object(x["curry"])(o,null)).execute()}function d(t){var e=sG();return t&&Object(x["each"])(t,(function(t,n){var i=e[n];Object(x["each"])(t,(function(t){t&&(i.push(t),aG(t).willDelete=!0)}))})),e}function p(){Object(x["each"])(c,(function(t){Object(x["each"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(x["each"])(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(Object(x["isFunction"])(r)?0:r)||0,s=(Object(x["isFunction"])(a)?null:a)||"cubicOut",l=IH();Object(x["each"])(e.willDeleteEls,(function(t,e){Object(x["each"])(t,(function(t,n){if(!t.invisible){var r,a=t.parent,u=aG(a);if(i&&"drillDown"===i.direction)r=a===i.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),r="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,o,0,s)}}))})),Object(x["each"])(this._storage,(function(t,n){Object(x["each"])(t,(function(t,i){var r=e.lastsForAnimation[n][i],a={};r&&(t instanceof vr?null!=r.oldX&&(a.x=t.x,a.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(a.shape=Object(x["extend"])({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),a.style={opacity:1}):1!==t.style.opacity&&(a.style={opacity:1})),l.add(t,a,o,0,s))}))}),this),this._state="animating",l.finished(Object(x["bind"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this,n=this.seriesModel,i=this._controller;i||(i=this._controller=new _z(t.getZr()),i.on("pan",Object(x["bind"])(this._onPan,this)),i.on("zoom",Object(x["bind"])(this._onZoom,this))),i.enable(n.get("roam"),{api:t,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(t,n,i){var r=e._containerGroup;return!!r&&r.getBoundingRect().contain(n-r.x,i-r.y)}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>KH||Math.abs(t.dy)>KH)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale,r=this.seriesModel;if("animating"!==this._state){var a=r.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new ue(o.x,o.y,o.width,o.height),l=r.layoutInfo,u=XH(l,o),c=u*i;c=$H(c,r);var h=c/u;e-=l.x,n-=l.y;var d=It();Dt(d,d,[-e,-n]),Pt(d,d,[h,h]),Dt(d,d,[e,n]),s.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var a=r.hostTree.data.getItemModel(r.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&rp(o,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new OH(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(HF(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=sG(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var a=r.transformCoordToLocal(t,e),o=r.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:i,offsetX:a[0],offsetY:a[1]}}}),this),n},e.type="treemap",e}(px);function sG(){return{nodeGroup:[],background:[],content:[]}}function lG(t,e,n,i,r,a,o,s,l,u){if(o){var c=o.getLayout(),h=t.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,y=c.invisible,v=o.getRawIndex(),m=s&&s.getRawIndex(),b=o.viewChildren,_=c.upperHeight,w=b&&b.length,S=d.getModel("itemStyle"),M=d.getModel(["emphasis","itemStyle"]),O=d.getModel(["blur","itemStyle"]),T=d.getModel(["select","itemStyle"]),I=S.get("borderRadius")||0,C=H("nodeGroup",ZH);if(C){if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),aG(C).nodeWidth=p,aG(C).nodeHeight=f,c.isAboveViewRoot)return C;var A=H("background",qH,u,eG);A&&E(C,A,w&&c.upperLabelHeight);var k=d.getModel("emphasis"),D=k.get("focus"),L=k.get("blurScope"),P=k.get("disabled"),j="ancestor"===D?o.getAncestorsIndices():"descendant"===D?o.getDescendantIndices():D;if(w)Xc(C)&&Uc(C,!1),A&&(Uc(A,!P),h.setItemGraphicEl(o.dataIndex,A),Hc(A,j,L));else{var N=H("content",qH,u,nG);N&&z(C,N),A.disableMorphing=!0,A&&Xc(A)&&Uc(A,!1),Uc(C,!P),h.setItemGraphicEl(o.dataIndex,C);var R=d.getShallow("cursor");R&&N.attr("cursor",R),Hc(C,j,L)}return C}}}function E(e,n,i){var r=wu(n);if(r.dataIndex=o.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:I}),y)B(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=rG(S);l.fill=s;var u=iG(M);u.fill=M.get("borderColor");var c=iG(O);c.fill=O.get("borderColor");var h=iG(T);if(h.fill=T.get("borderColor"),i){var d=p-2*g;V(n,s,a.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,bc(n)}e.add(n)}function z(e,n){var i=wu(n);i.dataIndex=o.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),a=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:a,r:I}),y)B(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=rG(S);u.fill=l,u.decal=s.decal;var c=iG(M),h=iG(O),d=iG(T);V(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,bc(n)}e.add(n)}function B(t){!t.invisible&&a.push(t)}function V(e,n,i,r){var a=d.getModel(r?JH:QH),s=Ga(d.get("name"),null),l=a.getShallow("show");ph(e,fh(d,r?JH:QH),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:o.dataIndex});var u=e.getTextContent();if(u){var h=u.style,p=Object(x["normalizeCssArray"])(h.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",F(h,r,c);var f=u.getState("emphasis");F(f?f.style:null,r,c)}}function F(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+r:r}}function H(t,i,a,o){var s=null!=m&&n[t][m],l=r[t];return s?(n[t][m]=null,G(l,s)):y||(s=new i,s instanceof Ls&&(s.z2=uG(a,o)),W(l,s)),e[t][v]=s}function G(t,e){var n=t[v]={};e instanceof ZH?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(x["extend"])({},e.shape)}function W(t,e){var n=t[v]={},a=o.parentNode,s=e instanceof vr;if(a&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[a.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function uG(t,e){return t*tG+e}var cG=oG,hG=x["each"],dG=x["isObject"],pG=-1,fG=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=x["clone"](e);this.type=i,this.mappingMethod=n,this._normalizeData=TG[n];var a=t.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(vG(r),gG(r)):"category"===n?r.categories?yG(r):vG(r,!0):(x["assert"]("linear"!==n||r.dataExtent),vG(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return x["bind"](this._normalizeData,this)},t.listVisualTypes=function(){return x["keys"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){x["isObject"](t)?x["each"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,a=x["isArray"](e)?[]:x["isObject"](e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var o=n.call(i,t,e);r?a=o:a[e]=o})),a},t.retrieveVisuals=function(e){var n,i={};return e&&hG(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(x["isArray"](t))t=t.slice();else{if(!dG(t))return[];var e=[];hG(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,a=0,o=e.length;a<o;a++){var s=e[a].value;if(null!=s){if(s===t||x["isString"](s)&&s===t+"")return a;n&&h(s,a)}}for(a=0,o=e.length;a<o;a++){var l=e[a],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(IG(c[1],t,u[1]))return a}else if(u[1]===1/0){if(IG(c[0],u[0],t))return a}else if(IG(c[0],u[0],t)&&IG(c[1],t,u[1]))return a;n&&h(u[0],a),n&&h(u[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function h(e,n){var a=Math.abs(e-t);a<r&&(r=a,i=n)}},t.visualHandlers={color:{applyVisual:xG("color"),getColorMapper:function(){var t=this.option;return x["bind"]("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),_G.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=xn["fastLerp"](e,t.parsedVisual,i),r?i:xn["stringify"](i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return xn["stringify"](xn["fastLerp"](t,this.option.parsedVisual),"rgba")},category:_G,piecewise:function(t,e){var n=MG.call(this,e);return null==n&&(n=xn["stringify"](xn["fastLerp"](t,this.option.parsedVisual),"rgba")),n},fixed:wG}},colorHue:mG((function(t,e){return xn["modifyHSL"](t,e)})),colorSaturation:mG((function(t,e){return xn["modifyHSL"](t,null,e)})),colorLightness:mG((function(t,e){return xn["modifyHSL"](t,null,null,e)})),colorAlpha:mG((function(t,e){return xn["modifyAlpha"](t,e)})),decal:{applyVisual:xG("decal"),_normalizedToVisual:{linear:null,category:_G,piecewise:null,fixed:null}},opacity:{applyVisual:xG("opacity"),_normalizedToVisual:SG([0,1])},liftZ:{applyVisual:xG("liftZ"),_normalizedToVisual:{linear:wG,category:wG,piecewise:wG,fixed:wG}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:bG,category:_G,piecewise:function(t,e){var n=MG.call(this,e);return null==n&&(n=bG.call(this,t)),n},fixed:wG}},symbolSize:{applyVisual:xG("symbolSize"),_normalizedToVisual:SG([0,1])}},t}();function gG(t){var e=t.pieceList;t.hasSpecialVisual=!1,x["each"](e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function yG(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(hG(e,(function(t,e){n[t]=e})),!x["isArray"](i)){var r=[];x["isObject"](i)?hG(i,(function(t,e){var i=n[e];r[null!=i?i:pG]=t})):r[pG]=i,i=OG(t,r)}for(var a=e.length-1;a>=0;a--)null==i[a]&&(delete n[e[a]],e.pop())}function vG(t,e){var n=t.visual,i=[];x["isObject"](n)?hG(n,(function(t){i.push(t)})):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),OG(t,i)}function mG(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:SG([0,1])}}function bG(t){var e=this.option.visual;return e[Math.round(Xr(t,[0,1],[0,e.length-1],!0))]||{}}function xG(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function _G(t){var e=this.option.visual;return e[this.option.loop&&t!==pG?t%e.length:t]}function wG(){return this.option.visual[0]}function SG(t){return{linear:function(e){return Xr(e,t,this.option.visual,!0)},category:_G,piecewise:function(e,n){var i=MG.call(this,n);return null==i&&(i=Xr(e,t,this.option.visual,!0)),i},fixed:wG}}function MG(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=fG.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function OG(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=x["map"](e,(function(t){var e=xn["parse"](t);return e||[0,0,0,1]}))),e}var TG={linear:function(t){return Xr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=fG.findPieceIndex(t,e,!0);if(null!=n)return Xr(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?pG:e},fixed:x["noop"]};function IG(t,e,n){return t?e<=n:e<n}var CG=fG,AG="itemStyle",kG=Ka(),DG={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||LG(n,{},t.getViewRoot().getAncestors(),t)}};function LG(t,e,n,i){var r=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(a&&!a.invisible&&a.isInView){var s,l=r.getModel(AG),u=PG(l,e,i),c=o.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=jG(u),h=NG(d,s)),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var f=EG(t,r,a,l,u,p);Object(x["each"])(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var a=BG(r,u,t,e,f,i);LG(t,a,n,i)}}))}else s=jG(u),c.fill=s}}function PG(t,e,n){var i=Object(x["extend"])({},e),r=n.designatedVisualItemStyle;return Object(x["each"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var a=t.get(n);r[n]=null,null!=a&&(i[n]=a)})),i}function jG(t){var e=RG(t,"color");if(e){var n=RG(t,"colorAlpha"),i=RG(t,"colorSaturation");return i&&(e=Object(xn["modifyHSL"])(e,null,null,i)),n&&(e=Object(xn["modifyAlpha"])(e,n)),e}}function NG(t,e){return null!=e?Object(xn["modifyHSL"])(e,null,null,t):null}function RG(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function EG(t,e,n,i,r,a){if(a&&a.length){var o=zG(e,"color")||null!=r.color&&"none"!==r.color&&(zG(e,"colorAlpha")||zG(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new CG(h);return kG(d).drColorMappingBy=c,d}}}function zG(t,e){var n=t.get(e);return Object(x["isArray"])(n)&&n.length?{name:e,range:n}:null}function BG(t,e,n,i,r,a){var o=Object(x["extend"])({},e);if(r){var s=r.type,l="color"===s&&kG(r).drColorMappingBy,u="index"===l?i:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[s]=r.mapValueToVisual(u)}return o}function VG(t){t.registerSeriesModel(mH),t.registerChartView(cG),t.registerVisual(DG),t.registerLayout(NH),pH(t)}function FG(t){return"_EC_"+t}var HG=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[FG(t)]){var i=new GG(t,e);return i.hostGraph=this,this.nodes.push(i),n[FG(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[FG(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(x["isNumber"](t)&&(t=this.nodes[t]),x["isNumber"](e)&&(e=this.nodes[e]),t instanceof GG||(t=i[FG(t)]),e instanceof GG||(e=i[FG(e)]),t&&e){var a=t.id+"-"+e.id,o=new WG(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),r[a]=o,o}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof GG&&(t=t.id),e instanceof GG&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof GG||(e=this._nodesMap[FG(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(i,e,null)){var o=[e];while(o.length){var s=o.shift(),l=s[r];for(a=0;a<l.length;a++){var u=l[a],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(i,c,s))return;o.push(c),c.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(r=0,a=e.count();r<a;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var a=i[r];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),GG=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=x["createHashMap"](),e=x["createHashMap"](),n=0,i=this.edges.length;n<i;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);var a=[r.node1],o=[r.node2],s=0;while(s<a.length){var l=a[s];s++,e.set(l.dataIndex,!0);for(var u=l.inEdges,c=0,h=u.length,d=void 0,p=void 0;c<h;c++)d=u[c],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(d.node1))}s=0;while(s<o.length){var f=o[s];s++,e.set(f.dataIndex,!0);for(var g=f.outEdges,y=(c=0,g.length),v=void 0,m=void 0;c<y;c++)v=g[c],m=v.dataIndex,m>=0&&!t.hasKey(m)&&(t.set(m,!0),o.push(v.node2))}}}return{edge:t.keys(),node:e.keys()}},t}(),WG=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=x["createHashMap"](),e=x["createHashMap"]();t.set(this.dataIndex,!0);var n=[this.node1],i=[this.node2],r=0;while(r<n.length){var a=n[r];r++,e.set(a.dataIndex,!0);for(var o=a.inEdges,s=0,l=o.length,u=void 0,c=void 0;s<l;s++)u=a.inEdges[s],c=u.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),n.push(u.node1))}r=0;while(r<i.length){var h=i[r];r++,e.set(h.dataIndex,!0);for(var d=h.outEdges,p=(s=0,l=d.length,void 0),f=void 0;s<l;s++)p=h.outEdges[s],f=p.dataIndex,f>=0&&!t.hasKey(f)&&(t.set(f,!0),i.push(p.node2))}return{edge:t.keys(),node:e.keys()}},t}();function YG(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}x["mixin"](GG,YG("hostGraph","data")),x["mixin"](WG,YG("hostGraph","edgeData"));var UG=HG;function XG(t,e,n,i,r){for(var a=new UG(i),o=0;o<t.length;o++)a.addNode(x["retrieve"](t[o].id,t[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<e.length;o++){var c=e[o],h=c.source,d=c.target;a.addEdge(h,d,u)&&(l.push(c),s.push(x["retrieve"](Ga(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f||"matrix"===f)p=OO(t,n);else{var g=xp.get(f),y=g&&g.dimensions||[];x["indexOf"](y,"value")<0&&y.concat(["value"]);var v=uO(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;p=new sO(v,n),p.initData(t)}var m=new sO(["value"],n);return m.initData(l,s),r&&r(p,m),NF({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var $G="--\x3e",ZG=function(t){return t.get("autoCurveness")||null},qG=function(t,e){var n=ZG(t),i=20,r=[];if(x["isNumber"](n))i=n;else if(x["isArray"](n))return void(t.__curvenessList=n);e>i&&(i=e);var a=i%2?i+2:i+3;r=[];for(var o=0;o<a;o++)r.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=r},KG=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join($G)},QG=function(t){var e=t.split($G);return[e[0],e[2],e[1]].join($G)},JG=function(t,e){var n=KG(t.node1,t.node2,e);return e.__edgeMap[n]},tW=function(t,e){var n=eW(KG(t.node1,t.node2,e),e),i=eW(KG(t.node2,t.node1,e),e);return n+i},eW=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function nW(t){ZG(t)&&(t.__curvenessList=[],t.__edgeMap={},qG(t))}function iW(t,e,n,i){if(ZG(n)){var r=KG(t,e,n),a=n.__edgeMap,o=a[QG(r)];a[r]&&!o?a[r].isForward=!0:o&&a[r]&&(o.isForward=!0,a[r].isForward=!1),a[r]=a[r]||[],a[r].push(i)}}function rW(t,e,n,i){var r=ZG(e),a=x["isArray"](r);if(!r)return null;var o=JG(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=tW(t,e);qG(e,u),t.lineStyle=t.lineStyle||{};var c=KG(t.node1,t.node2,e),h=e.__curvenessList,d=a||u%2?0:1;if(o.isForward)return h[d+s];var p=QG(c),f=eW(p,e),g=h[s+f+d];return i?a?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}var aW="graph",oW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new DN(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),ka(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){nW(this);var a=XG(i,n,this,!0,o);return x["each"](a.edges,(function(t){iW(t.node1,t.node2,this,t.dataIndex)}),this),a.data}function o(t,e){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=Vh.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=a,i}function a(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=a,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),a=i.graph.getEdgeByIndex(t),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Fy("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=iv({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=x["map"](this.option.categories||[],(function(t){return null!=t.value?t:x["extend"]({value:0},t)})),e=new sO(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return XB(t)&&t},e.type="series."+aW,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:Xp.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Xp.color.primary}}},e}(vv),sW=oW;function lW(t){return t instanceof Array||(t=[t,t]),t}var uW=Ao(aW,cW);function cW(t){t.eachSeriesByType(aW,(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=lW(t.get("edgeSymbol")),r=lW(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),a=lW(i.getShallow("symbol",!0)),o=lW(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(x["extend"])(l,s),l.stroke){case"source":var u=r.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");l.stroke=u&&u.fill;break}a[0]&&r.setVisual("fromSymbol",a[0]),a[1]&&r.setVisual("toSymbol",a[1]),o[0]&&r.setVisual("fromSymbolSize",o[0]),o[1]&&r.setVisual("toSymbolSize",o[1])}))}))}function hW(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),dW(n,t)}}function dW(t,e){t.eachEdge((function(t,n){var i=x["retrieve3"](t.getModel().get(["lineStyle","curveness"]),-rW(t,e,n,!0),0),r=S(t.node1.getLayout()),a=S(t.node2.getLayout()),o=[r,a];+i&&o.push([(r[0]+a[0])/2-(r[1]-a[1])*i,(r[1]+a[1])/2-(a[0]-r[0])*i]),t.setLayout(o)}))}var pW=Ao(aW,fW);function fW(t,e){t.eachSeriesByType(aW,(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];Object(x["each"])(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var a=0;a<i.count();a++){for(var o=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],a);isNaN(u)||(s=!0),o.push(u)}s?i.setItemLayout(a,n.dataToPoint(o)):i.setItemLayout(a,[NaN,NaN])}dW(i.graph,t)}else e&&"none"!==e||hW(t)}))}function gW(t){var e=t.coordinateSystem;return XB(e)?hV(e,t):1}function yW(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var vW=Math.PI,mW=[];function bW(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var a=r.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),h){if(n){var d=r.pointToData(i),p=d[0],f=d[1],g=[p-l,f-u];R(g,g),N(g,g,c),n.setLayout([l+g[0],u+g[1]],!0);var y=t.get(["circular","rotateLabel"]);_W(n,y,l,u)}xW[e](t,s,o,c,l,u,h),s.eachEdge((function(e,n){var i,r=x["retrieve3"](e.getModel().get(["lineStyle","curveness"]),rW(e,t,n),0),a=S(e.node1.getLayout()),o=S(e.node2.getLayout()),s=(a[0]+o[0])/2,c=(a[1]+o[1])/2;+r&&(r*=3,i=[l*r+s*(1-r),u*r+c*(1-r)]),e.setLayout([a,o,i])}))}}}var xW={value:function(t,e,n,i,r,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+a]),s+=n}))},symbolSize:function(t,e,n,i,r,a,o){var s=0;mW.length=o;var l=gW(t);e.eachNode((function(t){var e=yW(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=vW/2),mW[t.dataIndex]=n,s+=2*n}));var u=(2*vW-s)/o/2,c=0;e.eachNode((function(t){var e=u+mW[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+a]),c+=e}))}};function _W(t,e,n,i){var r=t.getGraphicEl();if(r){var a=t.getModel(),o=a.get(["label","rotate"])||0,s=r.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-i,l[0]-n);u<0&&(u=2*Math.PI+u);var c=l[0]<n;c&&(u-=Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var d=s.ensureState("emphasis");x["extend"](d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var wW=Ao(aW,SW);function SW(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&bW(t,"symbolSize")}))}var MW=T;function OW(t,e,n){for(var i=t,r=e,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=_(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=S(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,a=0;a<r.length;a++){var o=r[a];if(!o.ignoreForceLayout){var s=o.n1,c=o.n2;I(e,c.p,s.p);var h=C(e)-o.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),R(e,e),!s.fixed&&MW(s.p,s.p,e,f*h*g),!c.fixed&&MW(c.p,c.p,e,-(1-f)*h*g)}}for(a=0;a<n;a++){var y=i[a];y.fixed||(I(e,l,y.p),MW(y.p,y.p,e,u*g))}for(a=0;a<n;a++){s=i[a];for(var v=a+1;v<n;v++){c=i[v];I(e,c.p,s.p);h=C(e);0===h&&(M(e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&MW(s.pp,s.pp,e,m),!c.fixed&&MW(c.pp,c.pp,e,-m)}}var b=[];for(a=0;a<n;a++){y=i[a];y.fixed||(I(b,y.p,y.pp),MW(y.p,y.p,b,g),w(y.pp,y.p))}g*=.992;var x=g<.01;p&&p(i,r,x),t&&t(x)}}}var TW=Ao(aW,IW);function IW(t){t.eachSeriesByType(aW,(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,a=i.edgeData,o=t.getModel("force"),s=o.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&bW(t,"value"):hW(t);var l=r.getDataExtent("value"),u=a.getDataExtent("value"),c=o.get("repulsion"),h=o.get("edgeLength"),d=x["isArray"](c)?c:[c,c],p=x["isArray"](h)?h:[h,h];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=Xr(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=a.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),a=Xr(e,u,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=r.getModel(),s=x["retrieve3"](r.getModel().get(["lineStyle","curveness"]),-rW(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),y=e.getBoundingRect(),v=OW(f,g,{rect:y,gravity:o.get("gravity"),friction:o.get("friction")});v.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&w(t[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,a){for(var o=0,s=t.length;o<s;o++)t[o].fixed||i.getNodeByIndex(o).setLayout(t[o].p),n[r.getId(o)]=t[o].p;for(o=0,s=e.length;o<s;o++){var l=e[o],u=i.getEdgeByIndex(o),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],w(d[0],c),w(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function CW(t,e,n){var i=Lp(t,e),r=Object(x["extend"])(t.getBoxLayoutParams(),{aspect:n}),a=Ap(r,i.refContainer);return kp(t,a,n)}function AW(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){function i(){var i=t.getData(),r=i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],o=[];Fs(r,a,o),o[0]-a[0]===0&&(o[0]+=1,a[0]-=1),o[1]-a[1]===0&&(o[1]+=1,a[1]-=1);var s=(o[0]-a[0])/(o[1]-a[1]),l=CW(t,e,s);isNaN(s)&&(a=[l.x,l.y],o=[l.x+l.width,l.y+l.height]);var u=o[0]-a[0],c=o[1]-a[1],h=bV(t,e,a[0],a[1],u,c,l);return n.push(h),h}mp({targetModel:t,coordSysType:"view",coordSysProvider:i,isDefaultDataCoordSys:!0})})),n}var kW=Cm.prototype,DW=Pm.prototype,LW=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}f(e,t)})(LW);function PW(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var jW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new LW},e.prototype.buildPath=function(t,e){PW(e)?kW.buildPath.call(this,t,e):DW.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return PW(this.shape)?kW.pointAt.call(this,t):DW.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=PW(e)?[e.x2-e.x1,e.y2-e.y1]:DW.tangentAt.call(this,t);return R(n,n)},e}(Bl),NW=jW,RW=["fromSymbol","toSymbol"];function EW(t){return"_"+t+"Type"}function zW(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=B_(r),u=V_(o||0,l);return i+l+u+(a||"")+(s||"")}function BW(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=B_(r),u=V_(o||0,l),c=z_(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=t,c}}function VW(t){var e=new NW({name:"line",subPixelOptimize:!0});return FW(e.shape,t),e}function FW(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var HW=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return f(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=t.getItemLayout(e),a=t.getItemVisual(e,"z2"),o=VW(r);o.shape.percent=0,ih(o,{z2:Object(x["retrieve2"])(a,0),shape:{percent:1}},i,e),this.add(o),Object(x["each"])(RW,(function(n){var i=BW(n,t,e);this.add(i),this[EW(n)]=zW(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),a=t.getItemLayout(e),o={shape:{}};FW(o.shape,a),nh(r,o,i,e),Object(x["each"])(RW,(function(n){var i=zW(n,t,e),r=EW(n);if(this[r]!==i){this.remove(this.childOfName(n));var a=BW(n,t,e);this.add(a)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");a=p.getModel("lineStyle").getLineStyle(),o=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=fh(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=a,r.ensureState("blur").style=o,r.ensureState("select").style=s,Object(x["each"])(RW,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Xu.length;n++){var i=Xu[n],a=r.getState(i);if(a){var o=a.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=o.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}e.markRedraw()}}),this);var y=i.getRawValue(e);ph(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||Xp.color.neutral99,defaultOpacity:f.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Jr(y,10):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var b=m.get("distance");Object(x["isArray"])(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Fc(this,c,h,u)},e.prototype.highlight=function(){wc(this)},e.prototype.downplay=function(){Sc(this)},e.prototype.updateLayout=function(t,e){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");FW(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){var r=1,a=this.parent;while(a)a.scaleX&&(r/=a.scaleX),a=a.parent;var o=t.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=I([],u,l);if(R(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,y=s/2,v=o.tangentAt(y),m=[v[1],-v[0]],b=o.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var _=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(_=Math.PI+_),i.rotation=_}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*x+l[0],i.y=l[1]+w,h=v[0]<0?"right":"left",i.originX=-f*x,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*x+u[0],i.y=u[1]+w,h=v[0]>=0?"right":"left",i.originX=f*x,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(vr),GW=HW,WW=function(){function t(t){this.group=new vr,this._LineCtor=t||GW}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var a=UW(t);t.diff(r).add((function(n){e._doAdd(t,n,a)})).update((function(n,i){e._doUpdate(r,t,i,n,a)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=UW(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||YW(t)||(t.incremental=n,t.ensureState("emphasis").hoverLayer=fb)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++){var a=e.getItemLayout(r);if($W(a)){var o=new this._LineCtor(e,r,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Ub(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if($W(i)){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,i,r){var a=t.getItemGraphicEl(n);$W(e.getItemLayout(i))?(a?a.updateData(e,i,r):a=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,a),this.group.add(a)):this.group.remove(a)},t}();function YW(t){return t.animators&&t.animators.length>0}function UW(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:fh(e)}}function XW(t){return isNaN(t[0])||isNaN(t[1])}function $W(t){return t&&!XW(t[0])&&!XW(t[1])}var ZW=WW,qW=[],KW=[],QW=[],JW=un,tY=V,eY=Math.abs;function nY(t,e,n){for(var i,r=t[0],a=t[1],o=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){qW[0]=JW(r[0],a[0],o[0],c),qW[1]=JW(r[1],a[1],o[1],c);var h=eY(tY(qW,e)-l);h<s&&(s=h,i=c)}for(var d=0;d<32;d++){var p=i+u;KW[0]=JW(r[0],a[0],o[0],i),KW[1]=JW(r[1],a[1],o[1],i),QW[0]=JW(r[0],a[0],o[0],p),QW[1]=JW(r[1],a[1],o[1],p);h=tY(KW,e)-l;if(eY(h)<.01)break;var f=tY(QW,e)-l;u/=2,h<0?f>=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function iY(t,e){var n=[],i=pn,r=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[S(l[0]),S(l[1])],l[2]&&l.__original.push(S(l[2])));var h=l.__original;if(null!=l[2]){if(w(r[0],h[0]),w(r[1],h[2]),w(r[2],h[1]),u&&"none"!==u){var d=yW(t.node1),p=nY(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=yW(t.node2),p=nY(r,h[1],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}w(l[0],r[0]),w(l[1],r[2]),w(l[2],r[1])}else{if(w(a[0],h[0]),w(a[1],h[1]),I(o,a[1],a[0]),R(o,o),u&&"none"!==u){d=yW(t.node1);T(a[0],a[0],o,d*e)}if(c&&"none"!==c){d=yW(t.node2);T(a[1],a[1],o,-d*e)}w(l[0],a[0]),w(l[1],a[1])}}))}var rY=Ka();function aY(t){if(t)return rY(t).bridge}function oY(t,e){t&&(rY(t).bridge=e)}var sY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=aW,e}return f(e,t),e.prototype.init=function(t,e){var n=new xL,i=new ZW,r=this.group,a=new vr;this._controller=new _z(e.getZr()),a.add(n.group),a.add(i.group),r.add(a),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=a,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=JB(t),a=!1;this._model=t,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var l=this._symbolDraw,u=this._lineDraw;r&&$B(o,yB,r,this._firstRender?null:t),iY(t.getGraph(),gW(t));var c=t.getData();l.updateData(c);var h=t.getEdgeData();u.updateData(h),this._updateNodeAndLinkScale(),r&&pV(t,n,this._controller,(function(e,n,i){return t.coordinateSystem.containPoint([n,i])}),null),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(a=!0,this._startForceLayoutIteration(d,n,p));var f=t.get("layout");c.graph.eachNode((function(e){var r=e.dataIndex,a=e.getGraphicEl(),o=e.getModel();if(a){a.off("drag").off("dragend");var s=o.get("draggable");s&&a.on("drag",(function(o){switch(f){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(r),c.setItemLayout(r,[a.x,a.y]);break;case"circular":c.setItemLayout(r,[a.x,a.y]),e.setLayout({fixed:!0},!0),bW(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(r,[a.x,a.y]),dW(t.getGraph(),t),i.updateLayout(t);break}})).on("dragend",(function(){d&&d.setUnfixed(r)})),a.setDraggable(s,!!o.get("cursor"));var l=o.get(["emphasis","focus"]);"adjacency"===l&&(wu(a).focus=e.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(wu(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),v=c.getLayout("cy");c.graph.eachNode((function(t){_W(t,g,y,v)})),this._firstRender=!1,a||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,e,n){var i=this,r=!1;(function a(){t.step((function(t){i.updateLayout(i._model),!t&&r||(r=!0,i._renderThumbnail(i._model,e,i._symbolDraw,i._lineDraw)),(i._layouting=!t)&&(n?i._layoutTimeout=setTimeout(a,16):a())}))})()},e.prototype.__updateOnOwnRoam=function(t,e,n){var i=JB(e);this._active&&i&&($B(this._mainGroup,yB,i,null),mV(t)&&(this._updateNodeAndLinkScale(),iY(e.getGraph(),gW(e)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=gW(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){this._active&&(iY(t.getGraph(),gW(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,e=t.coordinateSystem;if("view"===e.type){var n=aY(t);if(n)return{bridge:n,coordSys:e}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(_B(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,e,n,i){var r=this._getThumbnailInfo();if(r){var a=new vr,o=n.group.children(),s=i.group.children(),l=new vr,u=new vr;a.add(u),a.add(l);for(var c=0;c<o.length;c++){var h=o[c],d=h.children()[0],p=h.x,f=h.y,g=Object(x["clone"])(d.shape),y=Object(x["extend"])(g,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:f-d.scaleY/2}),v=Object(x["clone"])(d.style),m=new d.constructor({shape:y,style:v,z2:151});u.add(m)}for(c=0;c<s.length;c++){h=s[c];var b=h.children()[0],_=(v=Object(x["clone"])(b.style),y=Object(x["clone"])(b.shape),new NW({style:v,shape:y,z2:151}));l.add(_)}r.bridge.renderContent({api:e,roamType:t.get("roam"),viewportRect:null,group:a,targetTrans:_B(null,r.coordSys)})}},e.type=aW,e}(px),lY=sY,uY=Ao(aW,cY);function cY(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType(aW,(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,a=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){Object(x["isNumber"])(i)&&(i=a[i]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(i))return!1}return!0}))}))}var hY=Ao(aW,dY);function dY(t){var e={};t.eachSeriesByType(aW,(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var a=n.getName(i);r["ec-"+a]=i;var o=n.getItemModel(i),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(a,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(i,l[u],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),a=e.getShallow("category");if(null!=a){Object(x["isString"])(a)&&(a=r["ec-"+a]);var o=n.getItemVisual(a,"style"),s=i.ensureUniqueItemVisual(t,"style");Object(x["extend"])(s,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)i.setItemVisual(t,l[u],n.getItemVisual(a,l[u]))}}))}))}function pY(t){t.registerChartView(lY),t.registerSeriesModel(sW),t.registerProcessor(uY),t.registerVisual(hY),t.registerVisual(uW),t.registerLayout(pW),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,wW),t.registerLayout(TW),t.registerCoordinateSystem("graphView",{dimensions:dV.dimensions,create:AW}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},x["noop"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},x["noop"]),yV(t,Ou,aW)}var fY="chord",gY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new DN(x["bind"](this.getData,this),x["bind"](this.getRawData,this))},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&n){var r=XG(i,n,this,!0,a);return r.data}function a(t,e){var n=Vh.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){var i=this.getDataParams(t,n);if("edge"===n){var r=this.getData(),a=r.graph.getEdgeByIndex(t),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Fy("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return Fy("nameValue",{name:i.name,value:i.value,noValue:null==i.value})},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if("node"===n){var r=this.getData(),a=this.getGraph().getNodeByIndex(e);if(null==i.name&&(i.name=r.getName(e)),null==i.value){var o=a.getLayout().value;i.value=o}}return i},e.type="series."+fY,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e}(vv),yY=gY,vY=function(t){function e(e,n,i){var r=t.call(this)||this;wu(r).dataType="node",r.z2=2;var a=new _u;return r.setTextContent(a),r.updateData(e,n,i,!0),r}return f(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,a=t.graph.getNodeByIndex(e),o=t.hostModel,s=a.getModel(),l=s.getModel("emphasis"),u=t.getItemLayout(e),c=Object(x["extend"])(tN(s.getModel("itemStyle"),u,!0),u),h=this;if(isNaN(c.startAngle))h.setShape(c);else{i?h.setShape(c):nh(h,{shape:c},o,e);var d=Object(x["extend"])(tN(s.getModel("itemStyle"),u,!0),u);r.setShape(d),r.useStyle(t.getItemVisual(e,"style")),Yc(r,s),this._updateLabel(o,s,a),t.setItemGraphicEl(e,h),Yc(h,s,"itemStyle");var p=l.get("focus");Fc(this,"adjacency"===p?a.getAdjacentDataIndices():p,l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this.getTextContent(),r=n.getLayout(),a=(r.startAngle+r.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=e.getModel("label");i.ignore=!l.get("show");var u=fh(e),c=n.getVisual("style");ph(i,u,{labelFetcher:{getFormattedLabel:function(n,i,r,a,o,s){return t.getFormattedLabel(n,i,"node",a,Object(x["retrieve3"])(o,u.normal&&u.normal.get("formatter"),e.get("name")),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var h,d=l.get("position")||"outside",p=l.get("distance")||0;h="outside"===d?r.r+p:(r.r+r.r0)/2,this.textConfig={inside:"outside"!==d};var f="outside"!==d?l.get("align")||"center":o>0?"left":"right",g="outside"!==d?l.get("verticalAlign")||"middle":s>0?"top":"bottom";i.attr({x:o*h+r.cx,y:s*h+r.cy,rotation:0,style:{align:f,verticalAlign:g}})},e}(pm),mY=vY,bY=(function(){function t(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}}(),function(t){function e(e,n,i,r){var a=t.call(this)||this;return wu(a).dataType="edge",a.updateData(e,n,i,r,!0),a}return f(e,t),e.prototype.buildPath=function(t,e){t.moveTo(e.s1[0],e.s1[1]);var n=.7,i=e.clockwise;t.arc(e.cx,e.cy,e.r,e.sStartAngle,e.sEndAngle,!i),t.bezierCurveTo((e.cx-e.s2[0])*n+e.s2[0],(e.cy-e.s2[1])*n+e.s2[1],(e.cx-e.t1[0])*n+e.t1[0],(e.cy-e.t1[1])*n+e.t1[1],e.t1[0],e.t1[1]),t.arc(e.cx,e.cy,e.r,e.tStartAngle,e.tEndAngle,!i),t.bezierCurveTo((e.cx-e.t2[0])*n+e.t2[0],(e.cy-e.t2[1])*n+e.t2[1],(e.cx-e.s1[0])*n+e.s1[0],(e.cy-e.s1[1])*n+e.s1[1],e.s1[0],e.s1[1]),t.closePath()},e.prototype.updateData=function(t,e,n,i,r){var a=t.hostModel,o=e.graph.getEdgeByIndex(n),s=o.getLayout(),l=o.node1.getModel(),u=e.getItemModel(o.dataIndex),c=u.getModel("lineStyle"),h=u.getModel("emphasis"),d=h.get("focus"),p=Object(x["extend"])(tN(l.getModel("itemStyle"),s,!0),s),f=this;isNaN(p.sStartAngle)||isNaN(p.tStartAngle)?f.setShape(p):(r?(f.setShape(p),xY(f,o,t,c)):(lh(f),xY(f,o,t,c),nh(f,{shape:p},a,n)),Fc(this,"adjacency"===d?o.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),Yc(f,u,"lineStyle"),e.setItemGraphicEl(o.dataIndex,f))},e}(Bl));function xY(t,e,n,i){var r=e.node1,a=e.node2,o=t.style;t.setStyle(i.getLineStyle());var s=i.get("color");switch(s){case"source":o.fill=n.getItemVisual(r.dataIndex,"style").fill,o.decal=r.getVisual("style").decal;break;case"target":o.fill=n.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"gradient":var l=n.getItemVisual(r.dataIndex,"style").fill,u=n.getItemVisual(a.dataIndex,"style").fill;if(Object(x["isString"])(l)&&Object(x["isString"])(u)){var c=t.shape,h=(c.s1[0]+c.s2[0])/2,d=(c.s1[1]+c.s2[1])/2,p=(c.t1[0]+c.t2[0])/2,f=(c.t1[1]+c.t2[1])/2;o.fill=new Hm(h,d,p,f,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var _Y=Math.PI/180,wY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=fY,e}return f(e,t),e.prototype.init=function(t,e){},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,a=this.group,o=-t.get("startAngle")*_Y;if(i.diff(r).add((function(t){var e=i.getItemLayout(t);if(e){var n=new mY(i,t,o);wu(n).dataIndex=t,a.add(n)}})).update((function(e,n){var s=r.getItemGraphicEl(n),l=i.getItemLayout(e);l?(s?s.updateData(i,e,o):s=new mY(i,e,o),a.add(s)):s&&sh(s,t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&sh(n,t,e)})).execute(),!r){var s=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=$r(s[0],n.getWidth()),this.group.originY=$r(s[1],n.getHeight()),ih(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,o)},e.prototype.renderEdges=function(t,e){var n=t.getData(),i=t.getEdgeData(),r=this._edgeData,a=this.group;i.diff(r).add((function(t){var r=new bY(n,i,t,e);wu(r).dataIndex=t,a.add(r)})).update((function(t,o){var s=r.getItemGraphicEl(o);s.updateData(n,i,t,e),a.add(s)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&sh(n,t,e)})).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type=fY,e}(px),SY=wY,MY=Math.PI/180,OY=Ao(fY,TY);function TY(t,e){t.eachSeriesByType(fY,(function(t){IY(t,e)}))}function IY(t,e){var n=t.getData(),i=n.graph,r=t.getEdgeData(),a=r.count();if(a){var o=Cp(t,e),s=o.cx,l=o.cy,u=o.r,c=o.r0,h=Math.max((t.get("padAngle")||0)*MY,0),d=Math.max((t.get("minAngle")||0)*MY,0),p=-t.get("startAngle")*MY,f=p+2*Math.PI,g=t.get("clockwise"),y=g?1:-1,v=[p,f];hl(v,!g);var m=v[0],b=v[1],x=b-m,_=0===n.getSum("value")&&0===r.getSum("value"),w=[],S=0;i.eachEdge((function(t){var e=_?1:t.getValue("value");_&&(e>0||d)&&(S+=2);var n=t.node1.dataIndex,i=t.node2.dataIndex;w[n]=(w[n]||0)+e,w[i]=(w[i]||0)+e}));var M=0;if(i.eachNode((function(t){var e=t.getValue("value");isNaN(e)||(w[t.dataIndex]=Math.max(e,w[t.dataIndex]||0)),!_&&(w[t.dataIndex]>0||d)&&S++,M+=w[t.dataIndex]||0})),0!==S&&0!==M){h*S>=Math.abs(x)&&(h=Math.max(0,(Math.abs(x)-d*S)/S)),(h+d)*S>=Math.abs(x)&&(d=(Math.abs(x)-h*S)/S);var O=(x-h*S*y)/M,T=0,I=0,C=0,A=1/0;i.eachNode((function(t){var e=w[t.dataIndex]||0,n=O*(M?e:1)*y;Math.abs(n)<d?T+=d-Math.abs(n):(A=Math.min(A,Math.abs(n)-d),I+=Math.abs(n)-d,C+=Math.abs(n)),t.setLayout({angle:n,value:e})}));var k=!1;if(T>I){var D=T/I;i.eachNode((function(t){var e=t.getLayout().angle;Math.abs(e)>=d?t.setLayout({angle:e*D,ratio:D},!0):t.setLayout({angle:d,ratio:0===d?1:e/d},!0)}))}else i.eachNode((function(t){if(!k){var e=t.getLayout().angle,n=Math.min(e/C,1),i=n*T;e-i<d&&(k=!0)}}));var L=T;i.eachNode((function(t){if(!(L<=0)){var e=t.getLayout().angle;if(e>d&&d>0){var n=k?1:Math.min(e/C,1),i=e-d,r=Math.min(i,Math.min(L,T*n));L-=r,t.setLayout({angle:e-r,ratio:(e-r)/e},!0)}else d>0&&t.setLayout({angle:d,ratio:0===e?1:d/e},!0)}}));var P=m,j=[];i.eachNode((function(t){var e=Math.max(t.getLayout().angle,d);t.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:P,endAngle:P+e*y,clockwise:g},!0),j[t.dataIndex]=P,P+=(e+h)*y})),i.eachEdge((function(t){var e=_?1:t.getValue("value"),n=O*(M?e:1)*y,i=t.node1.dataIndex,r=j[i]||0,a=Math.abs((t.node1.getLayout().ratio||1)*n),o=r+a*y,u=[s+c*Math.cos(r),l+c*Math.sin(r)],h=[s+c*Math.cos(o),l+c*Math.sin(o)],d=t.node2.dataIndex,p=j[d]||0,f=Math.abs((t.node2.getLayout().ratio||1)*n),v=p+f*y,m=[s+c*Math.cos(p),l+c*Math.sin(p)],b=[s+c*Math.cos(v),l+c*Math.sin(v)];t.setLayout({s1:u,s2:h,sStartAngle:r,sEndAngle:o,t1:m,t2:b,tStartAngle:p,tEndAngle:v,cx:s,cy:l,r:c,value:e,clockwise:g}),j[i]=o,j[d]=v}))}}}function CY(t){t.registerChartView(SY),t.registerSeriesModel(yY),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,OY),t.registerProcessor(CN("chord"))}var AY=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),kY=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return f(e,t),e.prototype.getDefaultShape=function(){return new AY},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,a=e.width,o=e.angle,s=e.x-n(o)*a*(a>=r/3?1:2),l=e.y-i(o)*a*(a>=r/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(o)*a,e.y+i(o)*a),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(o)*a,e.y-i(o)*a),t.lineTo(s,l)},e}(Bl),DY=kY;function LY(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),a=Math.min(i,r),o=$r(n[0],e.getWidth()),s=$r(n[1],e.getHeight()),l=$r(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function PY(t,e){var n=null==t?"":t+"";return e&&(Object(x["isString"])(e)?n=e.replace("{value}",n):Object(x["isFunction"])(e)&&(n=e(t))),n}var jY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=LY(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var a=this.group,o=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?Zj:pm,d=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];hl(g,!o),s=g[0],l=g[1];for(var y=l-s,v=s,m=[],b=0;d&&b<i.length;b++){var _=Math.min(Math.max(i[b][0],0),1);l=s+y*_;var w=new h({shape:{startAngle:v,endAngle:l,cx:r.cx,cy:r.cy,clockwise:o,r0:r.r-f,r:r.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),m.push(w),v=l}m.reverse(),Object(x["each"])(m,(function(t){return a.add(t)}));var S=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,S,r,s,l,o,f),this._renderTitleAndDetail(t,e,n,S,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,S,r,s,l,o,f)},e.prototype._renderTicks=function(t,e,n,i,r,a,o,s,l){for(var u,c,h=this.group,d=r.cx,p=r.cy,f=r.r,g=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),m=t.getModel("axisTick"),b=t.getModel("axisLabel"),_=t.get("splitNumber"),w=m.get("splitNumber"),S=$r(v.get("length"),f),M=$r(m.get("length"),f),O=a,T=(o-a)/_,I=T/w,C=v.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),k=v.get("distance"),D=0;D<=_;D++){if(u=Math.cos(O),c=Math.sin(O),v.get("show")){var L=k?k+l:l,P=new Cm({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-S-L)+d,y2:c*(f-S-L)+p},style:C,silent:!0});"auto"===C.stroke&&P.setStyle({stroke:i(D/_)}),h.add(P)}if(b.get("show")){L=b.get("distance")+k;var j=PY(Jr(D*(y-g)/_+g,jr),b.get("formatter")),N=i(D/_),R=u*(f-S-L)+d,E=c*(f-S-L)+p,z=b.get("rotate"),B=0;"radial"===z?(B=-O+2*Math.PI,B>Math.PI/2&&(B+=Math.PI)):"tangential"===z?B=-O-Math.PI/2:Object(x["isNumber"])(z)&&(B=z*Math.PI/180),0===B?h.add(new _u({style:gh(b,{text:j,x:R,y:E,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:N}),silent:!0})):h.add(new _u({style:gh(b,{text:j,x:R,y:E,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:R,originY:E,rotation:B}))}if(m.get("show")&&D!==_){L=m.get("distance");L=L?L+l:l;for(var V=0;V<=w;V++){u=Math.cos(O),c=Math.sin(O);var F=new Cm({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-M-L)+d,y2:c*(f-M-L)+p},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:i((D+V/w)/_)}),h.add(F),O+=I}O-=I}else O+=T}},e.prototype._renderPointer=function(t,e,n,i,r,a,o,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),b=+t.get("max"),_=[m,b],w=[a,o];function S(e,n){var i,a=y.getItemModel(e),o=a.getModel("pointer"),s=$r(o.get("width"),r.r),l=$r(o.get("length"),r.r),u=t.get(["pointer","icon"]),c=o.get("offsetCenter"),h=$r(c[0],r.r),d=$r(c[1],r.r),p=o.get("keepAspect");return i=u?z_(u,h-s/2,d-l,s,l,null,p):new DY({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function M(t,e){var n=f.get("roundCap"),i=n?Zj:pm,o=f.get("overlap"),u=o?f.get("width"):l/y.count(),c=o?r.r-u:r.r-(t+1)*u,h=o?r.r:r.r-t*u,d=new i({shape:{startAngle:a,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:h}});return o&&(d.z2=Xr(y.get(v,t),[m,b],[100,0],!0)),d}(g||p)&&(y.diff(c).add((function(e){var n=y.get(v,e);if(p){var i=S(e,a);ih(i,{rotation:-((isNaN(+n)?w[0]:Xr(n,_,w,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=M(e,a),o=f.get("clip");ih(r,{shape:{endAngle:Xr(n,_,w,o)}},t),u.add(r),Su(t.seriesIndex,y.dataType,e,r),d[e]=r}})).update((function(e,n){var i=y.get(v,e);if(p){var r=c.getItemGraphicEl(n),o=r?r.rotation:a,s=S(e,o);s.rotation=o,nh(s,{rotation:-((isNaN(+i)?w[0]:Xr(i,_,w,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=l?l.shape.endAngle:a,b=M(e,m),x=f.get("clip");nh(b,{shape:{endAngle:Xr(i,_,w,x)}},t),u.add(b),Su(t.seriesIndex,y.dataType,e,b),d[e]=b}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled"),s=i(Xr(y.get(v,t),_,[0,1],!0));if(p){var l=y.getItemGraphicEl(t),u=y.getItemVisual(t,"style"),c=u.fill;if(l instanceof Xl){var h=l.style;l.useStyle(Object(x["extend"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u),"pointer"!==l.type&&l.setColor(c);l.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",s),l.z2EmphasisLift=0,Yc(l,e),Fc(l,r,a,o)}if(g){var f=d[t];f.useStyle(y.getItemVisual(t,"style")),f.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),"auto"===f.style.fill&&f.setStyle("fill",s),f.z2EmphasisLift=0,Yc(f,e),Fc(f,r,a,o)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),a=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=z_(a,e.cx-r/2+$r(o[0],e.r),e.cy-r/2+$r(o[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var a=this,o=t.getData(),s=o.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new vr,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);o.diff(this._data).add((function(t){h[t]=new _u({silent:!0}),d[t]=new _u({silent:!0})})).update((function(t,e){h[t]=a._titleEls[e],d[t]=a._detailEls[e]})).execute(),o.each((function(e){var n=o.getItemModel(e),a=o.get(s,e),g=new vr,y=i(Xr(a,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),b=r.cx+$r(m[0],r.r),x=r.cy+$r(m[1],r.r),_=h[e];_.attr({z2:f?0:2,style:gh(v,{x:b,y:x,text:o.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(_)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=r.cx+$r(S[0],r.r),O=r.cy+$r(S[1],r.r),T=$r(w.get("width"),r.r),I=$r(w.get("height"),r.r),C=t.get(["progress","show"])?o.getItemVisual(e,"style").fill:y,A=(_=d[e],w.get("formatter"));_.attr({z2:f?0:2,style:gh(w,{x:M,y:O,text:PY(a,A),width:isNaN(T)?null:T,height:isNaN(I)?null:I,align:"center",verticalAlign:"middle"},{inheritColor:C})}),Oh(_,{normal:w},a,(function(t){return PY(t,A)})),p&&Th(_,e,o,t,{getFormattedLabel:function(t,e,n,i,r,o){return PY(o?o.interpolatedValue:a,A)}}),g.add(_)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(px),NY=jY,RY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return f(e,t),e.prototype.getInitialData=function(t,e){return AN(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,Xp.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Xp.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Xp.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Xp.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Xp.color.neutral00,borderWidth:0,borderColor:Xp.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Xp.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Xp.color.transparent,borderWidth:0,borderColor:Xp.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Xp.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(vv),EY=RY;function zY(t){t.registerChartView(NY),t.registerSeriesModel(EY)}var BY="funnel",VY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DN(x["bind"](this.getData,this),x["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return AN(this,{coordDimensions:["value"],encodeDefaulter:x["curry"](rf,this)})},e.prototype._defaultLabelLine=function(t){ka(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.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),a=n.getSum(r);return i.percent=a?+(n.get(r,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series."+BY,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Xp.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Xp.color.primary}}},e}(vv),FY=VY,HY=["itemStyle","opacity"],GY=function(t){function e(e,n){var i=t.call(this)||this,r=i,a=new Mm,o=new _u;return r.setTextContent(o),i.setTextGuideLine(a),i.updateData(e,n,!0),i}return f(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,a=t.getItemModel(e),o=t.getItemLayout(e),s=a.getModel("emphasis"),l=a.get(HY);l=null==l?1:l,n||lh(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:o.points}),i.style.opacity=0,ih(i,{style:{opacity:l}},r,e)):nh(i,{style:{opacity:l},shape:{points:o.points}},r,e),Yc(i,a),this._updateLabel(t,e),Fc(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;ph(r,fh(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}});var h=o.getModel("label"),d=h.get("color"),p="inherit"===d?c:null;n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:p,outsideFill:p});var f=l.linePoints;i.setShape({points:f}),n.textGuideLineConfig={anchor:f?new Et(f[0][0],f[0][1]):null},nh(r,{style:{x:l.x,y:l.y}},a,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),OA(n,TA(o),{stroke:c})},e}(_m),WY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=BY,e.ignoreLabelLineUpdate=!0,e}return f(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,a=this.group;i.diff(r).add((function(t){var e=new GY(i,t);i.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),a.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);sh(n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=BY,e}(px),YY=WY;function UY(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],a="ascending"===e,o=0,s=t.count();o<s;o++)r[o]=o;return Object(x["isFunction"])(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return a?i[t]-i[e]:i[e]-i[t]})),r}function XY(t){var e=t.hostModel,n=qY(e);t.each((function(e){var i,r,a,o,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(r=(d[0][0]+d[3][0])/2+5,a=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===u?(r=(d[1][0]+d[2][0])/2-5,a=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,a=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),o=[[r,a],[r,a]];else{var f=void 0,g=void 0,y=void 0,v=void 0,m=c.get("length");Object(x["isString"])(u)&&(!n&&Object(x["indexOf"])(["top","bottom"],u)>-1&&(u="left"),n&&Object(x["indexOf"])(["left","right"],u)>-1&&(u="bottom")),"left"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,y=f-m,r=y-5,i="right"):"right"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,y=f+m,r=y+5,i="left"):"top"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-m,a=v-5,i="center"):"bottom"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+m,a=v+5,i="center"):"rightTop"===u?(f=n?d[3][0]:d[1][0],g=n?d[3][1]:d[1][1],n?(v=g-m,a=v-5,i="center"):(y=f+m,r=y+5,i="top")):"rightBottom"===u?(f=d[2][0],g=d[2][1],n?(v=g+m,a=v+5,i="center"):(y=f+m,r=y+5,i="bottom")):"leftTop"===u?(f=d[0][0],g=n?d[0][1]:d[1][1],n?(v=g-m,a=v-5,i="center"):(y=f-m,r=y-5,i="right")):"leftBottom"===u?(f=n?d[1][0]:d[3][0],g=n?d[1][1]:d[2][1],n?(v=g+m,a=v+5,i="center"):(y=f-m,r=y-5,i="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,n?(v=g+m,a=v+5,i="center"):(y=f+m,r=y+5,i="left")),n?(y=f,r=y):(v=g,a=v),o=[[f,g],[y,v]]}h.label={linePoints:o,x:r,y:a,verticalAlign:"middle",textAlign:i,inside:p}}))}var $Y=Ao(BY,ZY);function ZY(t,e){t.eachSeriesByType(BY,(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),a=Lp(t,e),o=Ap(t.getBoxLayoutParams(),a.refContainer),s=qY(t),l=o.width,u=o.height,c=UY(n,r),h=o.x,d=o.y,p=s?[$r(t.get("minSize"),u),$r(t.get("maxSize"),u)]:[$r(t.get("minSize"),l),$r(t.get("maxSize"),l)],f=n.getDataExtent(i),g=t.get("min"),y=t.get("max");null==g&&(g=Math.min(f[0],0)),null==y&&(y=f[1]);var v=t.get("funnelAlign"),m=t.get("gap"),b=s?l:u,x=(b-m*(n.count()-1))/n.count(),_=function(t,e){if(s){var r=n.get(i,t)||0,a=Xr(r,[g,y],p,!0),o=void 0;switch(v){case"top":o=d;break;case"center":o=d+(u-a)/2;break;case"bottom":o=d+(u-a);break}return[[e,o],[e,o+a]]}var c,f=n.get(i,t)||0,m=Xr(f,[g,y],p,!0);switch(v){case"left":c=h;break;case"center":c=h+(l-m)/2;break;case"right":c=h+l-m;break}return[[c,e],[c+m,e]]};"ascending"===r&&(x=-x,m=-m,s?h+=l:d+=u,c=c.reverse());for(var w=0;w<c.length;w++){var S=c[w],M=c[w+1],O=n.getItemModel(S);if(s){var T=O.get(["itemStyle","width"]);null==T?T=x:(T=$r(T,l),"ascending"===r&&(T=-T));var I=_(S,h),C=_(M,h+T);h+=T+m,n.setItemLayout(S,{points:I.concat(C.slice().reverse())})}else{var A=O.get(["itemStyle","height"]);null==A?A=x:(A=$r(A,u),"ascending"===r&&(A=-A));I=_(S,d),C=_(M,d+A);d+=A+m,n.setItemLayout(S,{points:I.concat(C.slice().reverse())})}}XY(n)}))}function qY(t){return"horizontal"===t.get("orient")}function KY(t){t.registerChartView(YY),t.registerSeriesModel(FY),t.registerLayout($Y),t.registerProcessor(CN(BY))}var QY=.3,JY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new vr,n._initialized=!1,n}return f(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){var r=this._dataGroup;this._progressiveEls=[],r.removeAll();var a=t.getData(),o=this._data,s=t.coordinateSystem,l=s.dimensions,u=iU(t);function c(t){var e=nU(a,r,t,l,s);rU(e,a,t,u)}function h(e,n){var i=o.getItemGraphicEl(n);r.add(i);var c=eU(a,e,l,s);a.setItemGraphicEl(e,i),nh(i,{shape:{points:c}},t,e),lh(i),rU(i,a,e,u)}function d(t){var e=o.getItemGraphicEl(t);r.remove(e)}if(a.diff(o).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=tU(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(p)}this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,a=this._progressiveEls=[],o=t.start;o<t.end;o++){var s=nU(i,this._dataGroup,o,r.dimensions,r);s.incremental=Io(e),rU(s,i,o,iU(e)),a.push(s)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(px);function tU(t,e,n){var i=t.model,r=t.getRect(),a=new nu({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),o="horizontal"===i.get("layout")?"width":"height";return a.setShape(o,0),ih(a,{shape:{width:r.width,height:r.height}},e,n),a}function eU(t,e,n,i){for(var r=[],a=0;a<n.length;a++){var o=n[a],s=t.get(t.mapDimension(o),e);aU(s,i.getAxis(o).type)||r.push(i.dataToPoint(s,o))}return r}function nU(t,e,n,i,r){var a=eU(t,n,i,r),o=new Mm({shape:{points:a},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function iU(t){var e=t.get("smooth",!0);return!0===e&&(e=QY),e=xa(e),Object(x["eqNaN"])(e)&&(e=0),{smooth:e}}function rU(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),a=r.getModel("emphasis");Yc(t,r,"lineStyle"),Fc(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function aU(t,e){return"category"===e?null==t:null==t||isNaN(t)}var oU=JY,sU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:Object(x["bind"])(lU,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e}(vv);function lU(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(x["each"])(e.dimensions,(function(t){var e=uU(t);n[t]=e})),n}}function uU(t){return+t.replace("dim","")}var cU=sU,hU=["lineStyle","opacity"],dU={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(hU,!0);null!=a&&(r=a)}var o=e.ensureUniqueItemVisual(n,"style");o.opacity=r}),t.start,t.end)}}}},pU=dU;function fU(t){gU(t),yU(t)}function gU(t){if(!t.parallel){var e=!1;x["each"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function yU(t){var e=Aa(t.parallelAxis);x["each"](e,(function(e){if(x["isObject"](e)){var n=e.parallelIndex||0,i=Aa(t.parallel)[n];i&&i.parallelAxisDefault&&x["merge"](e,i.parallelAxisDefault,!1)}}))}var vU=5,mU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(x["each"])(bU,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(x["bind"])(t,this))}),this)),mx(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){bx(this,"_throttledDispatchExpand"),Object(x["each"])(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(x["extend"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(bv),bU={mousedown:function(t){xU(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(xU(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>vU)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&xU(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function xU(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var _U=mU,wU="parallel",SU=wU,MU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&x["merge"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){x["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=x["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);x["each"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type=SU,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Hp),OU=MU,TU=function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o.axisIndex=a,o}return f(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(QC),IU=TU;function CU(t,e,n,i,r,a){t=t||0;var o=la(n[1],-n[0]);if(null!=r&&(r=kU(r,[0,o])),null!=a&&(a=Math.max(a,null!=r?r:0)),"all"===i){var s=Math.abs(la(e[1],-e[0]));s=kU(s,[0,o]),r=a=kU(s,[r,a]),i=0}e[0]=kU(e[0],n),e[1]=kU(e[1],n);var l=AU(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]=la(h[0],c):h[1]=la(h[1],-c),e[i]=kU(e[i],h),u=AU(e,i),null!=r&&(u.sign!==l.sign||u.span<r)&&(e[1-i]=la(e[i],l.sign*r)),u=AU(e,i),null!=a&&u.span>a&&(e[1-i]=la(e[i],u.sign*a)),e}function AU(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function kU(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var DU=function(){function t(t,e,n){this.type=wU,this._axesMap=Object(x["createHashMap"])(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;Object(x["each"])(i,(function(t,n){var i=r[n],a=e.getComponent("parallelAxis",i),o=RT(a),s=this._axesMap.set(t,new IU(t,ET(a,o,!1),[0,0],o,i));s.onBand=eI(s.scale,a),s.inverse=a.get("inverse"),a.axis=s,s.model=a,s.coordinateSystem=a.coordinateSystem=this}),this)},t.prototype.update=function(t,e){Object(x["each"])(this.dimensions,(function(t){var e=this._axesMap.get(t);zI(e,CI),qI(e)}),this)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,a=t[1-r],o=t[r];return a>=n&&a<=n+e.axisLength&&o>=i&&o<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype.resize=function(t,e){var n=Lp(t,e).refContainer;this._rect=Ap(t.getBoxLayoutParams(),n),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],a=e.get("layout"),o="horizontal"===a?0:1,s=n[r[o]],l=[0,s],u=this.dimensions.length,c=LU(e.get("axisExpandWidth"),l),h=LU(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=LU(p[1]-p[0],l),p[1]=p[0]+t;else{t=LU(c*(h-1),l);var f=e.get("axisExpandCenter")||Vr(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var y=[Vr(Jr(p[0]/c,1))+1,Fr(Jr(p[1]/c,1))-1],v=g/c*p[0];return{layout:a,pixelDimIndex:o,layoutBase:n[i[o]],layoutLength:s,axisBase:n[i[1-o]],axisLength:n[r[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),Object(x["each"])(n,(function(e,n){var a=(i.axisExpandable?jU:PU)(n,i),o={horizontal:{x:a.position,y:i.axisLength},vertical:{x:0,y:a.position}},s={horizontal:Yr/2,vertical:0},l=[o[r].x+t.x,o[r].y+t.y],u=s[r],c=It();Lt(c,c,u),Dt(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,a=this.dimensions,o=[],s=[];Object(x["each"])(a,(function(e){o.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(o,u),d=0,p=a.length;d<p;d++){var f=s[d].getActiveState(h[d]);if("inactive"===f){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Ab([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return Object(x["clone"])(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var o,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<r*c[0]?(l="jump",o=s-r*c[2]):h&&u&&s>r*(1-c[0])?(l="jump",o=s-r*(1-c[2])):(o=s-r*c[1])>=0&&(o=s-r*(1-c[1]))<=0&&(o=0),o*=e.axisExpandWidth/u,o?CU(o,i,a,"all"):l="none";else{var d=i[1]-i[0],p=a[1]*s/d;i=[Er(0,p-d/2)],i[1]=Rr(a[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function LU(t,e){return Rr(Er(t,e[0]),e[1])}function PU(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function jU(t,e){var n,i,r=e.layoutLength,a=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],u=a,c=!0):(n=r-(o-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:i}}var NU=DU;function RU(t,e){var n=[];return t.eachComponent(SU,(function(i,r){var a=new NU(i,t,e);a.name="parallel_"+r,a.resize(i,e),i.coordinateSystem=a,a.model=i,n.push(a)})),t.eachSeries((function(t){if(t.get("coordinateSystem")===wU){var e=t.getReferringComponents(SU,eo).models[0],n=t.coordinateSystem=e.coordinateSystem;n&&Object(x["each"])(n.dimensions,(function(e){SI(n.getAxis(e),t,wU)}))}})),n}var EU={create:RU},zU=EU,BU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return f(e,t),e.prototype.getAreaSelectStyle=function(){return Yo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=x["clone"](t);if(e)for(var n=e.length-1;n>=0;n--)ea(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(Hp);x["mixin"](BU,nI);var VU=BU,FU=!0,HU=Math.min,GU=Math.max,WU=Math.pow,YU=1e4,UU=6,XU=6,$U="globalPan",ZU={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},qU={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},KU={brushStyle:{lineWidth:2,stroke:Xp.color.backgroundTint,fill:Xp.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},QU=0,JU=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new vr,n._uid="brushController_"+QU++,Object(x["each"])(DX,(function(t,e){this._handlers[e]=Object(x["bind"])(t,this)}),n),n}return f(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||az(e,$U,this._uid),Object(x["each"])(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(x["merge"])(Object(x["clone"])(KU),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;oz(t,$U,this._uid),Object(x["each"])(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(x["each"])(t,(function(t){e[t.panelId]=Object(x["clone"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(x["map"])(t,(function(t){return Object(x["merge"])(Object(x["clone"])(KU),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,a=this._creatingCover;return new DM(n,t,s,o).add(l).update(l).remove(u).execute(),this;function o(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return o(t.__brushOption,e)}function l(e,o){var s=t[e];if(null!=o&&n[o]===a)i[e]=n[o];else{var l=i[e]=null!=o?(n[o].__brushOption=s,n[o]):eX(r,tX(r,s));rX(r,l)}}function u(t){n[t]!==a&&r.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),lX(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(q);function tX(t,e){var n=jX[e.brushType].createCover(t,e);return n.__brushOption=e,iX(n,e),t.group.add(n),n}function eX(t,e){var n=aX(e);return n.endCreating&&(n.endCreating(t,e),iX(e,e.__brushOption)),e}function nX(t,e){var n=e.__brushOption;aX(e).updateCoverShape(t,e,n.range,n)}function iX(t,e){var n=e.z;null==n&&(n=YU),t.traverse((function(t){t.z=n,t.z2=n}))}function rX(t,e){aX(e).updateCommon(t,e),nX(t,e)}function aX(t){return jX[t.__brushOption.brushType]}function oX(t,e,n){var i,r=t._panels;if(!r)return FU;var a=t._transform;return Object(x["each"])(r,(function(t){t.isTargetByCursor(e,n,a)&&(i=t)})),i}function sX(t,e){var n=t._panels;if(!n)return FU;var i=e.__brushOption.panelId;return null!=i?n[i]:FU}function lX(t){var e=t._covers,n=e.length;return Object(x["each"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function uX(t,e){var n=Object(x["map"])(t._covers,(function(t){var e=t.__brushOption,n=Object(x["clone"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function cX(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],a=n[1]-i[1],o=WU(r*r+a*a,.5);return o>UU}function hX(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function dX(t,e,n,i){var r=new vr;return r.add(new nu({name:"main",style:yX(n),silent:!0,draggable:!0,cursor:"move",drift:Object(x["curry"])(_X,t,e,r,["n","s","w","e"]),ondragend:Object(x["curry"])(uX,e,{isEnd:!0})})),Object(x["each"])(i,(function(n){r.add(new nu({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(x["curry"])(_X,t,e,r,n),ondragend:Object(x["curry"])(uX,e,{isEnd:!0})}))})),r}function pX(t,e,n,i){var r=i.brushStyle.lineWidth||0,a=GU(r,XU),o=n[0][0],s=n[1][0],l=o-r/2,u=s-r/2,c=n[0][1],h=n[1][1],d=c-a+r/2,p=h-a+r/2,f=c-o,g=h-s,y=f+r,v=g+r;gX(t,e,"main",o,s,f,g),i.transformable&&(gX(t,e,"w",l,u,a,v),gX(t,e,"e",d,u,a,v),gX(t,e,"n",l,u,y,a),gX(t,e,"s",l,p,y,a),gX(t,e,"nw",l,u,a,a),gX(t,e,"ne",d,u,a,a),gX(t,e,"sw",l,p,a,a),gX(t,e,"se",d,p,a,a))}function fX(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(yX(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(x["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),a=1===n.length?bX(t,n[0]):xX(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?qU[a]+"-resize":null})}))}function gX(t,e,n,i,r,a,o){var s=e.childOfName(n);s&&s.setShape(OX(MX(t,e,[[i,r],[i+a,r+o]])))}function yX(t){return Object(x["defaults"])({strokeNoScale:!0},t.brushStyle)}function vX(t,e,n,i){var r=[HU(t,n),HU(e,i)],a=[GU(t,n),GU(e,i)];return[[r[0],a[0]],[r[1],a[1]]]}function mX(t){return Cb(t.group)}function bX(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=kb(n[e],mX(t));return i[r]}function xX(t,e){var n=[bX(t,e[0]),bX(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function _X(t,e,n,i,r,a){var o=n.__brushOption,s=t.toRectRange(o.range),l=SX(e,r,a);Object(x["each"])(i,(function(t){var e=ZU[t];s[e[0]][e[1]]+=l[e[0]]})),o.range=t.fromRectRange(vX(s[0][0],s[1][0],s[0][1],s[1][1])),rX(e,n),uX(e,{isEnd:!1})}function wX(t,e,n,i){var r=e.__brushOption.range,a=SX(t,n,i);Object(x["each"])(r,(function(t){t[0]+=a[0],t[1]+=a[1]})),rX(t,e),uX(t,{isEnd:!1})}function SX(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),a=i.transformCoordToLocal(0,0);return[r[0]-a[0],r[1]-a[1]]}function MX(t,e,n){var i=sX(t,e);return i&&i!==FU?i.clipPath(n,t._transform):Object(x["clone"])(n)}function OX(t){var e=HU(t[0][0],t[1][0]),n=HU(t[0][1],t[1][1]),i=GU(t[0][0],t[1][0]),r=GU(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function TX(t,e,n){if(t._brushType&&!PX(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,a=oX(t,e,n);if(!t._dragging)for(var o=0;o<r.length;o++){var s=r[o].__brushOption;if(a&&(a===FU||s.panelId===a.panelId)&&jX[s.brushType].contain(r[o],n[0],n[1]))return}a&&i.setCursorStyle("crosshair")}}function IX(t){var e=t.event;e.preventDefault&&e.preventDefault()}function CX(t,e,n){return t.childOfName("main").contain(e,n)}function AX(t,e,n,i){var r,a=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),cX(t)||a){if(o&&!a){"single"===s.brushMode&&lX(t);var l=Object(x["clone"])(s);l.brushType=kX(l.brushType,o),l.panelId=o===FU?null:o.panelId,a=t._creatingCover=tX(t,l),t._covers.push(a)}if(a){var u=jX[kX(t._brushType,o)],c=a.__brushOption;c.range=u.getCreatingRange(MX(t,a,t._track)),i&&(eX(t,a),u.updateCommon(t,a)),nX(t,a),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&oX(t,e,n)&&lX(t)&&(r={isEnd:i,removeOnClick:!0});return r}function kX(t,e){return"auto"===t?e.defaultBrushType:t}var DX={mousedown:function(t){if(this._dragging)LX(this,t);else if(!t.target||!t.target.draggable){IX(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=oX(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(TX(this,t,i),this._dragging){IX(t);var r=AX(this,t,i,!1);r&&uX(this,r)}},mouseup:function(t){LX(this,t)}};function LX(t,e){if(t._dragging){IX(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),a=AX(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&uX(t,a)}}function PX(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var jX={lineX:NX(0),lineY:NX(1),rect:{createCover:function(t,e){function n(t){return t}return dX({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=hX(t);return vX(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){pX(t,e,n,i)},updateCommon:fX,contain:CX},polygon:{createCover:function(t,e){var n=new vr;return n.add(new Mm({name:"main",style:yX(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new _m({name:"main",draggable:!0,drift:Object(x["curry"])(wX,t,e),ondragend:Object(x["curry"])(uX,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:MX(t,e,n)})},updateCommon:fX,contain:CX}};function NX(t){return{createCover:function(e,n){return dX({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=hX(e),i=HU(n[0][t],n[1][t]),r=GU(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var a,o=sX(e,n);if(o!==FU&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,a];t&&l.reverse(),pX(e,n,l,r)},updateCommon:fX,contain:CX}}var RX=JU;function EX(t){return t=VX(t),function(e){return jb(e,t)}}function zX(t,e){return t=VX(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,a=i?t.x:t.y;return[a,a+(r||0)]}}function BX(t,e,n){var i=VX(t);return function(t,r){return i.contain(r[0],r[1])&&!uz(t,e,n)}}function VX(t){return ue.create(t)}var FX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new RX(n.getZr())).on("brush",x["bind"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!HX(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new vr,this.group.add(this._axisGroup),t.get("show")){var a=WX(t,e),o=a.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=o.getAxisLayout(u),h=x["extend"]({strokeContainThreshold:l},c),d=new lj(t,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,s,t,a,l,n),Pb(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),u=ue.create({x:o[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:EX(u),isTargetByCursor:BX(u,a,i),getLinearBrushOtherExtent:zX(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(GX(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=x["map"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(bv);function HX(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function GX(t){var e=t.axis;return x["map"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function WX(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var YX=FX,UX={type:"axisAreaSelect",event:"axisAreaSelected"};function XX(t){t.registerAction(UX,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var $X={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ZX(t){t.registerComponentView(_U),t.registerComponentModel(OU),t.registerCoordinateSystem("parallel",zU),t.registerPreprocessor(fU),t.registerComponentModel(VU),t.registerComponentView(YX),mR(t,"parallel",VU,$X),XX(t)}function qX(t){IM(ZX),t.registerChartView(oU),t.registerSeriesModel(cU),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,pU)}var KX="sankey",QX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=t.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<r.length;o++)null!=r[o].depth&&r[o].depth>=0&&(a[r[o].depth]=new Vh(r[o],this,e));var s=XG(i,n,this,!0,l);return s.data;function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,a=n.levelModels[r];a&&(t.parentModel=a)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var a=r.depth,o=n.levelModels[a];o&&(t.parentModel=o)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),a=r.data,o=r.value,s=a.source+" -- "+a.target;return Fy("nameValue",{name:s,value:o,noValue:i(o)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Fy("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e),a=r.getLayout().value;i.value=a}return i},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+KX,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:Xp.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Xp.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(vv),JX=QX,t$=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),e$=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new t$},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){wc(this)},e.prototype.downplay=function(){Sc(this)},e}(Bl),n$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=KX,e._mainGroup=new vr,e}return f(e,t),e.prototype.init=function(t,e){this._controller=new _z(e.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,e,n){var i=t.getGraph(),r=this._mainGroup,a=t.layoutInfo,o=a.width,s=a.height,l=t.getData(),u=t.getData("edge"),c=t.get("orient");r.removeAll(),r.x=a.x,r.y=a.y,this._updateViewCoordSys(t,n),pV(t,n,this._controller,fV(r),null),i.eachEdge((function(e){var n=new e$,i=wu(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var a,l,h,d,p,f,g,y,v=e.getModel(),m=v.getModel("lineStyle"),b=m.get("curveness"),_=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),M=w.get("localY"),O=e.node2.getLayout(),T=e.node2.getModel(),I=T.get("localX"),C=T.get("localY"),A=e.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=c,"vertical"===c?(a=(null!=S?S*o:_.x)+A.sy,l=(null!=M?M*s:_.y)+_.dy,h=(null!=I?I*o:O.x)+A.ty,d=null!=C?C*s:O.y,p=a,f=l*(1-b)+d*b,g=h,y=l*b+d*(1-b)):(a=(null!=S?S*o:_.x)+_.dx,l=(null!=M?M*s:_.y)+A.sy,h=null!=I?I*o:O.x,d=(null!=C?C*s:O.y)+A.ty,p=a*(1-b)+h*b,f=l,g=a*b+h*(1-b),y=d),n.setShape({x1:a,y1:l,x2:h,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),i$(n.style,c,e);var k=""+v.get("value"),D=fh(v,"edgeLabel");ph(n,D,{labelFetcher:{getFormattedLabel:function(e,n,i,r,a,o){return t.getFormattedLabel(e,n,"edge",r,Object(x["retrieve3"])(a,D.normal&&D.normal.get("formatter"),k),o)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var L=v.getModel("emphasis");Yc(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return i$(n,c,e),n})),r.add(n),u.setItemGraphicEl(e.dataIndex,n);var P=L.get("focus");Fc(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,L.get("blurScope"),L.get("disabled"))})),i.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),a=i.get("localX"),u=i.get("localY"),c=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new nu({shape:{x:null!=a?a*o:n.x,y:null!=u?u*s:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});ph(d,fh(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Yc(d,i),r.add(d),l.setItemGraphicEl(e.dataIndex,d),wu(d).dataType="node";var p=c.get("focus");Fc(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),l.eachItemGraphicEl((function(e,i){var r=l.getItemModel(i);r.get("draggable")&&(e.drift=function(e,r){this.shape.x+=e,this.shape.y+=r,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:l.getRawIndex(i),localX:this.shape.x/o,localY:this.shape.y/s})},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&r.setClipPath(r$(r.getBoundingRect(),t,(function(){r.removeClipPath()}))),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,e,n){$B(this.group,yB,e.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,e){var n=t.layoutInfo,i=t.coordinateSystem=bV(t,e,n.x,n.y,n.width,n.height);$B(this.group,yB,i,this._firstRender?null:t)},e.type=KX,e}(px);function i$(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(x["isString"])(i)&&Object(x["isString"])(r)&&(t.fill=new Hm(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}function r$(t,e,n){var i=new nu({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ih(i,{shape:{width:t.width+20}},e,n),i}var a$=n$,o$=Ao(KX,s$);function s$(t,e){t.eachSeriesByType(KX,(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=Lp(t,e).refContainer,a=Ap(t.getBoxLayoutParams(),r);t.layoutInfo=a;var o=a.width,s=a.height,l=t.getGraph(),u=l.nodes,c=l.edges;u$(u);var h=x["filter"](u,(function(t){return 0===t.getLayout().value})),d=0!==h.length?0:t.get("layoutIterations"),p=t.get("orient"),f=t.get("nodeAlign");l$(u,c,n,i,o,s,d,p,f)}))}function l$(t,e,n,i,r,a,o,s,l){c$(t,e,n,r,a,s,l),g$(t,e,a,r,i,o,s),C$(t,s)}function u$(t){x["each"](t,(function(t){var e=T$(t.outEdges,O$),n=T$(t.inEdges,O$),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function c$(t,e,n,i,r,a,o){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>p&&(p=y.depth),g.setLayout({depth:v?y.depth:h},!0),"vertical"===a?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var b=g.outEdges[m],_=x["indexOf"](e,b);s[_]=0;var w=b.node2,S=x["indexOf"](t,w);0===--l[S]&&x["indexOf"](c,w)<0&&c.push(w)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var M=p>h-1?p:h-1;o&&"left"!==o&&d$(t,o,a,M);var O="vertical"===a?(r-n)/M:(i-n)/M;f$(t,O,a)}function h$(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function d$(t,e,n,i){if("right"===e){var r=[],a=t,o=0;while(a.length){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];x["indexOf"](r,c.node1)<0&&r.push(c.node1)}}a=r,r=[],++o}x["each"](t,(function(t){h$(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&p$(t,i)}function p$(t,e){x["each"](t,(function(t){h$(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function f$(t,e,n){x["each"](t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function g$(t,e,n,i,r,a,o){var s=y$(t,o);v$(s,e,n,i,r,o),m$(s,r,n,i,o);for(var l=1;a>0;a--)l*=.99,b$(s,l,o),m$(s,r,n,i,o),I$(s,l,o),m$(s,r,n,i,o)}function y$(t,e){var n=[],i="vertical"===e?"y":"x",r=lo(t,(function(t){return t.getLayout()[i]}));return ea(r.keys),x["each"](r.keys,(function(t){n.push(r.buckets.get(t))})),n}function v$(t,e,n,i,r,a){var o=1/0;x["each"](t,(function(t){var e=t.length,s=0;x["each"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===a?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<o&&(o=l)})),x["each"](t,(function(t){x["each"](t,(function(t,e){var n=t.getLayout().value*o;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),x["each"](e,(function(t){var e=+t.getValue()*o;t.setLayout({dy:e},!0)}))}function m$(t,e,n,i,r){var a="vertical"===r?"x":"y";x["each"](t,(function(t){var o,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[a],l>0&&(o=s.getLayout()[a]+l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[h]+e;var p="vertical"===r?i:n;if(l=u-e-p,l>0){o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[a]+s.getLayout()[h]+e-u,l>0&&(o=s.getLayout()[a]-l,"vertical"===r?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}}))}function b$(t,e,n){x["each"](t.slice().reverse(),(function(t){x["each"](t,(function(t){if(t.outEdges.length){var i=T$(t.outEdges,x$,n)/T$(t.outEdges,O$);if(isNaN(i)){var r=t.outEdges.length;i=r?T$(t.outEdges,_$,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-M$(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-M$(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function x$(t,e){return M$(t.node2,e)*t.getValue()}function _$(t,e){return M$(t.node2,e)}function w$(t,e){return M$(t.node1,e)*t.getValue()}function S$(t,e){return M$(t.node1,e)}function M$(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function O$(t){return t.getValue()}function T$(t,e,n){var i=0,r=t.length,a=-1;while(++a<r){var o=+e(t[a],n);isNaN(o)||(i+=o)}return i}function I$(t,e,n){x["each"](t,(function(t){x["each"](t,(function(t){if(t.inEdges.length){var i=T$(t.inEdges,w$,n)/T$(t.inEdges,O$);if(isNaN(i)){var r=t.inEdges.length;i=r?T$(t.inEdges,S$,n)/r:0}if("vertical"===n){var a=t.getLayout().x+(i-M$(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(i-M$(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function C$(t,e){var n="vertical"===e?"x":"y";x["each"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),x["each"](t,(function(t){var e=0,n=0;x["each"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),x["each"](t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}var A$=Ao(KX,k$);function k$(t){t.eachSeriesByType(KX,(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,a=-1/0;x["each"](n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>a&&(a=e)})),x["each"](n,(function(e){var n=new CG({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:t.get("color")}),i=n.mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}i.length&&x["each"](i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function D$(t){t.registerChartView(a$),t.registerSeriesModel(JX),t.registerLayout(o$),t.registerVisual(A$),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:Ou,subType:KX,query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))})),yV(t,Ou,KX)}var L$=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=r.get("type"),s=a.get("type"),l=t.layout;"category"===o?(l="horizontal",n=r.getOrdinalMeta(),i=!this._hasEncodeRule("x")):"category"===s&&(l="vertical",n=a.getOrdinalMeta(),i=!this._hasEncodeRule("y")),l||(l="time"===s?"vertical":"horizontal"),this._layout=l;var u=["x","y"],c="horizontal"===l?0:1,h=this._baseAxisDim=u[c],d=u[1-c],p=[r,a],f=p[c].get("type"),g=p[1-c].get("type"),y=t.data;if(y&&i){var v=[];x["each"](y,(function(t,e){var n;x["isArray"](t)?(n=t.slice(),t.unshift(e)):x["isArray"](t.value)?(n=x["extend"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,b=[{name:h,type:NM(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:NM(g),dimsDef:m.slice()}];return AN(this,{coordDimensions:b,dimensionsCount:m.length+1,encodeDefaulter:x["curry"](nf,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t.prototype.getWhiskerBoxesLayout=function(){return this._layout},t}();function P$(t,e){for(var n=e.ends.length,i=0,r=0;r<n;r++)t.contain(e.ends[r][0],e.ends[r][1])&&i++;return i?i<n?HL:FL:GL}var j$="boxplot",N$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return f(e,t),e.type="series."+j$,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:Xp.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Xp.color.shadow}},animationDuration:800},e}(vv);Object(x["mixin"])(N$,L$,!0);var R$=N$,E$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=j$,e}return f(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,a=this._data;this._data||r.removeAll();var o="horizontal"===t.getWhiskerBoxesLayout()?1:0,s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),c=s&&VL(l,!1,t);i.diff(a).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=s?P$(u,e):FL;if(n===GL)return;var a=V$(e,i,t,o,!0);WL(n===HL,a,c),i.setItemGraphicEl(t,a),r.add(a)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var l=i.getItemLayout(t),h=s?P$(u,l):FL;h!==GL?(n?(lh(n),F$(l,n,i,t)):n=V$(l,i,t,o),WL(h===HL,n,c),r.add(n),i.setItemGraphicEl(t,n)):r.remove(n)}else r.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type=j$,e}(px),z$=function(){function t(){}return t}(),B$=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return f(e,t),e.prototype.getDefaultShape=function(){return new z$},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(Bl);function V$(t,e,n,i,r){var a=t.ends,o=new B$({shape:{points:r?H$(a,i,t):a}});return F$(t,o,e,n,r),o}function F$(t,e,n,i,r){var a=n.hostModel,s=o[r?"initProps":"updateProps"];s(e,{shape:{points:t.ends}},a,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=n.getItemModel(i),u=l.getModel("emphasis");Yc(e,l),Fc(e,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function H$(t,e,n){return Object(x["map"])(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var G$=E$,W$=wo(),Y$=Ao(j$,U$);function U$(t){var e=bj(j$);mI(t,e,(function(t){var n=vI(t,e);if(n){var i=X$(t,n);gI(t,e,(function(t){var e=t.seriesIndex;$$(t,i.boxOffsetList[e],i.boxWidthList[e])}))}}))}function X$(t,e){var n=[],i=[],r=[],a=YC(t,{fromStat:{key:bj(j$)},min:1}).w;gI(t,bj(j$),(function(t){var e=t.get("boxWidth");Object(x["isArray"])(e)||(e=[e,e]),r[t.seriesIndex]=[$r(e[0],a)||0,$r(e[1],a)||0]}));var o=.8*a-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return gI(t,bj(j$),(function(t){var e=t.seriesIndex;i[e]=u,u+=s+l,n[e]=Rr(Er(l,r[e][0]),r[e][1])})),{boxOffsetList:i,boxWidthList:n}}function $$(t,e,n){var i=t.coordinateSystem,r=t.getData(),a=n/2,o="horizontal"===t.getWhiskerBoxesLayout()?0:1,s=1-o,l=["x","y"],u=r.mapDimension(l[o]),c=r.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<r.count();h++){var d=r.get(u,h),p=b(d,c[2],h),f=b(d,c[0],h),g=b(d,c[1],h),y=b(d,c[3],h),v=b(d,c[4],h),m=[];x(m,g,!1),x(m,y,!0),m.push(f,g,v,y),_(m,f),_(m,v),_(m,p),r.setItemLayout(h,{initBaseline:p[s],ends:m})}function b(t,n,a){var l,u=r.get(n,a),c=[];return c[o]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=i.dataToPoint(c),l[o]+=e),l}function x(t,e,n){var i=e.slice(),r=e.slice();i[o]+=a,r[o]-=a,n?t.push(i,r):t.push(r,i)}function _(t,e){var n=e.slice(),i=e.slice();n[o]-=a,i[o]+=a,t.push(n,i)}}function Z$(t){W$(t,(function(){var e=bj(j$);OI(t,{key:e,seriesType:j$,getMetrics:_j}),HI(e,mj(e))}))}function q$(t,e){e=e||{};for(var n=[],i=[],r=e.boundIQR,a="none"===r||0===r,o=0;o<t.length;o++){var s=ea(t[o].slice()),l=ma(s,.25),u=ma(s,.5),c=ma(s,.75),h=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=a?h:Math.max(h,l-p),g=a?d:Math.min(d,c+p),y=e.itemNameFormatter,v=Object(x["isFunction"])(y)?y({value:o}):Object(x["isString"])(y)?y.replace("{value}",o+""):o+"";n.push([v,f,l,u,c,g]);for(var m=0;m<s.length;m++){var b=s[m];if(b<f||b>g){var _=[v,b];i.push(_)}}}return{boxData:n,outliers:i}}var K$={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Cu){var n="";0,Cf(n)}var i=q$(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Q$(t){t.registerSeriesModel(R$),t.registerChartView(G$),t.registerLayout(Y$),t.registerTransform(K$),Z$(t)}var J$="candlestick",tZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return f(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series."+J$,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(vv);Object(x["mixin"])(tZ,L$,!0);var eZ=tZ,nZ=["itemStyle","borderColor"],iZ=["itemStyle","borderColor0"],rZ=["itemStyle","borderColorDoji"],aZ=["itemStyle","color"],oZ=["itemStyle","color0"];function sZ(t,e){return e.get(t>0?aZ:oZ)}function lZ(t,e){return e.get(0===t?rZ:t>0?nZ:iZ)}var uZ={seriesType:J$,plan:xv(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t)){var n=t.pipelineContext.large;return!n&&{progress:function(t,e){var n;while(null!=(n=t.next())){var i=e.getItemModel(n),r=e.getItemLayout(n).sign,a=i.getItemStyle();a.fill=sZ(r,i),a.stroke=lZ(r,i)||a.fill;var o=e.ensureUniqueItemVisual(n,"style");Object(x["extend"])(o,a)}}}}}},cZ=uZ,hZ=["color","borderColor"],dZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Ub(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),a=t.get("clip",!0),o=t.coordinateSystem,s=o.getArea&&o.getArea(),l=a&&VL(o,!1,t);this._data||i.removeAll();var u=mZ(t);e.diff(n).add((function(n){if(e.hasValue(n)){var o=e.getItemLayout(n),c=a?P$(s,o):FL;if(c===GL)return;var h=gZ(o,n,u,!0);ih(h,{shape:{points:o.ends}},t,n),WL(c===HL,h,l),yZ(h,e,n,r),i.add(h),e.setItemGraphicEl(n,h)}})).update((function(o,c){var h=n.getItemGraphicEl(c);if(e.hasValue(o)){var d=e.getItemLayout(o),p=a?P$(s,d):FL;p!==GL?(h?(nh(h,{shape:{points:d.ends}},t,o),lh(h)):h=gZ(d,o,u),yZ(h,e,o,r),WL(p===HL,h,l),i.add(h),e.setItemGraphicEl(o,h)):i.remove(h)}else i.remove(h)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),_Z(t,this.group);var e=t.get("clip",!0)?VL(t.coordinateSystem,!1,t):null;WL(!!e,this.group,e)},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox"),a=mZ(e);while(null!=(n=t.next())){var o=i.getItemLayout(n),s=gZ(o,n,a);yZ(s,i,n,r),s.incremental=Io(e),this.group.add(s),this._progressiveEls.push(s)}},e.prototype._incrementalRenderLarge=function(t,e){_Z(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),WL(!1,this.group,null),this._data=null},e.type=J$,e}(px),pZ=function(){function t(){}return t}(),fZ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return f(e,t),e.prototype.getDefaultShape=function(){return new pZ},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Bl);function gZ(t,e,n,i){var r=t.ends;return new fZ({shape:{points:i?vZ(r,n,t):r},z2:100})}function yZ(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0;var a=r.getShallow("cursor");a&&t.attr("cursor",a),t.__simpleBox=i,Yc(t,r);var o=e.getItemLayout(n).sign;x["each"](t.states,(function(t,e){var n=r.getModel(e),i=sZ(o,n),a=lZ(o,n)||i,s=t.style||(t.style={});i&&(s.fill=i),a&&(s.stroke=a)}));var s=r.getModel("emphasis");Fc(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function vZ(t,e,n){return x["map"](t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}function mZ(t){return"horizontal"===t.getWhiskerBoxesLayout()?1:0}var bZ=function(){function t(){}return t}(),xZ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return f(e,t),e.prototype.getDefaultShape=function(){return new bZ},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(Bl);function _Z(t,e,n,i){var r=t.getData(),a=r.getLayout("largePoints"),o=new xZ({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new xZ({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new xZ({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),wZ(1,o,t,r),wZ(-1,s,t,r),wZ(0,l,t,r),i&&(o.incremental=Io(t),s.incremental=Io(t),l.incremental=Io(t)),n&&n.push(o,s,l)}function wZ(t,e,n,i){var r=lZ(t,n)||sZ(t,n),a=n.getModel("itemStyle").getItemStyle(hZ);e.useStyle(a),e.style.fill=null,e.style.stroke=r;var o=n.get("cursor");o&&e.attr("cursor",o)}var SZ=dZ;function MZ(t){t&&x["isArray"](t.series)&&x["each"](t.series,(function(t){x["isObject"](t)&&"k"===t.type&&(t.type=J$)}))}var OZ=wo(),TZ={seriesType:J$,plan:xv(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=CZ(t,n),r="horizontal"===t.getWhiskerBoxesLayout()?0:1,a=1-r,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[r])),l=Object(x["map"])(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?f:p};function p(t,n){var o,l=n.getStore();while(null!=(o=t.next())){var p=l.get(s,o),f=l.get(u,o),g=l.get(c,o),y=l.get(h,o),v=l.get(d,o),m=Rr(f,g),b=Er(f,g),x=I(m,p),_=I(b,p),w=I(y,p),S=I(v,p),M=[];C(M,_,0),C(M,x,1),M.push(k(S),k(_),k(w),k(x));var O=n.getItemModel(o),T=!!O.get(["itemStyle","borderColorDoji"]);n.setItemLayout(o,{sign:IZ(l,o,f,g,c,T),initBaseline:f>g?_[a]:x[a],ends:M,brushRect:A(y,v,p)})}function I(t,n){var i=[];return i[r]=n,i[a]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function C(t,e,n){var a=e.slice(),o=e.slice();a[r]=Ib(a[r]+i/2,1,!1),o[r]=Ib(o[r]-i/2,1,!0),n?t.push(a,o):t.push(o,a)}function A(t,e,n){var o=I(t,n),s=I(e,n);return o[r]-=i/2,s[r]-=i/2,{x:o[0],y:o[1],width:a?i:s[0]-o[0],height:a?s[1]-o[1]:i}}function k(t){return t[r]=Ib(t[r],1),t}}function f(n,i){var o,l,p=IL(4*n.count),f=0,g=[],y=[],v=i.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var b=v.get(s,l),x=v.get(u,l),_=v.get(c,l),w=v.get(h,l),S=v.get(d,l);isNaN(b)||isNaN(w)||isNaN(S)?(p[f++]=NaN,f+=3):(p[f++]=IZ(v,l,x,_,c,m),g[r]=b,g[a]=w,o=e.dataToPoint(g,null,y),p[f++]=o?o[0]:NaN,p[f++]=o?o[1]:NaN,g[a]=S,o=e.dataToPoint(g,null,y),p[f++]=o?o[1]:NaN)}i.setLayout("largePoints",p)}}};function IZ(t,e,n,i,r,a){var o;return o=n>i?-1:n<i?1:a?0:e>0?t.get(r,e-1)<=i?1:-1:1,o}function CZ(t,e){var n=t.getBaseAxis(),i=YC(n,{fromStat:{key:bj(J$)},min:1}).w,r=$r(Object(x["retrieve2"])(t.get("barMaxWidth"),i),i),a=$r(Object(x["retrieve2"])(t.get("barMinWidth"),1),i),o=t.get("barWidth");return null!=o?$r(o,i):Er(Rr(i/2,r),a)}function AZ(t){OZ(t,(function(){var e=bj(J$);OI(t,{key:e,seriesType:J$,getMetrics:_j}),HI(e,mj(e))}))}function kZ(t){t.registerChartView(SZ),t.registerSeriesModel(eZ),t.registerPreprocessor(MZ),t.registerVisual(cZ),t.registerLayout(TZ),AZ(t)}function DZ(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var LZ=function(t){function e(e,n){var i=t.call(this)||this,r=new fL(e,n),a=new vr;return i.add(r),i.add(a),i.updateData(e,n),i}return f(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),a=0;a<i;a++){var o=z_(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/i*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(o)}DZ(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var a=i[r];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}DZ(n,t)},e.prototype.highlight=function(){wc(this)},e.prototype.downplay=function(){Sc(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),a=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),s=B_(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=a.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",u)}));var h=V_(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=a.get(["rippleEffect","scale"]),p.brushType=a.get(["rippleEffect","brushType"]),p.period=1e3*a.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=o,p.color=u,p.rippleEffectColor=a.get(["rippleEffect","color"]),p.rippleNumber=a.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Fc(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(vr),PZ=LZ,jZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){this._symbolDraw=new xL(PZ)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,NZ(t)),this.group.add(r.group)},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=dP("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(NZ(t))},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Nt(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(px);function NZ(t){return{clipShape:YL(t)}}var RZ=jZ,EZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(vv),zZ=EZ;function BZ(t){t.registerChartView(RZ),t.registerSeriesModel(zZ),t.registerLayout(dP("effectScatter"))}var VZ=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return f(e,t),e.prototype.createLine=function(t,e,n){return new GW(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),a=i.get("symbol");x["isArray"](r)||(r=[r,r]);var o=t.getItemVisual(e,"style"),s=i.get("color")||o&&o.stroke,l=this.childAt(1);this._symbolType!==a&&(this.remove(l),l=z_(a,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=a,this._symbolScale=r,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),a=1e3*e.get("period"),o=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=x["retrieve"](e.get("delay"),(function(e){return e/t.count()*a/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(a=this._getLineLength(i)/l*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=x["isFunction"](u)?u(n):u,i.__t>0&&(c=-a*i.__t),this._animateSymbol(i,a,c,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var a=this,o=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){a._updateSymbolPosition(t)}));i||o.done((function(){a.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return z(t.__p1,t.__cp1)+z(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<=1?t.__t:2-t.__t,a=[t.x,t.y],o=a.slice(),s=un,l=cn;a[0]=s(e[0],i[0],n[0],r),a[1]=s(e[1],i[1],n[1],r);var u=t.__t<=1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<=1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*z(o,a),1===r&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===t.__lastT?t.scaleY=2*z(e,a):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=a[0],t.y=a[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(vr),FZ=VZ,HZ=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return f(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Mm({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};nh(r,a,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=r.getModel("emphasis");a=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),o=u.get("focus"),s=u.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=a,Fc(this,o,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.stopAnimation(),n.setShape("points",t.getItemLayout(e))},e}(vr),GZ=HZ,WZ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return f(e,t),e.prototype.createLine=function(t,e,n){return new GZ(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var a=e[r-1],o=e[r];i+=z(a,o),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<=1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var a,o=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(o+1,r-1);for(a=s;a>=0;a--)if(i[a]<=e)break;a=Math.min(a,r-2)}else{for(a=o;a<r;a++)if(i[a]>e)break;a=Math.min(a-1,r-2)}var l=(e-i[a])/(i[a+1]-i[a]),u=n[a],c=n[a+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=t.__t<=1?c[0]-u[0]:u[0]-c[0],d=t.__t<=1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},e}(FZ),YZ=WZ,UZ=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),XZ=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return f(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new UZ},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var a=i[n++];if(a>0){t.moveTo(i[n++],i[n++]);for(var o=1;o<a;o++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var h=(s+u)/2-(l-c)*r,d=(l+c)/2-(u-s)*r;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var u=i[s++],c=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(fl(u,c,d,p,a,t,e))return o}o++}else for(o=0,s=0;s<i.length;){u=i[s++],c=i[s++],d=i[s++],p=i[s++];if(r>0){var f=(u+d)/2-(c-p)*r,g=(c+p)/2-(d-u)*r;if(yl(u,c,f,g,d,p,a,t,e))return o}else if(fl(u,c,d,p,a,t,e))return o;o++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,a=-1/0,o=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];i=Math.min(l,i),a=Math.max(l,a),r=Math.min(u,r),o=Math.max(u,o)}t=this._rect=new ue(i,r,a,o)}return t},e}(Bl),$Z=function(){function t(){this.group=new vr}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("linesPoints"),a=i&&i.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+r.length);s.set(a),s.set(r,o),i.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=n,l.setShape({segs:r}),this._setCommon(l,e),l.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new XZ({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var a=wu(t);a.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){a.dataIndex=null;var n=t.hoverDataIdx;n>0&&(a.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),ZZ=$Z,qZ={seriesType:"lines",plan:xv(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,a){var o=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c<r.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,o);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(o[f],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=a.getItemModel(c),y=(p=t.getLineCoords(c,o),[]);if(n)for(var v=0;v<p;v++)y.push(e.dataToPoint(o[v]));else{y[0]=e.dataToPoint(o[0]),y[1]=e.dataToPoint(o[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}a.setItemLayout(c,y)}}}}}},KZ=qZ,QZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),a=t.get("zlevel"),o=t.get(["effect","trailLength"]),s=n.getZr(),l=!!rx(n);l&&s.painter.getLayer(a).clear(!0),null!=this._lastZlevel&&l&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o>0&&l&&s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}),r.updateData(i);var u=t.get("clip",!0)&&VL(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData(),Io(e)),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=this._lineDraw;if(!(this._finished&&r&&r.updateLayout))return{update:!0};var a=KZ.reset(t,e,n);a.progress&&a.progress({start:0,end:i.count(),count:i.count()},i),r.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),a=e.pipelineContext,o=a.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new ZZ:new ZW(r?i?YZ:GZ:i?FZ:GW),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=rx(t);e&&null!=this._lastZlevel&&e.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(px),JZ=QZ,tq="undefined"===typeof Uint32Array?Array:Uint32Array,eq="undefined"===typeof Float64Array?Array:Float64Array;function nq(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(x["map"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(x["mergeAll"])([n,t[0],t[1]])})))}var iq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return f(e,t),e.prototype.init=function(e){e.data=e.data||[],nq(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(nq(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(x["concatArray"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(x["concatArray"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var a=this._getCoordsFromItemModel(t);for(r=0;r<a.length;r++)e[r]=e[r]||[],e[r][0]=a[r][0],e[r][1]=a[r][1];return a.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(x["isNumber"])(t[0])){for(var n=t.length,i=new tq(n),r=new eq(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=t[l++];i[o++]=a+e,i[o++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];r[a++]=h,r[a++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,o),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new sO(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[r]:a:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getItemModel(t),o=a.get("name");if(!o){var s=a.get("fromName"),l=a.get("toName"),u=[];null!=s&&u.push(s),null!=l&&u.push(l),o=u.join(" > ")}return Fy("nameValue",{name:o,value:r,noValue:null==r||isNaN(r)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(vv),rq=iq;function aq(t){return t instanceof Array||(t=[t,t]),t}var oq={seriesType:"lines",reset:function(t){var e=aq(t.get("symbol")),n=aq(t.get("symbolSize")),i=t.getData();function r(t,e){var n=t.getItemModel(e),i=aq(n.getShallow("symbol",!0)),r=aq(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},sq=oq;function lq(t){t.registerChartView(JZ),t.registerSeriesModel(rq),t.registerLayout(KZ),t.registerVisual(sq)}var uq=256,cq=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ri["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,a){var o=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],y=f[1],v=f[2],m=i(v);h.globalAlpha=m,h.drawImage(o,g-u,y-u)}if(!c.width||!c.height)return c;var b=h.getImageData(0,0,c.width,c.height),x=b.data,_=0,w=x.length,S=this.minOpacity,M=this.maxOpacity,O=M-S;while(_<w){m=x[_+3]/256;var T=4*Math.floor(m*(uq-1));if(m>0){var I=a(m)?s:l;m>0&&(m=m*O+S),x[_++]=I[T],x[_++]=I[T+1],x[_++]=I[T+2],x[_++]=I[T+3]*m*256}else _+=4}return h.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ri["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=Xp.color.neutral99,i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],a=0,o=0;o<256;o++)t[e](o/255,!0,r),i[a++]=r[0],i[a++]=r[1],i[a++]=r[2],i[a++]=r[3];return i},t}(),hq=cq;function dq(t,e,n){var i=t[1]-t[0];e=x["map"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,a=0;return function(t){var i;for(i=a;i<r;i++){var o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}if(i===r)for(i=a-1;i>=0;i--){o=e[i].interval;if(o[0]<=t&&t<=o[1]){a=i;break}}return i>=0&&i<r&&n[i]}}function pq(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}var fq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type||"matrix"===r.type?this._renderOnGridLike(t,n,0,t.getData().count()):XL(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(XL(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnGridLike(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Ub(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,e,n,i,r){var a,o,s,l,u=t.coordinateSystem,c=UL(u,"cartesian2d"),h=UL(u,"matrix");if(c){var d=u.getAxis("x"),p=u.getAxis("y");0,a=YC(d).w+.5,o=YC(p).w+.5,s=d.scale.getExtent(),l=p.scale.getExtent()}for(var f=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),_=fh(t),w=t.getModel("emphasis"),S=w.get("focus"),M=w.get("blurScope"),O=w.get("disabled"),T=c||h?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=n;I<i;I++){var C=void 0,A=g.getItemVisual(I,"style");if(c){var k=g.get(T[0],I),D=g.get(T[1],I);if(isNaN(g.get(T[2],I))||isNaN(k)||isNaN(D)||k<s[0]||k>s[1]||D<l[0]||D>l[1])continue;var L=u.dataToPoint([k,D]);C=new nu({shape:{x:L[0]-a/2,y:L[1]-o/2,width:a,height:o},style:A})}else if(h){var P=u.dataToLayout([g.get(T[0],I),g.get(T[1],I)]).rect;if(x["eqNaN"](P.x))continue;C=new nu({z2:1,shape:P,style:A})}else{if(isNaN(g.get(T[1],I)))continue;var j=u.dataToLayout([g.get(T[0],I)]);P=j.contentRect||j.rect;if(x["eqNaN"](P.x)||x["eqNaN"](P.y))continue;C=new nu({z2:1,shape:P,style:A})}if(g.hasItemOption){var N=g.getItemModel(I),R=N.getModel("emphasis");y=R.getModel("itemStyle").getItemStyle(),v=N.getModel(["blur","itemStyle"]).getItemStyle(),m=N.getModel(["select","itemStyle"]).getItemStyle(),b=N.get(["itemStyle","borderRadius"]),S=R.get("focus"),M=R.get("blurScope"),O=R.get("disabled"),_=fh(N)}C.shape.r=b;var E=t.getRawValue(I),z="-";E&&null!=E[2]&&(z=E[2]+""),ph(C,_,{labelFetcher:t,labelDataIndex:I,defaultOpacity:A.opacity,defaultText:z}),C.ensureState("emphasis").style=y,C.ensureState("blur").style=v,C.ensureState("select").style=m,Fc(C,S,M,O),C.incremental=Io(t,r),r&&(C.states.emphasis.hoverLayer=fb),f.add(C),g.setItemGraphicEl(I,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=e.getData(),s=this._hmLayer||this._hmLayer||new hq;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-c,g=p-h,y=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(y,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r})),m=n.getExtent(),b="visualMap.continuous"===n.type?pq(m,n.option.range):dq(m,n.getPieceList(),n.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:a.color.getColorMapper()},b);var x=new Xl({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(px),gq=fq,yq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=xp.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Xp.color.primary}}},e}(vv),vq=yq;function mq(t){t.registerChartView(gq),t.registerSeriesModel(vq)}var bq=["itemStyle","borderWidth"],xq=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],_q=new Uv,wq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Sj,e}return f(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),a=this._data,o=t.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),u=o.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:xq[+l],categoryDim:xq[1-+l]};r.diff(a).add((function(t){if(r.hasValue(t)){var e=jq(r,t),n=Sq(r,t,e,c),a=Eq(r,c,n);r.setItemGraphicEl(t,a),i.add(a),Gq(a,c,n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(r.hasValue(t)){var o=jq(r,t),s=Sq(r,t,o,c),l=Vq(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?zq(n,c,s):n=Eq(r,c,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),Gq(n,c,s)}else i.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&Bq(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var h=t.get("clip",!0)?VL(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){Bq(i,wu(e).dataIndex,t,e)})):n.removeAll()},e.type=Sj,e}(px);function Sq(t,e,n,i){var r=t.getItemLayout(e),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Mq(n,a,r,i,d),Tq(t,e,r,a,o,d.boundingLength,d.pxSign,c,i,d),Iq(n,d.symbolScale,u,i,d);var p=d.symbolSize,f=V_(n.get("symbolOffset"),p);return Cq(n,p,r,a,o,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function Mq(t,e,n,i,r){var a,o=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[o.wh]<=0);if(x["isArray"](s)){var h=[Oq(l,s[0])-u,Oq(l,s[1])-u];h[1]<h[0]&&h.reverse(),a=h[c]}else a=null!=s?Oq(l,s)-u:e?i.coordSysExtent[o.index][c]-u:n[o.wh];r.boundingLength=a,e&&(r.repeatCutLength=n[o.wh]);var d="x"===o.xy,p=l.inverse;r.pxSign=d&&!p||!d&&p?a>=0?1:-1:a>0?1:-1}function Oq(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Tq(t,e,n,i,r,a,o,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=x["isArray"](f)?f.slice():null==f?["100%","100%"]:[f,f],c[d.index]=$r(c[d.index],p),c[h.index]=$r(c[h.index],i?p:Math.abs(a)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*o}function Iq(t,e,n,i,r){var a=t.get(bq)||0;a&&(_q.attr({scaleX:e[0],scaleY:e[1],rotation:n}),_q.updateTransform(),a/=_q.getLineScale(),a*=e[i.valueDim.index]),r.valueLineWidth=a||0}function Cq(t,e,n,i,r,a,o,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),y=g;if(i){var v=Math.abs(l),m=x["retrieve"](t.get("symbolMargin"),"15%")+"",b=!1;m.lastIndexOf("!")===m.length-1&&(b=!0,m=m.slice(0,m.length-1));var _=$r(m,e[p.index]),w=Math.max(g+2*_,0),S=b?0:2*_,M=_a(i),O=M?i:Wq((v+S)/w),T=v-O*g;_=T/2/(b?O:Math.max(O-1,1)),w=g+2*_,S=b?0:2*_,M||"fixed"===i||(O=u?Wq((Math.abs(u)+S)/w):0),y=O*w-S,h.repeatTimes=O,h.symbolMargin=_}var I=f*(y/2),C=h.pathPosition=[];C[d.index]=n[d.wh]/2,C[p.index]="start"===o?I:"end"===o?l-I:l/2,a&&(C[0]+=a[0],C[1]+=a[1]);var A=h.bundlePosition=[];A[d.index]=n[d.xy],A[p.index]=n[p.xy];var k=h.barRectShape=x["extend"]({},n);k[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+I)),k[d.wh]=n[d.wh];var D=h.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=c.ecSize[d.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}function Aq(t){var e=t.symbolPatternSize,n=z_(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function kq(t,e,n,i){var r=t.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+2*n.symbolMargin;for(Fq(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?Hq(t,null,f(c),n,i):Hq(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<u;c++){var d=Aq(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,r.add(d);var p=f(c);Hq(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=u-1-t),e[l.index]=h*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Dq(t,e,n,i){var r=t.__pictorialBundle,a=t.__pictorialMainPath;a?Hq(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(a=t.__pictorialMainPath=Aq(n),r.add(a),Hq(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Lq(t,e,n){var i=x["extend"]({},e.barRectShape),r=t.__pictorialBarRect;r?Hq(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new nu({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function Pq(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,a=x["extend"]({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(r)nh(r,{shape:a},l,u);else{a[s.wh]=0,r=new nu({shape:a}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var c={};c[s.wh]=n.clipShape[s.wh],o[i?"updateProps":"initProps"](r,{shape:c},l,u)}}}function jq(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Nq,n.isAnimationEnabled=Rq,n}function Nq(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Rq(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Eq(t,e,n,i){var r=new vr,a=new vr;return r.add(a),r.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?kq(r,e,n):Dq(r,e,n),Lq(r,n,i),Pq(r,e,n,i),r.__pictorialShapeStr=Vq(t,n),r.__pictorialSymbolMeta=n,r}function zq(t,e,n){var i=n.animationModel,r=n.dataIndex,a=t.__pictorialBundle;nh(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?kq(t,e,n,!0):Dq(t,e,n,!0),Lq(t,n,!0),Pq(t,e,n,!0)}function Bq(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var a=[];Fq(i,(function(t){a.push(t)})),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),x["each"](a,(function(t){ah(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function Vq(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Fq(t,e,n){x["each"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function Hq(t,e,n,i,r,a){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&o[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function Gq(t,e,n){var i=n.dataIndex,r=n.itemModel,a=r.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=a.get("focus"),h=a.get("blurScope"),d=a.get("scale");Fq(t,(function(t){if(t instanceof Xl){var e=t.style;t.useStyle(x["extend"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=o,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,ph(f,fh(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:cL(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Fc(t,c,h,a.get("disabled"))}function Wq(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Yq=wq,Uq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return f(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series."+Sj,e.dependencies=["grid"],e.defaultOption=Yh(Wj.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Xp.color.primary}}}),e}(Wj),Xq=Uq;function $q(t){t.registerChartView(Yq),t.registerSeriesModel(Xq),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,zj(Sj)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Bj(Sj)),Hj(t)}var Zq=2,qq="themeRiver",Kq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new DN(x["bind"](this.getData,this),x["bind"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=lo(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var a=r.length,o=0;o<a;++o){for(var s=r[o].name,l=0;l<r[o].dataList.length;++l){var u=r[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",eo).models[0],i=n.get("type"),r=x["filter"](t.data,(function(t){return void 0!==t[2]})),a=this.fixData(r||[]),o=[],s=this.nameMap=x["createHashMap"](),l=0,u=0;u<a.length;++u)o.push(a[u][Zq]),s.get(a[u][Zq])||(s.set(a[u][Zq],l),l++);var c=uO(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:NM(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new sO(c,this);return h.initData(a),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),a=lo(n,(function(e){return t.get("name",e)})),o=[];return a.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),o.push({name:n,indices:e})})),o},e.prototype.getAxisTooltipData=function(t,e,n){x["isArray"](t)||(t=t?[t]:[]);for(var i,r=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=a[l].indices.length,d=0;d<h;++d){var p=r.get(t[0],a[l].indices[d]),f=Math.abs(p-e);f<=u&&(i=p,u=f,c=a[l].indices[d])}o.push(c)}return{dataIndices:o,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),a=i.get(i.mapDimension("value"),t);return Fy("nameValue",{name:r,value:a})},e.type="series."+qq,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(vv),Qq=Kq,Jq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=qq,e._layers=[],e}return f(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,a=this.group,o=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}a.x=0,a.y=l.y+u[0];var h=new DM(this._layersSeries||[],o,c,c),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=o[n].indices,g=0;g<f.length;g++){var y=i.getItemLayout(f[g]),v=y.x,m=y.y0,b=y.y;h.push(v,m),p.push(v,m+b),u=i.getItemVisual(f[g],"style")}var x=i.getItemLayout(f[0]),_=t.getModel("label"),w=_.get("margin"),S=t.getModel("emphasis");if("add"===e){var M=d[n]=new vr;c=new EL({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),a.add(M),t.isAnimationEnabled()&&c.setClipPath(tK(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),a.add(M),d[n]=M,nh(c,{shape:{points:h,stackedOnPoints:p}},t),lh(c)}ph(c,fh(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var O=c.getTextContent();O&&(O.x=x.x-w,O.y=x.y0+x.y/2),c.useStyle(u),i.setItemGraphicEl(n,c),Yc(c,t),Fc(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else a.remove(l[n])}h.add(Object(x["bind"])(p,this,"add")).update(Object(x["bind"])(p,this,"update")).remove(Object(x["bind"])(p,this,"remove")).execute(),this._layersSeries=o,this._layers=d},e.type=qq,e}(px);function tK(t,e,n){var i=new nu({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return ih(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}var eK=Jq,nK=Ao(qq,iK);function iK(t,e){t.eachSeriesByType(qq,(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var a=t.get("boundaryGap"),o=n.getAxis();if(i.boundaryGap=a,"horizontal"===o.orient){a[0]=$r(a[0],r.height),a[1]=$r(a[1],r.height);var s=r.height-a[0]-a[1];rK(e,t,s)}else{a[0]=$r(a[0],r.width),a[1]=$r(a[1],r.width);var l=r.width-a[0]-a[1];rK(e,t,l)}e.setLayout("layoutInfo",i)}))}function rK(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,a=e.getLayerSeries(),o=t.mapDimension("single"),s=t.mapDimension("value"),l=x["map"](a,(function(e){return x["map"](e.indices,(function(e){var n=r.dataToPoint(t.get(o,e));return n[1]=t.get(s,e),n}))})),u=aK(l),c=u.y0,h=n/u.max,d=a.length,p=a[0].indices.length,f=0;f<p;++f){i=c[f]*h,t.setItemLayout(a[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*h});for(var g=1;g<d;++g)i+=l[g-1][f][1]*h,t.setItemLayout(a[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*h})}}function aK(t){for(var e=t.length,n=t[0].length,i=[],r=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>a&&(a=s),i.push(s)}for(var u=0;u<n;++u)r[u]=(a-i[u])/2;a=0;for(var c=0;c<n;++c){var h=i[c]+r[c];h>a&&(a=h)}return{y0:r,max:a}}function oK(t){t.registerChartView(eK),t.registerSeriesModel(Qq),t.registerLayout(nK),t.registerProcessor(CN(qq))}var sK=2,lK=4,uK=function(t){function e(e,n,i,r){var a=t.call(this)||this;a.z2=sK,a.textConfig={inside:!0},wu(a).seriesIndex=n.seriesIndex;var o=new _u({z2:lK,silent:e.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,e,n,i,r),a}return f(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var a=this;wu(a).dataIndex=e.dataIndex;var o=e.getModel(),s=o.getModel("emphasis"),l=e.getLayout(),u=x["extend"]({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=Iw(h,r));var d=tN(o.getModel("itemStyle"),u,!0);x["extend"](u,d),x["each"](Xu,(function(t){var e=a.ensureState(t),n=o.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=tN(n,u);i&&(e.shape=i)})),t?(a.setShape(u),a.shape.r=l.r0,ih(a,{shape:{r:l.r}},n,e.dataIndex)):(nh(a,{shape:u},n),lh(a)),a.useStyle(c),this._updateLabel(n);var p=o.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="relative"===f?x["concatArray"](e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;Fc(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),a=r.endAngle-r.startAngle,o=(r.startAngle+r.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(a)<d);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!p,x["each"]($u,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?c:c.ensureState(i),y=t.getFormattedLabel(h,i);p&&(y=y||e.node.name),g.style=gh(d,{},null,"normal"!==i,!0),y&&(g.style.text=y);var v=d.get("show");null==v||p||(g.ignore=!v);var m,b=f(d,"position"),_=p?u:u.states[i],w=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?w:null,inside:"outside"!==b};var S=f(d,"distance")||0,M=f(d,"align"),O=f(d,"rotate"),T=.5*Math.PI,I=1.5*Math.PI,C=ml("tangential"===O?Math.PI/2-o:o),A=C>T&&!ha(C-T)&&C<I;"outside"===b?(m=r.r+S,M=A?"right":"left"):M&&"center"!==M?"left"===M?(m=r.r0+S,M=A?"right":"left"):"right"===M&&(m=r.r-S,M=A?"left":"right"):(m=0===r.r0&&ha(a-2*Math.PI)?0:(r.r+r.r0)/2,M="center"),g.style.align=M,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+r.cx,g.y=m*l+r.cy;var k=0;"radial"===O?k=ml(-o)+(A?Math.PI:0):"tangential"===O?k=ml(Math.PI/2-o)+(A?Math.PI:0):x["isNumber"](O)&&(k=O*Math.PI/180),g.rotation=ml(k)})),c.dirtyStyle()},e}(pm),cK=uK,hK="sunburst",dK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};pK(n);var i=this._levelModels=x["map"](t.levels||[],(function(t){return new Vh(t,this,e)}),this),r=BF.createTree(n,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),a=i[n.depth];return a&&(t.parentModel=a),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=GF(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){fH(this)},e.type="series."+hK,e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(vv);function pK(t){var e=0;x["each"](t.children,(function(t){pK(t);var n=t.value;x["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;x["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),x["isArray"](t.value)?t.value[0]=n:t.value=n}var fK=dK,gK="sunburstRootToNode",yK="sunburstHighlight",vK="sunburstUnhighlight";function mK(t){t.registerAction({type:gK,update:"updateView"},(function(t,e){function n(e,n){var i=VF(t,[gK],e);if(i){var r=e.getViewRoot();r&&(t.direction=HF(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:yK,update:"none"},(function(t,e,n){function i(e){var n=VF(t,[yK],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(x["extend"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction(Object(x["extend"])(t,{type:"highlight"}))})),t.registerAction({type:vK,update:"updateView"},(function(t,e,n){t=Object(x["extend"])({},t),n.dispatchAction(Object(x["extend"])(t,{type:"downplay"}))}))}var bK=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=hK,e}return f(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var a=t.getData(),o=a.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];function d(t,e){function n(t){return t.getId()}function i(n,i){var r=null==n?null:t[n],a=null==i?null:e[i];p(r,a)}0===t.length&&0===e.length||new DM(e,t,n,n).add(i).update(i).remove(x["curry"](i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==o&&r!==o)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),a.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new cK(i,t,e,n);l.add(s),a.setItemGraphicEl(i.dataIndex,s)}}function f(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(i,a){a.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new cK(i,t,e,n),l.add(r.virtualPiece)),a.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(a.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(c,h),g(o,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var a=i.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";rp(o,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gK,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,a=t[1]-i.cy,o=Math.sqrt(r*r+a*a);return o<=i.r&&o>=i.r0}},e.type=hK,e}(px),xK=bK,_K=Ao(hK,wK);function wK(t){var e={};function n(t,n,i){if(0===t.depth)return Xp.color.neutral50;var r=t;while(r&&r.depth>1)r=r.parentNode;var a=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(x["isString"])(a)&&(a=Object(xn["lift"])(a,(t.depth-1)/(i-1)*.5)),a}t.eachSeriesByType(hK,(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(r){var a=r.getModel(),o=a.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(r,t,i.root.height));var s=e.ensureUniqueItemVisual(r.dataIndex,"style");Object(x["extend"])(s,o)}))}))}var SK=Math.PI/180,MK=Ao(hK,OK);function OK(t,e){t.eachSeriesByType(hK,(function(t){var n=t.get("center"),i=t.get("radius");x["isArray"](i)||(i=[0,i]),x["isArray"](n)||(n=[n,n]);var r=e.getWidth(),a=e.getHeight(),o=Math.min(r,a),s=$r(n[0],r),l=$r(n[1],a),u=$r(i[0],o/2),c=$r(i[1],o/2),h=-t.get("startAngle")*SK,d=t.get("minAngle")*SK,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&TK(f,y);var v=0;x["each"](f.children,(function(t){!isNaN(t.getValue())&&v++}));var m=f.getValue(),b=Math.PI/(m||v)*2,_=f.depth>0,w=f.height-(_?-1:1),S=(c-u)/(w||1),M=t.get("clockwise"),O=t.get("stillShowZeroSum"),T=M?1:-1,I=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),a=0===m&&O?b:r*b;a<d&&(a=d),i=n+T*a;var c=e.depth-g-(_?-1:1),h=u+S*c,f=u+S*(c+1),y=t.getLevelModel(e);if(y){var v=y.get("r0",!0),w=y.get("r",!0),C=y.get("radius",!0);null!=C&&(v=C[0],w=C[1]),null!=v&&(h=$r(v,o/2)),null!=w&&(f=$r(w,o/2))}e.setLayout({angle:a,startAngle:n,endAngle:i,clockwise:M,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var A=0;x["each"](e.children,(function(t){A+=I(t,n+A)}))}return i-n}};if(_){var C=u,A=u+S,k=2*Math.PI;p.setLayout({angle:k,startAngle:h,endAngle:h+k,clockwise:M,cx:s,cy:l,r0:C,r:A})}I(f,h)}))}function TK(t,e){var n=t.children||[];t.children=IK(n,e),n.length&&x["each"](t.children,(function(t){TK(t,e)}))}function IK(t,e){if(x["isFunction"](e)){var n=x["map"](t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),x["map"](n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function CK(t){t.registerChartView(xK),t.registerSeriesModel(fK),t.registerLayout(MK),t.registerVisual(_K),mK(t)}var AK={color:"fill",borderColor:"stroke"},kK={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},DK=Ka(),LK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return OO(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=DK(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(vv),PK=LK;function jK(t,e){return e=e||[0,0],x["map"](["x","y"],(function(n,i){var r=this.getAxis(n),a=e[i],o=t[i]/2;return"category"===r.type?YC(r).w:Math.abs(r.dataToCoord(a-o)-r.dataToCoord(a+o))}),this)}function NK(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:x["bind"](jK,t)}}}function RK(t,e){return e=e||[0,0],x["map"]([0,1],(function(n){var i=e[n],r=t[n]/2,a=[],o=[];return a[n]=i-r,o[n]=i+r,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function EK(t){var e=t.view,n=e.getBoundingRect();return{coordSys:{type:"geo",x:n.x,y:n.y,width:n.width,height:n.height,zoom:wB(e)},api:{coord:function(e){return t.dataToPoint(e)},size:x["bind"](RK,t)}}}function zK(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?YC(n).w:Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function BK(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(x["bind"])(zK,t)}}}function VK(t,e){return e=e||[0,0],x["map"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",a=this[r](),o=e[i],s=t[i]/2,l="category"===a.type?YC(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function FK(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),o=t.coordToPoint([r,a]);return o.push(r,a*Math.PI/180),o},size:x["bind"](VK,t)}}}function HK(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}function GK(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}function WK(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(x["hasOwn"])(t,"text")))}function YK(t,e,n){var i,r,a,o=t;if("text"===e)a=o;else{a={},Object(x["hasOwn"])(o,"text")&&(a.text=o.text),Object(x["hasOwn"])(o,"rich")&&(a.rich=o.rich),Object(x["hasOwn"])(o,"textFill")&&(a.fill=o.textFill),Object(x["hasOwn"])(o,"textStroke")&&(a.stroke=o.textStroke),Object(x["hasOwn"])(o,"fontFamily")&&(a.fontFamily=o.fontFamily),Object(x["hasOwn"])(o,"fontSize")&&(a.fontSize=o.fontSize),Object(x["hasOwn"])(o,"fontStyle")&&(a.fontStyle=o.fontStyle),Object(x["hasOwn"])(o,"fontWeight")&&(a.fontWeight=o.fontWeight),r={type:"text",style:a,silent:!0},i={};var s=Object(x["hasOwn"])(o,"textPosition");n?i.position=s?o.textPosition:"inside":s&&(i.position=o.textPosition),Object(x["hasOwn"])(o,"textPosition")&&(i.position=o.textPosition),Object(x["hasOwn"])(o,"textOffset")&&(i.offset=o.textOffset),Object(x["hasOwn"])(o,"textRotation")&&(i.rotation=o.textRotation),Object(x["hasOwn"])(o,"textDistance")&&(i.distance=o.textDistance)}return UK(a,t),Object(x["each"])(a.rich,(function(t){UK(t,t)})),{textConfig:i,textContent:r}}function UK(t,e){e&&(e.font=e.textFont||e.font,Object(x["hasOwn"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(x["hasOwn"])(e,"textAlign")&&(t.align=e.textAlign),Object(x["hasOwn"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(x["hasOwn"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(x["hasOwn"])(e,"textWidth")&&(t.width=e.textWidth),Object(x["hasOwn"])(e,"textHeight")&&(t.height=e.textHeight),Object(x["hasOwn"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(x["hasOwn"])(e,"textPadding")&&(t.padding=e.textPadding),Object(x["hasOwn"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(x["hasOwn"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(x["hasOwn"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(x["hasOwn"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(x["hasOwn"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(x["hasOwn"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(x["hasOwn"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function XK(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,a=t.fill||Xp.color.neutral99;$K(i,e);var o=null==i.textFill;return r?o&&(i.textFill=n.insideFill||Xp.color.neutral00,!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(o&&(i.textFill=t.fill||n.outsideFill||Xp.color.neutral00),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(x["each"])(e.rich,(function(t){$K(t,t)})),i}function $K(t,e){e&&(Object(x["hasOwn"])(e,"fill")&&(t.textFill=e.fill),Object(x["hasOwn"])(e,"stroke")&&(t.textStroke=e.fill),Object(x["hasOwn"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(x["hasOwn"])(e,"font")&&(t.font=e.font),Object(x["hasOwn"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(x["hasOwn"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(x["hasOwn"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(x["hasOwn"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(x["hasOwn"])(e,"align")&&(t.textAlign=e.align),Object(x["hasOwn"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(x["hasOwn"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(x["hasOwn"])(e,"width")&&(t.textWidth=e.width),Object(x["hasOwn"])(e,"height")&&(t.textHeight=e.height),Object(x["hasOwn"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(x["hasOwn"])(e,"padding")&&(t.textPadding=e.padding),Object(x["hasOwn"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(x["hasOwn"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(x["hasOwn"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(x["hasOwn"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(x["hasOwn"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(x["hasOwn"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(x["hasOwn"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(x["hasOwn"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(x["hasOwn"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(x["hasOwn"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(x["hasOwn"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var ZK={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},qK=Object(x["keys"])(ZK),KK=(Object(x["reduce"])(Di,(function(t,e){return t[e]=1,t}),{}),Di.join(", "),["","style","shape","extra"]),QK=Ka();function JK(t,e,n,i,r){var a=t+"Animation",o=th(t,i,r)||{},s=QK(e).userDuring;return o.duration>0&&(o.during=s?Object(x["bind"])(uQ,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Object(x["extend"])(o,n[a]),o}function tQ(t,e,n,i){i=i||{};var r=i.dataIndex,a=i.isInit,o=i.clearStyle,s=n.isAnimationEnabled(),l=QK(t),u=e.style;l.userDuring=e.during;var c={},h={};if(pQ(t,e,h),"compound"===t.type)for(var d=t.shape.paths,p=e.shape.paths,f=0;f<p.length;f++){var g=p[f];hQ("shape",g,d[f])}else hQ("shape",e,h),hQ("extra",e,h);if(!a&&s&&(dQ(t,e,c),cQ("shape",t,e,c),cQ("extra",t,e,c),fQ(t,e,u,c)),h.style=u,rQ(t,h,o),oQ(t,e),s)if(a){var y={};Object(x["each"])(KK,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(y[t]=y[t]||{}),Object(x["extend"])(t?y[t]:y,n.enterFrom))}));var v=JK("enter",t,e,n,r);v.duration>0&&t.animateFrom(y,v)}else aQ(t,e,r||0,n,c);eQ(t,e),u?t.dirty():t.markRedraw()}function eQ(t,e){for(var n=QK(t).leaveToProps,i=0;i<KK.length;i++){var r=KK[i],a=r?e[r]:e;a&&a.leaveTo&&(n||(n=QK(t).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(x["extend"])(r?n[r]:n,a.leaveTo))}}function nQ(t,e,n,i){if(t){var r=t.parent,a=QK(t).leaveToProps;if(a){var o=JK("update",t,e,n,0);o.done=function(){r&&r.remove(t),i&&i()},t.animateTo(a,o)}else r&&r.remove(t),i&&i()}}function iQ(t){return"all"===t}function rQ(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,a=0;a<r.length;a++){var o=r[a];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function aQ(t,e,n,i,r){if(r){var a=JK("update",t,e,i,n);a.duration>0&&t.animateFrom(r,a)}}function oQ(t,e){Object(x["hasOwn"])(e,"silent")&&(t.silent=e.silent),Object(x["hasOwn"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Ls&&Object(x["hasOwn"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof Bl&&Object(x["hasOwn"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var sQ={},lQ={setTransform:function(t,e){return sQ.el[t]=e,this},getTransform:function(t){return sQ.el[t]},setShape:function(t,e){var n=sQ.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=sQ.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=sQ.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=sQ.el.style;if(e)return e[t]},setExtra:function(t,e){var n=sQ.el.extra||(sQ.el.extra={});return n[t]=e,this},getExtra:function(t){var e=sQ.el.extra;if(e)return e[t]}};function uQ(){var t=this,e=t.el;if(e){var n=QK(e).userDuring,i=t.userDuring;n===i?(sQ.el=e,i(lQ)):t.el=t.userDuring=null}}function cQ(t,e,n,i){var r=n[t];if(r){var a,o=e[t];if(o){var s=n.transition,l=r.transition;if(l)if(!a&&(a=i[t]={}),iQ(l))Object(x["extend"])(a,o);else for(var u=Aa(l),c=0;c<u.length;c++){var h=u[c],d=o[h];a[h]=d}else if(iQ(s)||Object(x["indexOf"])(s,t)>=0){!a&&(a=i[t]={});var p=Object(x["keys"])(o);for(c=0;c<p.length;c++){h=p[c],d=o[h];gQ(r[h],d)&&(a[h]=d)}}}}}function hQ(t,e,n){var i=e[t];if(i)for(var r=n[t]={},a=Object(x["keys"])(i),o=0;o<a.length;o++){var s=a[o];r[s]=kn(i[s])}}function dQ(t,e,n){for(var i=e.transition,r=iQ(i)?Di:Aa(i||[]),a=0;a<r.length;a++){var o=r[a];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=t[o];0,n[o]=s}}}function pQ(t,e,n){for(var i=0;i<qK.length;i++){var r=qK[i],a=ZK[r],o=e[r];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(i=0;i<Di.length;i++){var s=Di[i];null!=e[s]&&(n[s]=e[s])}}function fQ(t,e,n,i){if(n){var r,a=t.style;if(a){var o=n.transition,s=e.transition;if(o&&!iQ(o)){var l=Aa(o);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=a[c];r[c]=h}}else if(t.getAnimationStyleProps&&(iQ(s)||iQ(o)||Object(x["indexOf"])(s,"style")>=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!r&&(r=i.style={});var f=Object(x["keys"])(n);for(u=0;u<f.length;u++){c=f[u];if(p[c]){h=a[c];r[c]=h}}}}}}}function gQ(t,e){return Object(x["isArrayLike"])(t)?t!==e:null!=t&&isFinite(t)}var yQ=Ka(),vQ=["percent","easing","shape","style","extra"];function mQ(t){t.stopAnimation("keyframe"),t.attr(yQ(t))}function bQ(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(x["isArray"])(e))Object(x["each"])(e,(function(e){bQ(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var a=th("enter",n,0);r=a&&a.duration}if(i&&r){var o=yQ(t);Object(x["each"])(KK,(function(n){if(!n||t[n]){var a;i.sort((function(t,e){return t.percent-e.percent})),Object(x["each"])(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=Object(x["keys"])(l);if(n||(u=Object(x["filter"])(u,(function(t){return Object(x["indexOf"])(vQ,t)<0}))),u.length){a||(a=t.animate(n,e.loop,!0),a.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==a&&s[c].targetName===a.targetName&&s[c].stopTracks(u);n&&(o[n]=o[n]||{});var h=n?o[n]:o;Object(x["each"])(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),a.whenWithKeys(r*i.percent,l,u,i.easing)}}})),a&&a.delay(e.delay||0).duration(r).start(e.easing)}}))}}}var xQ="emphasis",_Q="normal",wQ="blur",SQ="select",MQ=[_Q,xQ,wQ,SQ],OQ={normal:["itemStyle"],emphasis:[xQ,"itemStyle"],blur:[wQ,"itemStyle"],select:[SQ,"itemStyle"]},TQ={normal:["label"],emphasis:[xQ,"label"],blur:[wQ,"label"],select:[SQ,"label"]},IQ=["x","y"],CQ="e\0\0",AQ={normal:{},emphasis:{},blur:{},select:{}},kQ={cartesian2d:NK,geo:EK,single:BK,polar:FK,calendar:HK,matrix:GK};function DQ(t){return t instanceof Bl}function LQ(t){return t instanceof Ls}function PQ(t,e){e.copyTransform(t),LQ(e)&&LQ(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,DQ(e)&&DQ(t)&&e.setShape(t.shape))}var jQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,a=t.getData(),o=this.group,s=FQ(t,a,e,n);r||o.removeAll(),a.diff(r).add((function(e){GQ(n,null,e,s(e,i),t,o,a)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&nQ(n,DK(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);GQ(n,u,e,s(e,i),t,o,a)})).execute();var l=t.get("clip",!0)?VL(t.coordinateSystem,!1,t):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var a=e.getData(),o=FQ(e,a,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=Io(e),t.ensureState("emphasis").hoverLayer=fb)}for(var u=t.start;u<t.end;u++){var c=GQ(null,null,u,o(u,r),e,this.group,a);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){Ub(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},e.type="custom",e}(px),NQ=jQ;function RQ(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,a=iJ(i);e=xb(a,null,r,i.layout||"center"),DK(e).customPathData=a}else if("image"===n)e=new Xl({}),DK(e).customImagePath=t.style.image;else if("text"===n)e=new _u({});else if("group"===n)e=new vr;else if("compoundPath"===n){i=t.shape;if(!i||!i.paths){var o="";0,Cf(o)}var s=Object(x["map"])(i.paths,(function(t){if("path"===t.type)return xb(t.shape.pathData,t,null);var e=bb(t.type);if(!e){var n="";0,Cf(n)}return new e}));e=new zm({shape:{paths:s}})}else{var l=bb(n);if(!l){o="";0,Cf(o)}e=new l}return DK(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function EQ(t,e,n,i,r,a,o){mQ(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=IQ);var l=i&&i.style;if(l){if("text"===e.type){var u=l;Object(x["hasOwn"])(u,"textFill")&&(u.fill=u.textFill),Object(x["hasOwn"])(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=DQ(e)?l.decal:null;t&&h&&(h.dirty=!0,c=Iw(h,t)),l.__decalPattern=c}if(LQ(e)&&l){c=l.__decalPattern;c&&(l.decal=c)}tQ(e,i,a,{dataIndex:n,isInit:o,clearStyle:!0}),bQ(e,i.keyframeAnimation,a)}function zQ(t,e,n,i,r){var a=e.isGroup?null:e,o=r&&r[t].cfg;if(a){var s=a.ensureState(t);if(!1===i){var l=a.getState(t);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),bc(a)}}function BQ(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,a=n.currentZLevel;i.z=r,i.zlevel=a;var o=e.z2;null!=o&&(i.z2=o||0);for(var s=0;s<MQ.length;s++)VQ(i,e,MQ[s])}}function VQ(t,e,n){var i,r=n===_Q,a=r?e:ZQ(e,n),o=a?a.z2:null;null!=o&&(i=r?t:t.ensureState(n),i.z2=o||0)}function FQ(t,e,n,i){var r=t.get("renderItem");if("string"===typeof r){var a=b_(r);a&&(r=a)}var o=t.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):kQ[o.type](o));for(var l,u,c=Object(x["defaults"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:w,style:M,ordinalRawValue:S,styleEmphasis:O,visual:C,barLayout:A,currentSeriesIndices:k,font:D},s.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:HQ(t.getData()),itemPayload:t.get("itemPayload")||{}},d={},p={},f={},g={},y=0;y<MQ.length;y++){var v=MQ[y];f[v]=t.getModel(OQ[v]),g[v]=t.getModel(TQ[v])}function m(t){return t===l?u||(u=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===l?d[n]||(d[n]=m(t).getModel(OQ[n])):m(t).getModel(OQ[n]):f[n]}function _(t,n){return e.hasItemOption?t===l?p[n]||(p[n]=m(t).getModel(TQ[n])):m(t).getModel(TQ[n]):g[n]}return function(t,n){return l=t,u=null,d={},p={},r&&r(Object(x["defaults"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},h),c)};function w(t,n){return null==n&&(n=l),e.getStore().get(e.getDimensionIndex(t||0),n)}function S(t,n){null==n&&(n=l),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var a=e.get(i.name,n),o=i&&i.ordinalMeta;return o?o.categories[a]:a}function M(n,i){null==i&&(i=l);var r=e.getItemVisual(i,"style"),a=r&&r.fill,o=r&&r.opacity,s=b(i,_Q).getItemStyle();null!=a&&(s.fill=a),null!=o&&(s.opacity=o);var u={inheritColor:Object(x["isString"])(a)?a:Xp.color.neutral99},c=_(i,_Q),h=gh(c,null,u,!1,!0);h.text=c.getShallow("show")?Object(x["retrieve2"])(t.getFormattedLabel(i,_Q),cL(e,i)):null;var d=yh(c,u,!1);return I(n,s),s=XK(s,h,d),n&&T(s,n),s.legacy=!0,s}function O(n,i){null==i&&(i=l);var r=b(i,xQ).getItemStyle(),a=_(i,xQ),o=gh(a,null,null,!0,!0);o.text=a.getShallow("show")?Object(x["retrieve3"])(t.getFormattedLabel(i,xQ),t.getFormattedLabel(i,_Q),cL(e,i)):null;var s=yh(a,null,!0);return I(n,r),r=XK(r,o,s),n&&T(r,n),r.legacy=!0,r}function T(t,e){for(var n in e)Object(x["hasOwn"])(e,n)&&(t[n]=e[n])}function I(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function C(t,n){if(null==n&&(n=l),Object(x["hasOwn"])(AK,t)){var i=e.getItemVisual(n,"style");return i?i[AK[t]]:null}if(Object(x["hasOwn"])(kK,t))return e.getItemVisual(n,t)}function A(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return jj(Object(x["defaults"])({axis:e},t))}}function k(){return n.getCurrentSeriesIndices()}function D(t){return Sh(t,n)}}function HQ(t){var e={};return Object(x["each"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,a=e[r]=e[r]||[];a[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function GQ(t,e,n,i,r,a,o){if(i){var s=WQ(t,e,n,i,r,a);return s&&o.setItemGraphicEl(n,s),s&&Fc(s,i.focus,i.blurScope,i.emphasisDisabled),s}a.remove(e)}function WQ(t,e,n,i,r,a){var o=-1,s=e;e&&YQ(e,i,r)&&(o=Object(x["indexOf"])(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=RQ(i),s&&PQ(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),i.tooltipDisabled&&(u.tooltipDisabled=!0),AQ.normal.cfg=AQ.normal.conOpt=AQ.emphasis.cfg=AQ.emphasis.conOpt=AQ.blur.cfg=AQ.blur.conOpt=AQ.select.cfg=AQ.select.conOpt=null,AQ.isLegacy=!1,XQ(u,n,i,r,l,AQ),UQ(u,n,i,r,l),EQ(t,u,n,i,AQ,r,l),Object(x["hasOwn"])(i,"info")&&(DK(u).info=i.info);for(var c=0;c<MQ.length;c++){var h=MQ[c];if(h!==_Q){var d=ZQ(i,h),p=qQ(i,d,h);zQ(h,u,d,p,AQ)}}return BQ(u,i,r),"group"===i.type&&KQ(t,u,n,i,r),o>=0?a.replaceAt(u,o):a.add(u),u}function YQ(t,e,n){var i=DK(t),r=e.type,a=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&rJ(a)&&iJ(a)!==i.customPathData||"image"===r&&Object(x["hasOwn"])(o,"image")&&o.image!==i.customImagePath}function UQ(t,e,n,i,r){var a=n.clipPath;if(!1===a)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&YQ(o,a,i)&&(o=null),o||(o=RQ(a),t.setClipPath(o)),EQ(null,o,e,a,null,i,r)}}function XQ(t,e,n,i,r,a){if(!t.isGroup&&"compoundPath"!==t.type){$Q(n,null,a),$Q(n,xQ,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===o)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=RQ(o),t.setTextContent(c)),EQ(null,c,e,o,null,i,r);for(var h=o&&o.style,d=0;d<MQ.length;d++){var p=MQ[d];if(p!==_Q){var f=a[p].conOpt;zQ(p,c,f,qQ(o,f,p),null)}}h?c.dirty():c.markRedraw()}}}}function $Q(t,e,n){var i=e?ZQ(t,e):t,r=e?qQ(t,i,xQ):t.style,a=t.type,o=i?i.textConfig:null,s=t.textContent,l=s?e?ZQ(s,e):s:null;if(r&&(n.isLegacy||WK(r,a,!!o,!!l))){n.isLegacy=!0;var u=YK(r,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=o,h.conOpt=l}function ZQ(t,e){return e?t?t[e]:null:t}function qQ(t,e,n){var i=e&&e.style;return null==i&&n===xQ&&t&&(i=t.styleEmphasis),i}function KQ(t,e,n,i,r){var a=i.children,o=a?a.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,u=!1===s;if(o||l||u)if(l)JQ({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:r,group:e});else{u&&e.removeAll();for(var c=0;c<o;c++){var h=a[c],d=e.childAt(c);h?(null==h.ignore&&(h.ignore=!1),WQ(t,d,n,h,r,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=c;p--){var f=e.childAt(p);QQ(e,f,r)}}}function QQ(t,e,n){e&&nQ(e,DK(t).option,n)}function JQ(t){new DM(t.oldChildren,t.newChildren,tJ,tJ,t).add(eJ).update(eJ).remove(nJ).execute()}function tJ(t,e){var n=t&&t.name;return null!=n?n:CQ+e}function eJ(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;WQ(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function nJ(t){var e=this.context,n=e.oldChildren[t];n&&nQ(n,DK(n).option,e.seriesModel)}function iJ(t){return t&&(t.pathData||t.d)}function rJ(t){return t&&(Object(x["hasOwn"])(t,"pathData")||Object(x["hasOwn"])(t,"d"))}function aJ(t){t.registerChartView(NQ),t.registerSeriesModel(PK)}var oJ=Ka(),sJ=x["clone"],lJ=x["bind"],uJ=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==a){this._lastValue=r,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(o){var h=x["curry"](cJ,e,c);this.updatePointerEl(o,l,h),this.updateLabelEl(o,l,h,e)}else o=this._group=new vr,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);fJ(o,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,a=e.get("snap");if(!a&&!r)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(r&&YC(i).w>o)return!0;if(a){var s=tE(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var a=oJ(t).pointerEl=new o[r.type](sJ(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=oJ(t).labelEl=new _u(sJ(e.label));t.add(r),dJ(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=oJ(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=oJ(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),dJ(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Rb(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_t(t.event)},onmousedown:lJ(this._onHandleDragMove,this,0,0),drift:lJ(this._onHandleDragMove,this),ondragend:lJ(this._onHandleDragEnd,this)}),i.add(r)),fJ(r,n,!1),r.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");x["isArray"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,mx(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){cJ(this._axisPointerModel,!e&&this._moveAnimation,this._handle,pJ(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(pJ(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(pJ(i)),oJ(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,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),bx(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 cJ(t,e,n,i){hJ(oJ(n).lastProp,i)||(oJ(n).lastProp=i,e?nh(n,i,t):(n.stopAnimation(),n.attr(i)))}function hJ(t,e){if(x["isObject"](t)&&x["isObject"](e)){var n=!0;return x["each"](e,(function(e,i){n=n&&hJ(t[i],e)})),!!n}return t===e}function dJ(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pJ(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fJ(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var gJ=uJ;function yJ(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function vJ(t,e,n,i,r){var a=n.get("value"),o=bJ(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=$d(s.get("padding")||0),u=s.getFont(),c=Wi(o,u),h=r.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),mJ(h,d,p,i);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:gh(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function mJ(t,e,n,i){var r=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function bJ(t,e,n,i,r){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:r.precision}),o=r.formatter;if(o){var s={value:YT(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};x["each"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),x["isString"](o)?a=o.replace("{value}",a):x["isFunction"](o)&&(a=o(s))}return a}function xJ(t,e,n){var i=It();return Lt(i,i,n.rotation),Dt(i,i,n.position),Ab([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function _J(t,e,n,i,r,a){var o=lj.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),vJ(e,i,r,a,{position:xJ(i.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function wJ(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function SJ(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function MJ(t,e,n,i,r,a){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:a,clockwise:!0}}function OJ(t,e,n){return YC(t,{fromStat:{sers:x["map"](e,(function(t){return n.getSeriesByIndex(t.seriesIndex)}))},min:1}).w}function TJ(t,e,n){return[Er(Rr(e[0],e[1]),t-n/2),Rr(t+n/2,Er(e[0],e[1]))]}var IJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis,o=a.grid,s=i.get("type"),l=a.getGlobalExtent(),u=CJ(o,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var h=yJ(i),d=AJ[s](a,c,l,u,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=uj(o.getRect(),n);_J(e,t,p,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=uj(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=xJ(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,a=r.grid,o=r.getGlobalExtent(!0),s=CJ(a,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Rr(o[1],u[l]),u[l]=Er(o[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(gJ);function CJ(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var AJ={line:function(t,e,n,i){var r=wJ([e,i[0]],[e,i[1]],kJ(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n,i,r,a){var o=OJ(t,r,a),s=i[1]-i[0],l=TJ(e,n,o),u=l[0],c=l[1];return{type:"Rect",shape:SJ([u,i[0]],[c-u,s],kJ(t))}}};function kJ(t){return"x"===t.dim?0:1}var DJ=IJ,LJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Xp.color.border,width:1,type:"dashed"},shadowStyle:{color:Xp.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Xp.color.neutral00,padding:[5,7,5,7],backgroundColor:Xp.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Xp.color.accent40,throttle:40}},e}(Hp),PJ=LJ,jJ=Ka(),NJ=x["each"];function RJ(t,e,n){if(!b.node){var i=e.getZr();jJ(i).records||(jJ(i).records={}),EJ(i,e);var r=jJ(i).records[t]||(jJ(i).records[t]={});r.handler=n}}function EJ(t,e){function n(n,i){t.on(n,(function(n){var r=FJ(e);NJ(jJ(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),zJ(r.pendings,e)}))}jJ(t).initialized||(jJ(t).initialized=!0,n("click",x["curry"](VJ,"click")),n("mousemove",x["curry"](VJ,"mousemove")),n("mousewheel",x["curry"](VJ,"mousewheel")),n("globalout",BJ))}function zJ(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function BJ(t,e,n){t.handler("leave",null,n)}function VJ(t,e,n,i){e.handler(t,n,i)}function FJ(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function HJ(t,e){if(!b.node){var n=e.getZr(),i=(jJ(n).records||{})[t];i&&(jJ(n).records[t]=null)}}var GJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";RJ("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){HJ("axisPointer",e)},e.prototype.dispose=function(t,e){HJ("axisPointer",e)},e.type="axisPointer",e}(bv),WJ=GJ;function YJ(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var a=n.getData(),o=qa(a,t);if(null==o||o<0||x["isArray"](o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,f=a.mapDimension(d),g=[];g[p]=a.get(f,o),g[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(a.getValues(x["map"](l.dimensions,(function(t){return a.mapDimension(t)})),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),i=[y.x+y.width/2,y.y+y.height/2]}return{point:i,el:s}}var UJ=Ka();function XJ(t,e,n){var i=t.currTrigger,r=[t.x,t.y],a=t,o=t.dispatchAction||Object(x["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){i0(r)&&(r=YJ({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=i0(r),u=a.axesInfo,c=s.axesInfo,h="leave"===i||i0(r),d={},p={},f={list:[],map:{}},g={showPointer:Object(x["curry"])(qJ,p),showTooltip:Object(x["curry"])(KJ,f)};Object(x["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);Object(x["each"])(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,a=e0(u,t);if(!h&&n&&(!u||a)){var o=a&&a.value;null!=o||l||(o=i.pointToData(r)),null!=o&&$J(t,o,g,!1,d)}}))}));var y={};return Object(x["each"])(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(x["each"])(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var a=r.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,n0(e),n0(t)))),y[t.key]=a}}))})),Object(x["each"])(y,(function(t,e){$J(c[e],t,g,!0,d)})),QJ(p,c,d),JJ(f,r,t,o),t0(c,o,n),d}}function $J(t,e,n,i,r){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var o=ZJ(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==r.seriesIndex&&Object(x["extend"])(r,s[0]),!i&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}else n.showPointer(t,e)}function ZJ(t,e){var n=e.axis,i=n.dim,r=t,a=[],o=Number.MAX_VALUE,s=-1;return Object(x["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.indicesOfNearest(i,h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(Oa(u)){var p=t-u,f=Math.abs(p);f<=o&&((f<o||p>=0&&s<0)&&(o=f,s=p,r=u,a.length=0),Object(x["each"])(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:r}}function qJ(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function KJ(t,e,n,i){var r=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=iE(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function QJ(t,e,n){var i=n.axesInfo=[];Object(x["each"])(e,(function(e,n){var r=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(r.status="show"),r.value=a.value,r.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function JJ(t,e,n,i){if(!i0(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function t0(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",a=UJ(i)[r]||{},o=UJ(i)[r]={};Object(x["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(x["each"])(n.seriesDataIndices,(function(t){o[t.seriesIndex+"|"+t.dataIndex]=t}))}));var s=[],l=[];function u(t){return{seriesIndex:t.seriesIndex,dataIndex:t.dataIndex}}Object(x["each"])(a,(function(t,e){!o[e]&&l.push(u(t))})),Object(x["each"])(o,(function(t,e){!a[e]&&s.push(u(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 e0(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function n0(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function i0(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function r0(t){oE.registerAxisPointerClass("CartesianAxisPointer",DJ),t.registerComponentModel(PJ),t.registerComponentView(WJ),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(x["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=XR(t,e)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},XJ)}function a0(t){IM(vE),IM(r0)}var o0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=a.getExtent(),l=o.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),c=i.get("type");if(c&&"none"!==c){var h=yJ(i),d=l0[c](a,o,u,s,l,i.get("seriesDataIndices"),i.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),f=s0(e,n,i,o,p);vJ(t,n,i,r,f)},e}(gJ);function s0(t,e,n,i,r){var a=e.axis,o=a.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=i.getRadiusAxis().getExtent();if("radius"===a.dim){var d=It();Lt(d,d,s),Dt(d,d,[i.cx,i.cy]),l=Ab([o,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=lj.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,o]);var y=i.cx,v=i.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var l0={line:function(t,e,n,i,r){return"angle"===t.dim?{type:"Line",shape:wJ(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i,r,a,o){var s,l=Math.PI/180,u=OJ(t,a,o);if("angle"===t.dim)s=MJ(e.cx,e.cy,r[0],r[1],(-n-u/2)*l,(u/2-n)*l);else{var c=TJ(n,i,u),h=c[0],d=c[1];s=MJ(e.cx,e.cy,h,d,0,2*Math.PI)}return{type:"Sector",shape:s}}},u0=o0,c0="polar",h0=c0,d0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type=c0,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Hp),p0=d0,f0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",eo).models[0]},e.type="polarAxis",e}(Hp);x["mixin"](f0,nI);var g0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="angleAxis",e}(f0),y0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="radiusAxis",e}(f0),v0=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return f(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(QC);v0.prototype.dataToRadius=QC.prototype.dataToCoord,v0.prototype.radiusToData=QC.prototype.coordToData;var m0=v0,b0=Ka(),x0=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return f(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var a=i[0],o=t.dataToCoord(a+1)-t.dataToCoord(a),s=Math.abs(o),l=Wi(null==a?"":a+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=b0(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},e}(QC);x0.prototype.dataToAngle=QC.prototype.dataToCoord,x0.prototype.angleToData=QC.prototype.coordToData;var _0=x0,w0=["radius","angle"],S0=function(){function t(t){this.dimensions=w0,this.type=c0,this.cx=0,this.cy=0,this._radiusAxis=new m0,this._angleAxis=new _0,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],n)},t.prototype.pointToData=function(t,e,n){n=n||[];var i=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(i[0],e),n[1]=this._angleAxis.angleToData(i[1],e),n},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);i.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<a?1:-1;while(l<a||l>o)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t,e){e=e||[];var n=t[0],i=t[1]/180*Math.PI;return e[0]=Math.cos(i)*n+this.cx,e[1]=-Math.sin(i)*n+this.cy,e},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180,a=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,s=this.r0;return o!==s&&r-a<=o*o&&r+a>=s*s},x:this.cx-n[1],y:this.cy-n[1],width:2*n[1],height:2*n[1]}},t.prototype.convertToPixel=function(t,e,n){var i=M0(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=M0(e);return i===this?this.pointToData(n):null},t}();function M0(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var O0=S0;function T0(t,e,n){var i=e.get("center"),r=Lp(e,n).refContainer;t.cx=$r(i[0],r.width)+r.x,t.cy=$r(i[1],r.height)+r.y;var a=t.getRadiusAxis(),o=Math.min(r.width,r.height)/2,s=e.get("radius");null==s?s=[0,"100%"]:x["isArray"](s)||(s=[0,s]);var l=[$r(s[0],o),$r(s[1],o)];a.inverse?a.setExtent(l[1],l[0]):a.setExtent(l[0],l[1])}function I0(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(zI(i,CI),zI(r,CI),qI(i),qI(r),"category"===i.type&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function C0(t){return"angleAxis"===t.mainType}function A0(t,e){var n;if(t.type=RT(e),t.scale=ET(e,t.type,!1),t.onBand=eI(t.scale,e),t.inverse=e.get("inverse"),C0(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}var k0={dimensions:w0,create:function(t,e){var n=[];return t.eachComponent(h0,(function(t,i){var r=new O0(i+"");r.update=I0;var a=r.getRadiusAxis(),o=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");A0(a,s),A0(o,l),T0(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if(t.get("coordinateSystem")===c0){var e=t.getReferringComponents(h0,eo).models[0];0;var n=t.coordinateSystem=e.coordinateSystem;n&&(SI(n.getRadiusAxis(),t,c0),SI(n.getAngleAxis(),t,c0))}})),n}},D0=k0,L0=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function P0(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function j0(t){var e=t.getRadiusAxis();return e.inverse?0:1}function N0(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var R0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return f(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:"none"}),o=n.getMinorTicksCoords(),s=[];x["each"](n.getViewLabels(),(function(t){if(!t.tick.offInterval){t=x["clone"](t);var e=n.scale;t.coord=n.dataToCoord(tI(e,t.tick)),s.push(t)}})),N0(s),N0(a),x["each"](L0,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||E0[e](this.group,t,i,a,o,r,s)}),this)}},e.type="angleAxis",e}(oE),E0={axisLine:function(t,e,n,i,r,a){var s,l=e.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=j0(n),p=d?0:1,f=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=0===a[p]?new o[f]({shape:{cx:n.cx,cy:n.cy,r:a[d],startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new ym({shape:{cx:n.cx,cy:n.cy,r:a[d],r0:a[p]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,t.add(s)},axisTick:function(t,e,n,i,r,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[j0(n)],u=x["map"](i,(function(t){return new Cm({shape:P0(n,[l,l+s],t.coord)})}));t.add(Sb(u,{style:x["defaults"](o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,a){if(r.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[j0(n)],c=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)c.push(new Cm({shape:P0(n,[u,u+l],r[h][d].coord)}));t.add(Sb(c,{style:x["defaults"](s.getModel("lineStyle").getLineStyle(),x["defaults"](o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");x["each"](o,(function(i,r){var o=l,h=i.tick.value,d=a[j0(n)],p=n.coordToPoint([d+u,i.coord]),f=n.cx,g=n.cy,y=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];x["isObject"](m)&&m.textStyle&&(o=new Vh(m.textStyle,l,l.ecModel))}var b=new _u({silent:lj.isLabelSilent(e),style:gh(o,{x:p[0],y:p[1],fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(b),Wb({el:b,componentModel:e,itemName:i.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:i.rawLabel,tickIndex:r}}),c){var _=lj.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,wu(b).eventData=_}}),this)},splitLine:function(t,e,n,i,r,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Cm({shape:P0(n,a,i[h].coord)}))}for(h=0;h<c.length;h++)t.add(Sb(c[h],{style:x["defaults"]({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,a){if(r.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<r.length;u++)for(var c=0;c<r[u].length;c++)l.push(new Cm({shape:P0(n,a,r[u][c].coord)}));t.add(Sb(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,a){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-i[0].coord*h,p=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),g=e.get("clockwise"),y=1,v=i.length;y<=v;y++){var m=y===v?i[0].coord:i[y].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new pm({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-m*h,clockwise:g},silent:!0})),d=-m*h}for(y=0;y<c.length;y++)t.add(Sb(c[y],{style:x["defaults"]({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},z0=R0,B0=["splitLine","splitArea","minorSplitLine"],V0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return f(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this._axisGroup,r=this._axisGroup=new vr;this.group.add(r);var a=t.axis,o=a.polar,s=o.getAngleAxis(),l=a.getTicksCoords(),u=a.getMinorTicksCoords(),c=s.getExtent()[0],h=a.getExtent(),d=H0(o,t,c),p=new lj(t,n,d);p.build(),r.add(p.group),Pb(i,r,t),x["each"](B0,(function(e){t.get([e,"show"])&&!a.scale.isBlank()&&F0[e](this.group,t,o,c,h,l,u)}),this)}},e.type="radiusAxis",e}(oE),F0={splitLine:function(t,e,n,i,r,a){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0,h=n.getAngleAxis(),d=Math.PI/180,p=h.getExtent(),f=360===Math.abs(p[1]-p[0])?"Circle":"Arc";u=u instanceof Array?u:[u];for(var g=[],y=0;y<a.length;y++){var v=c++%u.length;g[v]=g[v]||[],g[v].push(new o[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[y].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:h.inverse}}))}for(y=0;y<g.length;y++)t.add(Sb(g[y],{style:x["defaults"]({stroke:u[y%u.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new Uv({shape:{cx:n.cx,cy:n.cy,r:o[c][h].coord}}));t.add(Sb(u,{style:x["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=a[0].coord,d=1;d<a.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new pm({shape:{cx:n.cx,cy:n.cy,r0:h,r:a[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[d].coord}for(d=0;d<c.length;d++)t.add(Sb(c[d],{style:x["defaults"]({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function H0(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var G0=V0,W0=wo();function Y0(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}var U0=Ao(wj,X0);function X0(t){var e=xj(wj,c0);mI(t,e,(function(t){var n=Z0(t,wj),i={};gI(t,e,(function(e){$0(t,e,n,i)}))}))}function $0(t,e,n,i){var r=e.getData(),a=Y0(e),o=n[a],s=o.offset,l=o.width,u=e.coordinateSystem;var c=u.getOtherAxis(t),h=u.cx,d=u.cy,p=e.get("barMinHeight")||0,f=e.get("barMinAngle")||0;i[a]=i[a]||[];for(var g=r.mapDimension(c.dim),y=r.mapDimension(t.dim),v=mO(r,g),m="radius"!==t.dim||!e.get("roundCap",!0),b=c.dataToCoord(Oj(c)),x=0,_=r.count();x<_;x++){var w=r.get(g,x),S=r.get(y,x),M=w>=0?"p":"n",O=b;v&&(i[a][S]||(i[a][S]={p:b,n:b}),O=i[a][S][M]);var T=void 0,I=void 0,C=void 0,A=void 0;if("radius"===c.dim){var k=c.dataToCoord(w)-b,D=t.dataToCoord(S);zr(k)<p&&(k=(k<0?-1:1)*p),T=O,I=O+k,C=D-s,A=C-l,v&&(i[a][S][M]=I)}else{var L=c.dataToCoord(w,m)-b,P=t.dataToCoord(S);zr(L)<f&&(L=(L<0?-1:1)*f),T=P+s,I=T+l,C=O,A=O+L,v&&(i[a][S][M]=A)}r.setItemLayout(x,{cx:h,cy:d,r0:T,r:I,startAngle:-C*Yr/180,endAngle:-A*Yr/180,clockwise:C>=A})}}function Z0(t,e){var n=xj(e,c0),i=YC(t,{fromStat:{key:n},min:1}).w,r=i,a=0,o="20%",s="30%",l={};gI(t,n,(function(t){var e=Y0(t);l[e]||a++,l[e]=l[e]||{width:0,maxWidth:0};var n=$r(t.get("barWidth"),i),u=$r(t.get("barMaxWidth"),i),c=t.get("barGap"),h=t.get("barCategoryGap");n&&!l[e].width&&(n=Rr(r,n),l[e].width=n,r-=n),u&&(l[e].maxWidth=u),null!=c&&(s=c),null!=h&&(o=h)}));var u={},c=$r(o,i),h=$r(s,1),d=(r-c)/(a+(a-1)*h);d=Er(d,0),Object(x["each"])(l,(function(t,e){var n=t.maxWidth;n&&n<d&&(n=Rr(n,r),t.width&&(n=Rr(n,t.width)),r-=n,t.width=n,a--)})),d=(r-c)/(a+(a-1)*h),d=Er(d,0);var p,f=0;Object(x["each"])(l,(function(t,e){t.width||(t.width=d),p=t,f+=t.width*(1+h)})),p&&(f-=p.width*h);var g=-f/2;return Object(x["each"])(l,(function(t,e){u[e]=u[e]||{offset:g,width:t.width},g+=t.width*(1+h)})),u}function q0(t,e){W0(t,(function(){var n=xj(e,c0);Mj(t,n,e,c0),HI(n,mj(n))}))}var K0={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},Q0={splitNumber:5},J0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="polar",e}(bv);function t1(t){IM(r0),oE.registerAxisPointerClass("PolarAxisPointer",u0),t.registerCoordinateSystem("polar",D0),t.registerComponentModel(p0),t.registerComponentView(J0),mR(t,"angle",g0,K0),mR(t,"radius",y0,Q0),t.registerComponentView(z0),t.registerComponentView(G0),t.registerLayout(U0),q0(t,wj)}function e1(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},a=i.position,o=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===o?u.vertical[a]:l[0],"horizontal"===o?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};r.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[a],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),x["retrieve"](e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=t.get(["axisLabel","rotate"]);return r.labelRotate="top"===a?-d:d,r.z2=1,r}var n1=["splitArea","splitLine","breakArea"],i1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return f(e,t),e.prototype.render=function(e,n,i,r){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new vr;var s=e1(e),l=new lj(e,i,s);l.build(),a.add(this._axisGroup),a.add(l.group),x["each"](n1,(function(t){e.get([t,"show"])&&r1[t](this,this.group,this._axisGroup,e,i)}),this),Pb(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){uE(this)},e.type="singleAxis",e}(oE),r1={splitLine:function(t,e,n,i,r){var a=i.axis;if(!a.scale.isBlank()){var o=i.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=i.coordinateSystem.getRect(),h=a.isHorizontal(),d=[],p=0,f=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],v=0;v<f.length;++v){var m=a.toGlobalCoord(f[v].coord);h?(g[0]=m,g[1]=c.y,y[0]=m,y[1]=c.y+c.height):(g[0]=c.x,g[1]=m,y[0]=c.x+c.width,y[1]=m);var b=new Cm({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});Ob(b.shape,u);var _=p++%l.length;d[_]=d[_]||[],d[_].push(b)}var w=s.getLineStyle(["color"]);for(v=0;v<d.length;++v)e.add(Sb(d[v],{style:x["defaults"]({stroke:l[v%l.length]},w),silent:!0}))}},splitArea:function(t,e,n,i,r){lE(t,n,i,i)},breakArea:function(t,e,n,i,r){var a=bP(),o=i.axis.scale;a&&"ordinal"!==o.type&&a.rectCoordBuildBreakAxis(e,t,i,i.coordinateSystem.getRect(),r)}},a1=i1,o1=function(t){function e(e,n,i,r,a){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o.position=a||"bottom",o}return f(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(QC),s1=o1,l1=["single"],u1=function(){function t(t,e,n){this.type=mE,this.dimension="single",this.dimensions=l1,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=RT(t),a=new s1(i,ET(t,r,!0),[0,0],r,t.get("position"));a.onBand=eI(a.scale,t),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},t.prototype.update=function(t,e){var n=this._axis;zI(n,CI),qI(n)},t.prototype.resize=function(t,e){var n=Lp(t,e).refContainer;this._rect=Ap(t.getBoxLayoutParams(),n),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t,e,n){n=n||[];var i=this.getAxis();return n[0]=i.coordToData(i.toLocalCoord(t["horizontal"===i.orient?0:1])),n},t.prototype.dataToPoint=function(t,e,n){var i=this.getAxis(),r=this.getRect();n=n||[];var a="horizontal"===i.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=i.toGlobalCoord(i.dataToCoord(+t)),n[1-a]=0===a?r.y+r.height/2:r.x+r.width/2,n},t.prototype.convertToPixel=function(t,e,n){var i=c1(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=c1(e);return i===this?this.pointToData(n):null},t}();function c1(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var h1=u1;function d1(t,e){var n=[];return t.eachComponent(xE,(function(i,r){var a=new h1(i,t,e);a.name="single_"+r,a.resize(i,e),i.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if(t.get("coordinateSystem")===bE){var e=t.getReferringComponents(xE,eo).models[0],n=t.coordinateSystem=e&&e.coordinateSystem;n&&SI(n.getAxis(),t,mE)}})),n}var p1={create:d1,dimensions:l1},f1=p1,g1=["x","y"],y1=["width","height"],v1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var a=n.axis,o=a.coordinateSystem,s=b1(a),l=x1(o,s),u=x1(o,1-s),c=o.dataToPoint(e)[0],h=i.get("type");if(h&&"none"!==h){var d=yJ(i),p=m1[h](a,c,l,u,i.get("seriesDataIndices"),i.ecModel);p.style=d,t.graphicKey=p.type,t.pointer=p}var f=e1(n);_J(e,t,f,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=e1(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=xJ(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,a=r.coordinateSystem,o=b1(r),s=x1(a,o),l=[t.x,t.y];l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=x1(a,1-o),c=(u[1]+u[0])/2,h=[c,c];return h[o]=l[o],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(gJ),m1={line:function(t,e,n,i){var r=wJ([e,i[0]],[e,i[1]],b1(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n,i,r,a){var o=OJ(t,r,a),s=i[1]-i[0],l=TJ(e,n,o),u=l[0],c=l[1];return{type:"Rect",shape:SJ([u,i[0]],[c-u,s],b1(t))}}};function b1(t){return t.isHorizontal()?0:1}function x1(t,e){var n=t.getRect();return[n[g1[e]],n[g1[e]]+n[y1[e]]]}var _1=v1,w1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="single",e}(bv);function S1(t){IM(r0),oE.registerAxisPointerClass("SingleAxisPointer",_1),t.registerComponentView(w1),t.registerComponentView(a1),t.registerComponentModel(wE),mR(t,"single",wE,wE.defaultOption),t.registerCoordinateSystem("single",f1)}var M1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e,n,i){var r=Ep(e);t.prototype.init.apply(this,arguments),O1(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),O1(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:Xp.color.axisLine,width:1,type:"solid"}},itemStyle:{color:Xp.color.neutral00,borderWidth:1,borderColor:Xp.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:Xp.size.s,color:Xp.color.secondary},monthLabel:{show:!0,position:"start",margin:Xp.size.s,align:"center",formatter:null,color:Xp.color.secondary},yearLabel:{show:!0,position:null,margin:Xp.size.xl,formatter:null,color:Xp.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Hp);function O1(t,e){var n,i=t.cellSize;n=x["isArray"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=x["map"]([0,1],(function(t){return jp(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Rp(t,e,{type:"box",ignoreSize:r})}var T1=M1,I1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,a=r.getRangeInfo(),o=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,a,i),this._renderLines(t,a,o,i),this._renderYearText(t,a,o,i),this._renderMonthText(t,s,o,i),this._renderWeekText(t,s,a,o,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),a=i.getCellWidth(),o=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToCalendarLayout([s],!1).tl,u=new nu({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,a=t.coordinateSystem,o=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=a.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(a.getDateInfo(e)),r._firstDayPoints.push(a.dataToCalendarLayout([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,o,i)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),o,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),o,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Mm({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),a=[],o=0;o<7;o++){var s=i.getNextNDay(r.time,o),l=i.dataToCalendarLayout([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},e.prototype._formatterLabel=function(t,e){return Object(x["isString"])(t)&&t?Jd(t,e):Object(x["isFunction"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var a=e[0],o=e[1],s=["center","bottom"];"bottom"===i?(o+=r,s=["center","top"]):"left"===i?a-=r:"right"===i?(a+=r,s=["center","top"]):o-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var a=r.get("margin"),o=r.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new _u({z2:30,style:gh(r,{text:g}),silent:r.get("silent")});y.attr(this._yearTextPositionControl(y,h[o],n,o,a)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(a="center"),"start"===i&&(o="bottom")):(s+=r,e&&(o="middle"),"start"===i&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var a=r.get("nameMap"),o=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];a&&!Object(x["isString"])(a)||(a&&(e=nd(a)||e),a=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;o="start"===s?-o:o;for(var d="center"===l,p=r.get("silent"),f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),y=this._firstDayOfMonth[f];if(d){var v=this._firstDayPoints[f];g[h]=(v[h]+u[0][f+1][h])/2}var m=r.get("formatter"),b=a[+y.m-1],_={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},w=this._formatterLabel(m,_),S=new _u({z2:30,style:Object(x["extend"])(gh(r,{text:w}),this._monthTextPositionControl(g,d,n,s,o)),silent:p});i.add(S)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var a="center",o="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+i+(u?1:-1)*r[0]/2,a=u?"right":"left"):(l=l+i+(u?1:-1)*r[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderWeekText=function(t,e,n,i,r){var a=t.getModel("dayLabel");if(a.get("show")){var o=t.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),u=a.get("margin"),c=o.getFirstDayOfWeek();if(!l||Object(x["isString"])(l)){l&&(e=nd(l)||e);var h=e.get(["time","dayOfWeekShort"]);l=h||Object(x["map"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var d=o.getNextNDay(n.end.time,7-n.lweek).time,p=[o.getCellWidth(),o.getCellHeight()];u=$r(u,Math.min(p[1],p[0])),"start"===s&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=a.get("silent"),g=0;g<7;g++){var y=o.getNextNDay(d,g),v=o.dataToCalendarLayout([y.time],!1).center,m=g;m=Math.abs((g+c)%7);var b=new _u({z2:30,style:Object(x["extend"])(gh(a,{text:l[m]}),this._weekTextPositionControl(v,i,s,u,p)),silent:f});r.add(b)}}},e.type="calendar",e}(bv),C1=I1,A1=864e5,k1=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e,this._update(n,i)}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=pa(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),a=r<10?"0"+r:""+r,o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:a,day:o,time:t.getTime(),formatedDate:e+"-"+i+"-"+a,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];x["each"]([0,1],(function(t){u(r,t)&&(a[i[t]]=r[t]*o[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Ap(a,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}x["each"]([0,1],(function(t){u(r,t)||(r[t]=l[i[t]]/o[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e,n){n=n||[],x["isArray"](t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),r=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=r.start.time&&i.time<r.end.time+A1))return n[0]=n[1]=NaN,n;var o=i.day,s=this._getRangeInfo([r.start.time,a]).nthWeek;return"vertical"===this._orient?(n[0]=this._rect.x+o*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+o*this._sh+this._sh/2),n},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToLayout=function(t,e,n){n=n||{};var i=n.rect=n.rect||{},r=n.contentRect=n.contentRect||{},a=this.dataToPoint(t,e);return i.x=a[0]-this._sw/2,i.y=a[1]-this._sh/2,i.width=this._sw,i.height=this._sh,ue.copy(r,i),Fb(r,this._lineWidth/2,!0,!0),n},t.prototype.dataToCalendarLayout=function(t,e){var n=this.dataToPoint(t,e);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=D1(e);return i===this?i.dataToPoint(n):null},t.prototype.convertToLayout=function(t,e,n){var i=D1(e);return i===this?i.dataToLayout(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=D1(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(x["isArray"](e)&&1===e.length&&(e=e[0]),x["isArray"](e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/A1)-Math.floor(n[0].time/A1)+1,r=new Date(n[0].time),a=r.getDate(),o=n[1].date.getDate();r.setDate(a+i-1);var s=r.getDate();if(s!==o){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==o&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,a=new Date(i.start.time);return a.setDate(+i.start.d+r),this.getDateInfo(a)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var a=new t(r,e,n);i.push(a),r.coordinateSystem=a})),e.eachComponent((function(t,e){mp({targetModel:e,coordSysType:"calendar",coordSysProvider:bp})})),i},t.dimensions=["time","value"],t}();function D1(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var L1=k1;function P1(t){t.registerComponentModel(T1),t.registerComponentView(C1),t.registerCoordinateSystem("calendar",L1)}var j1={level:1,leaf:2,nonLeaf:3},N1={none:0,all:1,body:2,corner:3};function R1(t,e,n){var i=e[cb[n]].getCell(t);return!i&&Object(x["isNumber"])(t)&&t<0&&(i=e[cb[1-n]].getUnitLayoutInfo(n,Math.round(t))),i}function E1(t){var e=t||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function z1(t,e,n,i,r){B1(t[0],e,r,n,i,0),B1(t[1],e,r,n,i,1)}function B1(t,e,n,i,r,a){t[0]=1/0,t[1]=-1/0;var o=i[a],s=Object(x["isArray"])(o)?o:[o],l=s.length,u=!!n;if(l>=1?(V1(t,e,s,u,r,a,0),l>1&&V1(t,e,s,u,r,a,l-1)):t[0]=t[1]=NaN,u){var c=-r[cb[1-a]].getLocatorCount(a),h=r[cb[a]].getLocatorCount(a)-1;n===N1.body?c=Er(0,c):n===N1.corner&&(h=Rr(-1,h)),h<c&&(c=h=NaN),Object(x["eqNaN"])(t[0])&&(t[0]=c),Object(x["eqNaN"])(t[1])&&(t[1]=h),t[0]=Er(Rr(t[0],h),c),t[1]=Er(Rr(t[1],h),c)}}function V1(t,e,n,i,r,a,o){var s=R1(n[o],r,a);if(s){var l=s.id[cb[a]],u=l,c=q1(s);c&&(u+=c.span[cb[a]]-1),t[0]=Rr(t[0],l,u),t[1]=Er(t[1],l,u)}else t[0]=t[1]=NaN}function F1(t,e){return Object(x["eqNaN"])(t[e][0])||Object(x["eqNaN"])(t[e][1])}function H1(t,e,n,i){e=e||G1;for(var r=0;r<i;r++)e[r]=!1;while(1){var a=!1;for(r=0;r<i;r++){var o=n[r];!e[r]&&o.cellMergeOwner&&W1(t,o.locatorRange)&&(e[r]=!0,a=!0)}if(!a)break}}var G1=[];function W1(t,e){return!(!Y1(t[0],e[0])||!Y1(t[1],e[1]))&&(t[0][0]=Rr(t[0][0],e[0][0]),t[0][1]=Er(t[0][1],e[0][1]),t[1][0]=Rr(t[1][0],e[1][0]),t[1][1]=Er(t[1][1],e[1][1]),!0)}function Y1(t,e){return t[1]>=e[0]&&t[0]<=e[1]}function U1(t,e){t.id.set(e[0][0],e[1][0]),t.span.set(e[0][1]-t.id.x+1,e[1][1]-t.id.y+1)}function X1(t,e){t[0][0]=e[0][0],t[0][1]=e[0][1],t[1][0]=e[1][0],t[1][1]=e[1][1]}function $1(t,e,n,i){var r=R1(e[i][0],n,i),a=R1(e[i][1],n,i);t[cb[i]]=t[hb[i]]=NaN,r&&a&&(t[cb[i]]=r.xy,t[hb[i]]=a.xy+a.wh-r.xy)}function Z1(t,e,n,i){return t[cb[e]]=n,t[cb[1-e]]=i,t}function q1(t){return!t||t.type!==j1.leaf&&t.type!==j1.nonLeaf?null:t}function K1(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var Q1=function(){function t(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx="x"===t?0:1,this._model=e,this._uniqueValueGen=J1(t);var n=e.get("data",!0),i=e.get("length",!0);if(null==n||Object(x["isArray"])(n)||(n=[]),n)this._initByDimModelData(n);else if(null!=i){n=Array(i);for(var r=0;r<i;r++)n[r]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return t.prototype._initByDimModelData=function(t){var e=this,n=e._cells,i=e._levels,r=[],a=0;return e._leavesCount=o(t,0,0),void s();function o(t,n,s){var l=0;return t?(Object(x["each"])(t,(function(t,u){var c;Object(x["isString"])(t)?c={value:t}:Object(x["isObject"])(t)?(c=t,null==t.value||Object(x["isString"])(t.value)||(!0,c={value:null})):c={value:null};var h={type:j1.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new Et,span:Z1(new Et,e.dimIdx,1,1),option:c,xy:NaN,wh:NaN,dim:e,rect:K1()};a++,(r[n]||(r[n]=[])).push(h),i[s]||(i[s]={type:j1.level,xy:NaN,wh:NaN,option:null,id:new Et,dim:e});var d=o(c.children,n,s+1),p=Math.max(1,d);h.span[cb[e.dimIdx]]=p,l+=p,n+=p})),l):l}function s(){var t=[];while(n.length<a)for(var i=0;i<r.length;i++){var o=r[i].pop();if(o){o.ordinal=t.length;var s=o.option.value;t.push(s),n.push(o),e._uniqueValueGen.calcDupBase(s)}}e._uniqueValueGen.ensureValueUnique(t,n);var l=e._ordinalMeta=new DO({categories:t,needCollect:!1,deduplication:!1});e._scale=new lT({ordinalMeta:l});for(var u=0;u<e._leavesCount;u++){var c=e._cells[u];c.type=j1.leaf,c.span[cb[1-e.dimIdx]]=e._levels.length-c.level}e._initCellsId(),e._initLevelIdOptions()}},t.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:j1.level,xy:NaN,wh:NaN,option:null,id:new Et,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new DO({needCollect:!0,deduplication:!0,onCollect:function(e,n){var i=t._cells[n]={type:j1.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new Et,span:Z1(new Et,t.dimIdx,1,1),option:{value:e+""},xy:NaN,wh:NaN,dim:t,rect:K1()};t._leavesCount++,t._setCellId(i)}});t._scale=new lT({ordinalMeta:e})},t.prototype._setCellId=function(t){var e=this._levels.length,n=this.dimIdx;Z1(t.id,n,t.firstLeafLocator,t.level-e)},t.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;Object(x["each"])(this._cells,(function(n){Z1(n.id,e,n.firstLeafLocator,n.level-t)}))},t.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,n=this._model.get("levels",!0);n=Object(x["isArray"])(n)?n:[],Object(x["each"])(this._levels,(function(i,r){Z1(i.id,e,0,r-t),i.option=n[r]}))},t.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},t.prototype.resetLayoutIterator=function(t,e,n,i){if(t=t||new co,e===this.dimIdx){var r=this._leavesCount,a=null!=n?Math.max(0,n):0;i=null!=i?Math.min(i,r):r,t.reset(this._cells,a,a+i)}else{r=this._levels.length,a=null!=n?Math.max(0,n+r):0;i=null!=i?Math.min(i,r):r,t.reset(this._levels,a,a+i)}return t},t.prototype.resetCellIterator=function(t){return(t||new co).reset(this._cells,0)},t.prototype.resetLevelIterator=function(t){return(t||new co).reset(this._levels,0)},t.prototype.getLayout=function(t,e,n){var i=this.getUnitLayoutInfo(e,n);t[cb[e]]=i?i.xy:NaN,t[hb[e]]=i?i.wh:NaN},t.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},t.prototype.getCell=function(t){var e=this._scale.parse(t);return Object(x["eqNaN"])(e)?void 0:this._cells[e]},t.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t}();function J1(t){var e=t.toUpperCase(),n=new RegExp("^"+e+"([0-9]+)$"),i=0;function r(t){var e;null!=t&&(e=t.match(n))&&(i=Er(i,+e[1]+1))}function a(){return""+e+i++}function o(t,e){for(var n=Object(x["createHashMap"])(),i=0;i<t.length;i++){var r=t[i];null!=r&&null==n.get(r)||(t[i]=r=a(),e[i].option=Object(x["defaults"])({value:r},e[i].option)),n.set(r,!0)}}return{calcDupBase:r,ensureValueUnique:o}}var t2=function(){function t(t,e,n){this._model=e,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return t.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=Object(x["createHashMap"])(),n()),e;function n(){var e=[],n=t._model.getShallow("data");n&&!Object(x["isArray"])(n)&&(n=null),Object(x["each"])(n,(function(n,i){if(Object(x["isObject"])(n)&&Object(x["isArray"])(n.coord)){var r=E1([]),a=null;if(z1(r,a,n.coord,t._dims,n.coordClamp?N1[t._kind]:N1.none),!F1(r,0)&&!F1(r,1)){var o=n&&n.mergeCells,s={id:new Et,span:new Et,locatorRange:r,option:n,cellMergeOwner:o};U1(s,r),e.push(s)}}}));for(var r=[],a=0;a<e.length;a++){var o=e[a];if(o.cellMergeOwner){var s=o.locatorRange;H1(s,r,e,a);for(var l=0;l<a;l++)r[l]&&(e[l].cellMergeOwner=!1);if(s[0][0]!==o.id.x||s[1][0]!==o.id.y){o.cellMergeOwner=!1;var u=Object(x["extend"])({},o.option);u.coord=null;var c={id:new Et,span:new Et,locatorRange:s,option:u,cellMergeOwner:!0};U1(c,s),e.push(c)}}}Object(x["each"])(e,(function(e){var n=i(e.id.x,e.id.y);if(e.cellMergeOwner&&(n.cellMergeOwner=!0,n.span=e.span,n.locatorRange=e.locatorRange,n.spanRect=K1(),t._cellMergeOwnerList.push(n)),e.cellMergeOwner||e.option)for(var r=0;r<e.span.y;r++)for(var a=0;a<e.span.x;a++){var o=i(e.id.x+a,e.id.y+r);o.option=e.option,e.cellMergeOwner&&(o.inSpanOf=n)}}))}function i(t,n){var i=n2(t,n),r=e.get(i);return r||(r=e.set(i,{id:new Et(t,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),r}},t.prototype.getCell=function(t){return this._ensureCellMap().get(n2(t[0],t[1]))},t.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},t.prototype.expandRangeByCellMerge=function(t){if(!F1(t,0)&&!F1(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){e2[0]=t[0][0],e2[1]=t[1][0];var e=this.getCell(e2),n=e&&e.inSpanOf;if(n)return void X1(t,n.locatorRange)}var i=this._cellMergeOwnerList;H1(t,null,i,i.length)},t}(),e2=[];function n2(t,e){return t+"|"+e}var i2={show:!0,color:Xp.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function r2(t){return{color:"none",borderWidth:1,borderColor:t?"none":Xp.color.borderTint}}var a2={show:!0,label:i2,itemStyle:r2(!1),silent:void 0,dividerLineStyle:{width:1,color:Xp.color.border}},o2={label:i2,itemStyle:r2(!1),silent:void 0},s2={label:i2,itemStyle:r2(!0),silent:void 0},l2={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:a2,y:a2,body:o2,corner:s2,backgroundStyle:{color:"none",borderColor:Xp.color.axisLine,borderWidth:1},triggerEvent:!1},u2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(){var t=this._dimModels={x:new c2(this.get("x",!0)||{}),y:new c2(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var e=t.x.dim=new Q1("x",t.x),n=t.y.dim=new Q1("y",t.y),i={x:e,y:n};this._body=new t2("body",new Vh(this.getShallow("body")),i),this._corner=new t2("corner",new Vh(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=l2,e}(Hp),c2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e}(Vh),h2=u2,d2=Math.round,p2=0,f2=99,g2={normal:25,special:100},y2={normal:50,special:125},v2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e){this.group.removeAll();var n=this.group,i=t.coordinateSystem,r=i.getRect(),a=t.getDimensionModel("x"),o=t.getDimensionModel("y"),s=a.dim,l=o.dim;m2(n,t,e),b2(n,t,s,l,e);var u=t.getShallow("borderZ2",!0),c=Object(x["retrieve2"])(u,f2),h=c-1,d=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var f=O2(r.clone(),d,p2),g=O2(r.clone(),p,c);f.silent=!0,g.silent=!0,n.add(f),n.add(g);var y=s.getUnitLayoutInfo(0,0),v=l.getUnitLayoutInfo(1,0);y&&v&&(s.shouldShow()&&n.add(T2({x1:r.x,y1:v.xy,x2:r.x+r.width,y2:v.xy},a.getModel("dividerLineStyle").getLineStyle(),h)),l.shouldShow()&&n.add(T2({x1:y.xy,y1:r.y,x2:y.xy,y2:r.y+r.height},o.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e}(bv);function m2(t,e,n){function i(i){var r=e.getDimensionModel(cb[i]),a=r.dim;if(a.shouldShow())for(var o=r.getModel("itemStyle"),s=r.getModel("label"),l=e.getShallow("tooltip",!0),u=[],c=a.resetCellIterator();c.next();){var h=c.item,d={};ue.copy(d,h.rect),M(u,h.id.x,h.id.y),x2(u,e,t,n,h.option,o,s,r,d,h.option.value,y2,l,0===i?"x":"y")}}i(0),i(1)}function b2(t,e,n,i,r){function a(n,i,a,o){var s=new Vh(e.getShallow(n,!0)),l=s.getModel("itemStyle"),u=s.getModel("label"),c=new co,h=new co,d=[],p=e.getShallow("tooltip",!0);for(o.resetLayoutIterator(h,1);h.next();)for(a.resetLayoutIterator(c,0);c.next();){var f=c.item,g=h.item;M(d,f.id.x,g.id.y);var y=i.getCell(d);if(!y||!y.inSpanOf||y.inSpanOf===y){var v={};y&&y.span?ue.copy(v,y.spanRect):(f.dim.getLayout(v,0,d[0]),g.dim.getLayout(v,1,d[1]));var m=y?y.option:null;x2(d,e,t,r,m,l,u,s,v,m?m.value:null,g2,p,n)}}}a("body",e.getBody(),n,i),n.shouldShow()&&i.shouldShow()&&a("corner",e.getCorner(),i,n)}function x2(t,e,n,i,r,a,o,s,l,u,c,h,d){var p;w2.option=r?r.itemStyle:null,w2.parentModel=a,_2.option=r,_2.parentModel=s;var f=Object(x["retrieve2"])(_2.getShallow("z2"),r&&r.itemStyle?c.special:c.normal),g=h&&h.show,y=O2(l,w2.getItemStyle(),f);n.add(y);var v,m=_2.get("cursor");if(null!=m&&y.attr("cursor",m),null!=u){var b=u+"";S2.option=r?r.label:null,S2.parentModel=o,S2.ecModel=i;var _=S2.getShallow("formatter");if(_){var w={componentType:"matrix",componentIndex:e.componentIndex,name:b,value:u,coord:t.slice(),$vars:["name","value","coord"]};if(Object(x["isString"])(_))b=Jd(_,w);else if(Object(x["isFunction"])(_)){var S=_(w);null!=S&&(b=S+"")}}if(ph(y,{normal:S2},{defaultText:b,autoOverflowArea:!0,layoutRect:Object(x["clone"])(y.shape)}),v=y.getTextContent(),v){v.z2=f+1;var M=v.style;if(M&&M.overflow&&"none"!==M.overflow&&M.lineOverflow){var O={};ue.copy(O,l),Fb(O,((null===(p=y.style)||void 0===p?void 0:p.lineWidth)||0)/2,!0,!0),y.updateInnerText(),v.getLocalTransform(M2),jt(M2,M2),ue.applyTransform(O,O,M2),v.setClipPath(new nu({shape:O}))}}Wb({el:y,componentModel:e,itemName:b,itemTooltipOption:h,formatterParamsExtra:{xyLocator:t.slice()}})}var T=e.get("triggerEvent",!0);if(v){var I=S2.get("silent");null==I&&(I=!(T||g)),v.silent=I,v.ignoreHostSilent=!0}var C=_2.get("silent");if(null==C&&(C=!y.style||"none"===y.style.fill||!y.style.fill),y.silent=C,T&&y){var A={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:d,name:v&&v.style?v.style.text:void 0,value:u,coord:t.slice()};wu(y).eventData=A}ho(_2),ho(w2),ho(S2)}var _2=new Vh,w2=new Vh,S2=new Vh,M2=[];function O2(t,e,n){var i=e.lineWidth;if(i){var r=t.x+t.width,a=t.y+t.height;t.x=Ql(t.x,i,!0),t.y=Ql(t.y,i,!0),t.width=Ql(r,i,!0)-t.x,t.height=Ql(a,i,!0)-t.y}return new nu({shape:t,style:e,z2:n})}function T2(t,e,n){var i=e.lineWidth;return i&&(d2(2*t.x1)===d2(2*t.x2)&&(t.x1=t.x2=Ql(t.x1,i,!0)),d2(2*t.y1)===d2(2*t.y2)&&(t.y1=t.y2=Ql(t.y1,i,!0))),new Cm({shape:t,style:e,silent:!0,z2:n})}var I2=v2,C2=function(){function t(e,n,i){this.dimensions=t.dimensions,this.type="matrix",this._model=e;var r=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:r.x.dim,y:r.y.dim},this._resize(e,i)}return t.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},t.create=function(e,n){var i=[];return e.eachComponent("matrix",(function(r){var a=new t(r,e,n);i.push(a),r.coordinateSystem=a})),e.eachComponent((function(t,e){mp({targetModel:e,coordSysType:"matrix",coordSysProvider:bp})})),i},t.prototype.getRect=function(){return this._rect},t.prototype._resize=function(t,e){var n=this._dims,i=this._dimModels,r=this._rect=Ap(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});L2(i,n,r,0),L2(i,n,r,1),P2(0,n),P2(1,n),j2(this._model.getBody(),n),j2(this._model.getCorner(),n)},t.prototype.dataToPoint=function(t,e,n){return n=n||[],this.dataToLayout(t,e,A2),n[0]=A2.rect.x+A2.rect.width/2,n[1]=A2.rect.y+A2.rect.height/2,n},t.prototype.dataToLayout=function(t,e,n){var i=this._dims;n=n||{};var r=n.rect=n.rect||{};r.x=r.y=r.width=r.height=NaN;var a=n.matrixXYLocatorRange=E1(n.matrixXYLocatorRange);return Object(x["isArray"])(t)?(z1(a,null,t,i,Object(x["retrieve2"])(e&&e.clamp,N1.none)),e&&e.ignoreMergeCells||(e&&e.clamp===N1.corner||this._model.getBody().expandRangeByCellMerge(a),e&&e.clamp===N1.body||this._model.getCorner().expandRangeByCellMerge(a)),$1(r,a,i,0),$1(r,a,i,1),n):n},t.prototype.pointToData=function(t,e,n){var i=this._dims;return F2(V2,0,i,t,e&&e.clamp),F2(V2,1,i,t,e&&e.clamp),n=n||[],n[0]=n[1]=NaN,V2.y===B2.inCorner&&V2.x===B2.inBody?H2(V2,n,0,i):V2.x===B2.inCorner&&V2.y===B2.inBody?H2(V2,n,1,i):(G2(V2,n,0,i),G2(V2,n,1,i)),n},t.prototype.convertToPixel=function(t,e,n,i){var r=z2(e);return r===this?r.dataToPoint(n,i):void 0},t.prototype.convertToLayout=function(t,e,n,i){var r=z2(e);return r===this?r.dataToLayout(n,i):void 0},t.prototype.convertFromPixel=function(t,e,n,i){var r=z2(e);return r===this?r.pointToData(n,i):void 0},t.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},t.dimensions=["x","y","value"],t}(),A2={rect:K1()},k2=new co,D2=new co;function L2(t,e,n,i){for(var r=1-i,a=e[cb[i]],o=e[cb[r]],s=o.shouldShow(),l=a.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,i);u.next();)u.item.wh=u.item.xy=NaN;for(var c=n[hb[i]],h=a.getLocatorCount(i)+o.getLocatorCount(i),d=new Vh,p=o.resetLevelIterator();p.next();)d.option=p.item.option,d.parentModel=t[cb[r]],y(p.item,s?d.get("levelSize"):0);for(var f=new Vh,g=a.resetCellIterator();g.next();)g.item.type===j1.leaf&&(f.option=g.item.option,f.parentModel=void 0,y(g.item,f.get("size")));function y(t,e){var r=R2(e,i,n);Object(x["eqNaN"])(r)||(t.wh=E2(r,c),c=E2(c-t.wh),h--)}var v=h?c/h:0,m=!h&&c>=1,b=n[cb[i]],_=a.getLocatorCount(i)-1,w=new co;for(o.resetLayoutIterator(w,i);w.next();)S(w.item);for(a.resetLayoutIterator(w,i);w.next();)S(w.item);function S(t){Object(x["eqNaN"])(t.wh)&&(t.wh=v),t.xy=b,t.id[cb[i]]!==_||m||(t.wh=n[cb[i]]+n[hb[i]]-t.xy),b+=t.wh}}function P2(t,e){for(var n=e[cb[t]].resetCellIterator();n.next();){var i=n.item;N2(i.rect,t,i.id,i.span,e),N2(i.rect,1-t,i.id,i.span,e),i.type===j1.nonLeaf&&(i.xy=i.rect[cb[t]],i.wh=i.rect[hb[t]])}}function j2(t,e){t.travelExistingCells((function(t){var n=t.span;if(n){var i=t.spanRect,r=t.id;N2(i,0,r,n,e),N2(i,1,r,n,e)}}))}function N2(t,e,n,i,r){t[hb[e]]=0;var a=n[cb[e]],o=a<0?r[cb[1-e]]:r[cb[e]],s=o.getUnitLayoutInfo(e,n[cb[e]]);if(t[cb[e]]=s.xy,t[hb[e]]=s.wh,i[cb[e]]>1){var l=o.getUnitLayoutInfo(e,n[cb[e]]+i[cb[e]]-1);t[hb[e]]=l.xy+l.wh-s.xy}}function R2(t,e,n){var i=qr(t,n[hb[e]]);return E2(i,n[hb[e]])}function E2(t,e){return Math.max(Math.min(t,Object(x["retrieve2"])(e,1/0)),0)}function z2(t){var e=t.matrixModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var B2={inBody:1,inCorner:2,outside:3},V2={x:null,y:null,point:[]};function F2(t,e,n,i,r){var a=n[cb[e]],o=n[cb[1-e]],s=a.getUnitLayoutInfo(e,a.getLocatorCount(e)-1),l=a.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),c=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,h=t.point[e]=i[e];if(l||c)if(r!==N1.body)if(r!==N1.corner){var d=l?l.xy:c?c.xy+c.wh:NaN,p=u?u.xy:d,f=s?s.xy+s.wh:d;if(h<p){if(!r)return void(t[cb[e]]=B2.outside);h=p}else if(h>f){if(!r)return void(t[cb[e]]=B2.outside);h=f}t.point[e]=h,t[cb[e]]=d<=h&&h<=f?B2.inBody:p<=h&&h<=d?B2.inCorner:B2.outside}else c?(t[cb[e]]=B2.inCorner,h=Rr(c.xy+c.wh,Er(u.xy,h)),t.point[e]=h):t[cb[e]]=B2.outside;else l?(t[cb[e]]=B2.inBody,h=Rr(s.xy+s.wh,Er(l.xy,h)),t.point[e]=h):t[cb[e]]=B2.outside;else t[cb[e]]=B2.outside}function H2(t,e,n,i){var r=1-n;if(t[cb[n]]!==B2.outside)for(i[cb[n]].resetCellIterator(D2);D2.next();){var a=D2.item;if(Y2(t.point[n],a.rect,n)&&Y2(t.point[r],a.rect,r))return e[n]=a.ordinal,void(e[r]=a.id[cb[r]])}}function G2(t,e,n,i){if(t[cb[n]]!==B2.outside){var r=t[cb[n]]===B2.inCorner?i[cb[1-n]]:i[cb[n]];for(r.resetLayoutIterator(k2,n);k2.next();)if(W2(t.point[n],k2.item))return void(e[n]=k2.item.id[cb[n]])}}function W2(t,e){return e.xy<=t&&t<=e.xy+e.wh}function Y2(t,e,n){return e[cb[n]]<=t&&t<=e[cb[n]]+e[hb[n]]}var U2=C2;function X2(t){t.registerComponentModel(h2),t.registerComponentView(I2),t.registerCoordinateSystem("matrix",U2)}function $2(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function Z2(t,e){var n;return x["each"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function q2(t,e,n){var i=x["extend"]({},n),r=t[e],a=n.$action||"merge";"merge"===a?r?(x["merge"](r,i,!0),Rp(r,i,{ignoreSize:!0}),zp(n,r),J2(n,r),J2(n,r,"shape"),J2(n,r,"style"),J2(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===a?t[e]=i:"remove"===a&&r&&(t[e]=null)}var K2=["transition","enterFrom","leaveTo"],Q2=K2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function J2(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?K2:Q2,r=0;r<i.length;r++){var a=i[r];null==t[a]&&null!=e[a]&&(t[a]=e[a])}}function t5(t,e){if(t&&(t.hv=e.hv=[Z2(e,["left","right"]),Z2(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var e5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return f(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,a=[];this._flatten(i,a,null);var o=ja(r,a,"normalMerge"),s=this._elOptionsToUpdate=[];x["each"](o,(function(t,e){var n=t.newOption;n&&(s.push(n),$2(t,n),q2(r,e,n),t5(r[e],n))}),this),n.elements=x["filter"](r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){x["each"](t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Hp),n5={path:null,compoundPath:null,group:vr,image:Xl,text:_u},i5=Ka(),r5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){this._elMap=x["createHashMap"]()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),a=t.get("zlevel");x["each"](e,(function(e){var o=Ga(e.id,null),s=null!=o?n.get(o):null,l=Ga(e.parentId,null),u=null!=l?n.get(l):i,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&WK(h,c,!!p,!!d)){var f=YK(h,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=u5(e);var y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var b=!s,x=s;b?x=o5(o,u,e.type,n):(x&&(i5(x).isNew=!1),mQ(x)),x&&(tQ(x,g,t,{isInit:b}),l5(x,e,r,a))}else if(m){s5(s,e,n,t);var _=o5(o,u,e.type,n);_&&(tQ(_,g,t,{isInit:!0}),l5(_,e,r,a))}else"remove"===y&&(eQ(s,e),s5(s,e,n,t));var w=n.get(o);if(w&&d)if(v){var S=w.getTextContent();S?S.attr(d):w.setTextContent(new _u(d))}else m&&w.setTextContent(new _u(d));if(w){var M=e.clipPath;if(M){var O=M.type,T=void 0;b=!1;if(v){var I=w.getClipPath();b=!I||i5(I).type!==O,T=b?a5(O):I}else m&&(b=!0,T=a5(O));w.setClipPath(T),tQ(T,M,t,{isInit:b}),bQ(T,M.keyframeAnimation,t)}var C=i5(w);w.setTextConfig(p),C.option=e,c5(w,t,e),Wb({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),bQ(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,a=e.getWidth(),o=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=Ga(u.id,null),h=null!=c?r.get(c):null;if(h&&h.isGroup){var d=h.parent,p=d===i,f=i5(h),g=i5(d);f.width=$r(f.option.width,p?a:g.width)||0,f.height=$r(f.option.height,p?o:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=Ga(u.id,null),h=null!=c?r.get(c):null;if(h){d=h.parent,g=i5(d);var y=d===i?{width:a,height:o}:{width:g.width,height:g.height},v={},m=Pp(h,u,y,null,{hv:u.hv,boundingMode:u.bounding},v);if(!i5(h).isNew&&m){for(var b=u.transition,_={},w=0;w<s.length;w++){var S=s[w],M=v[S];b&&(iQ(b)||x["indexOf"](b,S)>=0)?_[S]=M:h[S]=M}nh(h,_,t,0)}else h.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){s5(n,i5(n).option,e,t._lastGraphicModel)})),this._elMap=x["createHashMap"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(bv);function a5(t){var e=x["hasOwn"](n5,t)?n5[t]:bb(t);var n=new e({});return i5(n).type=t,n}function o5(t,e,n,i){var r=a5(n);return e.add(r),i.set(t,r),i5(r).id=t,i5(r).isNew=!0,r}function s5(t,e,n,i){var r=t&&t.parent;r&&("group"===t.type&&t.traverse((function(t){s5(t,e,n,i)})),nQ(t,e,i),n.removeKey(i5(t).id))}function l5(t,e,n,i){t.isGroup||x["each"]([["cursor",Ls.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];x["hasOwn"](e,i)?t[i]=x["retrieve2"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),x["each"](x["keys"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=x["isFunction"](i)?i:null}})),x["hasOwn"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function u5(t){return t=x["extend"]({},t),x["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(wp),(function(e){delete t[e]})),t}function c5(t,e,n){var i=wu(t).eventData;t.silent||t.ignore||i||(i=wu(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function h5(t){t.registerComponentModel(e5),t.registerComponentView(r5),t.registerPreprocessor((function(t){var e=t.graphic;Object(x["isArray"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var d5=["x","y","radius","angle","single"],p5=Ka(),f5=["cartesian2d","polar","singleAxis"];function g5(t){var e=t.get("coordinateSystem");return Object(x["indexOf"])(f5,e)>=0}function y5(t){return t+"Axis"}function v5(t,e){var n,i=Object(x["createHashMap"])(),r=[],a=Object(x["createHashMap"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",o)}while(n);function o(t){!a.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){a.set(t.uid,!0),r.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function m5(t){var e=t.ecModel,n={infoList:[],infoMap:Object(x["createHashMap"])()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(y5(t),i);if(r){var a=r.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(r)}}})),n}function b5(t){var e=p5(S_(t));return e.axisProxyMap||(e.axisProxyMap=Object(x["createHashMap"])())}function x5(t){if(t)return b5(t.ecModel).get(t.uid)}function _5(t,e){b5(t.ecModel).set(t.uid,e)}function w5(t,e){var n=e.getAxisModel().axis.__alignTo;return n&&t.getAxisProxy(n.dim,n.model.componentIndex)?x5(n.model):null}var S5=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),M5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return f(e,t),e.prototype.init=function(t,e,n){var i=O5(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=O5(t);Object(x["merge"])(this.option,t,!0),Object(x["merge"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(x["each"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(x["createHashMap"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(x["each"])(d5,(function(n){var i=this.getReferringComponents(y5(n),no);if(i.specified){e=!0;var r=new S5;Object(x["each"])(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x",a=n.findComponents({mainType:r+"Axis"});o(a,r)}if(i){a=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});o(a,"single")}function o(e,n){var r=e[0];if(r){var a=new S5;if(a.add(r.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var o=r.getReferringComponents("grid",eo).models[0];o&&Object(x["each"])(e,(function(t){r.componentIndex!==t.componentIndex&&o===t.getReferringComponents("grid",eo).models[0]&&a.add(t.componentIndex)}))}}}i&&Object(x["each"])(d5,(function(e){if(i){var r=n.findComponents({mainType:y5(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var a=new S5;a.add(r[0].componentIndex),t.set(e,a),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(x["each"])([["start","startValue"],["end","endValue"]],(function(i,r){var a=null!=t[i[0]],o=null!=t[i[1]];a&&!o?e[r]="percent":!a&&o?e[r]="value":n?e[r]=n[r]:a&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(y5(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(x["each"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){return x5(this.getAxisModel(t,e))},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(y5(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(x["each"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(x["each"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getWindow().value;var n=this.findRepresentativeAxisProxy();return n?n.getWindow().value:void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return x5(t);for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],a=this._targetAxisInfoMap.get(r),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(r,a.indexList[o]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Hp);function O5(t){var e={};return Object(x["each"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var T5=M5,I5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.select",e}(T5),C5=I5,A5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(bv),k5=A5,D5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.select",e}(k5),L5=D5,P5=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getWindow=function(){return Object(x["clone"])(this._window)},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(g5(e)){var n=y5(this._dimName),i=e.getReferringComponents(n,eo).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Object(x["clone"])(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._extent,i=this.getAxisModel().axis,r=i.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],c=[!1,!1];Object(x["each"])(["start","end"],(function(i,a){var h=t[i],d=t[i+"Value"];"percent"===o[a]?(null==h&&(h=s[a]),d=Xr(h,s,n),c[a]=!0):(e=!0,null==d?d=n[a]:(d=r.parse(d),r.sanitize&&(d=r.sanitize(d,n))),h=Xr(d,n,s)),u[a]=null==d||isNaN(d)?n[a]:d,l[a]=null==h||isNaN(h)?s[a]:h})),ea(u),ea(l);var h=this._minMaxSpan;function d(t,e,n,i,r){var a=r?"Span":"ValueSpan";CU(0,t,n,"all",h["min"+a],h["max"+a]);for(var o=0;o<2;o++)e[o]=Xr(t[o],n,i,!0),r&&(e[o]=e[o],c[o]=!0);_o(e)}e?d(u,l,n,s,!1):d(l,u,s,n,!0);var p=QO(r)||qO(r),f=i.getExtent(),g=zr(f[1]-f[0]),y=p?0:aa(u,g,.5);Object(x["each"])([[0,Fr],[1,Vr]],(function(t){var e=t[0],i=t[1];c[e]&&isFinite(y)&&(u[e]=Jr(u[e],y),u[e]=Rr(n[1],Er(n[0],u[e])),l[e]===s[e]&&(u[e]=n[e],p&&(u[e]=i(u[e]))))})),_o(u);var v=[Xr(u[0],n,s,!0),Xr(u[1],n,s,!0)];return _o(v),{value:u,percent:l,percentInverted:v,valuePrecision:y}},t.prototype.reset=function(t,e){if(this.hostedBy(t)){var n=this.getAxisModel().axis;zI(n,AI);var i=n.scale.rawExtentInfo;this._extent=i.makeNoZoom(),this._updateMinMaxSpan();var r=t.settledOption;e&&(r=Object(x["defaults"])({start:e[0],end:e[1]},r));var a=this._window=this.calculateDataWindow(r),o=a.percent,s=a.value;0!==o[0]&&i.setZoomMM(0,s[0]),100!==o[1]&&i.setZoomMM(1,s[1])}},t.prototype.filterData=function(t,e){if(this.hostedBy(t)){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),a=this._window.value;"none"!==r&&Object(x["each"])(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var s=e.getStore(),l=Object(x["map"])(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,o=0;o<i.length;o++){var u=s.get(l[o],t),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(r=!0),h&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else Object(x["each"])(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return o(t)?t:NaN})));else{var i={};i[n]=a,e.selectRange(i)}}));Object(x["each"])(i,(function(t){e.setApproximateExtent(a,t)}))}}))}function o(t){return t>=a[0]&&t<=a[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._extent;Object(x["each"])(["min","max"],(function(i){var r=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?r=Xr(n[0]+a,n,[0,100],!0):null!=r&&(a=Xr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=a}),this)},t}(),j5=P5,N5={dirtyOnOverallProgress:!0,getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var a=t.getComponent(y5(i),r);e(i,r,a,n)}))}))}var n=[];e((function(e,i,r,a){if(!x5(r)){var o=new j5(e,i,a,t);n.push(o),_5(r,o)}}));var i=Object(x["createHashMap"])();return Object(x["each"])(n,(function(t){Object(x["each"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){var n=[];t.eachTargetAxis((function(e,i){var r=t.getAxisProxy(e,i),a=w5(t,r);a?n.push([r,a]):r.reset(t,null)})),Object(x["each"])(n,(function(e){e[0].reset(t,e[1].getWindow().percentInverted)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getWindow(),i=n.percent,r=n.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:r[0],endValue:r[1]})}}))}},R5=N5;function E5(t){t.registerAction("dataZoom",(function(t,e){var n=v5(e,t);Object(x["each"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var z5=wo();function B5(t){z5(t,(function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,R5),E5(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))}))}function V5(t){t.registerComponentModel(C5),t.registerComponentView(L5),B5(t)}var F5=function(){function t(){}return t}(),H5={};function G5(t,e){H5[t]=e}function W5(t){return H5[t]}var Y5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e,n,i){var r=i.getTheme().get("toolbox"),a=r?r.feature:null;a&&(this._themeFeatureOption=Object(x["extend"])({},a),r.feature={}),t.prototype.init.call(this,e,n,i),a&&(r.feature=a)},e.prototype.optionUpdated=function(){Object(x["each"])(this.option.feature,(function(t,e){var n=this._themeFeatureOption,i=W5(e);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),n&&n[e]&&(Object(x["merge"])(t,n[e]),n[e]=null),Object(x["merge"])(t,i.defaultOption))}),this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:Xp.color.border,borderRadius:0,borderWidth:0,padding:Xp.size.m,itemSize:15,itemGap:Xp.size.s,showTitle:!0,iconStyle:{borderColor:Xp.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:Xp.color.accent70}},tooltip:{show:!1,position:"bottom"}},e}(Hp),U5=Y5;function X5(t,e){var n=$d(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var r=new nu({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:i,silent:!0,z2:-1});return r}var $5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var a=+t.get("itemSize"),o="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features=Object(x["createHashMap"])()),u=[];Object(x["each"])(s,(function(t,e){u.push(e)})),new DM(this._featureNames||[],u).add(f).update(f).remove(Object(x["curry"])(f,null)).execute(),this._featureNames=Object(x["filter"])(u,(function(t){return l.hasKey(t)}));var c=Lp(t,n).refContainer,h=t.getBoxLayoutParams(),d=t.get("padding"),p=Ap(h,c,d);Op(t.get("orient"),r,t.get("itemGap"),p.width,p.height),Pp(r,h,c,d),r.add(X5(r.getBoundingRect(),t)),o||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),o=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Object(x["isFunction"])(l)&&e){var u=l.style||(l.style={}),c=Wi(e,_u.makeFont(u)),h=t.x+r.x,d=t.y+r.y+a,p=!1;d+c.height>n.getHeight()&&(o.position="top",p=!0);var f=p?-5-c.height:a+10;h+c.width/2>n.getWidth()?(o.position=["100%",f],u.align="right"):h-c.width/2<0&&(o.position=[0,f],u.align="left")}}))}function f(r,a){var o,c=null!=r&&null==a,h=null!=r&&null!=a,d=null==r,p=c||h?u[r]:u[a],f=s[p],y=c||h?new Vh(f,t,e):null,v=y&&y.get("show");if(c){if(!v)return;if(Z5(p))o={onclick:y.option.onclick,featureName:p};else{var m=W5(p);if(!m)return;o=new m}l.set(p,o)}else o=l.get(p);if(d||!v)return q5(o)&&o.dispose&&o.dispose(e,n),void l.removeKey(p);i&&null!=i.newTitle&&i.featureName===p&&(f.title=i.newTitle),c&&(o.uid=Hh("toolbox-feature")),o.model=y,o.ecModel=e,o.api=n,g(y,o,p),y.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?wc:Sc)(i[t])},q5(o)&&o.render&&o.render(y,e,n,i)}function g(i,s,l){var u,c,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof F5&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};Object(x["isString"])(p)?(u={},u[l]=p):u=p,Object(x["isString"])(f)?(c={},c[l]=f):c=f;var g=i.iconPaths={};Object(x["each"])(u,(function(l,u){var p=Rb(l,{},{x:-a/2,y:-a/2,width:a,height:a});p.setStyle(h.getItemStyle());var f=p.ensureState("emphasis");f.style=d.getItemStyle();var y=new _u({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Sh({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(y),Wb({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=d.getItemStyle(),i=o?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:d.get("textFill")||e.fill||e.stroke||Xp.color.neutral99,backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===i.get(["iconStatus",u])?wc:Sc)(p),r.add(p),p.on("click",Object(x["bind"])(s.onclick,s,e,n,u)),g[u]=p}))}},e.prototype.updateView=function(t,e,n,i){Object(x["each"])(this._features,(function(t){t&&t instanceof F5&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.dispose=function(t,e){Object(x["each"])(this._features,(function(n){n&&n instanceof F5&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(bv);function Z5(t){return 0===t.indexOf("my")}function q5(t){return t instanceof F5}var K5=$5,Q5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),a=r?"svg":n.get("type",!0)||"png",o=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||Xp.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=b.browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=o.split(","),u=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=i+"."+a;if(window.navigator.msSaveOrOpenBlob){var d=c.length,p=new Uint8Array(d);while(d--)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),y.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var m=n.get("lang"),x='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',_=window.open();_.document.write(x),_.document.title=i}else{var w=document.createElement("a");w.download=i+"."+a,w.target="_blank",w.href=o;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:Xp.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(F5),J5=Q5,t3="__ec_magicType_stack__",e3=[["line","bar"],["stack"]],n3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return x["each"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(i3[n]){var a,o={series:[]},s=function(t){var e=t.subType,r=t.id,a=i3[n](e,r,t,i);a&&(x["defaults"](a,t.option),o.series.push(a));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=t.getReferringComponents(c,eo).models[0],d=h.componentIndex;o[c]=o[c]||[];for(var p=0;p<=d;p++)o[c][d]=o[c][d]||{};o[c][d].boundaryGap="bar"===n}}};x["each"](e3,(function(t){x["indexOf"](t,n)>=0&&x["each"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(a=x["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:a,featureName:"magicType"})}},e}(F5),i3={line:function(t,e,n,i){if("bar"===t)return x["merge"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return x["merge"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===t3;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),x["merge"]({id:e,stack:r?"":t3},i.get(["option","stack"])||{},!0)}};cM({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var r3=n3,a3=new Array(60).join("-"),o3="\t";function s3(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var a=r.getBaseAxis();if("category"===a.type){var o=fj(a);e[o]||(e[o]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[o].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function l3(t){var e=[];return x["each"](t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis,a=r.dim,o=[" "].concat(x["map"](t.series,(function(t){return t.name}))),s=[i.model.getCategories()];x["each"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(a),(function(t){return t})))}));for(var l=[o.join(o3)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(o3))}e.push(l.join("\n"))})),e.join("\n\n"+a3+"\n\n")}function u3(t){return x["map"](t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],a=e.getName(r),o=0;o<t-1;o++)i[o]=arguments[o];n.push((a?a+o3:"")+i.join(o3))})),n.join("\n")})).join("\n\n"+a3+"\n\n")}function c3(t){var e=s3(t);return{value:x["filter"]([l3(e.seriesGroupByCategoryAxis),u3(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+a3+"\n\n"),meta:e.meta}}function h3(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function d3(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(o3)>=0)return!0}var p3=new RegExp("["+o3+"]+","g");function f3(t){for(var e=t.split(/\n+/g),n=h3(e.shift()).split(p3),i=[],r=x["map"](n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var o=h3(e[a]).split(p3);i.push(o.shift());for(var s=0;s<o.length;s++)r[s]&&(r[s].data[a]=o[s])}return{series:r,categories:i}}function g3(t){for(var e=t.split(/\n+/g),n=h3(e.shift()),i=[],r=0;r<e.length;r++){var a=h3(e[r]);if(a){var o=a.split(p3),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function y3(t,e){var n=t.split(new RegExp("\n*"+a3+"\n*","g")),i={series:[]};return x["each"](n,(function(t,n){if(d3(t)){var r=f3(t),a=e[n],o=a.axisDim+"Axis";a&&(i[o]=i[o]||[],i[o][a.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=g3(t);i.series.push(r)}})),i}var v3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||Xp.color.neutral00;var a=document.createElement("h4"),o=i.get("lang")||[];a.innerHTML=o[0]||i.get("title"),a.style.cssText="margin:10px 20px",a.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=c3(t);if(x["isFunction"](u)){var d=u(e.getOption());x["isString"](d)?s.innerHTML=d:x["isDom"](d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+i.get("buttonColor"),y+=";color:"+i.get("buttonTextColor");var b=this;function _(){n.removeChild(r),b._dom=null}bt(v,"click",_),bt(m,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t=x["isFunction"](c)?c(s,e.getOption()):y3(l.value,f)}catch(n){throw _(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),v.innerHTML=o[1],m.innerHTML=o[2],m.style.cssText=v.style.cssText=y,!i.get("readOnly")&&g.appendChild(m),g.appendChild(v),r.appendChild(a),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.dispose=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:Xp.color.background,textColor:Xp.color.primary,textareaColor:Xp.color.background,textareaBorderColor:Xp.color.border,buttonColor:Xp.color.accent50,buttonTextColor:Xp.color.neutral00};return e},e}(F5);function m3(t,e){return x["map"](t,(function(t,n){var i=e&&e[n];if(x["isObject"](i)&&!x["isArray"](i)){var r=x["isObject"](t)&&!x["isArray"](t);r||(t={value:t});var a=null!=i.name&&null==t.name;return t=x["defaults"](t,i),a&&delete t.name,t}return t}))}cM({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];x["each"](t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:m3(t.data,r)})}else n.push(x["extend"]({type:"scatter"},t))})),e.mergeOption(x["defaults"]({series:n},t.newOption))}));var b3=v3,x3=x["each"],_3=Ka();function w3(t,e){var n=T3(t);x3(e,(function(e,i){for(var r=n.length-1;r>=0;r--){var a=n[r];if(a[i])break}if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var s=o.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function S3(t){var e=T3(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return x3(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n],t){i[n]=t;break}})),i}function M3(t){_3(t).snapshots=null}function O3(t){return T3(t).length}function T3(t){var e=_3(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var I3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.onclick=function(t,e){M3(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(F5);cM({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var C3=I3,A3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],k3=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=L3(e,t);Object(x["each"])(P3,(function(t,e){(!n||!n.include||Object(x["indexOf"])(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=R3[t.brushType](0,n,e);t.__rangeOffset={offset:z3[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(x["each"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(x["each"])(i.coordSyses,(function(i){var r=R3[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(x["each"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=R3[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?z3[t.brushType](i.values,r.offset,V3(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(x["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:EX(i),isTargetByCursor:BX(i,t,n.coordSysModel),getLinearBrushOtherExtent:zX(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(x["indexOf"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=L3(e,t),r=0;r<n.length;r++){var a=n[r],o=t.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<j3.length;s++)if(j3[s](i,a))return a}return!0},t}();function D3(t){return t[0]>t[1]&&t.reverse(),t}function L3(t,e){return Ja(t,e,{includeMainTypes:A3})}var P3={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,a=Object(x["createHashMap"])(),o={},s={};(n||i||r)&&(Object(x["each"])(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),o[e.id]=!0})),Object(x["each"])(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(x["each"])(r,(function(t){a.set(t.id,t),o[t.id]=!0,s[t.id]=!0})),a.each((function(t){var r=t.coordinateSystem,a=[];Object(x["each"])(r.getCartesians(),(function(t,e){(Object(x["indexOf"])(n,t.getAxis("x").model)>=0||Object(x["indexOf"])(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:N3.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(x["each"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:N3.geo})}))}},j3=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],N3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys.view,e=SB(null,t);return ne(e,e,_B(null,t)),e}},R3={lineX:Object(x["curry"])(E3,0),lineY:Object(x["curry"])(E3,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),a=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),o=[D3([r[0],a[0]]),D3([r[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,i){var r=[po(),po()],a=Object(x["map"])(n,(function(n){var a=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a}));return{values:a,xyMinMax:r}}};function E3(t,e,n,i){var r=n.getAxis(["x","y"][t]),a=D3(Object(x["map"])([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var z3={lineX:Object(x["curry"])(B3,0),lineY:Object(x["curry"])(B3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(x["map"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function B3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function V3(t,e){var n=F3(t),i=F3(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function F3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var H3=k3,G3=x["each"],W3=Ua("toolbox-dataZoom_"),Y3={x:"width",y:"height"},U3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new RX(n.getZr()),this._brushController.on("brush",x["bind"](this._onBrush,this)).mount()),q3(t,e,this,i,n),Z3(t,e)},e.prototype.onclick=function(t,e,n){X3[n].call(this)},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new H3($3(this.model),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=n.master.getRect().clone(),r=t.brushType;"rect"===r?(a("x",n,i,e[0]),a("y",n,i,e[1])):a({lineX:"x",lineY:"y"}[r],n,i,e)}})),w3(i,n),this._dispatchZoomAction(n)}function a(t,e,r,a){var s=e.getAxis(t),l=s.model,u=o(t,l,i),c=u.findRepresentativeAxisProxy(l).getMinMaxSpan(),h=s.scale.getExtent();null==c.minValueSpan&&null==c.maxValueSpan||(a=CU(0,a.slice(),h,0,c.minValueSpan,c.maxValueSpan));var d=aa(h,r[Y3[t]],.5);u&&(n[u.id]={dataZoomId:u.id,startValue:isFinite(d)?Jr(a[0],d):a[0],endValue:isFinite(d)?Jr(a[1],d):a[1]})}function o(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];G3(t,(function(t,n){e.push(x["clone"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:Xp.color.backgroundTint}};return e},e}(F5),X3={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(S3(this.ecModel))}};function $3(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function Z3(t,e){t.setIconStatus("back",O3(e)>1?"emphasis":"normal")}function q3(t,e,n,i,r){var a=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(a="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new H3($3(t),e,{include:["grid"]}),s=o.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}cf("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],a=$3(i),o=Ja(t,a);return G3(o.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),G3(o.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var a=t.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:W3+e+a};o[n]=a,r.push(o)}}));var K3=U3;function Q3(t){t.registerComponentModel(U5),t.registerComponentView(K5),G5("saveAsImage",J5),G5("magicType",r3),G5("dataView",b3),G5("dataZoom",K3),G5("restore",C3),IM(V5)}var J3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Xp.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Xp.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Xp.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Xp.color.tertiary,fontSize:14}},e}(Hp),t4=J3;function e4(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function n4(t){if(b.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var i4=n4(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),r4=n4(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function a4(t,e){if(!t)return e;e=Xd(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function o4(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var s4=a4(r4,"transition"),l4=a4(i4,"transform"),u4="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(b.transform3dSupported?"will-change:transform;":"");function c4(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function h4(t,e,n){if(!Object(x["isString"])(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=ip(e);var a,o=c4(n),s=Math.max(1.5*Math.round(r),6),l="",u=l4+":";Object(x["indexOf"])(["left","right"],o)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(a="left"===o?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(a="top"===o?225:45)+"deg)");var c=a*Math.PI/180,h=s+r,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+o+":-"+p+"px";var f=e+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function d4(t,e,n){var i="cubic-bezier(0.23,1,0.32,1)",r="",a="";return n&&(r=" "+t/2+"s "+i,a="opacity"+r+",visibility"+r),e||(r=" "+t+"s "+i,a+=(a.length?",":"")+(b.transformSupported?""+l4+r:",left"+r+",top"+r)),s4+":"+a}function p4(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!b.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var a=b.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+r+(a?",0":"")+")";return n?"top:0;left:0;"+l4+":"+o+";":[["top",0],["left",0],[i4,o]]}function f4(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=Object(x["retrieve2"])(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),Object(x["each"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function g4(t,e,n,i){var r=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=ev(t,"html"),p=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+p),e&&a>0&&r.push(d4(a,n,i)),o&&r.push("background-color:"+o),Object(x["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Xd(n),a=t.get(i);null!=a&&r.push(n+":"+a+("color"===e?"":"px"))})),r.push(f4(h)),null!=d&&r.push("padding:"+$d(d).join("px ")+"px"),r.join(";")+";"}function y4(t,e,n,i,r){var a=e&&e.painter;if(n){var o=a&&a.getViewportRoot();o&&nt(t,o,n,i,r)}else{t[0]=i,t[1]=r;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var v4=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,b.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,a=r&&(Object(x["isString"])(r)?document.querySelector(r):Object(x["isDom"])(r)?r:Object(x["isFunction"])(r)&&r(t.getDom()));y4(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!o._enterable){var e=i.handler,n=i.painter.getViewportRoot();vt(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=o4(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=u4+g4(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+p4(r[0],r[1],!0)+"border-color:"+ip(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var a=this.el;if(null!=t){var o="";if(Object(x["isString"])(r)&&"item"===n.get("trigger")&&!e4(n)&&(o=h4(n,i,r)),Object(x["isString"])(t))a.innerHTML=t+o;else if(t){a.innerHTML="",Object(x["isArray"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(x["isDom"])(t[s])&&t[s].parentNode!==a&&a.appendChild(t[s]);if(o&&a.childNodes.length){var l=document.createElement("div");l.innerHTML=o,a.appendChild(l)}}}else a.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(y4(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=p4(n[0],n[1]);Object(x["each"])(r,(function(t){i[t[0]]=t[1]}))}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",b.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(x["bind"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;it(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}(),m4=v4,b4=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),w4(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var a=this;x["isObject"](t)&&Cf(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new _u({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ev(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),x["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){a.el.style[t]=n.get(t)})),x["each"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){a.el.style[t]=o.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=_4(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;w4(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,a=x4(r.borderWidth||0),o=_4(r);n.x=t+a+o.left,n.y=e+a+o.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(x["bind"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function x4(t){return Math.max(0,t)}function _4(t){var e=x4(t.shadowBlur||0),n=x4(t.shadowOffsetX||0),i=x4(t.shadowOffsetY||0);return{left:x4(e-n),right:x4(e+n),top:x4(e-i),bottom:x4(e+i)}}function w4(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var S4=b4,M4=new nu({shape:{x:-1,y:-1,width:2,height:2}}),O4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e){if(!b.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=so(n.get("renderMode"));this._tooltipContent="richText"===i?new S4(e):new m4(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!b.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?mx(this,"_updatePosition",50,"fixRate"):bx(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");RJ("itemTooltip",this._api,Object(x["bind"])((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!b.node&&n.getDom()){var r=I4(i,n);this._ticket="";var a=i.dataByCoordSys,o=L4(i,e,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=M4;l.x=i.x,l.y=i.y,l.update(),wu(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=YJ(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(I4(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,a=i.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=a&&null!=o){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),u=T4([l.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:a,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var a,o,s=wu(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,h_(n,(function(t){if(t.tooltipDisabled)return a=o=null,!0;a||o||(null!=wu(t).dataIndex?a=t:null!=wu(t).tooltipConfig&&(o=t))}),!0),a?this._showSeriesItemTooltip(t,a,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(x["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],a=T4([e.tooltipOption],i),o=this._renderMode,s=[],l=Fy("section",{blocks:[],noHeader:!0}),u=[],c=new nv;Object(x["each"])(t,(function(t){Object(x["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,a=e.axis,h=a.scale.parse(r);if(e&&null!=r){var d=bJ(r,a,n,t.seriesDataIndices,t.valueLabelOpt),p=Fy("section",{header:d,noHeader:!Object(x["trim"])(d),sortBlocks:!0,blocks:[]});l.blocks.push(p),Object(x["each"])(t.seriesDataIndices,(function(r){var a=n.getSeriesByIndex(r.seriesIndex),l=r.dataIndexInside,f=a.getDataParams(l);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=YT(e.axis,{value:h}),f.axisValueLabel=d,f.marker=c.makeTooltipMarker("item",ip(f.color),o);var g=qg(a.formatTooltip(l,!0,null)),y=g.frag;if(y){var v=T4([a],i).get("valueFormatter");p.blocks.push(v?Object(x["extend"])({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=a.get("order"),p=Xy(l,c,o,d,n.get("useUTC"),a.get("textStyle"));p&&u.unshift(p);var f="richText"===o?"\n\n":"<br/>",g=u.join(f);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(a,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=wu(e),a=r.seriesIndex,o=i.getSeriesByIndex(a),s=r.dataModel||o,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=T4([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new nv;g.marker=y.makeTooltipMarker("item",ip(g.color),h);var v=qg(s.formatTooltip(l,!1,u)),m=p.get("order"),b=p.get("valueFormatter"),_=v.frag,w=_?Xy(b?Object(x["extend"])({valueFormatter:b},_):_,y,h,m,i.get("useUTC"),p.get("textStyle")):v.text,S="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,w,g,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=wu(e),a=r.tooltipConfig,o=a.option||{},s=o.encodeHTMLContent;if(Object(x["isString"])(o)){var l=o;o={content:l,formatter:l},s=!0}s&&i&&o.content&&(o=Object(x["clone"])(o),o.content=ct(o.content));var u=[o],c=this._ecModel.getComponent(r.componentMainType,r.componentIndex);c&&u.push(c),u.push({formatter:o.content});var h=t.positionDefault,d=T4(u,this._tooltipModel,h?{position:h}:null),p=d.get("content"),f=Math.random()+"",g=new nv;this._showOrMove(d,(function(){var n=Object(x["clone"])(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,f,t.offsetX,t.offsetY,t.position,e,g)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,a,o,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");o=o||t.get("position");var h=e,d=this._getNearestPoint([r,a],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if(Object(x["isString"])(c)){var f=t.ecModel.get("useUTC"),g=Object(x["isArray"])(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=Cd(g.axisValue,h,f)),h=Qd(h,n,!0)}else if(Object(x["isFunction"])(c)){var v=Object(x["bind"])((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,o),this._updatePosition(t,o,r,a,u,n,s))}),this);this._ticket=i,h=c(n,i,v)}else h=c;u.setContent(h,l,t,p,o),u.show(t,p),this._updatePosition(t,o,r,a,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||Object(x["isArray"])(e)?{color:i||r}:Object(x["isArray"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,a,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),Object(x["isFunction"])(e)&&(e=e([n,i],a,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),Object(x["isArray"])(e))n=$r(e[0],s),i=$r(e[1],l);else if(Object(x["isObject"])(e)){var p=e;p.width=u[0],p.height=u[1];var f=Ap(p,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(Object(x["isString"])(e)&&o){var g=k4(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else{g=C4(n,i,r,s,l,c?null:20,h?null:20);n=g[0],i=g[1]}if(c&&(n-=D4(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=D4(h)?u[1]/2:"bottom"===h?u[1]:0),e4(t)){g=A4(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(x["each"])(n,(function(n,a){var o=n.dataByAxis||[],s=t[a]||{},l=s.dataByAxis||[];r=r&&o.length===l.length,r&&Object(x["each"])(o,(function(t,n){var a=l[n]||{},o=t.seriesDataIndices||[],s=a.seriesDataIndices||[];r=r&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&o.length===s.length,r&&Object(x["each"])(o,(function(t,e){var n=s[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(x["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,a=e[n],o=i[n];a&&o&&o.data!==a.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!b.node&&e.getDom()&&(bx(this,"_updatePosition"),this._tooltipContent.dispose(),HJ("itemTooltip",e),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(bv);function T4(t,e,n){var i,r=e.ecModel;n?(i=new Vh(n,r,r),i=new Vh(e.option,i,r)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Vh&&(o=o.get("tooltip",!0)),Object(x["isString"])(o)&&(o={formatter:o}),o&&(i=new Vh(o,i,r)))}return i}function I4(t,e){return t.dispatchAction||Object(x["bind"])(e.dispatchAction,e)}function C4(t,e,n,i,r,a,o){var s=n.getSize(),l=s[0],u=s[1];return null!=a&&(t+l+a+2>i?t-=l+a:t+=a),null!=o&&(e+u+o>r?e-=u+o:e+=o),[t,e]}function A4(t,e,n,i,r){var a=n.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function k4(t,e,n,i){var r=n[0],a=n[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-r/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-r/2,l=e.y+c+o;break;case"left":s=e.x-r-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function D4(t){return"center"===t||"middle"===t}function L4(t,e,n){var i=to(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var a=io(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s,l=n.getViewOfComponentModel(o);return l.group.traverse((function(e){var n=wu(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:o.componentIndex,el:s}:void 0}}}var P4=O4;function j4(t){IM(r0),t.registerComponentModel(t4),t.registerComponentView(P4),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},x["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},x["noop"])}var N4=["rect","polygon","keep","clear"];function R4(t,e){var n=Aa(t?t.brush:[]);if(n.length){var i=[];x["each"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;x["isArray"](r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var a=r.feature||(r.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),Mo(s,(function(t){return t+""}),null),e&&!s.length&&s.push.apply(s,N4)}}var E4=x["each"];function z4(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function B4(t,e,n){var i={};return E4(e,(function(e){var a=i[e]=r();E4(t[e],(function(t,i){if(CG.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),a[i]=new CG(r),"opacity"===i&&(r=x["clone"](r),r.type="colorAlpha",a.__hidden.__alphaForOpacity=new CG(r))}}))})),i;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function V4(t,e,n){var i;x["each"](n,(function(t){e.hasOwnProperty(t)&&z4(e[t])&&(i=!0)})),i&&x["each"](n,(function(n){e.hasOwnProperty(n)&&z4(e[n])?t[n]=x["clone"](e[n]):delete t[n]}))}function F4(t,e,n,i,r,a){var o,s={};function l(t){return a_(n,o,t)}function u(t,e){s_(n,o,t,e)}function c(t,c){o=null==a?t:c;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var d=i.call(r,t),p=e[d],f=s[d],g=0,y=f.length;g<y;g++){var v=f[g];p[v]&&p[v].applyVisual(t,l,u)}}x["each"](t,(function(t){var n=CG.prepareVisualTypes(e[t]);s[t]=n})),null==a?n.each(c):n.each([a],c)}function H4(t,e,n,i){var r={};return x["each"](t,(function(t){var n=CG.prepareVisualTypes(e[t]);r[t]=n})),{progress:function(t,a){var o,s;function l(t){return a_(a,s,t)}function u(t,e){s_(a,s,t,e)}null!=i&&(o=a.getDimensionIndex(i));var c=a.getStore();while(null!=(s=t.next())){var h=a.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?c.get(o,s):s,p=n(d),f=e[p],g=r[p],y=0,v=g.length;y<v;y++){var m=g[y];f[m]&&f[m].applyVisual(d,l,u)}}}}}function G4(t){var e=t.brushType,n={point:function(i){return W4[e].point(i,n,t)},rect:function(i){return W4[e].rect(i,n,t)}};return n}var W4={lineX:Y4(0),lineY:Y4(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&sC(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,a=t.y,o=t.width,s=t.height,l=i[0];return!!(sC(i,r,a)||sC(i,r+o,a)||sC(i,r,a+s)||sC(i,r+o,a+s)||ue.create(t).contain(l[0],l[1])||Eb(r,a,r+o,a,i)||Eb(r,a,r,a+s,i)||Eb(r+o,a,r+o,a+s,i)||Eb(r,a+s,r+o,a+s,i))||void 0}}};function Y4(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,a=e[t];return U4(a,r)}},rect:function(i,r,a){if(i){var o=a.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),U4(s[0],o)||U4(s[1],o)||U4(o[0],s)||U4(o[1],s)}}}}function U4(t,e){return e[0]<=t&&t<=e[1]}var X4=["inBrush","outOfBrush"],$4="__ecBrushSelect",Z4="__ecInBrushSelectEvent";function q4(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new H3(e.option,t);n.setInputRanges(e.areas,t)}))}var K4=ko(Q4);function Q4(t,e,n){var i,r,a=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),q4(t),t.eachComponent({mainType:"brush"},(function(e,n){var o={brushId:e.id,brushIndex:n,brushName:e.name,areas:x["clone"](e.areas),selected:[]};a.push(o);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=x["map"](e.areas,(function(t){var e=i6[t.brushType],n=x["defaults"]({boundingRect:e?e(t):void 0},t);return n.selectors=G4(n),n})),f=B4(e.option,X4,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}function v(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function m(n,i,r){if(n.brushSelector&&!n6(e,i)&&(x["each"](p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||y(r)})),g(i)&&y(r))){var a=n.getData();a.each((function(t){e6(n,r,a,t)&&(c[t]=1)}))}}x["isArray"](l)&&x["each"](l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?v(t,e):m(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};o.selected.push(n);var i=h[e],r=t.getData(),a=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return e6(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:y(i))&&F4(X4,f,r,a)}))})),J4(e,i,r,a,n)}function J4(t,e,n,i,r){if(r){var a=t.getZr();if(!a[Z4]){a[$4]||(a[$4]=t6);var o=mx(a,$4,n,e);o(t,i)}}}function t6(t,e){if(!t.isDisposed()){var n=t.getZr();n[Z4]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[Z4]=!1}}function e6(t,e,n,i){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(t.brushSelector(i,n,o.selectors,o))return!0}}function n6(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(x["isArray"](n)?x["indexOf"](n,e)<0:e!==n)}var i6={rect:function(t){return r6(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[po(),po()];var a=n[i];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&r6(e)}};function r6(t){return new ue(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var a6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new RX(e.getZr())).on("brush",x["bind"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){q4(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:x["clone"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:x["clone"](n),$from:e})},e.type="brush",e}(bv),o6=a6,s6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return f(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&V4(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=x["map"](t,(function(t){return l6(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=l6(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:Xp.color.backgroundTint,borderColor:Xp.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Xp.color.disabled},e}(Hp);function l6(t,e){return x["merge"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Vh(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var u6=s6,c6=["rect","polygon","lineX","lineY","keep","clear"],h6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.render=function(t,e,n){var i,r,a;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=i,this._brushMode=r,x["each"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?a:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return x["each"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:c6.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(F5),d6=h6;function p6(t){t.registerComponentView(o6),t.registerComponentModel(u6),t.registerPreprocessor(R4),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,K4),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},x["noop"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},x["noop"]),G5("brush",d6)}var f6=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 f(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Xp.size.m,backgroundColor:Xp.color.transparent,borderColor:Xp.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Xp.color.primary},subtextStyle:{fontSize:12,color:Xp.color.quaternary}},e}(Hp),g6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),s=x["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new _u({style:gh(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new _u({style:gh(a,{text:c,fill:a.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){rp(d,"_"+t.get("target"))})),p&&h.on("click",(function(){rp(p,"_"+t.get("subtarget"))})),wu(l).eventData=wu(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=Lp(t,n),m=Ap(y,v.refContainer,t.get("padding"));o||(o=t.get("left")||t.get("right"),"middle"===o&&(o="center"),"right"===o?m.x+=m.width:"center"===o&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),i.x=m.x,i.y=m.y,i.markRedraw();var b={align:o,verticalAlign:s};l.setStyle(b),h.setStyle(b),g=i.getBoundingRect();var _=m.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var S=new nu({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(S)}},e.type="title",e}(bv);function y6(t){t.registerComponentModel(f6),t.registerComponentView(g6)}var v6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(x["each"])(n,(function(e,n){var i,a=Ga(La(e),"");Object(x["isObject"])(e)?(i=Object(x["clone"])(e),i.value=n):i=n,t.push(i),r.push(a)}))):t=n;var a={category:"ordinal",time:"time",value:"number"}[i]||"number",o=this._data=new sO([{name:"value",type:a}],this);o.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:Xp.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Xp.color.secondary},data:[]},e}(Hp),m6=v6,b6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="timeline.slider",e.defaultOption=Yh(m6.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:Xp.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:Xp.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:Xp.color.tertiary},itemStyle:{color:Xp.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:Xp.color.accent50,borderColor:Xp.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:Xp.color.accent50,borderColor:Xp.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Xp.color.accent60},itemStyle:{color:Xp.color.accent60,borderColor:Xp.color.accent60},controlStyle:{color:Xp.color.accent70,borderColor:Xp.color.accent70}},progress:{lineStyle:{color:Xp.color.accent30},itemStyle:{color:Xp.color.accent40}},data:[]}),e}(m6);Object(x["mixin"])(b6,Zg.prototype);var x6=b6,_6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="timeline",e}(bv),w6=_6,S6=function(t){function e(e,n,i,r){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a}return f(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(QC),M6=S6,O6=Math.PI,T6=Ka(),I6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=o.scale.getLabel({value:t});return Fy("nameValue",{noName:!0,value:e})},Object(x["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,o,t)}),this),this._renderAxisLabel(i,a,o,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),r=t.get("orient"),a=C6(t,e);n=null==i||"auto"===i?"horizontal"===r?a.y+a.height/2<e.getHeight()/2?"-":"+":a.x+a.width/2<e.getWidth()/2?"+":"-":Object(x["isString"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var o,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:O6/2},d="vertical"===r?a.height:a.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,y=f?p.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*O6/180;var b=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),w=f&&p.get("showPrevBtn",!0),S=f&&p.get("showNextBtn",!0),M=0,O=d;"left"===b||"bottom"===b?(_&&(o=[0,0],M+=v),w&&(s=[M,0],M+=v),S&&(l=[O-g,0],O-=v)):(_&&(o=[O-g,0],O-=v),w&&(s=[0,0],M+=v),S&&(l=[O-g,0],O-=v));var T=[M,O];return t.get("inverse")&&T.reverse(),{viewRect:a,mainLength:d,orient:r,rotation:h[r],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[r],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:T,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var a=It(),o=r.x,s=r.y+r.height;Dt(a,a,[-o,-s]),Lt(a,a,-O6/2),Dt(a,a,[o,s]),r=r.clone(),r.applyTransform(a)}var l=y(r),u=y(n.getBoundingRect()),c=y(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var p=t.labelPosOpt;if(null==p||Object(x["isString"])(p)){var f="+"===p?0:1;v(h,u,l,1,f),v(d,c,l,1,1-f)}else{f=p>=0?0:1;v(h,u,l,1,f),d[1]=h[1]+p}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType")||e.get("type");"category"!==i&&"time"!==i&&(i="value");var r=ET(e,i,!1);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var a=n.getDataExtent("value");r.setExtent(a[0],a[1]),QI(r,{fixMinMax:[!0,!0]});var o=new M6("value",r,t.axisExtent,i);return o.model=e,o},e.prototype._createGroup=function(t){var e=this[t]=new vr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var a=new Cm({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(x["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(a);var o=this._progressLine=new Cm({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(x["defaults"])({lineCap:"round",lineWidth:a.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(o)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,a=i.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(x["each"])(o,(function(t){var o=n.dataToCoord(t.value),s=a.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:Object(x["bind"])(r._changeTimeline,r,t.value)},d=k6(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Bc(d);var p=wu(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this,a=n.getLabelModel();if(a.get("show")){var o=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(x["each"])(s,(function(i){if(!i.tick.offInterval){var a=i.tick.value,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(a),d=new _u({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(x["bind"])(r._changeTimeline,r,a),silent:!1,style:gh(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=gh(u),d.ensureState("progress").style=gh(c),e.add(d),Bc(d),T6(d).dataIndex=a,r._tickLabels.push(d)}}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,a=t.rotation,o=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=$i(Object(x["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),r),r),h=[0,-c/2,c,c],d=A6(i,n+"Icon",h,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-a:0,rectHover:!0,style:o,onclick:l});d.ensureState("emphasis").style=s,e.add(d),Bc(d)}}c(t.nextBtnPosition,"next",Object(x["bind"])(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Object(x["bind"])(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Object(x["bind"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),a=i.getCurrentIndex(),o=r.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(x["bind"])(s._handlePointerDrag,s),t.ondragend=Object(x["bind"])(s._handlePointerDragend,s),D6(t,s._progressLine,a,n,i,!0)},onUpdate:function(t){D6(t,s._progressLine,a,n,i)}};this._currentPointer=k6(o,o,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=ea(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(e||o!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return Ab(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,a){var o=r.dataToCoord(n),s=Math.abs(o-t);s<i&&(i=s,e=a)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",T6(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(w6);function C6(t,e){return Ap(t.getBoxLayoutParams(),Lp(t,e).refContainer,t.get("padding"))}function A6(t,e,n,i){var r=i.style,a=Rb(t.get(["controlStyle",e]),i||{},new ue(n[0],n[1],n[2],n[3]));return r&&a.setStyle(r),a}function k6(t,e,n,i,r,a){var o=e.get("color");if(r)r.setColor(o),n.add(r),a&&a.onUpdate(r);else{var s=t.get("symbol");r=z_(s,-1,-1,2,2,o),r.setStyle("strokeNoScale",!0),n.add(r),a&&a.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=Object(x["merge"])({rectHover:!0,z2:100},i,!0);var u=B_(t.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=V_(t.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=t.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function D6(t,e,n,i,r,a){if(!t.dragging){var o=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(a||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var L6=I6;function P6(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(x["defaults"])({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function j6(t){var e=t&&t.timeline;x["isArray"](e)||(e=e?[e]:[]),x["each"](e,(function(t){t&&N6(t)}))}function N6(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),R6(t),E6(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});E6(i,"position")||(i.position=t.controlPosition),"none"!==i.position||E6(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}x["each"](t.data||[],(function(t){x["isObject"](t)&&!x["isArray"](t)&&(!E6(t,"value")&&E6(t,"name")&&(t.value=t.name),R6(t))}))}function R6(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),a={normal:1,emphasis:1};x["each"](i,(function(t,e){a[e]||E6(r,e)||(r[e]=t)})),n.label&&!E6(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function E6(t,e){return t.hasOwnProperty(e)}function z6(t){t.registerComponentModel(x6),t.registerComponentView(L6),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),P6(t),t.registerPreprocessor(j6)}function B6(t,e){if(!t)return!1;for(var n=Object(x["isArray"])(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function V6(t){ka(t,"label",["show"])}var F6=Ka(),H6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(b.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=F6(t)[r];n&&n.data?(a?a._mergeOption(n,e,!0):(i&&V6(n),x["each"](n.data,(function(t){t instanceof Array?(V6(t[0]),V6(t[1])):V6(t)})),a=this.createMarkerModelFromSeries(n,this,e),x["extend"](a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),F6(t)[r]=a):F6(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),a=i.getName(t);return Fy("section",{header:this.name,blocks:[Fy("nameValue",{name:a,value:r,noName:!a,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=Zg.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return F6(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Hp);x["mixin"](H6,Zg.prototype);var G6=H6,W6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(G6),Y6=W6;function U6(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function X6(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function $6(t,e,n,i,r,a,o){var s=[],l=mO(e,r),u=l?e.getCalculationInfo("stackResultDimension"):r,c=n8(e,u,t),h=e.hostModel,d=h.indicesOfNearest(n,u,c)[0];s[a]=e.get(i,d),s[o]=e.get(u,d);var p=e.get(r,d),f=na(e.get(r,d));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,p]}var Z6={min:Object(x["curry"])($6,"min"),max:Object(x["curry"])($6,"max"),average:Object(x["curry"])($6,"average"),median:Object(x["curry"])($6,"median")};function q6(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!X6(e)&&!Object(x["isArray"])(e.coord)&&Object(x["isArray"])(r)){var a=K6(e,n,i,t);if(e=Object(x["clone"])(e),e.type&&Z6[e.type]&&a.baseAxis&&a.valueAxis){var o=Object(x["indexOf"])(r,a.baseAxis.dim),s=Object(x["indexOf"])(r,a.valueAxis.dim),l=Z6[e.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(x["isArray"])(r))for(var u=e.coord,c=0;c<2;c++)Z6[u[c]]&&(u[c]=n8(n,n.mapDimension(r[c]),u[c]));else{e.coord=[];var h=t.getBaseAxis();if(h&&e.type&&Z6[e.type]){var d=i.getOtherAxis(h);d&&(e.value=n8(n,n.mapDimension(d.dim),e.type))}}return e}}function K6(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(Q6(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Q6(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function J6(t,e){return!(t&&t.containData&&e.coord&&!U6(e))||t.containData(e.coord)}function t8(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!U6(e)&&!U6(n))||t.containZone(e.coord,n.coord)}function e8(t,e){return t?function(t,n,i,r){var a=r<2?t.coord&&t.coord[r]:t.value;return ty(a,e[r])}:function(t,n,i,r){return ty(t.value,e[r])}}function n8(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var i8=Ka(),r8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){this.markerGroupMap=Object(x["createHashMap"])()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){i8(t).keep=!1})),e.eachSeries((function(t){var r=G6.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!i8(t).keep&&i.group.remove(t.group)})),a8(e,r,this.type)},e.prototype.markKeep=function(t){i8(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(x["each"])(t,(function(t){var i=G6.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(t){t&&(e?Mc(t):Oc(t))}))}}))},e.type="marker",e}(bv);function a8(t,e,n){t.eachSeries((function(t){var i=G6.getMarkerModelFromSeries(t,n),r=e.get(t.id);if(i&&r&&r.group){var a=Kb(i),o=a.z,s=a.zlevel;Jb(r.group,o,s)}}))}var o8=r8;function s8(t,e,n){var i=e.coordinateSystem,r=n.getWidth(),a=n.getHeight(),o=i&&i.getArea&&i.getArea();t.each((function(n){var s,l=t.getItemModel(n),u="coordinate"===l.get("relativeTo"),c=u?o?o.width:0:r,h=u?o?o.height:0:a,d=u&&o?o.x:0,p=u&&o?o.y:0,f=$r(l.get("x"),c)+d,g=$r(l.get("y"),h)+p;if(isNaN(f)||isNaN(g)){if(e.getMarkerPosition)s=e.getMarkerPosition(t.getValues(t.dimensions,n));else if(i){var y=t.get(i.dimensions[0],n),v=t.get(i.dimensions[1],n);s=i.dataToPoint([y,v])}}else s=[f,g];isNaN(f)||(s[0]=f),isNaN(g)||(s[1]=g),t.setItemLayout(n,s)}))}var l8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=G6.getMarkerModelFromSeries(t,"markPoint");e&&(s8(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new xL),u=u8(r,t,e);e.setData(u),s8(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(x["isFunction"])(i)||Object(x["isFunction"])(r)||Object(x["isFunction"])(a)||Object(x["isFunction"])(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Object(x["isFunction"])(i)&&(i=i(c,h)),Object(x["isFunction"])(r)&&(r=r(c,h)),Object(x["isFunction"])(a)&&(a=a(c,h)),Object(x["isFunction"])(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=n.get("z2"),f=o_(o,"color");d.fill||(d.fill=f),u.setItemVisual(t,{z2:Object(x["retrieve2"])(p,0),symbol:i,symbolSize:r,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){wu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(o8);function u8(t,e,n){var i;i=t?Object(x["map"])(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(x["extend"])(Object(x["extend"])({},i),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new sO(i,n),a=Object(x["map"])(n.get("data"),Object(x["curry"])(q6,e));t&&(a=Object(x["filter"])(a,Object(x["curry"])(J6,t)));var o=e8(!!t,i);return r.initData(a,null,o),r}var c8=l8;function h8(t){t.registerComponentModel(Y6),t.registerComponentView(c8),t.registerPreprocessor((function(t){B6(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var d8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(G6),p8=d8,f8=Ka(),g8=function(t,e,n,i){var r,a=t.getData();if(Object(x["isArray"])(i))r=i;else{var o=i.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=Object(x["retrieve"])(i.yAxis,i.xAxis);else{var u=K6(i,a,e,t);s=u.valueAxis;var c=bO(a,u.valueDataDim);l=n8(a,c,o)}var h="x"===s.dim?0:1,d=1-h,p=Object(x["clone"])(i),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&Object(x["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=l,r=[p,f,{type:o,valueIndex:i.valueIndex,value:l}]}else r=[]}var y=[q6(t,r[0]),q6(t,r[1]),Object(x["extend"])({},r[2])];return y[2].type=y[2].type||null,Object(x["merge"])(y[2],y[0]),Object(x["merge"])(y[2],y[1]),y};function y8(t){return!isNaN(t)&&!isFinite(t)}function v8(t,e,n,i){var r=1-t,a=i.dimensions[t];return y8(e[r])&&y8(n[r])&&e[t]===n[t]&&i.getAxis(a).containData(e[t])}function m8(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(v8(1,n,i,t)||v8(0,n,i,t)))return!0}return J6(t,e[0])&&J6(t,e[1])}function b8(t,e,n,i,r){var a,o=i.coordinateSystem,s=t.getItemModel(e),l=$r(s.get("x"),r.getWidth()),u=$r(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)a=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=o.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);a=o.dataToPoint([h,d])}if(UL(o,"cartesian2d")){var p=o.getAxis("x"),f=o.getAxis("y");c=o.dimensions;y8(t.get(c[0],e))?a[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):y8(t.get(c[1],e))&&(a[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];t.setItemLayout(e,a)}var x8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=G6.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=f8(e).from,a=f8(e).to;r.each((function(e){b8(r,e,!0,t,n),b8(a,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new ZW);this.group.add(l.group);var u=_8(r,t,e),c=u.from,h=u.to,d=u.line;f8(e).from=c,f8(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,r){var a=e.getItemModel(n);b8(e,n,r,t,i);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=o_(o,"color")),e.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(x["retrieve2"])(a.get("symbolOffset",!0),y[r?0:1]),symbolRotate:Object(x["retrieve2"])(a.get("symbolRotate",!0),g[r?0:1]),symbolSize:Object(x["retrieve2"])(a.get("symbolSize"),f[r?0:1]),symbol:Object(x["retrieve2"])(a.get("symbol",!0),p[r?0:1]),style:s})}Object(x["isArray"])(p)||(p=[p,p]),Object(x["isArray"])(f)||(f=[f,f]),Object(x["isArray"])(g)||(g=[g,g]),Object(x["isArray"])(y)||(y=[y,y]),u.from.each((function(t){v(c,t,!0),v(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t),n=e.getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]);var i=e.get("z2");null==n.stroke&&(n.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{z2:Object(x["retrieve2"])(i,0),fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:n})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){wu(t).dataModel=e,t.traverse((function(t){wu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(o8);function _8(t,e,n){var i;i=t?Object(x["map"])(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(x["extend"])(Object(x["extend"])({},i),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new sO(i,n),a=new sO(i,n),o=new sO([],n),s=Object(x["map"])(n.get("data"),Object(x["curry"])(g8,e,t,n));t&&(s=Object(x["filter"])(s,Object(x["curry"])(m8,t)));var l=e8(!!t,i);return r.initData(Object(x["map"])(s,(function(t){return t[0]})),null,l),a.initData(Object(x["map"])(s,(function(t){return t[1]})),null,l),o.initData(Object(x["map"])(s,(function(t){return t[2]}))),o.hasItemOption=!0,{from:r,to:a,line:o}}var w8=x8;function S8(t){t.registerComponentModel(p8),t.registerComponentView(w8),t.registerPreprocessor((function(t){B6(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var M8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(G6),O8=M8,T8=Ka(),I8=function(t,e,n,i){var r=i[0],a=i[1];if(r&&a){var o=q6(t,r),s=q6(t,a),l=o.coord,u=s.coord;l[0]=Object(x["retrieve"])(l[0],-1/0),l[1]=Object(x["retrieve"])(l[1],-1/0),u[0]=Object(x["retrieve"])(u[0],1/0),u[1]=Object(x["retrieve"])(u[1],1/0);var c=Object(x["mergeAll"])([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function C8(t){return!isNaN(t)&&!isFinite(t)}function A8(t,e,n,i){var r=1-t;return C8(e[r])&&C8(n[r])}function k8(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},a={coord:i,x:e.x1,y:e.y1};return UL(t,"cartesian2d")?!(!n||!i||!A8(1,n,i,t)&&!A8(0,n,i,t))||t8(t,r,a):J6(t,r)||J6(t,a)}function D8(t,e,n,i,r){var a,o=i.coordinateSystem,s=t.getItemModel(e),l=$r(s.get(n[0]),r.getWidth()),u=$r(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=o.clampData(c),p=o.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],a=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];o.clampData&&o.clampData(v,v),a=o.dataToPoint(v,!0)}if(UL(o,"cartesian2d")){var m=o.getAxis("x"),b=o.getAxis("y");g=t.get(n[0],e),y=t.get(n[1],e);C8(g)?a[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):C8(y)&&(a[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}var L8=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],P8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=G6.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=Object(x["map"])(L8,(function(r){return D8(i,e,r,t,n)}));i.setItemLayout(e,r);var a=i.getItemGraphicEl(e);a.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new vr});this.group.add(l.group),this.markKeep(l);var u=j8(r,t,e);e.setData(u),u.each((function(e){var n=Object(x["map"])(L8,(function(n){return D8(u,e,n,t,i)})),a=r.getAxis("x").scale,s=r.getAxis("y").scale,l=a.getExtent(),c=s.getExtent(),h=[a.parse(u.get("x0",e)),a.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];ea(h),ea(d);var p=!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]),f=!p;u.setItemLayout(e,{points:n,allClipped:f});var g=u.getItemModel(e),y=g.getModel("itemStyle").getItemStyle(),v=g.get("z2"),m=o_(o,"color");y.fill||(y.fill=m,Object(x["isString"])(y.fill)&&(y.fill=xn["modifyAlpha"](y.fill,.4))),y.stroke||(y.stroke=m),u.setItemVisual(e,"style",y),u.setItemVisual(e,"z2",Object(x["retrieve2"])(v,0))})),u.diff(T8(l).data).add((function(t){var e=u.getItemLayout(t),n=u.getItemVisual(t,"z2");if(!e.allClipped){var i=new _m({z2:Object(x["retrieve2"])(n,0),shape:{points:e.points}});u.setItemGraphicEl(t,i),l.group.add(i)}})).update((function(t,n){var i=T8(l).data.getItemGraphicEl(n),r=u.getItemLayout(t),a=u.getItemVisual(t,"z2");r.allClipped?i&&l.group.remove(i):(i?nh(i,{z2:Object(x["retrieve2"])(a,0),shape:{points:r.points}},e,t):i=new _m({shape:{points:r.points}}),u.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=T8(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),ph(t,fh(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(x["isString"])(r.fill)?xn["modifyAlpha"](r.fill,1):Xp.color.neutral99}),Yc(t,i),Fc(t,null,null,i.get(["emphasis","disabled"])),wu(t).dataModel=e})),T8(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(o8);function j8(t,e,n){var i,r,a=["x0","y0","x1","y1"];if(t){var o=Object(x["map"])(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(x["extend"])(Object(x["extend"])({},i),{name:t,ordinalMeta:null})}));r=Object(x["map"])(a,(function(t,e){return{name:t,type:o[e%2].type}})),i=new sO(r,n)}else r=[{name:"value",type:"float"}],i=new sO(r,n);var s=Object(x["map"])(n.get("data"),Object(x["curry"])(I8,e,t,n));t&&(s=Object(x["filter"])(s,Object(x["curry"])(k8,t)));var l=t?function(t,e,n,i){var a=t.coord[Math.floor(i/2)][i%2];return ty(a,r[i])}:function(t,e,n,i){return ty(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var N8=P8;function R8(t){t.registerComponentModel(O8),t.registerComponentView(N8),t.registerPreprocessor((function(t){B6(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var E8=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},z8=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 f(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"]),x["isArray"](e)&&x["each"](e,(function(t,i){x["isString"](t)&&(t={type:t}),e[i]=x["merge"](t,E8(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<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,a=i.name;if(n.push(a),i.legendVisualProvider){var o=i.legendVisualProvider,s=o.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&Wa(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=x["createHashMap"](),a=x["map"](i,(function(t){return(x["isString"](t)||x["isNumber"](t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new Vh(t,this,this.ecModel))}),this);this._data=x["filter"](a,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;x["each"](i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;x["each"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;x["each"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&x["indexOf"](this._availableNames,t)>=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",bottom:Xp.size.m,align:"auto",backgroundColor:Xp.color.transparent,borderColor:Xp.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Xp.color.disabled,inactiveBorderColor:Xp.color.disabled,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:Xp.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Xp.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Xp.color.tertiary,borderWidth:1,borderColor:Xp.color.border},emphasis:{selectorLabel:{show:!0,color:Xp.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(Hp),B8=z8,V8=x["curry"],F8=x["each"],H8=vr,G8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return f(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new H8),this.group.add(this._selectorGroup=new H8),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 i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),a=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===a?"right":"left");var o=t.get("selector",!0),s=t.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(r,t,e,n,o,a,s);var l=Lp(t,n).refContainer,u=t.getBoxLayoutParams(),c=t.get("padding"),h=Ap(u,l,c),d=this.layoutInner(t,r,h,i,o,s),p=Ap(x["defaults"]({width:d.width,height:d.height},u),l,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=X5(d,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,i,r,a,o){var s=this.getContentGroup(),l=x["createHashMap"](),u=e.get("selectedMode"),c=e.get("triggerEvent"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),F8(e.getData(),(function(r,a){var o=this,d=r.get("name");if(!this.newlineDisabled&&(""===d||"\n"===d)){var p=new H8;return p.newline=!0,void s.add(p)}var f=n.getSeriesByName(d)[0];if(!l.get(d)){if(f){var g=f.getData(),y=g.getVisual("legendLineStyle")||{},v=g.getVisual("legendIcon"),m=g.getVisual("style"),b=this._createItem(f,d,a,r,e,t,y,m,v,u,i);b.on("click",V8(U8,d,null,i,h)).on("mouseover",V8(X8,f.name,null,i,h)).on("mouseout",V8($8,f.name,null,i,h)),n.ssr&&b.eachChild((function(t){var e=wu(t);e.seriesIndex=f.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),c&&b.eachChild((function(t){o.packEventData(t,e,f,a,d)})),l.set(d,!0)}else n.eachRawSeries((function(o){var s=this;if(!l.get(d)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(d))return;var f=p.indexOfName(d),g=p.getItemVisual(f,"style"),y=p.getItemVisual(f,"legendIcon"),v=Object(xn["parse"])(g.fill);v&&0===v[3]&&(v[3]=.2,g=x["extend"](x["extend"]({},g),{fill:Object(xn["stringify"])(v,"rgba")}));var m=this._createItem(o,d,a,r,e,t,{},g,y,u,i);m.on("click",V8(U8,null,d,i,h)).on("mouseover",V8(X8,null,d,i,h)).on("mouseout",V8($8,null,d,i,h)),n.ssr&&m.eachChild((function(t){var e=wu(t);e.seriesIndex=o.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),c&&m.eachChild((function(t){s.packEventData(t,e,o,a,d)})),l.set(d,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,a,o)},e.prototype.packEventData=function(t,e,n,i,r){var a={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:r,seriesIndex:n.seriesIndex};wu(t).eventData=a},e.prototype._createSelector=function(t,e,n,i,r){var a=this.getSelectorGroup();F8(t,(function(t){var i=t.type,r=new _u({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});a.add(r);var o=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);ph(r,{normal:o,emphasis:s},{defaultText:t.title}),Bc(r)}))},e.prototype._createItem=function(t,e,n,i,r,a,o,s,l,u,c){var h=t.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var m=W8(l,i,o,s,h,f,c),b=new H8,_=i.getModel("textStyle");if(!x["isFunction"](t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;b.add(Y8({itemWidth:d,itemHeight:p,icon:l,iconRotate:w,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var S="left"===a?d+5:-5,M=a,O=r.get("formatter"),T=e;x["isString"](O)&&O?T=O.replace("{name}",null!=e?e:""):x["isFunction"](O)&&(T=O(e));var I=f?_.getTextColor():i.get("inactiveColor");b.add(new _u({style:gh(_,{text:T,x:S,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var C=new nu({shape:b.getBoundingRect(),style:{fill:"transparent"}}),A=i.getModel("tooltip");return A.get("show")&&Wb({el:C,componentModel:r,itemName:e,itemTooltipOption:A.option}),b.add(C),b.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(b),Bc(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,r,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Op(t.get("orient"),o,t.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),r){Op("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===a?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],o.x=u[0],o.y=u[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-p]),v}return o.x=u[0],o.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(bv);function W8(t,e,n,i,r,a,o){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),F8(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}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?Iw(h,o):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!a){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function Y8(t){var e=t.icon||"roundRect",n=z_(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=Xp.color.neutral00,n.style.lineWidth=2),n}function U8(t,e,n,i){$8(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),X8(t,e,n,i)}function X8(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function $8(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var Z8=G8;function q8(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},a=[];n.eachComponent({mainType:"legend",query:e},(function(n){i?n[t]():n[t](e.name),K8(n,r),a.push(n.componentIndex)}));var o={};return n.eachComponent("legend",(function(t){Object(x["each"])(r,(function(e,n){t[e?"select":"unSelect"](n)})),K8(t,o)})),i?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function K8(t,e){var n=e||{};return Object(x["each"])(t.getData(),(function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);Object(x["hasOwn"])(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}function Q8(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(x["curry"])(q8,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(x["curry"])(q8,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(x["curry"])(q8,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(x["curry"])(q8,"select")),t.registerAction("legendUnSelect","legendunselected",Object(x["curry"])(q8,"unSelect"))}var J8=ko(t9);function t9(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function e9(t){t.registerComponentModel(B8),t.registerComponentView(Z8),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,J8),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),Q8(t)}var n9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Ep(e);t.prototype.init.call(this,e,n,i),i9(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),i9(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Yh(B8.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Xp.color.accent50,pageIconInactiveColor:Xp.color.accent10,pageIconSize:15,pageTextStyle:{color:Xp.color.tertiary},animationDurationUpdate:800}),e}(B8);function i9(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,Rp(e,n,{type:"box",ignoreSize:!!r})}var r9=n9,a9=vr,o9=["width","height"],s9=["x","y"],l9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return f(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new a9),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new a9)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,a,o,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,a,o,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=x["isArray"](c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",a=Rb(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:x["bind"](l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=t,u.add(a)}u.add(new _u({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,a){var o=this.getSelectorGroup(),s=t.getOrient().index,l=o9[s],u=s9[s],c=o9[1-s],h=s9[1-s];r&&Op("horizontal",o,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=o.getBoundingRect(),f=[-p.x,-p.y],g=x["clone"](n);r&&(g[l]=n[l]-p[l]-d);var y=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===a)f[s]+=y[l]+d;else{var v=p[l]+d;f[s]-=v,y[u]-=v}y[l]+=p[l]+d,f[1-s]+=y[h]+y[c]/2-p[c]/2,y[c]=Math.max(y[c],p[c]),y[h]=Math.min(y[h],p[h]+f[1-s]),o.x=f[0],o.y=f[1],o.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,i,r,a,o,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Op(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Op("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],y=[-d.x,-d.y],v=x["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?y[i]+=n[r]-d[r]:g[i]+=d[r]+v}y[1-i]+=h[a]/2-d[a]/2,l.setPosition(f),u.setPosition(g),c.setPosition(y);var b={x:0,y:0};if(b[r]=p?n[r]:h[r],b[a]=Math.max(h[a],d[a]),b[o]=Math.min(0,d[o]+y[1-i]),u.__rectSize=n[r],p){var _={x:0,y:0};_[r]=Math.max(n[r]-d[r]-v,0),_[a]=b[a],u.setClipPath(new nu({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&nh(l,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;x["each"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",a=null!=e[r],o=n.childOfName(i);o&&(o.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),a=e.pageIndex,o=null!=a?a+1:0,s=e.pageCount;i&&r&&i.setStyle("text",x["isString"](r)?r.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):r({current:o,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,a=o9[r],o=s9[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,y=p,v=null;f<=c;++f)v=m(l[f]),(!v&&y.e>g.s+i||v&&!b(v,g.s))&&(g=y.i>g.i?y:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=v;for(f=s-1,g=p,y=p,v=null;f>=-1;--f)v=m(l[f]),v&&b(y,v.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function m(t){if(t){var e=t.getBoundingRect(),n=e[o]+t[o];return{s:n,e:n+e[a],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var a=i.__legendDataIndex;null==n&&null!=a&&(n=r),a===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(Z8),u9=l9;function c9(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 h9(t){IM(e9),t.registerComponentModel(r9),t.registerComponentView(u9),c9(t)}function d9(t){IM(e9),IM(h9)}var p9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.inside",e.defaultOption=Yh(T5.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(T5),f9=p9,g9=Ka();function y9(t,e,n){g9(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function v9(t,e){for(var n=g9(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var a=i[r],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||m9(n,o))}}}function m9(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function b9(t,e){var n={model:e,containsPoint:Object(x["curry"])(_9,e),dispatchAction:Object(x["curry"])(x9,t),dataZoomInfoMap:null,controller:null},i=n.controller=new _z(t.getZr());return Object(x["each"])(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var a=(r.getRange||{})[t],o=a&&a(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&o&&i.push({dataZoomId:r.model.id,start:o[0],end:o[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function x9(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function _9(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function w9(t,e,n){var i,r,a,o="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return t.each((function(t){var e=t.model,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");s[o+n]>s[o+i]&&(i=n),l=l&&e.get("preventDefaultMouseMove",!0),r=Object(x["retrieve2"])(e.get("cursorGrab",!0),r),a=Object(x["retrieve2"])(e.get("cursorGrabbing",!0),a)})),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l,api:n,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:r,cursorGrabbing:a}}}function S9(t){t.registerUpdateLifecycle("coordsys:aftercreate",(function(t,e){var n=g9(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(x["createHashMap"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=m5(t);Object(x["each"])(n.infoList,(function(n){var r=n.model.uid,a=i.get(r)||i.set(r,b9(e,n.model)),o=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(x["createHashMap"])());o.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var n,r=t.controller,a=t.dataZoomInfoMap;if(a){var o=a.keys()[0];null!=o&&(n=a.get(o))}if(n){var s=w9(a,t,e);r.enable(s.controlType,s.opt),mx(t,"dispatchAction",n.model.get("throttle",!0),"fixRate")}else m9(i,t)}))}))}var M9=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return f(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),y9(i,e,{pan:Object(x["bind"])(O9.pan,this),zoom:Object(x["bind"])(O9.zoom,this),scrollMove:Object(x["bind"])(O9.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){v9(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(k5),O9={zoom:function(t,e,n,i){var r=this.range,a=r.slice(),o=t.axisModels[0];if(o){var s=I9[e](null,[i.originX,i.originY],o,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return CU(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}},pan:T9((function(t,e,n,i,r,a){var o=I9[i]([a.oldX,a.oldY],[a.newX,a.newY],e,r,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:T9((function(t,e,n,i,r,a){var o=I9[i]([0,0],[a.scrollDelta,a.scrollDelta],e,r,n);return o.signal*(t[1]-t[0])*a.scrollDelta}))};function T9(t){return function(e,n,i,r){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,n,i,r);return CU(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}var I9={grid:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,i,r){var a=n.axis,o={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,i,r){var a=n.axis,o=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},C9=M9;function A9(t){B5(t),t.registerComponentModel(f9),t.registerComponentView(C9),S9(t)}var k9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Yh(T5.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:Xp.color.accent10,borderRadius:0,backgroundColor:Xp.color.transparent,dataBackground:{lineStyle:{color:Xp.color.accent30,width:.5},areaStyle:{color:Xp.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Xp.color.accent40,width:.5},areaStyle:{color:Xp.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:Xp.color.neutral00,borderColor:Xp.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:Xp.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:Xp.color.tertiary},brushSelect:!0,brushStyle:{color:Xp.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Xp.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(T5),D9=k9,L9=nu,P9=1,j9=30,N9=7,R9="horizontal",E9="vertical",z9=5,B9=["line","bar","candlestick","scatter"],V9={easing:"cubicOut",duration:100,delay:0},F9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return f(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(x["bind"])(this._onBrush,this),this._onBrushEnd=Object(x["bind"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),mx(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){bx(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new vr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?N9:0,r=Lp(t,e).refContainer,a=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,s=this._orient===R9?{right:r.width-a.x-a.width,top:r.height-j9-o-i,width:a.width,height:j9}:{right:o,top:a.y,width:j9,height:a.height},l=Ep(t.option);Object(x["each"])(["right","top","width","height"],(function(t){"ph"===l[t]&&(l[t]=s[t])}));var u=Ap(l,r);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===E9&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==R9||r?n===R9&&r?{scaleY:o?1:-1,scaleX:-1}:n!==E9||r?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=t.getBoundingRect([a]),l=isNaN(s.x)?0:s.x,u=isNaN(s.y)?0:s.y;t.x=e.x-l,t.y=e.y-u,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new L9({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new L9({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(x["bind"])(this._onClickPanel,this)}),a=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),a=i.getShadowDim&&i.getShadowDim(),o=a&&r.getDimensionInfo(a)?i.getShadowDim():t.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||o!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(t.thisDim),c=r.getDataExtent(o),h=.3*(c[1]-c[0]);c=[c[0]-h,c[1]+h];var d,p=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],y=[],v=f[1]/Math.max(1,r.count()-1),m=e[0]/(u[1]-u[0]),b="time"===t.thisAxis.type,x=-v,_=Math.round(r.count()/e[0]);r.each([t.thisDim,o],(function(t,e,n){if(_>0&&n%_)b||(x+=v);else{x=b?(+t-u[0])*m:x+v;var i=null==e||isNaN(e)||""===e,r=i?0:Xr(e,c,p,!0);i&&!d&&n?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!i&&d&&(g.push([x,0]),y.push([x,0])),i||(g.push([x,r]),y.push([x,r])),d=i}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=y}this._shadowData=r,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var M=O(1===S);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}function O(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),n=new vr,i=new _m({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Mm({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,a){var o=t.getAxisProxy(r,a).getTargetSeriesModels();Object(x["each"])(o,(function(t){if(!n&&!(!0!==e&&Object(x["indexOf"])(B9,t.get("type"))<0)){var o,s=i.getComponent(y5(r),a).axis,l=G9(r),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(o=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l);var c=t.getData().mapDimension(r);n={thisAxis:s,series:t,thisDim:c,otherDim:l,otherAxisInverse:o}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,u=o.get("brushSelect"),c=e.filler=new L9({silent:u,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new L9({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:P9,fill:Xp.color.transparent}})),Object(x["each"])([0,1],(function(e){var a=o.get("handleIcon");!N_[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=z_(a,-1,0,2,2,null,!0);s.attr({cursor:W9(this._orient),draggable:!0,drift:Object(x["bind"])(this._onDragMove,this,e),ondragend:Object(x["bind"])(this._onDragEnd,this),onmouseover:Object(x["bind"])(this._onOverDataInfoTriggerArea,this,!0),onmouseout:Object(x["bind"])(this._onOverDataInfoTriggerArea,this,!1),z2:5});var l=s.getBoundingRect(),u=o.get("handleSize");this._handleHeight=$r(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Bc(s);var c=o.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=o.getModel("textStyle"),d=o.get("handleLabel")||{},p=d.show||!1;t.add(i[e]=new _u({silent:!0,invisible:!p,style:gh(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=$r(o.get("moveHandleSize"),a[1]),p=e.moveHandle=new nu({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=z_(o.get("moveHandleIcon"),-f/2,-f/2,f,f,Xp.color.neutral00,!0);g.silent=!0,g.y=a[1]+d/2-.5,p.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(a[1]/2,Math.max(d,10));h=e.moveZone=new nu({invisible:!0,shape:{y:a[1]-y,height:d+y}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:"grab",drift:Object(x["bind"])(this._onActualMoveZoneDrift,this),ondragstart:Object(x["bind"])(this._onActualMoveZoneDragStart,this),ondragend:Object(x["bind"])(this._onActualMoveZoneDragEnd,this),onmouseover:Object(x["bind"])(this._onOverDataInfoTriggerArea,this,!0),onmouseout:Object(x["bind"])(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Xr(t[0],[0,100],e,!0),Xr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];CU(e,i,r,n.get("zoomLock")?"all":t,null!=a.minSpan?Xr(a.minSpan,o,r,!0):null,null!=a.maxSpan?Xr(a.maxSpan,o,r,!0):null);var s=this._range,l=this._range=ea([Xr(i[0],r,o,!0),Xr(i[1],r,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=ea(n.slice()),r=this._size;Object(x["each"])([0,1],(function(t){var i=e.handles[t],a=this._handleHeight;i.attr({scaleX:a/2,scaleY:a/2,x:n[t]+(t?-1:1),y:r[1]/2-a/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var a={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(a),e.moveZone.setShape(a),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",a.x+a.width/2));for(var o=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<o.length;l++){var u=o[l],c=u.getClipPath();c||(c=new nu,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,a=["",""];if(e.get("showDetail")){var o=e.findRepresentativeAxisProxy(),s=o.getAxisModel().axis.scale;if(o){var l,u=this._range;if(t){var c={start:u[0],end:u[1]},h=w5(e,o);if(h){var d=h.calculateDataWindow(c).percentInverted;c={start:d[0],end:d[1]}}l=o.calculateDataWindow(c)}else l=o.getWindow();a=[H9(e,0,l,s),H9(e,1,l,s)]}}var p=ea(this._handleEnds.slice());function f(t){var e=Cb(n.handles[t].parent,this.group),o=kb(0===t?"right":"left",e),s=this._handleWidth/2+z9,l=Ab([p[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===R9?"middle":o,align:r===R9?o:"center",text:a[t]})}f.call(this,0),f.call(this,1)},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var e=this.dataZoomModel.get("handleLabel")||{},n=e.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),r=i.get("show")||!1,a=t||this._dragging?r:n,o=this._displayables,s=o.handleLabels;s[0].attr("invisible",!a),s[1].attr("invisible",!a),o.moveHandle&&this.api[a?"enterEmphasis":"leaveEmphasis"](o.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,e,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,e,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,_t(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),a=Ab([e,n],r,!0),o=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,a=this._updateInterval("all",n[0]-r);this._updateView(),a&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Et(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),a=[0,100],o=this._handleEnds=[n.x,n.x+n.width],s=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();CU(0,o,r,0,null!=s.minSpan?Xr(s.minSpan,a,r,!0):null,null!=s.maxSpan?Xr(s.maxSpan,a,r,!0):null),this._range=ea([Xr(o[0],r,a,!0),Xr(o[1],r,a,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(_t(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new L9({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(t,e),l=o.transformCoordToLocal(a.x,a.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?V9:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=m5(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(k5);function H9(t,e,n,i){var r=t.get("labelFormatter"),a=t.get("labelPrecision");null!=a&&"auto"!==a||(a=n.valuePrecision);var o=n.value[e],s=null==o||isNaN(o)?"":QO(i)||qO(i)?i.getLabel({value:Math.round(o)}):isFinite(a)?Jr(o,a,!0):o+"";return Object(x["isFunction"])(r)?r(o,s):Object(x["isString"])(r)?r.replace("{value}",s):s}function G9(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function W9(t){return"vertical"===t?"ns-resize":"ew-resize"}var Y9=F9;function U9(t){t.registerComponentModel(D9),t.registerComponentView(Y9),B5(t)}function X9(t){IM(A9),IM(U9)}var $9={get:function(t,e,n){var i=x["clone"]((Z9[t]||{})[e]);return n&&x["isArray"](i)?i[i.length-1]:i}},Z9={color:{active:["#006edd","#e0ffff"],inactive:[Xp.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},q9=$9,K9=CG.mapVisual,Q9=CG.eachVisual,J9=x["isArray"],t7=x["each"],e7=ea,n7=Xr,i7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&V4(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=x["bind"](t,this),this.controllerVisuals=B4(this.option.controller,e,t),this.targetVisuals=B4(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,e=this.option.seriesTargets;if(e){var n=[];return t7(e,(function(e){if(null!=e.seriesIndex)n.push(e.seriesIndex);else if(null!=e.seriesId){var i;t.ecModel.eachSeries((function(t){t.id===e.seriesId&&(i=t)})),i&&n.push(i.componentIndex)}})),n}var i=this.option.seriesId,r=this.option.seriesIndex;null==r&&null==i&&(r="all");var a=io(this.ecModel,"series",{index:r,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return x["map"](a,(function(t){return t.componentIndex}))},e.prototype.eachTargetSeries=function(t,e){x["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,a=r.precision,o=this.dataBound,s=r.formatter;n=n||["<",">"],x["isArray"](t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return x["isString"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):x["isFunction"](s)?i?s(t[0],t[1]):s(t):i?t[0]===o[0]?n[0]+" "+l[1]:t[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===o[0]?"min":t===o[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=e7([t.min,t.max]);this._dataExtent=e},e.prototype.getDimension=function(t){var e=this,n=this.option.seriesTargets;if(n){var i=x["find"](n,(function(n){return null!=n.seriesIndex&&n.seriesIndex===t||null!=n.seriesId&&n.seriesId===e.ecModel.getSeriesByIndex(t).id}));if(i)return i.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var e=t.hostModel.seriesIndex,n=this.getDimension(e);if(null!=n)return t.getDimensionIndex(n);for(var i=t.dimensions,r=i.length-1;r>=0;r--){var a=i[r],o=t.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});x["merge"](i,n),x["merge"](r,n);var a=this.isCategory();function o(n){J9(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},t7(i,(function(t,e){if(CG.isValidType(e)){var n=q9.get(e,"inactive",a);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),o=r||"roundRect";t7(this.stateList,(function(r){var s=this.itemSize,l=t[r];l||(l=t[r]={color:a?i:[i]}),null==l.symbol&&(l.symbol=e&&x["clone"](e)||(a?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&x["clone"](n)||(a?s[0]:[s[0],s[0]])),l.symbol=K9(l.symbol,(function(t){return"none"===t?o:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;Q9(u,(function(t){t>c&&(c=t)})),l.symbolSize=K9(u,(function(t){return n7(t,[0,c],[0,s[0]],!0)}))}}),this)}o.call(this,i),o.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:Xp.color.transparent,borderColor:Xp.color.borderTint,contentColor:Xp.color.theme[0],inactiveColor:Xp.color.disabled,borderWidth:0,padding:Xp.size.m,textGap:10,precision:0,textStyle:{color:Xp.color.secondary}},e}(Hp),r7=i7,a7=[20,140],o7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=a7[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=a7[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):x["isArray"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),x["each"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ea((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent(),i=x["retrieve2"](this.option.unboundedRange,!0);return(i&&e[0]<=n[0]||e[0]<=t)&&(i&&e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=s7(this,"outOfRange",this.getExtent()),n=s7(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var a=0,o=0,s=n.length,l=e.length;o<l&&(!n.length||e[o]<=n[0]);o++)e[o]<n[a]&&r(e[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&i.length&&r(n[a],"outOfRange"),r(n[a],"inRange");for(u=1;o<l;o++)(!n.length||n[n.length-1]<e[o])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(e[o],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Yh(r7.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:Xp.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:Xp.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Xp.color.shadow}}),e}(r7);function s7(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,a=n[0],o=[],s=0;s<=i&&a<n[1];s++)o.push(a),a+=r;return o.push(n[1]),o}var l7=o7,u7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return f(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=$d(e.get("padding")||0),i=t.getBoundingRect();t.add(new nu({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var i=n.forceState,r=this.visualMapModel,a={};if("color"===e){var o=r.get("contentColor");a.color=o}function s(t){return a[t]}function l(t,e){a[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)],c=CG.prepareVisualTypes(u);return x["each"](c,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),CG.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api,i=Lp(e,n).refContainer;Pp(t,e.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(bv),c7=u7,h7=[["left","right","width"],["top","bottom","height"]];function d7(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var a={width:e.getWidth(),height:e.getHeight()},o="horizontal"===i.orient?1:0,s=h7[o],l=[0,null,10],u={},c=0;c<3;c++)u[h7[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][o],d=Ap(u,a,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*a[h[1]]?0:1]}function p7(t,e){return x["each"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var f7=Xr,g7=x["each"],y7=Math.min,v7=Math.max,m7=12,b7=6,x7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return f(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=x["bind"](this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=x["bind"](this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,a=r.get("textGap"),o=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new _u({style:gh(h,{x:l[0],y:l[1],verticalAlign:h.get("verticalAlign")||("horizontal"===c?"middle":u),align:h.get("align")||("horizontal"===c?u:"center"),text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,a=this._useHandle,o=d7(e,this.api,i),s=n.mainGroup=this._createBarGroup(o),l=new vr;s.add(l),l.add(n.outOfRange=_7()),l.add(n.inRange=_7(null,a?M7(this._orient):null,x["bind"](this._dragHandle,this,"all",!1),x["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new nu({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=v7(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,a){var o=x["bind"](this._dragHandle,this,n,!1),s=x["bind"](this._dragHandle,this,n,!0),l=$i(t.get("handleSize"),i[0]),u=z_(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=M7(this._orient);u.attr({cursor:c,draggable:!0,drift:o,ondragend:s,onmousemove:function(t){_t(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Uc(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new _u({cursor:c,draggable:!0,drift:o,onmousemove:function(t){_t(t.event)},ondragend:s,style:gh(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,i,r){var a=$i(t.get("indicatorSize"),n[0]),o=z_(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(o instanceof Xl){var l=o.style;o.useStyle(x["extend"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else o.useStyle(s);e.add(o);var u=this.visualMapModel.textStyleModel,c=new _u({silent:!0,invisible:!0,style:gh(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===r?i/2:b7)+n[0]/2,0],d=this._shapes;d.indicator=o,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():S7(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[f7(e[0],n,i,!0),f7(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];CU(e,i,r,t,0);var a=n.getExtent();this._dataInterval=[f7(i[0],r,a,!0),f7(i[1],r,a,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],a=t?r:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,r),o=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,o);return{barColor:new Hm(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<n;a++){var o=t[0]+r*a;if(o>t[1])break;i.push({color:this.getControllerVisual(o,"color",e),offset:a/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new vr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,a=n.handleLabels,o=i.itemSize,s=i.getExtent(),l=this._applyTransform("left",n.mainGroup);g7([0,1],(function(u){var c=r[u];c.setStyle("fill",e.handlesColor[u]),c.y=t[u];var h=f7(t[u],[0,o[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/o[0],c.x=o[0]-d/2;var p=Ab(n.handleLabelPoints[u],Cb(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(o[0]-d)/2:(o[0]-d)/-2;p[1]+=f}a[u].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,a=r.getExtent(),o=r.itemSize,s=[0,o[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=f7(t,a,s,!0),f=o[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var y=Ab(l.indicatorLabelPoint,Cb(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:x?m:"middle",align:x?"center":m});var _={x:f,y:p,style:{fill:h}},w={style:{x:y[0],y:y[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(_,S),v.animateTo(w,S)}else u.attr(_),v.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var O=0;O<M.length;O++)this.api.enterBlur(M[O])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=y7(v7(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],a=n.getExtent();t=y7(v7(r[0],t),r[1]);var o=w7(n,a,r),s=[t-o,t+o],l=f7(t,r,a,!0),u=[f7(s[0],r,a,!0),f7(s[1],r,a,!0)];s[0]<r[0]&&(u[0]=-1/0),s[1]>r[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var c=this._hoverLinkDataIndices,h=[];(e||S7(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=Za(c,h);this._dispatchHighDown("downplay",p7(d[0],n)),this._dispatchHighDown("highlight",p7(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(h_(t.target,(function(t){var n=wu(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),a=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",p7(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=Cb(e,i?null:this.group);return x["isArray"](t)?Ab(t,r,n):kb(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(c7);function _7(t,e,n,i){return new _m({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){_t(t.event)},ondragend:i})}function w7(t,e,n){var i=m7/2,r=t.get("hoverLinkDataSize");return r&&(i=f7(r,e,n,!0)/2),i}function S7(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function M7(t){return"vertical"===t?"ns-resize":"ew-resize"}var O7=x7,T7={type:"selectDataRange",event:"dataRangeSelected",update:"update"},I7=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},C7=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(H4(e.stateList,e.targetVisuals,x["bind"](e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(x["bind"](A7,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(r.dimension=a,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function A7(t,e,n,i){for(var r=e.targetVisuals[i],a=CG.prepareVisualTypes(r),o={color:o_(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=r["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return o.color;function h(t){return o[t]}function d(t,e){o[t]=e}}var k7=x["each"];function D7(t){var e=t&&t.visualMap;x["isArray"](e)||(e=e?[e]:[]),k7(e,(function(t){if(t){L7(t,"splitList")&&!L7(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&x["isArray"](e)&&k7(e,(function(t){x["isObject"](t)&&(L7(t,"start")&&!L7(t,"min")&&(t.min=t.start),L7(t,"end")&&!L7(t,"max")&&(t.max=t.end))}))}}))}function L7(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var P7=!1;function j7(t){P7||(P7=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(T7,I7),Object(x["each"])(C7,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(D7))}function N7(t){t.registerComponentModel(l7),t.registerComponentView(O7),j7(t)}var R7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return f(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],E7[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=x["clone"](r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=x["map"](this._pieceList,(function(t){return t=x["clone"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=CG.listVisualTypes(),r=this.isCategory();function a(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}x["each"](e.pieces,(function(t){x["each"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),x["each"](n,(function(t,n){var i=!1;x["each"](this.stateList,(function(t){i=i||a(e,t,n)||a(e.target,t,n)}),this),!i&&x["each"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=q9.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,x["each"](i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var a=!1;x["each"](i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(a?r[n]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=x["clone"](t)},e.prototype.getValueState=function(t){var e=CG.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],a=i.getData();a.each(this.getDataDimensionIndex(a),(function(e,i){var a=CG.findPieceIndex(e,n);a===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var a=r[0].interval[0];a!==-1/0&&r.unshift({interval:[-1/0,a]}),a=r[r.length-1].interval[1],a!==1/0&&r.push({interval:[a,1/0]})}else r.push({interval:[-1/0,1/0]});var o=-1/0;return x["each"](r,(function(t){var e=t.interval;e&&(e[0]>o&&s([o,e[0]],"outOfRange"),s(e.slice()),o=e[1])}),this),{stops:e,outerColors:n}}function s(r,a){var o=i.getRepresentValue({interval:r});a||(a=i.getValueState(o));var s=t(o,a);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Yh(r7.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(r7),E7={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var a=(i[1]-i[0])/r;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<r;s+=a,o++){var l=o===r-1?i[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),ba(t),x["each"](t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;x["each"](e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),z7(e,t)},pieces:function(t){var e=this.option;x["each"](e.pieces,(function(e,n){x["isObject"](e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var a=i.interval=[],o=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==a[c];d++)a[c]=e[h[d]],o[c]=s[d],u[c]=2===d;null==a[c]&&(a[c]=l[c])}u[0]&&a[1]===1/0&&(o[0]=0),u[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(i.value=a[0])}i.visual=CG.retrieveVisuals(e),t.push(i)}),this),z7(e,t),ba(t),x["each"](t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function z7(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var B7=R7,V7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=this._getItemAlign(),a=e.itemSize,o=this._getViewData(),s=o.endsText,l=x["retrieve"](e.get("showLabel",!0),!s),u=!e.get("selectedMode");s&&this._renderEndsText(t,s[0],a,l,r),x["each"](o.viewPieceList,(function(o){var s=o.piece,c=new vr;c.onclick=x["bind"](this._onItemClick,this,s),this._enableHoverLink(c,o.indexInModelPieceList);var h=e.getRepresentValue(s);if(this._createItemSymbol(c,h,[0,0,a[0],a[1]],u),l){var d=this.visualMapModel.getValueState(h),p=i.get("align")||r;c.add(new _u({style:gh(i,{x:"right"===p?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:i.get("verticalAlign")||"middle",align:p,opacity:x["retrieve2"](i.get("opacity"),"outOfRange"===d?.5:1)}),silent:u}))}t.add(c)}),this),s&&this._renderEndsText(t,s[1],a,l,r),Op(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:p7(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return d7(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var a=new vr,o=this.visualMapModel.textStyleModel;a.add(new _u({style:gh(o,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(a)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=x["map"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,i){var r=z_(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));r.silent=i,t.add(r)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=x["clone"](n.selected),a=e.getSelectedMapKey(t);"single"===i||!0===i?(r[a]=!0,x["each"](r,(function(t,e){r[e]=e===a}))):r[a]=!r[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(c7),F7=V7;function H7(t){t.registerComponentModel(B7),t.registerComponentView(F7),j7(t)}function G7(t){IM(N7),IM(H7)}var W7=function(){function t(t){this._thumbnailModel=t}return t.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},t.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:Qb(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},t.prototype.updateWindow=function(t,e){var n=e.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},t}(),Y7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return f(e,t),e.prototype.optionUpdated=function(t,e){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new W7(this);if(this._target=null,this.ecModel.eachSeries((function(t){oY(t,null)})),this.shouldShow()){var e=this.getTarget();oY(e.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?"graph"!==t.subType&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:Xp.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Xp.color.neutral30,borderColor:Xp.color.neutral40,opacity:.3},z:10},e}(Hp),U7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new dV),this._isEnabled()){this._renderVersion=n.getECUpdateCycleVersion();var i=this.group;i.removeAll();var r=t.getModel("itemStyle"),a=r.getItemStyle();null==a.fill&&(a.fill=e.get("backgroundColor")||Xp.color.neutral00);var o=Lp(t,n).refContainer,s=Ap(Tp(t,!0),o),l=a.lineWidth||0,u=this._contentRect=Fb(s.clone(),l/2,!0,!0),c=new vr;i.add(c),c.setClipPath(new nu({shape:u.plain()}));var h=this._targetGroup=new vr;c.add(h);var d=s.plain();d.r=r.getShallow("borderRadius",!0),i.add(this._bgRect=new nu({style:a,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),f=p.getShallow("borderRadius",!0);c.add(this._windowRect=new nu({shape:{x:0,y:0,width:0,height:0,r:f},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),$7(t,this)}else this._clear()},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),$7(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=this._targetGroup,n=this._coordSys,i=this._contentRect;if(e.removeAll(),t){var r=t.group,a=r.getBoundingRect();e.add(r),this._bgRect.z2=t.z2Range.min-10,DB(n,a.x,a.y,a.width,a.height);var o=Ap({left:"center",top:"center",aspect:a.width/a.height},i);LB(n,o.x,o.y,o.width,o.height),OB(r,n,fB),r.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var e=this._bridgeRendered;e&&e.renderVersion===t.renderVersion&&(e.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=jt([],t.targetTrans),n=kt([],_B(null,this._coordSys),e);this._transThisToTarget=jt([],n);var i=t.viewportRect;i=i?i.clone():new ue(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var r=this._windowRect,a=r.shape.r;r.setShape(Object(x["defaults"])({r:a},i))}},e.prototype._resetRoamController=function(t){var e=this,n=this._api,i=this._roamController;i||(i=this._roamController=new _z(n.getZr())),t&&this._isEnabled()?(i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(t,n,i){return e._contentRect.contain(n,i)}}}),i.off("pan").off("zoom").on("pan",Object(x["bind"])(this._onPan,this)).on("zoom",Object(x["bind"])(this._onZoom,this))):i.disable()},e.prototype._onPan=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=G([],[t.oldX,t.oldY],e),i=G([],[t.oldX-t.dx,t.oldY-t.dy],e);this._api.dispatchAction(X7(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=G([],[t.originX,t.originY],e);this._api.dispatchAction(X7(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var e=t.getTarget().baseMapProvider;return!!e},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(bv);function X7(t,e){var n="series"===t.mainType?t.subType+"Roam":t.mainType+"Roam",i={type:n};return i[t.mainType+"Id"]=t.id,Object(x["extend"])(i,e),i}function $7(t,e){var n=Kb(t);Jb(e.group,n.z,n.zlevel)}function Z7(t){t.registerComponentModel(Y7),t.registerComponentView(U7)}var q7={label:{enabled:!0},decal:{show:!1}},K7=Ka(),Q7=Ka(),J7=ko(ttt);function ttt(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=Q7(t).scope||(Q7(t).scope={}),r=x["clone"](q7);x["merge"](r.label,t.getLocaleModel().get("aria"),!1),x["merge"](n.option,r,!1),a(),o()}function a(){var e=n.getModel("decal"),r=e.get("show");if(r){var a=x["createHashMap"]();t.eachSeries((function(t){t.isColorBySeries()||(K7(t).scope=a.get(t.type)||a.set(t.type,{}))})),t.eachSeries((function(e){if(x["isFunction"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=gf(e.ecModel,e.name,i,t.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",c(a,r))}else{var o=e.getRawData(),s={},l=K7(e).scope;n.each((function(t){var e=n.getRawIndex(t);s[e]=t}));var u=o.count();o.each((function(t){var i=s[t],r=o.getName(t)||t+"",a=gf(e.ecModel,r,l,u),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,a))}))}}function c(t,e){var n=t?x["extend"](x["extend"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var i=e.getZr().dom;if(i){var r=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=x["defaults"](a.option,r),a.get("enabled"))if(i.setAttribute("role","img"),a.get("description"))i.setAttribute("aria-label",a.get("description"));else{var o,c=t.getSeriesCount(),h=a.get(["data","maxCount"])||10,d=a.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var f=l();if(f){var g=a.get(["general","withTitle"]);o=s(g,{title:f})}else o=a.get(["general","withoutTitle"]);var y=[],v=c>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);o+=s(v,{seriesCount:c}),t.eachSeries((function(t,e){if(e<p){var n=void 0,i=t.get("name"),r=i?"withName":"withoutName";n=c>1?a.get(["series","multiple",r]):a.get(["series","single",r]),n=s(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:u(t.subType)});var o=t.getData();if(o.count()>h){var l=a.get(["data","partialData"]);n+=s(l,{displayCnt:h})}else n+=a.get(["data","allData"]);for(var d=a.get(["data","separator","middle"]),f=a.get(["data","separator","end"]),g=a.get(["data","excludeDimensionId"]),v=[],m=0;m<o.count();m++)if(m<h){var b=o.getName(m),_=g?x["filter"](o.getValues(m),(function(t,e){return-1===x["indexOf"](g,e)})):o.getValues(m),w=a.get(["data",b?"withName":"withoutName"]);v.push(s(w,{name:b,value:_.join(d)}))}n+=v.join(d)+f,y.push(n)}}));var m=a.getModel(["series","multiple","separator"]),b=m.get("middle"),_=m.get("end");o+=y.join(b)+_,i.setAttribute("aria-label",o)}}}}function s(t,e){if(!x["isString"](t))return t;var n=t;return x["each"](e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function l(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function u(e){var n=t.getLocaleModel().get(["series","typeNames"]);return n[e]||n.chart}}function ett(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},x["each"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function ntt(t){t.registerPreprocessor(ett),t.registerVisual(t.PRIORITY.VISUAL.ARIA,J7)}var itt={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},rtt=function(){function t(t){var e=this._condVal=Object(x["isString"])(t)?new RegExp(t):Object(x["isRegExp"])(t)?t:null;if(null==e){var n="";0,Cf(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(x["isString"])(e)?this._condVal.test(t):!!Object(x["isNumber"])(e)&&this._condVal.test(t+"")},t}(),att=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),ott=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),stt=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),ltt=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),utt=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?i:n))return!1;return!0},t}();function ctt(t,e){if(!0===t||!1===t){var n=new att;return n.value=t,n}var i="";return ftt(t)||Cf(i),t.and?htt("and",t,e):t.or?htt("or",t,e):t.not?dtt(t,e):ptt(t,e)}function htt(t,e,n){var i=e[t],r="";Object(x["isArray"])(i)||Cf(r),i.length||Cf(r);var a="and"===t?new ott:new stt;return a.children=Object(x["map"])(i,(function(t){return ctt(t,n)})),a.children.length||Cf(r),a}function dtt(t,e){var n=t.not,i="";ftt(n)||Cf(i);var r=new ltt;return r.child=ctt(n,e),r.child||Cf(i),r}function ptt(t,e){for(var n="",i=e.prepareGetValue(t),r=[],a=Object(x["keys"])(t),o=t.parser,s=o?ny(o):null,l=0;l<a.length;l++){var u=a[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(x["hasOwn"])(itt,u)?itt[u]:u,h=t[u],d=s?s(h):h,p=sy(c,d)||"reg"===c&&new rtt(d);p||Cf(n),r.push(p)}}r.length||Cf(n);var f=new utt;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=r,f}function ftt(t){return Object(x["isObject"])(t)&&!Object(x["isArrayLike"])(t)}var gtt=function(){function t(t,e){this._cond=ctt(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function ytt(t,e){return new gtt(t,e)}var vtt={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=ytt(t.config,{valueGetterAttrMap:Object(x["createHashMap"])({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;Object(x["hasOwn"])(t,"dimension")||Cf(e);var r=n.getDimensionInfo(i);return r||Cf(e),{dimIdx:r.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),r=[],a=0,o=n.count();a<o;a++)e=n.getRawDataItem(a),i.evaluate()&&r.push(e);return{data:r}}};var mtt={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=Aa(n);r.length||Cf(i);var a=[];Object(x["each"])(r,(function(t){var n=t.dimension,r=t.order,o=t.parser,s=t.incomparable;if(null==n&&Cf(i),"asc"!==r&&"desc"!==r&&Cf(i),s&&"min"!==s&&"max"!==s){var l="";0,Cf(l)}if("asc"!==r&&"desc"!==r){var u="";0,Cf(u)}var c=e.getDimensionInfo(n);c||Cf(i);var h=o?ny(o):null;o&&!h&&Cf(i),a.push({dimIdx:c.index,parser:h,comparator:new ay(r,s)})}));var o=e.sourceFormat;o!==Cu&&o!==Au&&Cf(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<a.length;i++){var r=a[i],o=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(o=r.parser(o),s=r.parser(s));var l=r.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:s}}};function btt(t){t.registerTransform(vtt),t.registerTransform(mtt)}var xtt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return f(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new Ly(this),Py(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Py(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Pu},e}(Hp),_tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return f(e,t),e.type="dataset",e}(bv);function wtt(t){t.registerComponentModel(xtt),t.registerComponentView(_tt)}var Stt=pl.CMD;function Mtt(t,e){return Math.abs(t-e)<1e-5}function Ott(t){var e,n,i,r,a,o=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){Mtt(t,i)&&Mtt(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,a,o){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*a+i,g=h*o+r,y=d*a+i,v=p*o+r,m=a*l*u,b=o*l*u;e.push(f-m*h,g+b*c,y+m*p,v-b*d,y,v)}for(var y=0;y<s;){var v=o[y++],m=1===y;switch(m&&(u=o[y],c=o[y+1],h=u,d=c,v!==Stt.L&&v!==Stt.C&&v!==Stt.Q||(e=[h,d])),v){case Stt.M:u=h=o[y++],c=d=o[y++],p(h,d);break;case Stt.L:n=o[y++],i=o[y++],f(u,c,n,i),u=n,c=i;break;case Stt.C:e.push(o[y++],o[y++],o[y++],o[y++],u=o[y++],c=o[y++]);break;case Stt.Q:n=o[y++],i=o[y++],r=o[y++],a=o[y++],e.push(u+2/3*(n-u),c+2/3*(i-c),r+2/3*(n-r),a+2/3*(i-a),r,a),u=r,c=a;break;case Stt.A:var b=o[y++],x=o[y++],_=o[y++],w=o[y++],S=o[y++],M=o[y++]+S;y+=1;var O=!o[y++];n=Math.cos(S)*_+b,i=Math.sin(S)*w+x,m?(h=n,d=i,p(h,d)):f(u,c,n,i),u=Math.cos(M)*_+b,c=Math.sin(M)*w+x;for(var T=(O?-1:1)*Math.PI/2,I=S;O?I>M:I<M;I+=T){var C=O?Math.max(I+T,M):Math.min(I+T,M);g(I,C,b,x,_,w)}break;case Stt.R:h=u=o[y++],d=c=o[y++],n=h+o[y++],i=d+o[y++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case Stt.Z:e&&f(u,c,h,d),u=h,c=d;break}}return e&&e.length>2&&l.push(e),l}function Ttt(t,e,n,i,r,a,o,s,l,u){if(Mtt(t,n)&&Mtt(e,i)&&Mtt(r,o)&&Mtt(a,s))l.push(o,s);else{var c=2/u,h=c*c,d=o-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,y=i-e,v=r-o,m=a-s,b=g*g+y*y,x=v*v+m*m;if(b<h&&x<h)l.push(o,s);else{var _=d*g+p*y,w=-d*v-p*m,S=b-_*_,M=x-w*w;if(S<h&&_>=0&&M<h&&w>=0)l.push(o,s);else{var O=[],T=[];on(t,n,r,o,.5,O),on(e,i,a,s,.5,T),Ttt(O[0],T[0],O[1],T[1],O[2],T[2],O[3],T[3],l,u),Ttt(O[4],T[4],O[5],T[5],O[6],T[6],O[7],T[7],l,u)}}}}function Itt(t,e){var n=Ott(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var a=n[r],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],h=a[u++],d=a[u++],p=a[u++],f=a[u++],g=a[u++];Ttt(s,l,c,h,d,p,f,g,o,e),s=f,l=g}i.push(o)}return i}function Ctt(t,e,n){var i=t[e],r=t[1-e],a=Math.abs(i/r),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,h=n-c;if(h>0)for(u=0;u<h;u++)l[u%o]+=1;return l}function Att(t,e,n){for(var i=t.r0,r=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*r,u=r-i,c=l>Math.abs(u),h=Ctt([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var y={};c?(y.startAngle=a+d*p,y.endAngle=a+d*(p+1),y.r0=i+f*g,y.r=i+f*(g+1)):(y.startAngle=a+f*g,y.endAngle=a+f*(g+1),y.r0=i+d*p,y.r=i+d*(p+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function ktt(t,e,n){for(var i=t.width,r=t.height,a=i>r,o=Ctt([i,r],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",h=t[s]/o.length,d=0;d<o.length;d++)for(var p=t[l]/o[d],f=0;f<o[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}function Dtt(t,e,n,i){return t*i-n*e}function Ltt(t,e,n,i,r,a,o,s){var l=n-t,u=i-e,c=o-r,h=s-a,d=Dtt(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=t-r,f=e-a,g=Dtt(p,f,c,h)/d;return g<0||g>1?null:new Et(g*l+t,g*u+e)}function Ptt(t,e,n){var i=new Et;Et.sub(i,n,e),i.normalize();var r=new Et;Et.sub(r,t,e);var a=r.dot(i);return a}function jtt(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Ntt(t,e,n){for(var i=t.length,r=[],a=0;a<i;a++){var o=t[a],s=t[(a+1)%i],l=Ltt(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:Ptt(l,e,n),pt:l,idx:a})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var u=r[0],c=r[r.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(a=u.idx+1;a<=c.idx;a++)jtt(f,t[a].slice());jtt(f,p),jtt(f,d);for(a=c.idx+1;a<=u.idx+i;a++)jtt(g,t[a%i].slice());return jtt(g,d),jtt(g,p),[{points:f},{points:g}]}function Rtt(t){var e=t.points,n=[],i=[];Fs(e,n,i);var r=new ue(n[0],n[1],i[0]-n[0],i[1]-n[1]),a=r.width,o=r.height,s=r.x,l=r.y,u=new Et,c=new Et;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),Ntt(e,u,c)}function Ett(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),a=t(e);Ett(t,a[0],r,i),Ett(t,a[1],n-r,i)}return i}function ztt(t,e){for(var n=[],i=0;i<e;i++)n.push(Gv(t));return n}function Btt(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Vtt(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function Ftt(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":ktt(r,e,i),n=nu;break;case"sector":Att(r,e,i),n=pm;break;case"circle":Att({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=pm;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Object(x["map"])(Itt(t.getUpdatedPathProxy(),o),(function(t){return Vtt(t)})),l=s.length;if(0===l)Ett(Rtt,{points:s[0]},e,i);else if(l===e)for(var u=0;u<l;u++)i.push({points:s[u]});else{var c=0,h=Object(x["map"])(s,(function(t){var e=[],n=[];Fs(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return c+=i,{poly:t,area:i}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*e);f<0||(Ett(Rtt,{points:p.poly},f,i),d-=f)}}n=_m;break}if(!n)return ztt(t,e);var g=[];for(u=0;u<i.length;u++){var y=new n;y.setShape(i[u]),Btt(t,y),g.push(y)}return g}function Htt(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],a=[],o=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[o[0],o[1]],d=l,p=2;p<s;){var f=o[p-2],g=o[p-1],y=o[p++],v=o[p++],m=o[p++],b=o[p++],x=o[p++],_=o[p++];if(d<=0)h.push(y,v,m,b,x,_);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var M=S/w;on(f,y,m,x,M,r),on(g,v,b,_,M,a),f=r[3],g=a[3],h.push(r[1],a[1],r[2],a[2],f,g),y=r[5],v=a[5],m=r[6],b=a[6]}d-=w-1}}return o===t?[h,e]:[t,h]}function Gtt(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],a=[],o=0;o<e.length;)a[o++]=i,a[o++]=r;return a}function Wtt(t,e){for(var n,i,r,a=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(n=Htt(l,u),c=n[0],h=n[1],i=c,r=h):(h=Gtt(r||l,l),c=l):(c=Gtt(i||u,u),h=u),a.push(c),o.push(h)}return[a,o]}function Ytt(t){for(var e=0,n=0,i=0,r=t.length,a=0,o=r-2;a<r;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+1],h=s*c-u*l;e+=h,n+=(s+u)*h,i+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function Utt(t,e,n,i){for(var r=(t.length-2)/6,a=1/0,o=0,s=t.length,l=s-2,u=0;u<r;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],y=e[d]-i[0],v=e[d+1]-i[1],m=y-f,b=v-g;h+=m*m+b*b}h<a&&(a=h,o=u)}return o}function Xtt(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function $tt(t,e,n,i){for(var r,a=[],o=0;o<t.length;o++){var s=t[o],l=e[o],u=Ytt(s),c=Ytt(l);null==r&&(r=u[2]<0!==c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],y=s.length;r&&(s=Xtt(s));for(var v=6*Utt(s,l,u,c),m=y-2,b=0;b<m;b+=2){var x=(v+b)%m+2;h[b+2]=s[x]-u[0],h[b+3]=s[x+1]-u[1]}if(h[0]=s[v]-u[0],h[1]=s[v+1]-u[1],n>0)for(var _=i/n,w=-i/2;w<=i/2;w+=_){var S=Math.sin(w),M=Math.cos(w),O=0;for(b=0;b<s.length;b+=2){var T=h[b],I=h[b+1],C=l[b]-c[0],A=l[b+1]-c[1],k=C*M-A*S,D=C*S+A*M;g[b]=k,g[b+1]=D;var L=k-T,P=D-I;O+=L*L+P*P}if(O<f){f=O,p=w;for(var j=0;j<g.length;j++)d[j]=g[j]}}else for(var N=0;N<y;N+=2)d[N]=l[N]-c[0],d[N+1]=l[N+1]-c[1];a.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return a}function Ztt(t){return t.__isCombineMorphing}var qtt="__mOriginal_";function Ktt(t,e,n){var i=qtt+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var a=n.replace,o=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=a?a.apply(this,e):r.apply(this,e),o&&o.apply(this,e),t}}function Qtt(t,e){var n=qtt+e;t[n]&&(t[e]=t[n],t[n]=null)}function Jtt(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var a=i[r],o=i[r+1];i[r++]=e[0]*a+e[2]*o+e[4],i[r++]=e[1]*a+e[3]*o+e[5]}}function tet(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=Wtt(Ott(n),Ott(i)),a=r[0],o=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Jtt(a,s),l&&Jtt(o,l),Ktt(e,"updateTransform",{replace:u}),e.transform=null;var c=$tt(a,o,10,Math.PI),h=[];Ktt(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],a=0;a<c.length;a++){var o=c[a],s=o.from,l=o.to,u=o.rotation*n,d=o.fromCp,p=o.toCp,f=Math.sin(u),g=Math.cos(u);H(r,d,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],b=l[y],x=l[y+1],_=v*i+b*n,w=m*i+x*n;h[y]=_*g-w*f+r[0],h[y+1]=_*f+w*g+r[1]}var S=h[0],M=h[1];t.moveTo(S,M);for(y=2;y<s.length;){b=h[y++],x=h[y++];var O=h[y++],T=h[y++],I=h[y++],C=h[y++];S===b&&M===x&&O===I&&T===C?t.lineTo(I,C):t.bezierCurveTo(b,x,O,T,I,C),S=I,M=C}}}})}function eet(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;function a(){Qtt(e,"buildPath"),Qtt(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return tet(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(x["defaults"])({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){a(),i&&i()}},n)),e}function net(t,e,n,i,r,a){var o=16;t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=a===i?0:Math.round(32767*(e-i)/(a-i));for(var s,l=0,u=(1<<o)/2;u>0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function iet(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,a=Object(x["map"])(t,(function(t){var a=t.getBoundingRect(),o=t.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),o=Object(x["map"])(a,(function(a,o){return{cp:a,z:net(a[0],a[1],e,n,i,r),path:t[o]}}));return o.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function ret(t){return Ftt(t.path,t.count)}function aet(){return{fromIndividuals:[],toIndividuals:[],count:0}}function oet(t,e,n){var i=[];function r(t){for(var e=0;e<t.length;e++){var n=t[e];Ztt(n)?r(n.childrenRef()):n instanceof Bl&&i.push(n)}}r(t);var a=i.length;if(!a)return aet();var o=n.dividePath||ret,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),aet();i=iet(i),s=iet(s);for(var l=n.done,u=n.during,c=n.individualDelay,h=new ji,d=0;d<a;d++){var p=i[d],f=s[d];f.parent=e,f.copyTransform(h),c||tet(p,f)}function g(t){for(var e=0;e<s.length;e++)s[e].addSelfToZr(t)}function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Qtt(e,"addSelfToZr"),Qtt(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},Ktt(e,"addSelfToZr",{after:function(t){g(t)}}),Ktt(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<s.length;e++)s[e].removeSelfFromZr(t)}});var v=s.length;if(c){var m=v,b=function(){m--,0===m&&(y(),l&&l())};for(d=0;d<v;d++){var _=c?Object(x["defaults"])({delay:(n.delay||0)+c(d,v,i[d],s[d]),done:b},n):n;eet(i[d],s[d],_)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(x["defaults"])({during:function(t){for(var n=0;n<v;n++){var i=s[n];i.__morphT=e.__morphT,i.dirtyShape()}u&&u(t)},done:function(){y();for(var e=0;e<t.length;e++)Qtt(t[e],"updateTransform");l&&l()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:i,toIndividuals:s,count:v}}function set(t,e,n){var i=e.length,r=[],a=n.dividePath||ret;function o(t){for(var e=0;e<t.length;e++){var n=t[e];Ztt(n)?o(n.childrenRef()):n instanceof Bl&&r.push(n)}}if(Ztt(t)){o(t.childrenRef());var s=r.length;if(s<i)for(var l=0,u=s;u<i;u++)r.push(Gv(r[l++%s]));r.length=i}else{r=a({path:t,count:i});var c=t.getComputedTransform();for(u=0;u<r.length;u++)r[u].setLocalTransform(c);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),aet()}r=iet(r),e=iet(e);var h=n.individualDelay;for(u=0;u<i;u++){var d=h?Object(x["defaults"])({delay:(n.delay||0)+h(u,i,r[u],e[u])},n):n;eet(r[u],e[u],d)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}function uet(t){return Object(x["isArray"])(t[0])}function cet(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var a=e[r].length,o=void 0;for(o=0;o<a;o++)n[o%i].many.push(e[r][o])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var u=Math.ceil(a/2);n[r].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var het={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=Gv(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function det(t,e,n,i,r,a){if(t.length&&e.length){var o=th("update",i,r);if(o&&o.duration>0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object(x["extend"])({setToFinal:!0},o);uet(t)&&(s=t,l=e),uet(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?cet(l,s):cet(h?e:t,[h?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)y(d[f],h,g,p),g+=d[f].many.length}}function y(t,e,i,r,o){var s=t.many,l=t.one;if(1!==s.length||o)for(var h=Object(x["defaults"])({dividePath:het[n],individualDelay:u&&function(t,e,n,a){return u(t+i,r)}},c),d=e?oet(s,l,h):set(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,v=0;v<g;v++){_=u?Object(x["defaults"])({delay:u(v,g)},c):c;a(p[v],f[v],e?s[v]:t.one,e?t.one:s[v],_)}else{var m=e?s[0]:l,b=e?l:s[0];if(Ztt(m))y({many:[m],one:b},!0,i,r,!0);else{var _=u?Object(x["defaults"])({delay:u(i,r)},c):c;eet(m,b,_),a(m,b,m,b,_)}}}}function pet(t){if(!t)return[];if(Object(x["isArray"])(t)){for(var e=[],n=0;n<t.length;n++)e.push(pet(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof Bl&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var fet=1e4,get=0,yet=1,vet=2,met=Ka();function bet(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}function xet(t,e,n){var i=t.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var a=t.get(i.name,e);return r&&r.categories[a]||a+""}}function _et(t,e,n,i){var r=i?"itemChildGroupId":"itemGroupId",a=bet(t,r);if(a){var o=xet(t,e,a);return o}var s=t.getRawDataItem(e),l=i?"childGroupId":"groupId";return s&&s[l]?s[l]+"":i?void 0:n||t.getId(e)}function wet(t){var e=[];return Object(x["each"])(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>fet))for(var r=n.getIndices(),a=0;a<r.length;a++)e.push({data:n,groupId:_et(n,a,i,!1),childGroupId:_et(n,a,i,!0),divide:t.divide,dataIndex:a})})),e}function Set(t,e,n){t.traverse((function(t){t instanceof Bl&&ih(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function Met(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Oet(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function Tet(t,e,n){var i=th("update",n,e);i&&t.traverse((function(t){if(t instanceof Ls){var e=uh(t);e&&t.animateFrom({style:e},i)}}))}function Iet(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],a=e[i];if(r.data.getId(r.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function Cet(t,e,n){var i=wet(t),r=wet(e);function a(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?Object(x["extend"])(Object(x["extend"])({},n.style),t.style):t.style},r)}var o=!1,s=get,l=Object(x["createHashMap"])(),u=Object(x["createHashMap"])();Object(x["each"])(i,(function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<r.length;c++){var h=r[c].groupId;if(u.get(h)){s=yet;break}var d=r[c].childGroupId;if(d&&l.get(d)){s=vet;break}}function p(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?s===yet?n.childGroupId:n.groupId:s===vet?n.childGroupId:n.groupId}}var f=Iet(i,r),g={};if(!f)for(c=0;c<r.length;c++){var y=r[c],v=y.data.getItemGraphicEl(y.dataIndex);v&&(g[v.id]=!0)}function m(t,e){var n=i[e],s=r[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(Oet(c),u?(Oet(u),Met(u),o=!0,det(pet(u),pet(c),s.divide,l,t,a)):Set(c,l,t)):c&&Tet(c,s.dataIndex,l)}new DM(i,r,p(!0,f),p(!1,f),null,"multiple").update(m).updateManyToOne((function(t,e){var n=r[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=Object(x["filter"])(Object(x["map"])(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(Oet(u),c.length?(Object(x["each"])(c,(function(t){Oet(t),Met(t)})),o=!0,det(pet(c),pet(u),n.divide,l,t,a)):Set(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=Object(x["filter"])(Object(x["map"])(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==s})),u=r[t[0]].data.hostModel;l.length&&(Object(x["each"])(l,(function(t){return Oet(t)})),s?(Oet(s),Met(s),o=!0,det(pet(s),pet(l),n.divide,u,t[0],a)):Object(x["each"])(l,(function(e){return Set(e,u,t[0])})))}})).updateManyToMany((function(t,e){new DM(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){m(t[n],e[i])})).execute()})).execute(),o&&Object(x["each"])(e,(function(t){var e=t.data,i=e.hostModel,r=i&&n.getViewOfSeriesModel(i),a=th("update",i,0);r&&i.isAnimationEnabled()&&a&&a.duration>0&&r.group.traverse((function(t){t instanceof Bl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},a)}))}))}function Aet(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function ket(t){return Object(x["isArray"])(t)?t.sort().join(","):t}function Det(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Let(t,e){var n=Object(x["createHashMap"])(),i=Object(x["createHashMap"])(),r=Object(x["createHashMap"])();return Object(x["each"])(t.oldSeries,(function(e,n){var a=t.oldDataGroupIds[n],o=t.oldData[n],s=Aet(e),l=ket(s);i.set(l,{dataGroupId:a,data:o}),Object(x["isArray"])(s)&&Object(x["each"])(s,(function(t){r.set(t,{key:l,dataGroupId:a,data:o})}))})),Object(x["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),a=t.getData(),o=Aet(t),s=ket(o),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:Det(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:Det(a),data:a}]});else if(Object(x["isArray"])(o)){0;var u=[];Object(x["each"])(o,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:Det(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:a,divide:Det(a)}]})}else{var c=r.get(o);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Det(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:a,divide:Det(a)})}}}})),n}function Pet(t,e){for(var n=0;n<t.length;n++){var i=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(i)return n}}function jet(t,e,n,i){var r=[],a=[];Object(x["each"])(Aa(t.from),(function(t){var n=Pet(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:Det(e.oldData[n]),groupIdDim:t.dimension})})),Object(x["each"])(Aa(t.to),(function(t){var i=Pet(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();a.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:Det(r),groupIdDim:t.dimension})}})),r.length>0&&a.length>0&&Cet(r,a,i)}function Net(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(x["each"])(Aa(n.seriesTransition),(function(t){Object(x["each"])(Aa(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][sv]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=met(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)Object(x["each"])(Aa(r),(function(t){jet(t,i,n,e)}));else{var a=Let(i,n);Object(x["each"])(a.keys(),(function(t){var n=a.get(t);Cet(n.oldSeries,n.newSeries,e)}))}Object(x["each"])(n.updatedSeries,(function(t){t[sv]&&(t[sv]=!1)}))}for(var o=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],c=0;c<o.length;c++){var h=o[c].getData();h.count()<fet&&(s.push(o[c]),l.push(o[c].get("dataGroupId")),u.push(h))}}))}var Ret=function(){function t(e,n){BO(this,t.decoratedMethods),this._outOfBrk=YO(null,n);var i=this._linear=YO(null,n);VO(this,i),this.breaks=e&&e.breaks||[]}return t.prototype.hasBreaks=function(){return!!this.breaks.length},t.prototype.calcNiceTickMultiple=function(t,e){for(var n=0;n<this.breaks.length;n++){var i=this.breaks[n];if(i.vmin<t&&t<i.vmax){var r=e(t,i.vmax);return r}}return 0},t.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,e){return null==e||e===RO?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,e){this.setExtent2(LO,t,e)},setExtent2:function(t,e,n){bo(e,n)&&(t===LO&&Vet(this,[e,n]),this._outOfBrk.setExtent2(t,e,n),this._linear.setExtent2(t,this.transformIn(e,null),this.transformIn(n,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,e){if(e&&e.depth===RO)return t;for(var n=zet,i=Bet,r=!0,a=0;a<this.breaks.length;a++){var o=this.breaks[a];if(t<=o.vmax){t>o.vmin?n+=o.vmin-i+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:n+=t-i,i=o.vmax,r=!1;break}n+=o.vmin-i+o.gapReal,i=o.vmax}return r&&(n+=t-i),n},transformOut:function(t,e){if(e&&e.depth===RO)return t;for(var n=zet,i=Bet,r=!0,a=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=n+s.vmin-i,u=l+s.gapReal;if(t<=u){a=t>l?s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i+t-n,i=s.vmax,r=!1;break}n=u,i=s.vmax}return r&&(a=i+t-n),a}},t}();function Eet(t,e){return new Ret(t,e)}var zet=0,Bet=0;function Vet(t,e){var n=0,i={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},r=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:r(),tpPrct:r()},E:{tpAbs:r(),tpPrct:r()}};Object(x["each"])(t.breaks,(function(t){var r=t.gapParsed;"tpPrct"===r.type&&(n+=r.val);var o=Get(t,e);if(o){var s=o.vmin!==t.vmin,l=o.vmax!==t.vmax,u=o.vmax-o.vmin;if(s&&l);else if(s||l){var c=s?"S":"E";a[c][r.type].has=!0,a[c][r.type].span=u,a[c][r.type].inExtFrac=u/(t.vmax-t.vmin),a[c][r.type].val=r.val}else i[r.type].span+=u,i[r.type].val+=r.val}}));var o=n*(e[1]-e[0]+0+(i.tpAbs.val-i.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-i.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-i.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));Object(x["each"])(t.breaks,(function(t){var e=t.gapParsed;"tpPrct"===e.type&&(t.gapReal=0!==n?Er(o,0)*e.val/n:0),"tpAbs"===e.type&&(t.gapReal=e.val),null==t.gapReal&&(t.gapReal=0)}))}function Fet(t,e,n,i,r,a){"no"!==t&&Object(x["each"])(n,(function(n){var o=Get(n,a);if(o)for(var s=e.length-1;s>=0;s--){var l=e[s],u=i(l),c=3*r/4;u>o.vmin-c&&u<o.vmax+c&&("preserve_extent_bound"!==t||u!==a[0]&&u!==a[1])&&e.splice(s,1)}}))}function Het(t,e,n,i){Object(x["each"])(e,(function(e){var r=Get(e,n);r&&(t.push({value:r.vmin,break:{type:"vmin",parsedBreak:r},time:i?i(r):void 0}),t.push({value:r.vmax,break:{type:"vmax",parsedBreak:r},time:i?i(r):void 0}))})),e.length&&t.sort((function(t,e){return t.value-e.value}))}function Get(t,e){var n=Er(t.vmin,e[0]),i=Rr(t.vmax,e[1]);return n<i||n===i&&n>e[0]&&n<e[1]?{vmin:n,vmax:i,breakOption:t.breakOption,gapParsed:t.gapParsed,gapReal:t.gapReal}:null}function Wet(t,e,n){var i=[];if(!t)return{breaks:i};function r(t,e){return t>=0&&t<.99999}Object(x["each"])(t,(function(t){if(t&&null!=t.start&&null!=t.end&&!t.isExpanded){var a={breakOption:Object(x["clone"])(t),vmin:e.parse(t.start),vmax:e.parse(t.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(null!=t.gap){var o=!1;if(Object(x["isString"])(t.gap)){var s=Object(x["trim"])(t.gap);if(s.match(/%$/)){var l=parseFloat(s)/100;r(l,"Percent gap")||(l=0),a.gapParsed.type="tpPrct",a.gapParsed.val=l,o=!0}}if(!o){var u=e.parse(t.gap);(!isFinite(u)||u<0)&&(u=0),a.gapParsed.type="tpAbs",a.gapParsed.val=u}}if(a.vmin===a.vmax&&(a.gapParsed.type="tpAbs",a.gapParsed.val=0),n&&n.noNegative&&Object(x["each"])(["vmin","vmax"],(function(t){a[t]<0&&(a[t]=0)})),a.vmin>a.vmax){var c=a.vmax;a.vmax=a.vmin,a.vmin=c}i.push(a)}})),i.sort((function(t,e){return t.vmin-e.vmin}));var a=-1/0;return Object(x["each"])(i,(function(t,e){a>t.vmin&&(i[e]=null),a=t.vmax})),{breaks:Object(x["filter"])(i,(function(t){return!!t}))}}function Yet(t,e){return Uet(e)===Uet(t)}function Uet(t){return t.start+"_\0_"+t.end}function Xet(t,e,n){var i=[];Object(x["each"])(t,(function(t,n){var r=e(t);r&&"vmin"===r.type&&i.push([n])})),Object(x["each"])(t,(function(n,r){var a=e(n);if(a&&"vmax"===a.type){var o=Object(x["find"])(i,(function(n){return Yet(e(t[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)}));o&&o.push(r)}}));var r=[];return Object(x["each"])(i,(function(e){2===e.length&&r.push(n?e:[t[e[0]],t[e[1]]])})),r}function $et(t,e,n,i){if(e["break"]){var r=e["break"].parsedBreak,a=Object(x["find"])(n,(function(t){return Yet(t.breakOption,e["break"].parsedBreak.breakOption)})),o={lookup:i,depth:RO},s=t.transformOut(r.vmin,o),l=t.transformOut(r.vmax,o),u={vmin:s,vmax:l,breakOption:r.breakOption,gapParsed:Object(x["clone"])(a.gapParsed),gapReal:r.gapReal};return{tickVal:u[e["break"].type],vBreak:{type:e["break"].type,parsedBreak:u}}}}function Zet(t,e,n,i,r){r.original=Wet(t,e,n);var a=r.transformed=Wet(t,e,n),o=r.lookup;a.breaks=Object(x["map"])(a.breaks,(function(t,n){var r={depth:RO},a=e.transformIn(t.vmin,r),s=e.transformIn(t.vmax,r),l={type:t.gapParsed.type,val:"tpAbs"===t.gapParsed.type?e.transformIn(t.vmin+t.gapParsed.val,r)-a:t.gapParsed.val};return o.from[i+n]=a,o.to[i+n]=t.vmin,o.from[i+n+1]=s,o.to[i+n+1]=t.vmax,{vmin:a,vmax:s,gapParsed:l,gapReal:t.gapReal,breakOption:t.breakOption}}))}var qet={vmin:"start",vmax:"end"};function Ket(t,e){return e&&(t=t||{},t["break"]={type:qet[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),t}function Qet(){ad({createBreakScaleMapper:Eet,pruneTicksByBreak:Fet,addBreaksToTicks:Het,parseAxisBreakOption:Wet,identifyAxisBreak:Yet,serializeAxisBreakIdentifier:Uet,retrieveAxisBreakPairs:Xet,getTicksBreakOutwardTransform:$et,parseAxisBreakOptionInwardTransform:Zet,makeAxisLabelFormatterParamBreak:Ket})}var Jet=Ka();function tnt(t,e){var n=Object(x["find"])(t,(function(t){return od().identifyAxisBreak(t.parsedBreak.breakOption,e.breakOption)}));return n||t.push(n={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),n}function ent(t){Object(x["each"])(t,(function(t){return t.shouldRemove=!0}))}function nnt(t){for(var e=t.length-1;e>=0;e--)t[e].shouldRemove&&t.splice(e,1)}function int(t,e,n,i,r){var a=n.axis;if(!a.scale.isBlank()&&od()){var o=od().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),(function(t){return t["break"]}),!1);if(o.length){var s=n.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var h=s.get("expandOnClick"),d=s.get("zigzagZ"),p=s.getModel("itemStyle"),f=p.getItemStyle(),g=f.stroke,y=f.lineWidth,v=f.lineDash,m=f.fill,b=new vr({ignoreModelZ:!0}),x=a.isHorizontal(),_=Jet(e).visualList||(Jet(e).visualList=[]);ent(_);for(var w=function(t){var e=o[t][0]["break"].parsedBreak,i=[];i[0]=a.toGlobalCoord(a.dataToCoord(e.vmin,!0)),i[1]=a.toGlobalCoord(a.dataToCoord(e.vmax,!0)),i[1]<i[0]&&i.reverse();var s=tnt(_,e);s.shouldRemove=!1;var l=new vr;M(s.zigzagRandomList,l,i[0],i[1],x,e),h&&l.on("click",(function(){var t={type:xP,breaks:[{start:e.breakOption.start,end:e.breakOption.end}]};t[a.dim+"AxisIndex"]=n.componentIndex,r.dispatchAction(t)})),l.silent=!h,b.add(l)},S=0;S<o.length;S++)w(S);t.add(b),nnt(_)}}function M(t,e,n,r,a,o){var s={stroke:g,lineWidth:y,lineDash:v,fill:"none"},h=a?0:1,p=1-h,b=i[cb[p]]+i[hb[p]];function x(t){var e=[],n=[];e[h]=n[h]=t,e[p]=i[cb[p]],n[p]=b;var r={x1:e[0],y1:e[1],x2:n[0],y2:n[1]};return ql(r,r,{lineWidth:1}),e[0]=r.x1,e[1]=r.y1,e[h]}n=x(n),r=x(r);for(var _=[],w=[],S=!0,M=i[cb[p]],O=0;;O++){var T=M===i[cb[p]],I=M>=b;I&&(M=b);var C=[],A=[];C[h]=n,A[h]=r,T||I||(C[h]+=S?-l:l,A[h]-=S?l:-l),C[p]=M,A[p]=M,_.push(C),w.push(A);var k=void 0;if(O<t.length?k=t[O]:(k=Math.random(),t.push(k)),M+=k*(c-u)+u,S=!S,I)break}var D=od().serializeAxisBreakIdentifier(o.breakOption);if(e.add(new Mm({anid:"break_a_"+D,shape:{points:_},style:s,z:d})),0!==o.gapReal){e.add(new Mm({anid:"break_b_"+D,shape:{points:w},style:s,z:d}));var L=w.slice();L.reverse();var P=_.concat(L);e.add(new _m({anid:"break_c_"+D,shape:{points:P},style:{fill:m,opacity:f.opacity},z:d}))}}}function rnt(t,e,n,i){var r=t.axis,a=n.transform;Object(x["assert"])(i.style);var o=r.getExtent();r.inverse&&(o=o.slice(),o.reverse());var s=od().retrieveAxisBreakPairs(r.scale.getTicks({breakTicks:"only_break"}),(function(t){return t["break"]}),!1),l=Object(x["map"])(s,(function(t){var e=t[0]["break"].parsedBreak,n=[r.dataToCoord(e.vmin,!0),r.dataToCoord(e.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:od().serializeAxisBreakIdentifier(e.breakOption)}}));l.sort((function(t,e){return t.coordPair[0]-e.coordPair[0]}));for(var u=o[0],c=null,h=0;h<l.length;h++){var d=l[h],p=Math.max(d.coordPair[0],o[0]),f=Math.min(d.coordPair[1],o[1]);u<=p&&g(u,p,c,d),u=f,c=d}function g(t,n,r,o){function s(t,e){a&&(G(t,t,a),G(e,e,a))}function l(t,e){var n={x1:t[0],y1:t[1],x2:e[0],y2:e[1]};ql(n,n,i.style),t[0]=n.x1,t[1]=n.y1,e[0]=n.x2,e[1]=n.y2}var u=[t,0],c=[n,0],h=[t,5],d=[n,5];s(u,h),l(u,h),s(c,d),l(c,d),l(u,c);var p=new Cm(Object(x["extend"])({shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]}},i));e.add(p),p.anid="breakLine_"+(r?r.brkId:"\0")+"_\0_"+(o?o.brkId:"\0")}u<=o[1]&&g(u,o[1],c,null)}function ant(t,e,n){if(!Object(x["find"])(n,(function(t){return!t}))){var i=new Et;if(GA(n[0],n[1],i,{direction:-(t?e+Math.PI:e),touchThreshold:0,bidirectional:!1})){var r=It();Lt(r,r,-e);var a=Object(x["map"])(n,(function(t){return t.transform?kt(It(),r,t.transform):r})),o=.5;if(v(0)||v(1)){var s=Object(x["map"])(n,(function(t,e){var n=t.localRect.clone();return n.applyTransform(a[e]),n})),l=new Et;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(r);var u=i.clone().transform(r),c=s[0].x+s[1].x+(u.x>=0?s[0].width:s[1].width),h=(c+u.x)/2-l.x,d=Math.min(h,h-u.x),p=Math.max(h,h-u.x),f=p<0?p:d>0?d:0;o=(h-f)/u.x}var g=new Et,y=new Et;Et.scale(g,i,-o),Et.scale(y,i,1-o),EA(n[0],g),EA(n[1],y)}}function v(t){var e=n[0].localRect,i=new Et(e[hb[t]]*a[0][0],e[hb[t]]*a[0][1]);return Math.abs(i.y)<1e-5}}function ont(t,e){var n={breaks:[]};return Object(x["each"])(e.breaks,(function(i){if(i){var r=Object(x["find"])(t.get("breaks",!0),(function(t){return od().identifyAxisBreak(t,i)}));if(r){var a=e.type,o={isExpanded:!!r.isExpanded};r.isExpanded=a===xP||a!==_P&&(a===wP?!r.isExpanded:r.isExpanded),n.breaks.push({start:r.start,end:r.end,isExpanded:!!r.isExpanded,old:o})}}})),n}function snt(){mP({adjustBreakLabelPair:ant,buildAxisBreakLine:rnt,rectCoordBuildBreakAxis:int,updateModelAxisBreak:ont})}function lnt(t){CP(t),Qet(),snt()}function unt(){VR(cnt)}function cnt(t,e){Object(x["each"])(t,(function(t){if(!t.model.get(["axisLabel","inside"])){var n=hnt(t);if(n){var i=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);e[i]-=n[i]+r,"top"===t.position?e.y+=n.height+r:"left"===t.position&&(e.x+=n.width+r)}}}))}function hnt(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,a=n.getExtent();n instanceof lT?r=n.count():(i=n.getTicks(),r=i.length);var o,s=t.getLabelModel(),l=WT(t),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;c<r;c+=u){var h=i?i[c]:{value:a[0]+c},d=l(h,c),p=s.getTextRect(d),f=g(p,s.get("rotate")||0);o?o.union(f):o=f}return o}function g(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,a=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),o=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new ue(t.x,t.y,a,o);return s}}IM([Ik]),IM([sL]),IM([yP,IN,tR,kE,iz,dF,hH,VG,pY,CY,zY,KY,qX,D$,Q$,kZ,BZ,lq,mq,$q,oK,CK,aJ]),IM(a0),IM(t1),IM(oF),IM(S1),IM(ZX),IM(P1),IM(X2),IM(h5),IM(Q3),IM(j4),IM(r0),IM(p6),IM(y6),IM(z6),IM(h8),IM(S8),IM(R8),IM(d9),IM(X9),IM(A9),IM(U9),IM(G7),IM(N7),IM(H7),IM(Z7),IM(ntt),IM(btt),IM(wtt),IM(Net),IM(ek),IM(lnt),IM(unt),IM(DE)},"340b":function(t,e,n){t.exports={addDays:n("8946"),addHours:n("1cc6"),addISOYears:n("27a1"),addMilliseconds:n("ec1f"),addMinutes:n("72b7"),addMonths:n("6665"),addQuarters:n("f5dd"),addSeconds:n("af1b"),addWeeks:n("7a83"),addYears:n("fcb3"),areRangesOverlapping:n("eaa5"),closestIndexTo:n("7fd8"),closestTo:n("4f67"),compareAsc:n("0d3e"),compareDesc:n("c873"),differenceInCalendarDays:n("d420"),differenceInCalendarISOWeeks:n("82dc"),differenceInCalendarISOYears:n("f9ff"),differenceInCalendarMonths:n("b2e9"),differenceInCalendarQuarters:n("fb36"),differenceInCalendarWeeks:n("2f1a"),differenceInCalendarYears:n("2a9c"),differenceInDays:n("3bc7"),differenceInHours:n("d2ed"),differenceInISOYears:n("b3f5"),differenceInMilliseconds:n("e785"),differenceInMinutes:n("6570"),differenceInMonths:n("17cd"),differenceInQuarters:n("8301"),differenceInSeconds:n("e13a"),differenceInWeeks:n("ee91"),differenceInYears:n("6fcc"),distanceInWords:n("366b"),distanceInWordsStrict:n("bb7c"),distanceInWordsToNow:n("6254"),eachDay:n("c4c2"),endOfDay:n("9744"),endOfHour:n("271a"),endOfISOWeek:n("4175"),endOfISOYear:n("861d"),endOfMinute:n("3ac3"),endOfMonth:n("d6f8"),endOfQuarter:n("3691"),endOfSecond:n("145e"),endOfToday:n("7443"),endOfTomorrow:n("6f4e"),endOfWeek:n("7494"),endOfYear:n("d975"),endOfYesterday:n("e51d"),format:n("70f2"),getDate:n("b60f"),getDay:n("c2b5"),getDayOfYear:n("580f"),getDaysInMonth:n("5416"),getDaysInYear:n("dddf"),getHours:n("5d95"),getISODay:n("84b9"),getISOWeek:n("81fc"),getISOWeeksInYear:n("3b7b"),getISOYear:n("8964"),getMilliseconds:n("8c81"),getMinutes:n("c589"),getMonth:n("7338"),getOverlappingDaysInRanges:n("6337"),getQuarter:n("b8f9"),getSeconds:n("231c"),getTime:n("902e"),getYear:n("10c8"),isAfter:n("a431"),isBefore:n("6b8f"),isDate:n("a735"),isEqual:n("abd4"),isFirstDayOfMonth:n("353e"),isFriday:n("a852"),isFuture:n("2b67"),isLastDayOfMonth:n("3eee"),isLeapYear:n("acc4"),isMonday:n("2507"),isPast:n("a935"),isSameDay:n("fd39"),isSameHour:n("662a"),isSameISOWeek:n("ccce"),isSameISOYear:n("2fff"),isSameMinute:n("f564"),isSameMonth:n("5a60"),isSameQuarter:n("9aaa"),isSameSecond:n("c6ae"),isSameWeek:n("1baf"),isSameYear:n("26d5"),isSaturday:n("48a6"),isSunday:n("2b57"),isThisHour:n("0157"),isThisISOWeek:n("cc64"),isThisISOYear:n("97af"),isThisMinute:n("3ef9"),isThisMonth:n("9bb9"),isThisQuarter:n("2a80"),isThisSecond:n("e620"),isThisWeek:n("2d23"),isThisYear:n("f66d"),isThursday:n("5a38"),isToday:n("30d1"),isTomorrow:n("20b1"),isTuesday:n("7606"),isValid:n("7eea"),isWednesday:n("c980"),isWeekend:n("9ad8"),isWithinRange:n("f56a"),isYesterday:n("c4f9"),lastDayOfISOWeek:n("5292"),lastDayOfISOYear:n("de13"),lastDayOfMonth:n("eca2"),lastDayOfQuarter:n("ce3d"),lastDayOfWeek:n("cb96"),lastDayOfYear:n("b8a7"),max:n("95ea"),min:n("1a84"),parse:n("c8d5"),setDate:n("957f"),setDay:n("b78a"),setDayOfYear:n("9530"),setHours:n("6f00"),setISODay:n("fa76"),setISOWeek:n("e73d"),setISOYear:n("9706"),setMilliseconds:n("d473"),setMinutes:n("8aed"),setMonth:n("3814"),setQuarter:n("158b"),setSeconds:n("9113"),setYear:n("2f8f"),startOfDay:n("0978"),startOfHour:n("fbaf"),startOfISOWeek:n("b4c7"),startOfISOYear:n("4497"),startOfMinute:n("e96b"),startOfMonth:n("942b"),startOfQuarter:n("4399"),startOfSecond:n("2299"),startOfToday:n("3cae"),startOfTomorrow:n("8148"),startOfWeek:n("c7ce"),startOfYear:n("a4b7"),startOfYesterday:n("693a"),subDays:n("e2ff"),subHours:n("fb98"),subISOYears:n("df35"),subMilliseconds:n("badb"),subMinutes:n("18b7"),subMonths:n("12fd"),subQuarters:n("d4ae"),subSeconds:n("83f0"),subWeeks:n("e1ca"),subYears:n("8902")}},"353e":function(t,e,n){var i=n("c8d5");function r(t){return 1===i(t).getDate()}t.exports=r},"366b":function(t,e,n){var i=n("c873"),r=n("c8d5"),a=n("e13a"),o=n("17cd"),s=n("52cf"),l=1440,u=2520,c=43200,h=86400;function d(t,e,n){var d=n||{},p=i(t,e),f=d.locale,g=s.distanceInWords.localize;f&&f.distanceInWords&&f.distanceInWords.localize&&(g=f.distanceInWords.localize);var y,v,m={addSuffix:Boolean(d.addSuffix),comparison:p};p>0?(y=r(t),v=r(e)):(y=r(e),v=r(t));var b,x=a(v,y),_=v.getTimezoneOffset()-y.getTimezoneOffset(),w=Math.round(x/60)-_;if(w<2)return d.includeSeconds?x<5?g("lessThanXSeconds",5,m):x<10?g("lessThanXSeconds",10,m):x<20?g("lessThanXSeconds",20,m):x<40?g("halfAMinute",null,m):g(x<60?"lessThanXMinutes":"xMinutes",1,m):0===w?g("lessThanXMinutes",1,m):g("xMinutes",w,m);if(w<45)return g("xMinutes",w,m);if(w<90)return g("aboutXHours",1,m);if(w<l){var S=Math.round(w/60);return g("aboutXHours",S,m)}if(w<u)return g("xDays",1,m);if(w<c){var M=Math.round(w/l);return g("xDays",M,m)}if(w<h)return b=Math.round(w/c),g("aboutXMonths",b,m);if(b=o(v,y),b<12){var O=Math.round(w/c);return g("xMonths",O,m)}var T=b%12,I=Math.floor(b/12);return T<3?g("aboutXYears",I,m):T<9?g("overXYears",I,m):g("almostXYears",I+1,m)}t.exports=d},3691:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}t.exports=r},"37ba":function(t,e,n){},3814:function(t,e,n){var i=n("c8d5"),r=n("5416");function a(t,e){var n=i(t),a=Number(e),o=n.getFullYear(),s=n.getDate(),l=new Date(0);l.setFullYear(o,a,15),l.setHours(0,0,0,0);var u=r(l);return n.setMonth(a,Math.min(s,u)),n}t.exports=a},3935:function(t,e,n){"use strict";n("37ba")},"3ac3":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setSeconds(59,999),e}t.exports=r},"3b7b":function(t,e,n){var i=n("4497"),r=n("7a83"),a=6048e5;function o(t){var e=i(t),n=i(r(e,60)),o=n.valueOf()-e.valueOf();return Math.round(o/a)}t.exports=o},"3bc7":function(t,e,n){var i=n("c8d5"),r=n("d420"),a=n("0d3e");function o(t,e){var n=i(t),o=i(e),s=a(n,o),l=Math.abs(r(n,o));n.setDate(n.getDate()-s*l);var u=a(n,o)===-s;return s*(l-u)}t.exports=o},"3cae":function(t,e,n){var i=n("0978");function r(){return i(new Date)}t.exports=r},"3cef":function(t,e,n){"use strict";n("69c5")},"3eee":function(t,e,n){var i=n("c8d5"),r=n("9744"),a=n("d6f8");function o(t){var e=i(t);return r(e).getTime()===a(e).getTime()}t.exports=o},"3ef9":function(t,e,n){var i=n("f564");function r(t){return i(new Date,t)}t.exports=r},4010:function(t,e,n){"use strict";e.__esModule=!0,e.removeResizeListener=e.addResizeListener=void 0;var i=n("6dd8"),r=o(i),a=n("9619");function o(t){return t&&t.__esModule?t:{default:t}}var s="undefined"===typeof window,l=function(t){var e=t,n=Array.isArray(e),i=0;for(e=n?e:e[Symbol.iterator]();;){var r;if(n){if(i>=e.length)break;r=e[i++]}else{if(i=e.next(),i.done)break;r=i.value}var a=r,o=a.target.__resizeListeners__||[];o.length&&o.forEach((function(t){t()}))}};e.addResizeListener=function(t,e){s||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new r.default((0,a.debounce)(16,l)),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},4167:function(t,e,n){"use strict";n("a0d8")},4175:function(t,e,n){var i=n("7494");function r(t){return i(t,{weekStartsOn:1})}t.exports=r},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parseCssInt",(function(){return u})),n.d(e,"parseCssFloat",(function(){return c})),n.d(e,"parse",(function(){return m})),n.d(e,"lift",(function(){return _})),n.d(e,"toHex",(function(){return w})),n.d(e,"fastLerp",(function(){return S})),n.d(e,"fastMapToColor",(function(){return M})),n.d(e,"lerp",(function(){return O})),n.d(e,"mapToColor",(function(){return T})),n.d(e,"modifyHSL",(function(){return I})),n.d(e,"modifyAlpha",(function(){return C})),n.d(e,"stringify",(function(){return A})),n.d(e,"lum",(function(){return k})),n.d(e,"random",(function(){return D})),n.d(e,"liftColor",(function(){return P}));var i=n("d51b"),r=n("6d8b"),a={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 o(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)?o(parseFloat(e)/100*255):o(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 d(t,e,n){return t+(e-t)*n}function p(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new i["a"](20),y=null;function v(t,e){y&&f(y,e),y=g.put(t,y||e.slice())}function m(t,e){if(t){e=e||[];var n=g.get(t);if(n)return f(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in a)return f(e,a[i]),v(t,e),e;var r=i.length;if("#"!==i.charAt(0)){var o=i.indexOf("("),s=i.indexOf(")");if(-1!==o&&s+1===r){var l=i.substr(0,o),h=i.substr(o+1,s-(o+1)).split(","),d=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);d=c(h.pop());case"rgb":return h.length>=3?(p(e,u(h[0]),u(h[1]),u(h[2]),3===h.length?d:c(h[3])),v(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]),b(h,e),v(t,e),e);case"hsl":return 3!==h.length?void p(e,0,0,0,1):(b(h,e),v(t,e),e);default:return}}p(e,0,0,0,1)}else{if(4===r||5===r){var y=parseInt(i.slice(1,4),16);return y>=0&&y<=4095?(p(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===r?parseInt(i.slice(4),16)/15:1),v(t,e),e):void p(e,0,0,0,1)}if(7===r||9===r){y=parseInt(i.slice(1,7),16);return y>=0&&y<=16777215?(p(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===r?parseInt(i.slice(7),16)/255:1),v(t,e),e):void p(e,0,0,0,1)}}}}function b(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=c(t[1]),r=c(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return e=e||[],p(e,o(255*h(s,a,n+1/3)),o(255*h(s,a,n)),o(255*h(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function x(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,a=t[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-a)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:a===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 _(t,e){var n=m(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return A(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 i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),s=e[r],u=e[a],c=i-r;return n[0]=o(d(s[0],u[0],c)),n[1]=o(d(s[1],u[1],c)),n[2]=o(d(s[2],u[2],c)),n[3]=l(d(s[3],u[3],c)),n}}var M=S;function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),s=m(e[r]),u=m(e[a]),c=i-r,h=A([o(d(s[0],u[0],c)),o(d(s[1],u[1],c)),o(d(s[2],u[2],c)),l(d(s[3],u[3],c))],"rgba");return n?{color:h,leftIndex:r,rightIndex:a,value:i}:h}}var T=O;function I(t,e,n,i){var a=m(t);if(t)return a=x(a),null!=e&&(a[0]=s(Object(r["isFunction"])(e)?e(a[0]):e)),null!=n&&(a[1]=c(Object(r["isFunction"])(n)?n(a[1]):n)),null!=i&&(a[2]=c(Object(r["isFunction"])(i)?i(a[2]):i)),A(b(a),"rgba")}function C(t,e){var n=m(t);if(n&&null!=e)return n[3]=l(e),A(n,"rgba")}function A(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 k(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 D(){return A([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var L=new i["a"](100);function P(t){if(Object(r["isString"])(t)){var e=L.get(t);return e||(e=_(t,-.1),L.put(t,e)),e}if(Object(r["isGradientObject"])(t)){var n=Object(r["extend"])({},t);return n.colorStops=Object(r["map"])(t.colorStops,(function(t){return{offset:t.offset,color:_(t.color,-.1)}})),n}return t}},4399:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth(),r=n-n%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}t.exports=r},"439a":function(t,e,n){"use strict";n("1a07")},4497:function(t,e,n){var i=n("8964"),r=n("b4c7");function a(t){var e=i(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var a=r(n);return a}t.exports=a},"48a6":function(t,e,n){var i=n("c8d5");function r(t){return 6===i(t).getDay()}t.exports=r},"4f67":function(t,e,n){var i=n("c8d5");function r(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,r,a=i(t),o=a.getTime();return e.forEach((function(t){var e=i(t),a=Math.abs(o-e.getTime());(void 0===n||a<r)&&(n=e,r=a)})),n}t.exports=r},5292:function(t,e,n){var i=n("cb96");function r(t){return i(t,{weekStartsOn:1})}t.exports=r},"52cf":function(t,e,n){var i=n("2d96"),r=n("e830");t.exports={distanceInWords:i(),format:r()}},5416:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(n,r+1,0),a.setHours(0,0,0,0),a.getDate()}t.exports=r},5465:function(t,e){var n=6e4;t.exports=function(t){var e=new Date(t.getTime()),i=e.getTimezoneOffset();e.setSeconds(0,0);var r=e.getTime()%n;return i*n+r}},5798:function(t,e,n){"use strict";n("c839")},"580f":function(t,e,n){var i=n("c8d5"),r=n("a4b7"),a=n("d420");function o(t){var e=i(t),n=a(e,r(e)),o=n+1;return o}t.exports=o},"597f":function(t,e){t.exports=function(t,e,n,i){var r,a=0;function o(){var o=this,s=Number(new Date)-a,l=arguments;function u(){a=Number(new Date),n.apply(o,l)}function c(){r=void 0}i&&!r&&u(),r&&clearTimeout(r),void 0===i&&s>t?u():!0!==e&&(r=setTimeout(i?c:u,void 0===i?t-s:t))}return"boolean"!==typeof e&&(i=n,n=e,e=void 0),o}},"5a38":function(t,e,n){var i=n("c8d5");function r(t){return 4===i(t).getDay()}t.exports=r},"5a60":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}t.exports=r},"5b68":function(t,e,n){},"5d95":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getHours();return n}t.exports=r},"5ecd":function(t,e,n){},6254:function(t,e,n){var i=n("366b");function r(t,e){return i(Date.now(),t,e)}t.exports=r},6337:function(t,e,n){var i=n("c8d5"),r=864e5;function a(t,e,n,a){var o=i(t).getTime(),s=i(e).getTime(),l=i(n).getTime(),u=i(a).getTime();if(o>s||l>u)throw new Error("The start of the range cannot be after the end of the range");var c=o<u&&l<s;if(!c)return 0;var h=l<o?o:l,d=u>s?s:u,p=d-h;return Math.ceil(p/r)}t.exports=a},6570:function(t,e,n){var i=n("e785"),r=6e4;function a(t,e){var n=i(t,e)/r;return n>0?Math.floor(n):Math.ceil(n)}t.exports=a},"662a":function(t,e,n){var i=n("fbaf");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},6665:function(t,e,n){var i=n("c8d5"),r=n("5416");function a(t,e){var n=i(t),a=Number(e),o=n.getMonth()+a,s=new Date(0);s.setFullYear(n.getFullYear(),o,1),s.setHours(0,0,0,0);var l=r(s);return n.setMonth(o,Math.min(l,n.getDate())),n}t.exports=a},"693a":function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i-1),r.setHours(0,0,0,0),r}t.exports=n},"69c5":function(t,e,n){},"6b14":function(t,e,n){"use strict";n("176d")},"6b8f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()<r.getTime()}t.exports=r},"6d33":function(t,e,n){},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return m})),n.d(e,"clone",(function(){return b})),n.d(e,"merge",(function(){return x})),n.d(e,"mergeAll",(function(){return _})),n.d(e,"extend",(function(){return w})),n.d(e,"assignProps",(function(){return S})),n.d(e,"defaults",(function(){return M})),n.d(e,"createCanvas",(function(){return O})),n.d(e,"indexOf",(function(){return T})),n.d(e,"inherits",(function(){return I})),n.d(e,"mixin",(function(){return C})),n.d(e,"isArrayLike",(function(){return A})),n.d(e,"each",(function(){return k})),n.d(e,"map",(function(){return D})),n.d(e,"reduce",(function(){return L})),n.d(e,"filter",(function(){return P})),n.d(e,"find",(function(){return j})),n.d(e,"keys",(function(){return N})),n.d(e,"bind",(function(){return E})),n.d(e,"curry",(function(){return z})),n.d(e,"isArray",(function(){return B})),n.d(e,"isFunction",(function(){return V})),n.d(e,"isString",(function(){return F})),n.d(e,"isStringSafe",(function(){return H})),n.d(e,"isNumber",(function(){return G})),n.d(e,"isObject",(function(){return W})),n.d(e,"isBuiltInObject",(function(){return Y})),n.d(e,"isTypedArray",(function(){return U})),n.d(e,"isDom",(function(){return X})),n.d(e,"isGradientObject",(function(){return $})),n.d(e,"isImagePatternObject",(function(){return Z})),n.d(e,"isRegExp",(function(){return q})),n.d(e,"eqNaN",(function(){return K})),n.d(e,"retrieve",(function(){return Q})),n.d(e,"retrieve2",(function(){return J})),n.d(e,"retrieve3",(function(){return tt})),n.d(e,"slice",(function(){return et})),n.d(e,"normalizeCssArray",(function(){return nt})),n.d(e,"assert",(function(){return it})),n.d(e,"trim",(function(){return rt})),n.d(e,"setAsPrimitive",(function(){return ot})),n.d(e,"isPrimitive",(function(){return st})),n.d(e,"HashMap",(function(){return ht})),n.d(e,"createHashMap",(function(){return dt})),n.d(e,"concatArray",(function(){return pt})),n.d(e,"createObject",(function(){return ft})),n.d(e,"disableUserSelect",(function(){return gt})),n.d(e,"hasOwn",(function(){return yt})),n.d(e,"noop",(function(){return vt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return mt})),n.d(e,"EPSILON",(function(){return bt}));var i=n("726e"),r=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),a=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311,y=Math.pow(2,53)-1;function v(){return g>=y&&(g=0),g++}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function b(t){if(null==t||"object"!==typeof t)return t;var e=t,n=o.call(t);if("[object Array]"===n){if(!st(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=b(t[i])}}else if(a[n]){if(!st(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!st(t)&&!X(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==f&&(e[u]=b(t[u]));return e}function x(t,e,n){if(!W(e)||!W(t))return n?b(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==f){var r=t[i],a=e[i];!W(a)||!W(r)||B(a)||B(r)||X(a)||X(r)||Y(a)||Y(r)||st(a)||st(r)?!n&&i in t||(t[i]=b(e[i])):x(r,a,n)}return t}function _(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=x(n,t[i],e);return n}function w(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function S(t,e,n){t=t||{};for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}return t}function M(t,e,n){for(var i=N(e),r=0,a=i.length;r<a;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var O=i["d"].createCanvas;function T(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function I(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function C(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var a=i[r];"constructor"!==a&&(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}else M(t,e,n)}function A(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function k(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function D(t,e,n){if(!t)return[];if(!e)return et(t);if(t.map&&t.map===h)return t.map(e,n);for(var i=[],r=0,a=t.length;r<a;r++)i.push(e.call(n,t[r],r,t));return i}function L(t,e,n,i){if(t&&e){for(var r=0,a=t.length;r<a;r++)n=e.call(i,n,t[r],r,t);return n}}function P(t,e,n){if(!t)return[];if(!e)return et(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var i=[],r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function j(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function N(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function R(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(c.call(arguments)))}}var E=p&&V(p.bind)?p.call.bind(p.bind):R;function z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function B(t){return Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)}function V(t){return"function"===typeof t}function F(t){return"string"===typeof t}function H(t){return"[object String]"===o.call(t)}function G(t){return"number"===typeof t}function W(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Y(t){return!!r[o.call(t)]}function U(t){return!!a[o.call(t)]}function X(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function $(t){return null!=t.colorStops}function Z(t){return null!=t.image}function q(t){return"[object RegExp]"===o.call(t)}function K(t){return t!==t}function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function J(t,e){return null!=t?t:e}function tt(t,e,n){return null!=t?t:null!=e?e:n}function et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function nt(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function it(t,e){if(!t)throw new Error(e)}function rt(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var at="__ec_primitive__";function ot(t){t[at]=!0}function st(t){return t[at]}var lt=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return N(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),ut="function"===typeof Map;function ct(){return ut?new Map:new lt}var ht=function(){function t(e){var n=B(e);this.data=ct();var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&k(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return ut?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function dt(t){return new ht(t)}function pt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function ft(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&w(n,e),n}function gt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function yt(t,e){return t.hasOwnProperty(e)}function vt(){}var mt=180/Math.PI,bt=Number.EPSILON||Math.pow(2,-52)},"6dd8":function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,i){return t[0]===e&&(n=i,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,r=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),o=2;function s(t,e){var n=!1,i=!1,r=0;function s(){n&&(n=!1,t()),i&&u()}function l(){a(s)}function u(){var t=Date.now();if(n){if(t-r<o)return;i=!0}else n=!0,i=!1,setTimeout(l,e);r=t}return u}var l=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,h=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,i=u.some((function(t){return!!~n.indexOf(t)}));i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||r},f=M(0,0,0,0);function g(t){return parseFloat(t)||0}function y(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){var i=t["border-"+n+"-width"];return e+g(i)}),0)}function v(t){for(var e=["top","right","bottom","left"],n={},i=0,r=e;i<r.length;i++){var a=r[i],o=t["padding-"+a];n[a]=g(o)}return n}function m(t){var e=t.getBBox();return M(0,0,e.width,e.height)}function b(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return f;var i=p(t).getComputedStyle(t),r=v(i),a=r.left+r.right,o=r.top+r.bottom,s=g(i.width),l=g(i.height);if("border-box"===i.boxSizing&&(Math.round(s+a)!==e&&(s-=y(i,"left","right")+a),Math.round(l+o)!==n&&(l-=y(i,"top","bottom")+o)),!_(t)){var u=Math.round(s+a)-e,c=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return M(r.left,r.top,s,l)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function _(t){return t===p(t).document.documentElement}function w(t){return i?x(t)?m(t):b(t):f}function S(t){var e=t.x,n=t.y,i=t.width,r=t.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return d(o,{x:e,y:n,width:i,height:r,top:n,right:e+i,bottom:r+n,left:e}),o}function M(t,e,n,i){return{x:t,y:e,width:n,height:i}}var O=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=M(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),T=function(){function t(t,e){var n=S(e);d(this,{target:t,contentRect:n})}return t}(),I=function(){function t(t,e,i){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new O(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),C="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),i=new I(e,n,this);C.set(this,i)}return t}();["observe","unobserve","disconnect"].forEach((function(t){A.prototype[t]=function(){var e;return(e=C.get(this))[t].apply(e,arguments)}}));var k=function(){return"undefined"!==typeof r.ResizeObserver?r.ResizeObserver:A}();e["default"]=k}.call(this,n("c8ba"))},"6f00":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setHours(r),n}t.exports=r},"6f4e":function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i+1),r.setHours(23,59,59,999),r}t.exports=n},"6fcc":function(t,e,n){var i=n("c8d5"),r=n("2a9c"),a=n("0d3e");function o(t,e){var n=i(t),o=i(e),s=a(n,o),l=Math.abs(r(n,o));n.setFullYear(n.getFullYear()-s*l);var u=a(n,o)===-s;return s*(l-u)}t.exports=o},"70f2":function(t,e,n){var i=n("580f"),r=n("81fc"),a=n("8964"),o=n("c8d5"),s=n("7eea"),l=n("52cf");function u(t,e,n){var i=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",r=n||{},a=r.locale,u=l.format.formatters,c=l.format.formattingTokensRegExp;a&&a.format&&a.format.formatters&&(u=a.format.formatters,a.format.formattingTokensRegExp&&(c=a.format.formattingTokensRegExp));var d=o(t);if(!s(d))return"Invalid Date";var p=h(i,u,c);return p(d)}var c={M:function(t){return t.getMonth()+1},MM:function(t){return f(t.getMonth()+1,2)},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},D:function(t){return t.getDate()},DD:function(t){return f(t.getDate(),2)},DDD:function(t){return i(t)},DDDD:function(t){return f(i(t),3)},d:function(t){return t.getDay()},E:function(t){return t.getDay()||7},W:function(t){return r(t)},WW:function(t){return f(r(t),2)},YY:function(t){return f(t.getFullYear(),4).substr(2)},YYYY:function(t){return f(t.getFullYear(),4)},GG:function(t){return String(a(t)).substr(2)},GGGG:function(t){return a(t)},H:function(t){return t.getHours()},HH:function(t){return f(t.getHours(),2)},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return f(c["h"](t),2)},m:function(t){return t.getMinutes()},mm:function(t){return f(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return f(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return f(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return f(t.getMilliseconds(),3)},Z:function(t){return p(t.getTimezoneOffset(),":")},ZZ:function(t){return p(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function h(t,e,n){var i,r,a=t.match(n),o=a.length;for(i=0;i<o;i++)r=e[a[i]]||c[a[i]],a[i]=r||d(a[i]);return function(t){for(var e="",n=0;n<o;n++)a[n]instanceof Function?e+=a[n](t,c):e+=a[n];return e}}function d(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|]$/g,""):t.replace(/\\/g,"")}function p(t,e){e=e||"";var n=t>0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),a=i%60;return n+f(r,2)+e+f(a,2)}function f(t,e){var n=Math.abs(t).toString();while(n.length<e)n="0"+n;return n}t.exports=u},"71f3":function(t,e,n){},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}));var i=12,r="sans-serif",a=i+"px "+r,o=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-o)/s;e[i]=r}return e}var c=u(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var o=h.createCanvas();t=o&&o.getContext("2d")}if(t)return e!==r&&(e=t.font=r||a),t.measureText(n);n=n||"",r=r||a;var s=/((?:\d+)?\.?\d*)px/.exec(r),l=s&&+s[1]||i,u=0;if(r.indexOf("mono")>=0)u=l*n.length;else for(var d=0;d<n.length;d++){var p=c[n[d]];u+=null==p?l:p*l}return{width:u}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};function d(t){for(var e in h)h.hasOwnProperty(e)&&t[e]&&(h[e]=t[e])}},"72b7":function(t,e,n){var i=n("ec1f"),r=6e4;function a(t,e){var n=Number(e);return i(t,n*r)}t.exports=a},"72fa":function(t,e,n){},"732a":function(t,e,n){"use strict";n("e895")},7338:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return n}t.exports=r},7443:function(t,e,n){var i=n("9744");function r(){return i(new Date)}t.exports=r},7494:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),a=r.getDay(),o=6+(a<n?-7:0)-(a-n);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}t.exports=r},7606:function(t,e,n){var i=n("c8d5");function r(t){return 2===i(t).getDay()}t.exports=r},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return o})),n.d(e,"j",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"h",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return m})),n.d(e,"m",(function(){return b})),n.d(e,"o",(function(){return x})),n.d(e,"k",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return M})),n.d(e,"c",(function(){return O}));var i=n("6d8b"),r=n("41ef"),a=Math.round;function o(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(r["parse"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var s=1e-4;function l(t){return t<s&&t>-s}function u(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+c(t[4])+","+c(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function f(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function g(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(t){return t&&!!t.image}function v(t){return t&&!!t.svgElement}function m(t){return y(t)||v(t)}function b(t){return"linear"===t.type}function x(t){return"radial"===t.type}function _(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function M(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i["RADIAN_TO_DEGREE"],o=Object(i["retrieve2"])(t.scaleX,1),s=Object(i["retrieve2"])(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*i["RADIAN_TO_DEGREE"])+"deg, "+a(u*i["RADIAN_TO_DEGREE"])+"deg)"),c.join(" ")}var O=function(){return"undefined"!==typeof t&&"function"===typeof t.from?function(e){return t.from(e).toString("base64")}:"function"===typeof btoa&&"function"===typeof unescape&&"function"===typeof encodeURIComponent?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}}()}).call(this,n("b639").Buffer)},"7a83":function(t,e,n){var i=n("8946");function r(t,e){var n=Number(e),r=7*n;return i(t,r)}t.exports=r},"7eea":function(t,e,n){var i=n("a735");function r(t){if(i(t))return!isNaN(t);throw new TypeError(toString.call(t)+" is not an instance of Date")}t.exports=r},"7fd8":function(t,e,n){var i=n("c8d5");function r(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,r,a=i(t),o=a.getTime();return e.forEach((function(t,e){var a=i(t),s=Math.abs(o-a.getTime());(void 0===n||s<r)&&(n=e,r=s)})),n}t.exports=r},"80ec":function(t,e,n){"use strict";n("5b68")},8148:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i+1),r.setHours(0,0,0,0),r}t.exports=n},"81fc":function(t,e,n){var i=n("c8d5"),r=n("b4c7"),a=n("4497"),o=6048e5;function s(t){var e=i(t),n=r(e).getTime()-a(e).getTime();return Math.round(n/o)+1}t.exports=s},"82dc":function(t,e,n){var i=n("b4c7"),r=6e4,a=6048e5;function o(t,e){var n=i(t),o=i(e),s=n.getTime()-n.getTimezoneOffset()*r,l=o.getTime()-o.getTimezoneOffset()*r;return Math.round((s-l)/a)}t.exports=o},8301:function(t,e,n){var i=n("17cd");function r(t,e){var n=i(t,e)/3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},"83d1":function(t,e,n){"use strict";n("2f60")},"83f0":function(t,e,n){var i=n("af1b");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},"84b9":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return 0===n&&(n=7),n}t.exports=r},8596:function(t,e,n){},"861d":function(t,e,n){var i=n("8964"),r=n("b4c7");function a(t){var e=i(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var a=r(n);return a.setMilliseconds(a.getMilliseconds()-1),a}t.exports=a},8902:function(t,e,n){var i=n("fcb3");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},8946:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setDate(n.getDate()+r),n}t.exports=r},8964:function(t,e,n){var i=n("c8d5"),r=n("b4c7");function a(t){var e=i(t),n=e.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var o=r(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var l=r(s);return e.getTime()>=o.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}t.exports=a},"8aed":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMinutes(r),n}t.exports=r},"8bbf":function(e,n){e.exports=t},"8c81":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMilliseconds();return n}t.exports=r},"902e":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getTime();return n}t.exports=r},"90e5":function(t,e){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];function i(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);var r=n.concat(e).sort().reverse(),a=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+r.join("|")+"|.)","g");return a}t.exports=i},9113:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setSeconds(r),n}t.exports=r},9152:function(t,e){
26
26
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
27
- e.read=function(t,e,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?r-1:0,d=n?-1:1,p=t[e+h];for(h+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+t[e+h],h+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),a-=u}return(p?-1:1)*o*Math.pow(2,a-i)},e.write=function(t,e,n,i,r,a){var o,s,l,u=8*a-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,f=i?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,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),e+=o+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,r),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[n+p]=255&s,p+=f,s/=256,r-=8);for(o=o<<r|s,u+=r;u>0;t[n+p]=255&o,p+=f,o/=256,u-=8);t[n+p-f]|=128*g}},"916e":function(t,e,n){"use strict";n("17b4")},"942b":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setDate(1),e.setHours(0,0,0,0),e}t.exports=r},9530:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMonth(0),n.setDate(r),n}t.exports=r},"957f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setDate(r),n}t.exports=r},"95ea":function(t,e,n){var i=n("c8d5");function r(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return i(t)})),n=Math.max.apply(null,e);return new Date(n)}t.exports=r},9619:function(t,e,n){var i=n("597f"),r=n("0e15");t.exports={throttle:i,debounce:r}},9706:function(t,e,n){var i=n("c8d5"),r=n("4497"),a=n("d420");function o(t,e){var n=i(t),o=Number(e),s=a(n,r(n)),l=new Date(0);return l.setFullYear(o,0,4),l.setHours(0,0,0,0),n=r(l),n.setDate(n.getDate()+s),n}t.exports=o},9744:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setHours(23,59,59,999),e}t.exports=r},"97af":function(t,e,n){var i=n("2fff");function r(t){return i(new Date,t)}t.exports=r},"9aaa":function(t,e,n){var i=n("4399");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},"9ad8":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return 0===n||6===n}t.exports=r},"9bb9":function(t,e,n){var i=n("5a60");function r(t){return i(new Date,t)}t.exports=r},a092:function(t,e,n){"use strict";n("5ecd")},a0d8:function(t,e,n){},a431:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()>r.getTime()}t.exports=r},a4b7:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}t.exports=r},a735:function(t,e){function n(t){return t instanceof Date}t.exports=n},a852:function(t,e,n){var i=n("c8d5");function r(t){return 5===i(t).getDay()}t.exports=r},a935:function(t,e,n){var i=n("c8d5");function r(t){return i(t).getTime()<(new Date).getTime()}t.exports=r},abd4:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},acc4:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return n%400===0||n%4===0&&n%100!==0}t.exports=r},ad4d:function(t,e,n){t.exports={xtColorPrimary:"#1890ff",xtColorSuccess:"#37c3a4",xtColorWarning:"#FFB74D",xtColorDanger:"#EA1D34",xtColorInfo:"#999999",xtColorPrimaryLight3:"#5DB1FF",xtColorPrimaryLight5:"#8CC8FF",xtColorPrimaryLight7:"#BADEFF",xtColorPrimaryLight8:"#D1E9FF",xtColorPrimaryLight9:"#E8F4FF",xtColorTextPrimary:"#303133",xtColorTextRegular:"#606266",xtColorTextSecondary:"#909399",xtColorTextPlaceholder:"#C0C4CC",xtColorTextDisabled:"#C0C4CC",xtColorBgPrimary:"#ffffff",xtColorBgSecondary:"#f5f7fa",xtColorBgHover:"#f5f5f5",xtColorBgContainer:"#f0f0f2",xtColorBgOverlay:"#ffffff",xtColorBorder:"#DCDFE6",xtColorBorderLight:"#E4E7ED",xtColorBorderLighter:"#EBEEF5",xtColorBorderExtraLight:"#F2F6FC",xtFontSizeExtraLarge:"20px",xtFontSizeLarge:"18px",xtFontSizeMedium:"16px",xtFontSizeBase:"14px",xtFontSizeSmall:"13px",xtFontSizeExtraSmall:"12px",xtSpacingXs:"4px",xtSpacingSm:"8px",xtSpacingMd:"12px",xtSpacingLg:"16px",xtSpacingXl:"20px",xtBorderRadiusBase:"4px",xtBorderRadiusSmall:"2px",xtBorderRadiusRound:"20px",xtBorderRadiusCircle:"50%",xtShadowSm:"0 2px 4px rgba(0, 0, 0, 0.04)",xtShadowMd:"0 4px 12px rgba(0, 0, 0, 0.08)",xtShadowLg:"0 8px 24px rgba(0, 0, 0, 0.12)",xtTransitionDuration:"0.3s",xtTransitionDurationFast:"0.2s"}},af1b:function(t,e,n){var i=n("ec1f");function r(t,e){var n=Number(e);return i(t,1e3*n)}t.exports=r},b1a2:function(t,e,n){"use strict";n("fc76")},b2e9:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e),a=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*a+o}t.exports=r},b3f5:function(t,e,n){var i=n("c8d5"),r=n("f9ff"),a=n("0d3e"),o=n("df35");function s(t,e){var n=i(t),s=i(e),l=a(n,s),u=Math.abs(r(n,s));n=o(n,l*u);var c=a(n,s)===-l;return l*(u-c)}t.exports=s},b4c7:function(t,e,n){var i=n("c7ce");function r(t){return i(t,{weekStartsOn:1})}t.exports=r},b60f:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDate();return n}t.exports=r},b639:function(t,e,n){"use strict";(function(t){
27
+ e.read=function(t,e,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?r-1:0,d=n?-1:1,p=t[e+h];for(h+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+t[e+h],h+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,i),a-=u}return(p?-1:1)*o*Math.pow(2,a-i)},e.write=function(t,e,n,i,r,a){var o,s,l,u=8*a-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:a-1,f=i?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,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),e+=o+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,r),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,r),o=0));r>=8;t[n+p]=255&s,p+=f,s/=256,r-=8);for(o=o<<r|s,u+=r;u>0;t[n+p]=255&o,p+=f,o/=256,u-=8);t[n+p-f]|=128*g}},"916e":function(t,e,n){"use strict";n("17b4")},"942b":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setDate(1),e.setHours(0,0,0,0),e}t.exports=r},9530:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMonth(0),n.setDate(r),n}t.exports=r},"957f":function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setDate(r),n}t.exports=r},"95ea":function(t,e,n){var i=n("c8d5");function r(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return i(t)})),n=Math.max.apply(null,e);return new Date(n)}t.exports=r},9619:function(t,e,n){var i=n("597f"),r=n("0e15");t.exports={throttle:i,debounce:r}},9706:function(t,e,n){var i=n("c8d5"),r=n("4497"),a=n("d420");function o(t,e){var n=i(t),o=Number(e),s=a(n,r(n)),l=new Date(0);return l.setFullYear(o,0,4),l.setHours(0,0,0,0),n=r(l),n.setDate(n.getDate()+s),n}t.exports=o},9744:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setHours(23,59,59,999),e}t.exports=r},"97af":function(t,e,n){var i=n("2fff");function r(t){return i(new Date,t)}t.exports=r},"9aaa":function(t,e,n){var i=n("4399");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},"9ad8":function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return 0===n||6===n}t.exports=r},"9bb9":function(t,e,n){var i=n("5a60");function r(t){return i(new Date,t)}t.exports=r},a092:function(t,e,n){"use strict";n("5ecd")},a0d8:function(t,e,n){},a431:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()>r.getTime()}t.exports=r},a4b7:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}t.exports=r},a735:function(t,e){function n(t){return t instanceof Date}t.exports=n},a852:function(t,e,n){var i=n("c8d5");function r(t){return 5===i(t).getDay()}t.exports=r},a935:function(t,e,n){var i=n("c8d5");function r(t){return i(t).getTime()<(new Date).getTime()}t.exports=r},abd4:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},acc4:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return n%400===0||n%4===0&&n%100!==0}t.exports=r},ad4d:function(t,e,n){t.exports={xtColorPrimary:"#1890ff",xtColorSuccess:"#37c3a4",xtColorWarning:"#FFB74D",xtColorDanger:"#EA1D34",xtColorInfo:"#999999",xtColorPrimaryLight3:"#5DB1FF",xtColorPrimaryLight5:"#8CC8FF",xtColorPrimaryLight7:"#BADEFF",xtColorPrimaryLight8:"#D1E9FF",xtColorPrimaryLight9:"#E8F4FF",xtColorTextPrimary:"#303133",xtColorTextRegular:"#606266",xtColorTextSecondary:"#909399",xtColorTextPlaceholder:"#C0C4CC",xtColorTextDisabled:"#C0C4CC",xtColorBgPrimary:"#ffffff",xtColorBgSecondary:"#f5f7fa",xtColorBgHover:"#f5f5f5",xtColorBgContainer:"#f0f0f2",xtColorBgOverlay:"#ffffff",xtColorBorder:"#DCDFE6",xtColorBorderLight:"#E4E7ED",xtColorBorderLighter:"#EBEEF5",xtColorBorderExtraLight:"#F2F6FC",xtFontSizeExtraLarge:"22px",xtFontSizeLarge:"18px",xtFontSizeMedium:"16px",xtFontSizeBase:"14px",xtFontSizeSmall:"13px",xtFontSizeExtraSmall:"12px",xtSpacingXs:"4px",xtSpacingSm:"8px",xtSpacingMd:"12px",xtSpacingLg:"16px",xtSpacingXl:"20px",xtBorderRadiusBase:"4px",xtBorderRadiusSmall:"2px",xtBorderRadiusRound:"20px",xtBorderRadiusCircle:"50%",xtShadowSm:"0 2px 4px rgba(0, 0, 0, 0.04)",xtShadowMd:"0 4px 12px rgba(0, 0, 0, 0.08)",xtShadowLg:"0 8px 24px rgba(0, 0, 0, 0.12)",xtTransitionDuration:"0.3s",xtTransitionDurationFast:"0.2s"}},af1b:function(t,e,n){var i=n("ec1f");function r(t,e){var n=Number(e);return i(t,1e3*n)}t.exports=r},b1a2:function(t,e,n){"use strict";n("fc76")},b2e9:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e),a=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*a+o}t.exports=r},b3f5:function(t,e,n){var i=n("c8d5"),r=n("f9ff"),a=n("0d3e"),o=n("df35");function s(t,e){var n=i(t),s=i(e),l=a(n,s),u=Math.abs(r(n,s));n=o(n,l*u);var c=a(n,s)===-l;return l*(u-c)}t.exports=s},b4c7:function(t,e,n){var i=n("c7ce");function r(t){return i(t,{weekStartsOn:1})}t.exports=r},b60f:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDate();return n}t.exports=r},b639:function(t,e,n){"use strict";(function(t){
28
28
  /*!
29
29
  * The buffer module from node.js, for the browser.
30
30
  *
31
31
  * @author Feross Aboukhadijeh <http://feross.org>
32
32
  * @license MIT
33
33
  */
34
- var i=n("1fb5"),r=n("9152"),a=n("e3db");function o(){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()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return c(this,t,e,n)}function c(t,e,n,i){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,n,i):"string"===typeof e?f(t,e,n):v(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,n,i){return h(e),e<=0?l(t,e):void 0!==n?"string"===typeof i?l(t,e).fill(n,i):l(t,e).fill(n):l(t,e)}function p(t,e){if(h(e),t=l(t,e<0?0:0|m(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|x(e,n);t=l(t,i);var r=t.write(e,n);return r!==i&&(t=t.slice(0,r)),t}function g(t,e){var n=e.length<0?0:0|m(e.length);t=l(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function y(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function v(t,e){if(u.isBuffer(e)){var n=0|m(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&a(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function x(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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(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(i)return q(t).length;e=(""+e).toLowerCase(),i=!0}}function _(t,e,n){var i=!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 E(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function w(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function S(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:M(t,e,n,i,r);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):M(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function M(t,e,n,i,r){var a,o=1,s=t.length,l=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var c=-1;for(a=n;a<s;a++)if(u(t,a)===u(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,d=0;d<l;d++)if(u(t,a+d)!==u(e,d)){h=!1;break}if(h)return a}return-1}function O(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function T(t,e,n,i){return tt(q(e,t.length-n),t,n,i)}function I(t,e,n,i){return tt(K(e),t,n,i)}function C(t,e,n,i){return I(t,e,n,i)}function A(t,e,n,i){return tt(J(e),t,n,i)}function k(t,e,n,i){return tt(Q(e,t.length-n),t,n,i)}function D(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);var i=[],r=e;while(r<n){var a,o,s,l,u=t[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:a=t[r+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(c=l));break;case 3:a=t[r+1],o=t[r+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return j(i)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),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 d(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,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=u.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},u.byteLength=x,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?L(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,i,r){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===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,o=n-e,s=Math.min(a,o),l=this.slice(i,r),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){a=l[h],o=c[h];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},u.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return O(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return I(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function j(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",i=0;while(i<e)n+=String.fromCharCode.apply(String,t.slice(i,i+=P));return n}function N(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function R(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function E(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=Z(t[a]);return r}function z(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function B(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function V(t,e,n,i,r,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function F(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r<a;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function H(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r<a;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function G(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,i,a){return a||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function Y(t,e,n,i,a){return a||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}u.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var r=e-t;n=new u(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return i},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);var i=this[t+--e],r=1;while(e>0&&(r*=256))i+=this[t+--e]*r;return i},u.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||B(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||B(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||B(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);var i=e,r=1,a=this[t+--i];while(i>0&&(r*=256))a+=this[t+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||B(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||B(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||B(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||B(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||B(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;V(this,t,e,n,r,0)}var a=1,o=0;this[e]=255&t;while(++o<n&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;V(this,t,e,n,r,0)}var a=n-1,o=1;this[e+a]=255&t;while(--a>=0&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||V(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||V(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||V(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||V(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,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);V(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;this[e]=255&t;while(++a<n&&(o*=256))t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);V(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;this[e+a]=255&t;while(--a>=0&&(o*=256))t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||V(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||V(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||V(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||V(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 W(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return Y(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return Y(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},u.prototype.fill=function(t,e,n,i){if("string"===typeof t){if("string"===typeof e?(i=e,e=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=u.isBuffer(t)?t:q(new u(t,i).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function X(t){if(t=$(t).replace(U,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function $(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],o=0;o<i;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function K(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Q(t,e){for(var n,i,r,a=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}function J(t){return i.toByteArray(X(t))}function tt(t,e,n,i){for(var r=0;r<i;++r){if(r+n>=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b78a:function(t,e,n){var i=n("c8d5"),r=n("8946");function a(t,e,n){var a=n&&Number(n.weekStartsOn)||0,o=i(t),s=Number(e),l=o.getDay(),u=s%7,c=(u+7)%7,h=(c<a?7:0)+s-l;return r(o,h)}t.exports=a},b8a7:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}t.exports=r},b8f9:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=Math.floor(e.getMonth()/3)+1;return n}t.exports=r},badb:function(t,e,n){var i=n("ec1f");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},bb7c:function(t,e,n){var i=n("c873"),r=n("c8d5"),a=n("e13a"),o=n("52cf"),s=1440,l=43200,u=525600;function c(t,e,n){var c=n||{},h=i(t,e),d=c.locale,p=o.distanceInWords.localize;d&&d.distanceInWords&&d.distanceInWords.localize&&(p=d.distanceInWords.localize);var f,g,y,v={addSuffix:Boolean(c.addSuffix),comparison:h};h>0?(f=r(t),g=r(e)):(f=r(e),g=r(t));var m,b,x,_,w=Math[c.partialMethod?String(c.partialMethod):"floor"],S=a(g,f),M=g.getTimezoneOffset()-f.getTimezoneOffset(),O=w(S/60)-M;if(y=c.unit?String(c.unit):O<1?"s":O<60?"m":O<s?"h":O<l?"d":O<u?"M":"Y","s"===y)return p("xSeconds",S,v);if("m"===y)return p("xMinutes",O,v);if("h"===y)return m=w(O/60),p("xHours",m,v);if("d"===y)return b=w(O/s),p("xDays",b,v);if("M"===y)return x=w(O/l),p("xMonths",x,v);if("Y"===y)return _=w(O/u),p("xYears",_,v);throw new Error("Unknown unit: "+y)}t.exports=c},c2b5:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return n}t.exports=r},c4c2:function(t,e,n){var i=n("c8d5");function r(t,e,n){var r=i(t),a=i(e),o=void 0!==n?n:1,s=a.getTime();if(r.getTime()>s)throw new Error("The first date cannot be after the second date");var l=[],u=r;u.setHours(0,0,0,0);while(u.getTime()<=s)l.push(i(u)),u.setDate(u.getDate()+o);return l}t.exports=r},c4f9:function(t,e,n){var i=n("0978");function r(t){var e=new Date;return e.setDate(e.getDate()-1),i(t).getTime()===i(e).getTime()}t.exports=r},c589:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMinutes();return n}t.exports=r},c6ae:function(t,e,n){var i=n("2299");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},c7ce:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),a=r.getDay(),o=(a<n?7:0)+a-n;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}t.exports=r},c839:function(t,e,n){},c873:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=n.getTime(),a=i(e),o=a.getTime();return r>o?-1:r<o?1:0}t.exports=r},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8d5:function(t,e,n){var i=n("5465"),r=n("a735"),a=36e5,o=6e4,s=2,l=/[T ]/,u=/:/,c=/^(\d{2})$/,h=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],d=/^(\d{4})/,p=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],f=/^-(\d{2})$/,g=/^-?(\d{3})$/,y=/^-?(\d{2})-?(\d{2})$/,v=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,b=/^(\d{2}([.,]\d*)?)$/,x=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,_=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,S=/^(Z)$/,M=/^([+-])(\d{2})$/,O=/^([+-])(\d{2}):?(\d{2})$/;function T(t,e){if(r(t))return new Date(t.getTime());if("string"!==typeof t)return new Date(t);var n=e||{},a=n.additionalDigits;a=null==a?s:Number(a);var l=I(t),u=C(l.date,a),c=u.year,h=u.restDateString,d=A(h,c);if(d){var p,f=d.getTime(),g=0;if(l.time&&(g=k(l.time)),l.timezone)p=D(l.timezone)*o;else{var y=f+g,v=new Date(y);p=i(v);var m=new Date(y);m.setDate(v.getDate()+1);var b=i(m)-i(v);b>0&&(p+=b)}return new Date(f+g+p)}return new Date(t)}function I(t){var e,n={},i=t.split(l);if(u.test(i[0])?(n.date=null,e=i[0]):(n.date=i[0],e=i[1]),e){var r=w.exec(e);r?(n.time=e.replace(r[1],""),n.timezone=r[1]):n.time=e}return n}function C(t,e){var n,i=h[e],r=p[e];if(n=d.exec(t)||r.exec(t),n){var a=n[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(n=c.exec(t)||i.exec(t),n){var o=n[1];return{year:100*parseInt(o,10),restDateString:t.slice(o.length)}}return{year:null}}function A(t,e){if(null===e)return null;var n,i,r,a;if(0===t.length)return i=new Date(0),i.setUTCFullYear(e),i;if(n=f.exec(t),n)return i=new Date(0),r=parseInt(n[1],10)-1,i.setUTCFullYear(e,r),i;if(n=g.exec(t),n){i=new Date(0);var o=parseInt(n[1],10);return i.setUTCFullYear(e,0,o),i}if(n=y.exec(t),n){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return i.setUTCFullYear(e,r,s),i}if(n=v.exec(t),n)return a=parseInt(n[1],10)-1,L(e,a);if(n=m.exec(t),n){a=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return L(e,a,l)}return null}function k(t){var e,n,i;if(e=b.exec(t),e)return n=parseFloat(e[1].replace(",",".")),n%24*a;if(e=x.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),n%24*a+i*o;if(e=_.exec(t),e){n=parseInt(e[1],10),i=parseInt(e[2],10);var r=parseFloat(e[3].replace(",","."));return n%24*a+i*o+1e3*r}return null}function D(t){var e,n;return e=S.exec(t),e?0:(e=M.exec(t),e?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=O.exec(t),e?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0))}function L(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var r=i.getUTCDay()||7,a=7*e+n+1-r;return i.setUTCDate(i.getUTCDate()+a),i}t.exports=T},c980:function(t,e,n){var i=n("c8d5");function r(t){return 3===i(t).getDay()}t.exports=r},cb96:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),a=r.getDay(),o=6+(a<n?-7:0)-(a-n);return r.setHours(0,0,0,0),r.setDate(r.getDate()+o),r}t.exports=r},cc64:function(t,e,n){var i=n("ccce");function r(t){return i(new Date,t)}t.exports=r},ccce:function(t,e,n){var i=n("1baf");function r(t,e){return i(t,e,{weekStartsOn:1})}t.exports=r},ce3d:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(0,0,0,0),e}t.exports=r},d010:function(t,e,n){"use strict";function i(t,e,n){this.$children.forEach((function(r){var a=r.$options.componentName;a===t?r.$emit.apply(r,[e].concat(n)):i.apply(r,[t,e].concat([n]))}))}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){var i=this.$parent||this.$root,r=i.$options.componentName;while(i&&(!r||r!==t))i=i.$parent,i&&(r=i.$options.componentName);i&&i.$emit.apply(i,[e].concat(n))},broadcast:function(t,e,n){i.call(this,t,e,n)}}}},d2ed:function(t,e,n){var i=n("e785"),r=36e5;function a(t,e){var n=i(t,e)/r;return n>0?Math.floor(n):Math.ceil(n)}t.exports=a},d420:function(t,e,n){var i=n("0978"),r=6e4,a=864e5;function o(t,e){var n=i(t),o=i(e),s=n.getTime()-n.getTimezoneOffset()*r,l=o.getTime()-o.getTimezoneOffset()*r;return Math.round((s-l)/a)}t.exports=o},d473:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMilliseconds(r),n}t.exports=r},d4ae:function(t,e,n){var i=n("f5dd");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},d51b:function(t,e,n){"use strict";var i=function(){function t(t){this.value=t}return t}(),r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(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}(),a=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,a=null;if(null==r[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return a},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"]=a},d67a:function(t,e,n){},d6f8:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}t.exports=r},d728:function(t,e,n){"use strict";n("71f3")},d975:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}t.exports=r},dddf:function(t,e,n){var i=n("acc4");function r(t){return i(t)?366:365}t.exports=r},de13:function(t,e,n){var i=n("8964"),r=n("b4c7");function a(t){var e=i(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var a=r(n);return a.setDate(a.getDate()-1),a}t.exports=a},df35:function(t,e,n){var i=n("27a1");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e13a:function(t,e,n){var i=n("e785");function r(t,e){var n=i(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},e1ca:function(t,e,n){var i=n("7a83");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e2ff:function(t,e,n){var i=n("8946");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e51d:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i-1),r.setHours(23,59,59,999),r}t.exports=n},e620:function(t,e,n){var i=n("c6ae");function r(t){return i(new Date,t)}t.exports=r},e73d:function(t,e,n){var i=n("c8d5"),r=n("81fc");function a(t,e){var n=i(t),a=Number(e),o=r(n)-a;return n.setDate(n.getDate()-7*o),n}t.exports=a},e785:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()-r.getTime()}t.exports=r},e830:function(t,e,n){var i=n("90e5");function r(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],l=["am","pm"],u=["a.m.","p.m."],c={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return r[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?s[1]:s[0]},a:function(t){return t.getHours()/12>=1?l[1]:l[0]},aa:function(t){return t.getHours()/12>=1?u[1]:u[0]}},h=["M","D","DDD","d","Q","W"];return h.forEach((function(t){c[t+"o"]=function(e,n){return a(n[t](e))}})),{formatters:c,formattingTokensRegExp:i(c)}}function a(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}t.exports=r},e895:function(t,e,n){},e96b:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setSeconds(0,0),e}t.exports=r},eaa5:function(t,e,n){var i=n("c8d5");function r(t,e,n,r){var a=i(t).getTime(),o=i(e).getTime(),s=i(n).getTime(),l=i(r).getTime();if(a>o||s>l)throw new Error("The start of the range cannot be after the end of the range");return a<l&&s<o}t.exports=r},ec1f:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t).getTime(),r=Number(e);return new Date(n+r)}t.exports=r},eca2:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}t.exports=r},ee91:function(t,e,n){var i=n("3bc7");function r(t,e){var n=i(t,e)/7;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},f564:function(t,e,n){var i=n("e96b");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},f56a:function(t,e,n){var i=n("c8d5");function r(t,e,n){var r=i(t).getTime(),a=i(e).getTime(),o=i(n).getTime();if(a>o)throw new Error("The start of the range cannot be after the end of the range");return r>=a&&r<=o}t.exports=r},f5dd:function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e),r=3*n;return i(t,r)}t.exports=r},f66d:function(t,e,n){var i=n("26d5");function r(t){return i(new Date,t)}t.exports=r},f9ff:function(t,e,n){var i=n("8964");function r(t,e){return i(t)-i(e)}t.exports=r},fa76:function(t,e,n){var i=n("c8d5"),r=n("8946"),a=n("84b9");function o(t,e){var n=i(t),o=Number(e),s=a(n),l=o-s;return r(n,l)}t.exports=o},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"XtChart",(function(){return Fi})),n.d(e,"createVirtualScrollData",(function(){return ma})),n.d(e,"virtualScrollColumns",(function(){return ba})),n.d(e,"utils",(function(){return xa})),n.d(e,"variables",(function(){return o.a})),n.d(e,"getConfig",(function(){return _a})),n.d(e,"setConfig",(function(){return wa})),n.d(e,"getTheme",(function(){return Sa})),n.d(e,"getSize",(function(){return Ma})),n.d(e,"getPrimaryColor",(function(){return Oa})),n.d(e,"resetConfig",(function(){return Ta})),n.d(e,"onConfigChange",(function(){return Ia})),n.d(e,"setTheme",(function(){return Ca})),n.d(e,"setSize",(function(){return Aa})),n.d(e,"setPrimaryColor",(function(){return ka})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("72fa"),n("d67a");var a=n("ad4d"),o=n.n(a),s={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},valueAxis:{axisLabel:{color:"#666666"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",borderColor:"#dcdfe6",textStyle:{color:"#333333"},trigger:"axis"}},l={color:["#1060ff","#6648fe","#26ddff","#1bae94","#ff8041","#3a5dca","#c7dd4b"],backgroundColor:"#000",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#ffffff",fontSize:16},subtextStyle:{color:"#ffffff",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#ffffff"}},radar:{indicator:{color:"#ffffff"}},map:{label:{color:"#ffffff"},itemStyle:{borderColor:"#dcdfe6"}},valueAxis:{axisLabel:{color:"#ffffff"}},categoryAxis:{axisLabel:{color:"#ffffff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#ffffff"}},xAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},yAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#666666","#666666"]}},legend:{textStyle:{color:"#ffffff"}},tooltip:{backgroundColor:"#333333",borderWidth:1,borderColor:"#dcdfe6",textStyle:{color:"#fff"}},trigger:"axis"};const u={default:s,white:s,dark:l};let c=null;function h(){if(!c&&"undefined"!==typeof window)try{c=n("313e");for(const t in u)c.registerTheme(t,u[t])}catch(t){console.warn("[XtChart] echarts 加载失败:",t.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function p(){}function f(t,e){if(null==e)return t;if(Array.isArray(e))return e.slice();if("object"!==typeof e)return e;if(null==t||"object"!==typeof t)return JSON.parse(JSON.stringify(e));const n=Array.isArray(t)?t.slice():Object.assign({},t);return Object.keys(e).forEach(t=>{const i=e[t];null!==i&&void 0!==i?n[t]="object"===typeof i?f(n[t],i):i:e.hasOwnProperty(t)&&(n[t]=i)}),n}p.currentTheme="default",p.currentSize="medium",p.inverse=!1,p.EchartsUtil={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(t){return!this.reverse&&this.longLable?t.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):t}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},p.chartInstanceList=[],p.resizeObserverList=[],p.simpleModeOption={legend:{show:!1},tooltip:{borderWidth:0,extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.12);"},grid:{top:"5%",left:"5%",right:"5%",bottom:"5%",containLabel:!0},xAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},animationDuration:300,animationEasing:"linear"},p.simpleModeByType={bar:{series:{barWidth:"60%",label:{show:!1},markPoint:null,emphasis:{itemStyle:{shadowBlur:6,shadowOffsetX:0,shadowColor:"rgba(0,0,0,0.15)"}}}},line:{series:{symbol:"none",smooth:!0,symbolSize:0,label:{show:!1},areaStyle:null}},pie:{legend:{show:!1},title:{show:!1},series:{radius:["40%","72%"],label:{show:!1},labelLine:{show:!1}}},multi:{legend:{show:!1},grid:{top:"8%",left:"5%",right:"5%",bottom:"5%",containLabel:!0}}},p.applySimpleMode=function(t,e){if(!t||"object"!==typeof t)return t;const n=JSON.parse(JSON.stringify(p.simpleModeOption)),i=p.simpleModeByType[e]||{},r=f(n,i);if(Object.keys(r).forEach(e=>{"series"!==e&&(null==t[e]?t[e]=r[e]:"object"!==typeof t[e]||"object"!==typeof r[e]||Array.isArray(t[e])||(t[e]=f(r[e],t[e])))}),t.series&&Array.isArray(t.series)){const e=r.series||{};t.series=t.series.map(t=>null==t||"object"!==typeof t?t:f(e,t))}return["xAxis","yAxis"].forEach(e=>{if(null!=t[e]&&"object"===typeof t[e]){const n=r[e]||{};Array.isArray(t[e])?t[e]=t[e].map(t=>null==t||"object"!==typeof t?t:f(n,t)):t[e]=f(n,t[e])}}),t},p.mergeOptions=function(t,e){return Object.assign({},t,e)},p.applyFontSize=function(t,e){const n=d[e]||d.medium,i=JSON.parse(JSON.stringify(t));i.title&&i.title.textStyle&&(i.title.textStyle.fontSize=n.title),i.title&&i.title.subtextStyle&&(i.title.subtextStyle.fontSize=n.subtitle),i.legend&&i.legend.textStyle&&(i.legend.textStyle.fontSize=n.legend),i.tooltip&&i.tooltip.textStyle&&(i.tooltip.textStyle.fontSize=n.tooltip),i.pie&&i.pie.label&&"object"===typeof i.pie.label&&(i.pie.label.fontSize=n.label),i.radar&&i.radar.indicator&&"object"===typeof i.radar.indicator&&i.radar.indicator.textStyle&&(i.radar.indicator.textStyle.fontSize=n.label),i.map&&i.map.label&&"object"===typeof i.map.label&&(i.map.label.fontSize=n.label);const r=function(t){t&&(t.axisLabel||(t.axisLabel={}),i.axisLabel&&i.axisLabel.color&&(t.axisLabel.color=i.axisLabel.color),t.axisLabel.fontSize=n.axisLabel)};return i.xAxis&&(Array.isArray(i.xAxis)?i.xAxis.forEach(r):r(i.xAxis)),i.yAxis&&(Array.isArray(i.yAxis)?i.yAxis.forEach(r):r(i.yAxis)),i},p.init=function(t,e,n,i){const r=h();if(!r||!t)return null;e=e||"default",i=i||"medium",n=n||{};const a=this.currentTheme||e,o=this.currentSize||i;this.currentTheme=a,this.currentSize=o;let s=u[a];s=this.applyFontSize(s,o);const l=this.mergeOptions(s,n),c=r.init(t,a);return c.setOption(l,!0),this.chartInstanceList.push({dom:t,chart:c,customOption:n,size:o}),this.bindResize(c),c},p.changeSingleTheme=function(t,e,n,i){const r=h();if(!r||!t||!e)return;n=n||{},i=i||"default",this.currentTheme=i,e.dispose();const a=r.init(t,i,n),o=this.chartInstanceList.find((function(e){return e.dom===t}));return o&&(o.chart=a),a},p.changeAllTheme=function(t,e){const n=h();n&&t&&(this.currentTheme=t,e&&(this.currentSize=e),this.chartInstanceList.forEach((function(e){const i=e.dom,r=e.chart,a=e.customOption,o=e.size||p.currentSize;r&&r.dispose();const s=n.init(i,t);let l=u[t];l=p.applyFontSize(l,o);const c=p.mergeOptions(l,a);s.setOption(c,!0),e.chart=s,e.size=o,p.bindResize(s)})))},p.bindResize=function(t){t&&!t.resizeLocked&&(window.addEventListener("resize",(function(){t.resize()})),t._resizeLocked=!0)},p.bindResizeObserver=function(t,e){if(!t||!e||"undefined"===typeof ResizeObserver)return;const n=new ResizeObserver(()=>{e.resize()});n.observe(t),p.resizeObserverList.push({dom:t,observer:n,chartIns:e})},p.unbindResizeObserver=function(t){const e=p.resizeObserverList.findIndex(e=>e.dom===t);-1!==e&&(p.resizeObserverList[e].observer.disconnect(),p.resizeObserverList.splice(e,1))},p.destroy=function(t){t&&t.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(e){return e.chart!==t}))},p.destroyAll=function(){this.chartInstanceList.forEach((function(t){t.chart&&t.chart.dispose()})),this.chartInstanceList=[],this.resizeObserverList.forEach((function(t){t.observer.disconnect()})),this.resizeObserverList=[]};var g=p;const y={theme:"white",size:"medium",primaryColor:"#1890ff"};let v={...y};const m=[],b=function(t,e){m.forEach(n=>{n(t,e)})},x=function(){return{...v}},_=function(t){"object"===typeof t&&null!==t?(void 0!==t.theme&&S(t.theme),void 0!==t.size&&M(t.size),void 0!==t.primaryColor&&C(t.primaryColor)):console.warn("[XtElementUI] setConfig 必须传入对象参数")};function w(){return"undefined"!==typeof window&&"undefined"!==typeof document}const S=function(t){const e=["white","dark"];if(e.includes(t)){if(v.theme=t,w()){const e=document.documentElement;"dark"===t?e.setAttribute("data-theme","dark"):e.setAttribute("data-theme",t),g.changeAllTheme(v.theme,v.size)}b("theme",t)}else console.warn(`[XtElementUI] 无效的主题值: ${t},可选值: ${e.join(", ")}`)},M=function(t){const e=["small","medium","large"];e.includes(t)?(v.size=t,w()&&(document.documentElement.setAttribute("data-size",t),g.changeAllTheme(v.theme,v.size)),b("size",t)):console.warn(`[XtElementUI] 无效的大小值: ${t},可选值: ${e.join(", ")}`)};function O(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function T(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")}function I(t,e){const n=O(t);if(!n)return t;const i=Math.round(2.55*e),r=Math.min(255,n.r+i),a=Math.min(255,n.g+i),o=Math.min(255,n.b+i);return T(r,a,o)}const C=function(t){const e=/^#[0-9A-Fa-f]{3}$|^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/;if(!e.test(t))return void console.warn(`[XtElementUI] 无效的颜色值: ${t},请使用十六进制颜色格式,如 #1890ff`);let n=t;4===t.length?n="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]:9===t.length&&(n=t.substring(0,7)),v.primaryColor=n,w()&&(document.documentElement.style.setProperty("--xt-color-primary",n),document.documentElement.style.setProperty("--xt-color-primary-light-3",I(n,30)),document.documentElement.style.setProperty("--xt-color-primary-light-5",I(n,50)),document.documentElement.style.setProperty("--xt-color-primary-light-7",I(n,70)),document.documentElement.style.setProperty("--xt-color-primary-light-8",I(n,80)),document.documentElement.style.setProperty("--xt-color-primary-light-9",I(n,90))),b("primaryColor",n)},A=function(){return v.theme},k=function(){return v.size},D=function(){return v.primaryColor},L=function(){_(y)},P=function(t){if("function"===typeof t)return m.push(t),function(){const e=m.indexOf(t);e>-1&&m.splice(e,1)};console.warn("[XtElementUI] onConfigChange 必须传入函数")};var j={setTheme:S,setSize:M,setPrimaryColor:C,getConfig:x,setConfig:_,getTheme:A,getSize:k,getPrimaryColor:D,resetConfig:L,onConfigChange:P},N=function(){var t=this,e=t._self._c;return e("el-button",t._b({staticClass:"xt-button",class:t.buttonClasses,on:{click:t.handleClick}},"el-button",t.$attrs,!1),[t._t("default")],2)},R=[],E={name:"XtButton",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{type:{type:String,default:"default",validator:t=>["default","primary","success","warning","danger"].includes(t)},throttle:{type:Number,default:0},size:{type:String,default:null,validator:t=>!t||["mini","small","medium","large"].includes(t)}},data(){return{lastClickTime:0}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},buttonClasses(){return["xt-button-"+this.finalSize,"xt-button-"+this.type]}},methods:{handleClick(){this.throttle>0&&Date.now()-this.lastClickTime<this.throttle||(this.lastClickTime=Date.now(),this.$emit("click"))}}},z=E;function B(t,e,n,i,r,a,o,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var V=B(z,N,R,!1,null,null,null),F=V.exports;F.install=function(t){t.component(F.name,F)};var H=F,G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-input",class:[t.size?"xt-input--"+t.size:"",{"is-disabled":t.disabled}]},[e("el-input",{style:t.inputStyle,attrs:{value:t.displayValue,placeholder:t.placeholder,type:t.isNumberType?"text":t.type,size:t.size,disabled:t.disabled,readonly:t.readonly},on:{input:t.handleInput,change:t.handleChange,focus:t.handleFocus,blur:t.handleBlur}})],1)},W=[],Y={name:"XtInput",props:{value:[String,Number],placeholder:{type:String,default:"请输入内容"},type:{type:String,default:"text"},size:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:""}},data(){return{currentStr:"",isFocused:!1}},computed:{isNumberType(){return"number"===this.type},displayValue(){return this.isNumberType?this.currentStr:this.value},inputStyle(){return this.color?{"--xt-input-focus-color":this.color}:{}}},watch:{value:{immediate:!0,handler(t){this.isNumberType&&!this.isFocused&&(this.currentStr=null===t||void 0===t||""===t?"":String(t))}}},methods:{isValidNumber(t){return/^[+-]?\d*\.?\d*$/.test(t)},handleInput(t){if(this.isNumberType){if(this.isValidNumber(t)){this.currentStr=t;const e=this.parseToNumber(t);void 0!==e&&this.$emit("input",e)}}else this.$emit("input",t)},handleChange(t){if(this.isNumberType){const e=this.parseToNumber(t);this.$emit("change",e)}else this.$emit("change",t)},handleFocus(t){this.isFocused=!0,this.$emit("focus",t)},handleBlur(t){if(this.isFocused=!1,this.isNumberType){const e=this.parseToNumber(this.currentStr);this.$emit("blur",e,t),void 0!==e?(this.currentStr=String(e),this.$emit("input",e)):""!==this.currentStr&&(this.currentStr="",this.$emit("input",void 0))}else this.$emit("blur",t)},parseToNumber(t){if(!t||"+"===t||"-"===t||"."===t||"+."===t||"-."===t||"-."===t)return;const e=parseFloat(t);return isNaN(e)?void 0:e}}},U=Y,X=B(U,G,W,!1,null,null,null),$=X.exports;$.install=function(t){t.component($.name,$)};var Z=$,q=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-flex-box",class:t.classAttrs,style:t.flexStyle},[t._t("default")],2)},K=[],Q={name:"XtFlexBox",props:{type:{type:String,default:"flex"},align:{type:String,default:"center"},content:{type:String,default:"start"},direction:{type:String,default:"row"},wrap:{type:String,default:"unset"},gap:{type:String,default:""}},computed:{classAttrs(){const{type:t,align:e,wrap:n,direction:i,content:r}=this;return[""+t,"align-"+e,"content-"+r,"direction-"+i,"wrap-"+n]},flexStyle(){const t={};return this.gap?t.gap=this.gap:t.gap="var(--xt-flex-box-gap, 8px)",t}}},J=Q,tt=B(J,q,K,!1,null,null,null),et=tt.exports;et.install=function(t){t.component(et.name,et)};var nt=et,it=function(){var t=this,e=t._self._c;return e("el-card",t._b({staticClass:"xt-card",class:t.cardClasses,scopedSlots:t._u([t.$slots.header||t.title?{key:"header",fn:function(){return[t._t("header",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0}:null],null,!0)},"el-card",t.$attrs,!1),[t._t("default")],2)},rt=[],at={name:"XtCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:t=>["always","hover","never"].includes(t)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:t=>!t||["small","medium","large"].includes(t)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["xt-card-"+this.shadow,"xt-card-"+this.finalSize,{"xt-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},ot=at,st=B(ot,it,rt,!1,null,null,null),lt=st.exports;lt.install=function(t){t.component(lt.name,lt)};var ut=lt,ct=function(){var t=this,e=t._self._c;return e("xt-card",{staticClass:"xt-card-item",class:{["is-"+t.type]:!!t.type},attrs:{bordered:!1}},[e("xt-flex-box",{attrs:{content:"between"}},[e("div",[e("div",[e("xt-text",{attrs:{bold:"",size:"extra-large"}},[t._v(t._s(t.title))])],1),e("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:t.type,decimals:0},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),e("div",{staticStyle:{margin:"5px 0"}},[e("xt-text",{attrs:{size:"small"}},[t._v("较昨日")]),e("xt-text",{attrs:{format:"normal",type:t.diff>0?"success":"danger",suffix:t.diff>0?"↑":"↓"},model:{value:t.change,callback:function(e){t.change=e},expression:"change"}})],1)],1),e("div",{staticStyle:{height:"100%"}},[t._t("icon",(function(){return[e("xt-text",{attrs:{size:"extra-large",type:t.type}},[e("xt-icon",{attrs:{name:"el-icon-user",size:48}})],1)]}))],2)])],1)},ht=[],dt={name:"XtCardItem",props:{type:{type:String,default:"primary"},title:{type:String,default:""},diff:{type:Number,default:0},value:{type:Number,default:0},change:{type:Number,default:0}},data(){return{}}},pt=dt,ft=B(pt,ct,ht,!1,null,null,null),gt=ft.exports;gt.install=function(t){t.component(gt.name,gt)};var yt=gt;const vt="undefined"!==typeof HTMLElement?HTMLElement:Object;var mt,bt,xt={name:"XtConfigProvider",inheritAttrs:!1,provide(){return{xtConfig:{theme:this.theme,size:this.size,primaryColor:this.primaryColor}}},watch:{theme(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},size(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},primaryColor(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}}},render(t){if("template"===this.tag||this.proxyElement){const e=this.$slots.default;return e&&0!==e.length?1===e.length?e[0]:t("div",{class:"xt-config-provider-wrapper",attrs:{"data-theme":this.theme}},e):t("div")}return t(this.tag,{style:this.mergedStyle,class:this.computedClass,attrs:{...this.customAttrs,"data-theme":this.theme}},this.$slots.default)},props:{theme:{type:String,default:"white",validator:t=>["white","dark","auto"].includes(t)},size:{type:String,default:"medium"},primaryColor:{type:String,default:"#1890ff"},vars:{type:Object,default:()=>({})},tag:{type:String,default:"div",validator:t=>["div","span","section","main","template","article","aside"].includes(t)},injectBackground:{type:Boolean,default:!1},injectColor:{type:Boolean,default:!1},proxyElement:{type:[vt,String,Object],default:null,description:"代理元素,将样式应用到该元素上。支持 HTMLElement、CSS选择器字符串或 ref 对象"},onThemeChange:{type:Function,default:null,description:"主题改变时的钩子函数,接收参数: { theme, size, primaryColor }"},onStyleApplied:{type:Function,default:null,description:"样式应用完成时的钩子函数,接收参数: { element, style, theme }"}},computed:{mergedStyle(){const t={...this.vars};if(this.primaryColor){const e=this.normalizeColor(this.primaryColor);t["--xt-color-primary"]=e,t["--xt-color-primary-light-3"]=this.lightenColor(e,30),t["--xt-color-primary-light-5"]=this.lightenColor(e,50),t["--xt-color-primary-light-7"]=this.lightenColor(e,70),t["--xt-color-primary-light-8"]=this.lightenColor(e,80),t["--xt-color-primary-light-9"]=this.lightenColor(e,90),t["--xt-color-primary-dark-2"]=this.darkenColor(e,20)}const e={small:"14px",medium:"16px",large:"18px"};return e[this.size]&&(t["--xt-font-size-base"]=e[this.size]),"dark"===this.theme?(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#141414"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#E5EAF3")):(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#ffffff"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#2c3e50")),t},computedClass(){const t=[];return"template"!==this.tag&&t.push("xt-config-provider"),t},customAttrs(){const t=["theme","size","primaryColor","vars","tag","injectBackground","injectColor","proxyElement"],e={};for(const n in this.$attrs)t.includes(n)||(e[n]=this.$attrs[n]);return e}},mounted(){this.applyProxyElementStyle()},updated(){this.applyProxyElementStyle()},beforeUnmount(){this.clearProxyElementStyle()},methods:{normalizeColor(t){if(!t)return"#1890ff";if(/^#[0-9A-Fa-f]{6}$/.test(t))return t;if(/^#[0-9A-Fa-f]{3}$/.test(t))return"#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3];if(/^#[0-9A-Fa-f]{8}$/.test(t))return t.substring(0,7);const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(e){const t=parseInt(e[1]),n=parseInt(e[2]),i=parseInt(e[3]);return this.rgbToHex(t,n,i)}return console.warn("[XtConfigProvider] 无法识别的颜色格式:",t),"#1890ff"},hexToRgb(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgbToHex(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")},lightenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const i=e/100,r=Math.round(n.r*(1-i)+255*i),a=Math.round(n.g*(1-i)+255*i),o=Math.round(n.b*(1-i)+255*i);return this.rgbToHex(r,a,o)},darkenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const i=e/100,r=Math.max(0,Math.round(n.r*(1-i))),a=Math.max(0,Math.round(n.g*(1-i))),o=Math.max(0,Math.round(n.b*(1-i)));return this.rgbToHex(r,a,o)},getProxyElement(){const{proxyElement:t}=this;return t?t instanceof HTMLElement?t:"string"===typeof t?document.querySelector(t):t.$el?t.$el:t.value&&t.value instanceof HTMLElement?t.value:(console.warn("[XtConfigProvider] 无法解析 proxyElement:",t),null):null},applyProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle,n=t.getAttribute("data-theme");for(const i in e)t.style.setProperty(i,e[i]);t.setAttribute("data-theme",this.theme),g.changeAllTheme(this.theme,this.size,this.primaryColor),n!==this.theme&&"function"===typeof this.onThemeChange&&this.onThemeChange({theme:this.theme,size:this.size,primaryColor:this.primaryColor,prevTheme:n}),"function"===typeof this.onStyleApplied&&this.onStyleApplied({element:t,style:e,theme:this.theme,size:this.size,primaryColor:this.primaryColor})},clearProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle;for(const n in e)t.style.removeProperty(n);t.removeAttribute("data-theme")}}},_t=xt,wt=(n("83d1"),B(_t,mt,bt,!1,null,"4af969c3",null)),St=wt.exports;St.install=function(t){t.component(St.name,St)};var Mt=St,Ot=function(){var t=this,e=t._self._c;return t.showTooltip&&t.ellipsis?e("el-tooltip",{attrs:{content:t.displayTooltipContent,placement:t.tooltipPlacement,disabled:!t.isOverflow,effect:"dark"}},[e("span",{ref:"textRef",staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format},{"xt-text--ellipsis":t.ellipsis},{"xt-text--ellipsis-multiline":t.ellipsis&&t.ellipsisRows>1}],style:t.customStyle,on:{mouseenter:t.handleMouseEnter}},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)]):e("span",{ref:"textRef",staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format},{"xt-text--ellipsis":t.ellipsis},{"xt-text--ellipsis-multiline":t.ellipsis&&t.ellipsisRows>1}],style:t.customStyle},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},Tt=[],It={name:"XtText",model:{prop:"value",event:"input"},props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},size:{type:String,default:"base",validator:t=>["extra-large","large","medium","base","small","extra-small"].includes(t)},bold:{type:Boolean,default:!1},letterSpacing:{type:[String,Number],default:""},ellipsis:{type:Boolean,default:!1},ellipsisRows:{type:Number,default:1,validator:t=>t>=1&&t<=10},showTooltip:{type:Boolean,default:!0},tooltipPlacement:{type:String,default:"top",validator:t=>["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"].includes(t)},tooltipContent:{type:String,default:""},format:{type:String,default:"normal",validator:t=>["normal","thousand","money"].includes(t)},money:{type:Boolean,default:!1},value:{type:[Number,String],default:""},currency:{type:String,default:"CNY",validator:t=>["CNY","USD","EUR","JPY","GBP","AUD","CAD"].includes(t)},decimals:{type:Number,default:2,validator:t=>t>=0&&t<=10},locale:{type:String,default:"zh-CN"},showSign:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""}},data(){return{isOverflow:!1}},computed:{realFormat(){return this.money?"money":this.format},customStyle(){const t={};return this.letterSpacing&&(t.letterSpacing="number"===typeof this.letterSpacing?this.letterSpacing+"px":this.letterSpacing),this.ellipsis&&this.ellipsisRows>1&&(t.WebkitLineClamp=this.ellipsisRows),t},displayTooltipContent(){return this.tooltipContent?this.tooltipContent:void 0!==this.formattedValue?this.formattedValue:this.$slots.default&&this.$slots.default.length>0?this.extractSlotText(this.$slots.default):this.value},formattedValue(){const t=this.realFormat,{value:e}=this;if(""===e||void 0===e||null===e)return;const n="string"===typeof e?parseFloat(e):e;if(isNaN(n))return e;try{let e="";const i=this.showSign?"always":"auto";switch(t){case"thousand":e=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:i}).format(n);break;case"money":e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:i}).format(n);break;default:return}return e}catch(i){return e}}},methods:{handleMouseEnter(){this.checkOverflow()},checkOverflow(){const t=this.$refs.textRef;t?this.ellipsisRows>1?this.isOverflow=t.scrollHeight>t.clientHeight:this.isOverflow=t.scrollWidth>t.clientWidth:this.isOverflow=!1},extractSlotText(t){let e="";return t.forEach(t=>{"string"===typeof t.children?e+=t.children:"string"===typeof t.text?e+=t.text:t.children&&Array.isArray(t.children)&&(e+=this.extractSlotText(t.children))}),e.trim()}},mounted(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()}),this._resizeObserver=new ResizeObserver(()=>{this.ellipsis&&this.showTooltip&&this.checkOverflow()}),this.$nextTick(()=>{this.$refs.textRef&&this._resizeObserver.observe(this.$refs.textRef)})},beforeDestroy(){this._resizeObserver&&this._resizeObserver.disconnect()},watch:{value(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})},ellipsis(t){t&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})}}},Ct=It,At=B(Ct,Ot,Tt,!1,null,null,null),kt=At.exports;kt.install=function(t){t.component(kt.name,kt)};var Dt=kt,Lt=function(){var t=this,e=t._self._c;return e("span",{staticClass:"xt-time",class:[t.typeColor?"xt-time--"+t.typeColor:"","xt-time--"+t.size,{"xt-time--bold":t.bold}],style:t.customStyle,on:{click:t.handleClick}},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return["text"===t.mode?[void 0!==t.displayText?[t._v(t._s(t.displayText))]:t.hideEmpty?t._e():[t._v(t._s(t.emptyText))]]:"now"===t.mode?[t._v(" "+t._s(t.nowText)+" ")]:"countdown"===t.mode?[t.isCountdownFinished?[t._t("finished",(function(){return[t._v(t._s(t.finishedText))]}))]:[t._v(" "+t._s(t.countdownText)+" ")]]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},Pt=[];const jt="YYYY-MM-DD HH:mm:ss";function Nt(t){const e=String(t);return e.length<2?"0"+e:e}function Rt(t){if(null===t||void 0===t||""===t)return null;if(t instanceof Date)return isNaN(t.getTime())?null:t;if("number"===typeof t){const e=t<1e12?1e3*t:t,n=new Date(e);return isNaN(n.getTime())?null:n}if("string"===typeof t){if(/^\d+$/.test(t)){const e=Number(t),n=e<1e12?1e3*e:e,i=new Date(n);return isNaN(i.getTime())?null:i}const e=t.replace(/-/g,"/"),n=new Date(e);return isNaN(n.getTime())?null:n}return null}function Et(t,e){if(!t)return"";const n=e||jt,i={YYYY:t.getFullYear(),MM:Nt(t.getMonth()+1),DD:Nt(t.getDate()),HH:Nt(t.getHours()),mm:Nt(t.getMinutes()),ss:Nt(t.getSeconds()),SSS:String(t.getMilliseconds()).padStart(3,"0")};return n.replace(/YYYY|MM|DD|HH|mm|ss|SSS/g,t=>i[t])}var zt={name:"XtTime",props:{type:{type:String,default:"now",validator:t=>["now","countdown","text"].includes(t)},size:{type:String,default:"base",validator:t=>["extra-large","large","medium","base","small","extra-small"].includes(t)},typeColor:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},bold:{type:Boolean,default:!1},format:{type:String,default:jt},prefix:{type:String,default:""},suffix:{type:String,default:""},emptyText:{type:String,default:"-"},hideEmpty:{type:Boolean,default:!1},interval:{type:Number,default:1e3,validator:t=>t>=100},value:{type:[String,Number,Date],default:""},targetTime:{type:[String,Number,Date],default:""},countdownFormat:{type:String,default:"DHMS",validator:t=>["DHMS","HMS","MS","SEC"].includes(t)},finishedText:{type:String,default:"已结束"}},data(){return{tick:0}},computed:{mode(){return this.type},parsedValue(){return Rt(this.value)},parsedTarget(){return Rt(this.targetTime)},displayText(){if(this.parsedValue)return Et(this.parsedValue,this.format)},nowText(){this.tick;return Et(new Date,this.format)},remainingMs(){if("countdown"!==this.mode)return 0;this.tick;if(!this.parsedTarget)return 0;const t=this.parsedTarget.getTime()-Date.now();return t>0?t:0},isCountdownFinished(){return"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0},countdownText(){if(!this.parsedTarget)return this.emptyText;const t=Math.floor(this.remainingMs/1e3);if(t<=0)return this.finishedText;switch(this.countdownFormat){case"SEC":return t+"秒";case"MS":{const e=Math.floor(t/60),n=t%60;return`${Nt(e)}分${Nt(n)}秒`}case"HMS":{const e=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60;return`${Nt(e)}时${Nt(n)}分${Nt(i)}秒`}case"DHMS":default:{const e=Math.floor(t/86400),n=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),r=t%60;return`${e}天${Nt(n)}时${Nt(i)}分${Nt(r)}秒`}}},customStyle(){return{}}},watch:{type(){this.restartTimer()},interval(){this.restartTimer()}},mounted(){this.restartTimer()},beforeDestroy(){this.clearTimer()},activated(){this.restartTimer()},deactivated(){this.clearTimer()},methods:{restartTimer(){this.clearTimer(),"now"!==this.mode&&"countdown"!==this.mode||(this.tick++,this._timer=setInterval(()=>{this.tick++,"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0&&(this.clearTimer(),this.$emit("finish"))},this.interval))},clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)},handleClick(t){this.$emit("click",t)}}},Bt=zt,Vt=B(Bt,Lt,Pt,!1,null,null,null),Ft=Vt.exports;Ft.install=function(t){t.component(Ft.name,Ft)};var Ht=Ft,Gt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price",class:{"is-disabled":t.disabled}},[t.title||t.$slots.header?e("div",{staticClass:"xt-step-price__header"},[t.title?e("xt-text",{attrs:{bold:"",size:"medium"}},[t._v(t._s(t.title))]):t._e(),t._t("header"),t.disabled||t.isLimitReached?t._e():e("xt-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus",plain:""},on:{click:t.onAdd}},[t._v("新增"+t._s(t.stepName))]),t.isLimitReached?e("xt-text",{attrs:{size:"small","type-color":"info"}},[t._v("已达上限("+t._s(t.localItems.length)+"/"+t._s(t.limit)+")")]):t._e()],2):t._e(),e("div",{staticClass:"xt-step-price__list"},t._l(t.localItems,(function(n,i){return e("XtStepPriceItem",{key:i,attrs:{value:n,index:i,"is-first":0===i,"is-last":i===t.localItems.length-1,"items-length":t.localItems.length,removable:0!==i,"min-locked":0!==i,unit:t.unit,precision:t.precision,"step-name":t.stepName,step:t.step,"left-bracket":t.leftBracket,"right-bracket":t.rightBracket,"field-keys":t.fieldKeys,disabled:t.disabled,"allow-negative":t.allowNegative},on:{input:e=>t.onItemInput(e,i),"max-change":t.onMaxChange,"min-change":t.onMinChange,delete:t.onDelete,blur:t.onFieldBlur}})})),1),0===t.localItems.length?e("div",{staticClass:"xt-step-price__empty"},[e("span",[t._v("暂无数据,点击右上角「新增"+t._s(t.stepName)+"」开始配置")])]):t._e(),t.tip||t.$slots.tip?e("div",{staticClass:"xt-step-price__tip"},[t._t("tip",(function(){return[e("xt-text",{attrs:{size:"small","type-color":"warning"}},[t._v(t._s(t.tip))])]}))],2):t._e()])},Wt=[],Yt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price-item"},[e("div",{staticClass:"xt-step-price-item__range"},[e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalLeftBracket))]),t.itemsLength>1?e("span",{staticClass:"xt-step-price-item__name"},[t._v("第"+t._s(t.index+1)+t._s(t.stepName))]):t._e(),e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalRightBracket))]),e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:t.disabled||t.minLocked,size:"small",placeholder:"下限"},on:{blur:e=>{t.onMinBlur(),t.onBlur(e)}},model:{value:t.minInput,callback:function(e){t.minInput=t._n(e)},expression:"minInput"}}),e("span",{staticClass:"xt-step-price-item__comma"},[t._v("-")]),t.isLast?e("span",{staticClass:"xt-step-price-item__infinity"},[t._v("+∞")]):e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{type:"number",disabled:t.disabled,size:"small",placeholder:"上限"},on:{blur:e=>{t.onMaxBlur(),t.onBlur(e)}},model:{value:t.maxInput,callback:function(e){t.maxInput=t._n(e)},expression:"maxInput"}})],1),e("div",{staticClass:"xt-step-price-item__price"},[e("xt-input",{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{type:"number",disabled:t.disabled,size:"small",placeholder:"价格"},on:{blur:e=>{t.onPriceBlur(),t.onBlur(e)}},model:{value:t.priceInput,callback:function(e){t.priceInput=t._n(e)},expression:"priceInput"}}),e("span",{staticClass:"xt-step-price-item__unit"},[t._v(t._s(t.unit))])],1),!t.disabled&&t.removable&&t.itemsLength>1?e("xt-button",{staticClass:"xt-step-price-item__delete",attrs:{text:"",icon:"el-icon-delete"},on:{click:t.onDelete}}):t._e()],1)},Ut=[],Xt={name:"XtStepPriceItem",props:{value:{type:Object,required:!0,default:()=>({min:0,max:null,price:0})},stepName:{type:String,default:"阶梯"},index:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1},itemsLength:{type:Number,default:1},removable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},minLocked:{type:Boolean,default:!1},unit:{type:String,default:"元"},precision:{type:Number,default:2},step:{type:Number,default:1},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},finalRightBracket(){return null!==this.rightBracket&&void 0!==this.rightBracket&&""!==this.rightBracket?this.rightBracket:this.isLast?"]":")"},finalLeftBracket(){return null===this.leftBracket||void 0===this.leftBracket?"[":this.leftBracket}},data(){const{minVal:t,maxVal:e,priceVal:n}=this.getPriceItem(this.value);return{minInput:t,maxInput:e,priceInput:n}},watch:{value:{deep:!0,immediate:!0,handler(t){const{minVal:e,maxVal:n,priceVal:i}=this.getPriceItem(t);this.minInput=e,this.maxInput=n,this.priceInput=i}},isLast(t){if(t)this.maxInput=null;else{const t=this.safeNumber(this.minInput,0),e=this.value;this.maxInput=this.safeNumber(e&&e[this.keyMax],t+1)}}},methods:{getPriceItem(t){const e=t,n=this.safeNumber(e&&e[this.keyMin],0),i=this.isLast?null:this.safeNumber(e&&e[this.keyMax],n+1),r=this.safeNumber(e&&e[this.keyPrice],0);return{minVal:n,maxVal:i,priceVal:r}},safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},emitChange(t){const e={[this.keyMin]:this.minInput,[this.keyMax]:this.isLast?null:this.maxInput,[this.keyPrice]:this.priceInput,...t};this.$emit("input",e),this.$emit("change",e,this.index)},onMinBlur(){let t=this.safeNumber(this.minInput,0);0!==t&&(t=Number(t.toFixed(this.precision))),this.minInput=t,this.$emit("min-change",t,this.index),this.emitChange({[this.keyMin]:t})},onMaxBlur(){if(this.isLast)return;const t=this.safeNumber(this.minInput,0),e=this.safeNumber(this.step,1);let n=this.safeNumber(this.maxInput,t+e);n<=t&&(n=t+e),n=Number(n.toFixed(this.precision)),this.maxInput=n,this.$emit("max-change",n,this.index),this.emitChange({[this.keyMax]:n})},onPriceBlur(){const t=this.priceInput;if(null===t||void 0===t||""===t||isNaN(t))return this.priceInput="",void this.emitChange({[this.keyPrice]:""});let e=this.safeNumber(t,0);e<0&&!this.allowNegative&&(e=0),e=Number(e.toFixed(this.precision)),this.priceInput=e,this.emitChange({[this.keyPrice]:e})},onBlur(t){this.$emit("blur",t)},onDelete(){this.$emit("delete",this.index)}}},$t=Xt,Zt=B($t,Yt,Ut,!1,null,null,null),qt=Zt.exports,Kt={name:"XtStepPrice",components:{XtStepPriceItem:qt},inject:{elFormItem:{default:""}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},isLimitReached(){const t=Number(this.limit);return t>0&&this.localItems.length>=t}},props:{value:{type:Array,default:()=>[]},title:{type:String,default:""},unit:{type:String,default:"元"},stepName:{type:String,default:"阶梯"},precision:{type:Number,default:2},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})},limit:{type:Number,default:0},step:{type:Number,default:10},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},tip:{type:String,default:"区间左闭右闭 [min, max],最后一级为 [min, +∞),保证连续且不重叠。"},defaultFirst:{type:Boolean,default:!0}},data(){return{localItems:this.normalize(this.value)}},watch:{value:{deep:!0,immediate:!0,handler(t){this.localItems=this.normalize(t)}}},methods:{safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},cloneItems(t){return Array.isArray(t)?t.map(t=>{const e=t&&t[this.keyPrice];return{[this.keyMin]:this.safeNumber(t&&t[this.keyMin],0),[this.keyMax]:t&&null==t[this.keyMax]||t&&""===t[this.keyMax]?null:this.safeNumber(t[this.keyMax],null),[this.keyPrice]:null===e||void 0===e||""===e?"":this.safeNumber(e,0)}}):[]},normalize(t){const e=this.cloneItems(t);return 0===e.length&&this.defaultFirst&&e.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:0}),this.ensureContinuity(e),e},ensureContinuity(t){if(!Array.isArray(t)||0===t.length)return;t[0][this.keyMin]=0;const e=this.safeNumber(this.step,1);for(let n=0;n<t.length;n++){const i=t[n],r=t[n+1],a=this.safeNumber(i[this.keyMin],0);if(r){let t=this.safeNumber(i[this.keyMax],a+e);t<=a&&(t=a+e),t=Number(t.toFixed(this.precision)),i[this.keyMax]=t,r[this.keyMin]=t}else i[this.keyMax]=null;const o=i[this.keyPrice];i[this.keyPrice]=null===o||void 0===o||""===o?"":this.safeNumber(o,0)}},emit(){this.ensureContinuity(this.localItems);const t=this.cloneItems(this.localItems);this.$emit("input",t),this.$emit("change",t),this.dispatchFormEvent("el.form.change",t)},dispatchFormEvent(t,e){this.elFormItem&&this.elFormItem.$emit(t,e)},onFieldBlur(){this.dispatchFormEvent("el.form.blur",this.localItems)},validate(t){const e=this.localItems;if(!Array.isArray(e)||0===e.length)return t&&t(!1,[{field:"stepPrice",message:"请配置"+this.stepName,type:"error"}]),!1;const n=[];for(let i=0;i<e.length;i++){const t=e[i],r=t[this.keyPrice],a=t[this.keyMin],o=t[this.keyMax],s=this.safeNumber(r,0),l=this.safeNumber(a,0);if(null===r||void 0===r||""===r?n.push({field:`stepPrice[${i}].price`,message:`第${i+1}${this.stepName}价格不能为空`,type:"error"}):s<0&&!this.allowNegative&&n.push({field:`stepPrice[${i}].price`,message:`第${i+1}${this.stepName}价格不能为负数`,type:"error"}),null===a||void 0===a||""===a?n.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限不能为空`,type:"error"}):l<0&&!this.allowNegative&&n.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限不能为负数`,type:"error"}),this.isLast(i)||(null===o||void 0===o||""===o?n.push({field:`stepPrice[${i}].max`,message:`第${i+1}${this.stepName}上限不能为空`,type:"error"}):this.safeNumber(o,0)<=l&&n.push({field:`stepPrice[${i}].max`,message:`第${i+1}${this.stepName}上限必须大于下限`,type:"error"})),i>0){const t=e[i-1],r=t[this.keyMax];null!==r&&this.safeNumber(r,0)!==l&&n.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限必须等于上一${this.stepName}上限`,type:"error"})}}return n.length>0?(t&&t(!1,n),!1):(t&&t(!0),!0)},isLast(t){return t===this.localItems.length-1},onItemInput(t,e){const n=this.localItems[e];if(n&&t&&void 0!==t[this.keyPrice]){const e=t[this.keyPrice];if(null===e||void 0===e||""===e)n[this.keyPrice]="";else{let t=this.safeNumber(e,0);t=Number(t.toFixed(this.precision)),n[this.keyPrice]=t}this.emit()}},onMaxChange(t,e){const n=this.localItems[e];if(!n)return;const i=this.safeNumber(this.step,1);let r=this.safeNumber(t,this.safeNumber(n[this.keyMin],0)+i);r=Number(r.toFixed(this.precision)),n[this.keyMax]=r;const a=this.localItems[e+1];a&&(a[this.keyMin]=r),this.emit()},onMinChange(t,e){const n=this.localItems[e];if(n){if(0===e)n[this.keyMin]=0;else{let i=this.safeNumber(t,this.safeNumber(n[this.keyMin],0));0!==i&&(i=Number(i.toFixed(this.precision))),n[this.keyMin]=i;const r=this.localItems[e-1];r&&(r[this.keyMax]=i)}this.emit()}},onAdd(){const t=this.localItems,e=Number(this.limit);if(e>0&&t.length>=e)return;const n=this.safeNumber(this.step,1);if(0===t.length)return t.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:10}),void this.emit();const i=t[t.length-1],r=this.safeNumber(i[this.keyMin],0),a=r+n;let o=0;const s=[...t.slice(0,-1),{[this.keyMin]:r,[this.keyMax]:a,[this.keyPrice]:o},{[this.keyMin]:a,[this.keyMax]:null,[this.keyPrice]:o}];this.localItems=s,this.emit()},onDelete(t){const e=this.localItems;if(e.length<=1)return;if(0===t)return;const n=e[t],i=e[t-1],r=e[t+1];i&&r?i[this.keyMax]=null==n[this.keyMax]?null:Number(n[this.keyMax]):i&&!r?i[this.keyMax]=null:!i&&r&&(r[this.keyMin]=0),e.splice(t,1),this.emit()}}},Qt=Kt,Jt=B(Qt,Gt,Wt,!1,null,null,null),te=Jt.exports;te.install=function(t){t.component(te.name,te),t.component(qt.name,qt)};var ee=te;qt.install=function(t){t.component(qt.name,qt)};var ne=qt,ie=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-map-wrapper"},[e("div",{ref:"mapContainer",staticClass:"xt-map-container",attrs:{"data-theme":t.mergedTheme}}),t.loading?e("div",{staticClass:"xt-map-loading"},[e("span",[t._v("地图加载中...")])]):t._e(),t.errorMessage?e("div",{staticClass:"xt-map-error"},[e("span",[t._v(t._s(t.errorMessage))])]):t._e(),t._t("overlay")],2)},re=[];const ae=new Map,oe=new Map,se=(t,e={})=>{if("undefined"===typeof window)return Promise.reject(new Error("[XtMap] 非浏览器环境"));const{charset:n="utf-8",async:i=!0,timeout:r=3e4}=e;if(ae.has(t))return ae.get(t);if(oe.has(t))return oe.get(t);const a=new Promise((e,a)=>{const o=document.createElement("script");o.type="text/javascript",o.src=t,o.charset=n,o.async=i;let s=null,l=!1;const u=()=>{l=!0,s&&clearTimeout(s),o.onload=null,o.onerror=null};o.onload=()=>{l||(u(),oe.delete(t),ae.set(t,Promise.resolve(o)),e(o))},o.onerror=e=>{l||(u(),oe.delete(t),a(new Error("[XtMap] 脚本加载失败: "+t)))},r>0&&(s=setTimeout(()=>{l||(u(),oe.delete(t),a(new Error("[XtMap] 脚本加载超时: "+t)))},r)),document.head.appendChild(o)});return oe.set(t,a),a},le=()=>{ae.clear(),oe.clear()},ue=t=>"undefined"!==typeof window&&void 0!==window[t];const ce={standard:"standard",satellite:"satellite",hybrid:"hybrid",traffic:"traffic"};class he{constructor(t,e={}){this.container=t,this.options=e,this.mapInstance=null,this.mapType=e.mapType||"standard",this.theme=e.theme||"light",this.center=e.center||[116.397428,39.90923],this.zoom=e.zoom||11,this.apiKey=e.apiKey||"",this.apiUrl=e.apiUrl||null,this.plugins=e.plugins||[],this.eventHandlers=new Map,this.ready=!1,this._mapTypeMap={...ce}}getScriptUrl(){throw new Error("[XtMap] 子类必须实现 getScriptUrl()")}isSdkLoaded(){throw new Error("[XtMap] 子类必须实现 isSdkLoaded()")}beforeLoadScript(){}async createMap(){throw new Error("[XtMap] 子类必须实现 createMap()")}async init(){if(!this.container)throw new Error("[XtMap] 缺少容器元素");if(!this.isSdkLoaded()){this.beforeLoadScript();const t=this.getScriptUrl();if(!t)throw new Error("[XtMap] 缺少 API URL,请配置 apiKey 或 apiUrl");await se(t),await this._waitForSdkReady()}return await this.createMap(),this.ready=!0,this.mapInstance}async _waitForSdkReady(){return new Promise(t=>{let e=0;const n=100,i=()=>{this.isSdkLoaded()||e>=n?t():(e++,setTimeout(i,100))};i()})}getNativeMapType(t){return this._mapTypeMap[t]||this._mapTypeMap.standard}setMapType(t){this.mapType=t,this.ready&&this.mapInstance&&this._applyMapType(t)}_applyMapType(t){}setTheme(t){this.theme=t,this.ready&&this.mapInstance&&this._applyTheme(t)}_applyTheme(t){}setCenter(t){this.center=t,this.ready&&this.mapInstance&&this._applyCenter(t)}_applyCenter(t){}setZoom(t){this.zoom=t,this.ready&&this.mapInstance&&this._applyZoom(t)}_applyZoom(t){}getCenter(){return this.center}getZoom(){return this.zoom}getNativeMap(){return this.mapInstance}on(t,e){"function"===typeof e&&(this.eventHandlers.set(t,e),this.ready&&this.mapInstance&&this._bindEvent(t,e))}_bindEvent(t,e){}off(t){const e=this.eventHandlers.get(t);e&&this.ready&&this.mapInstance&&this._unbindEvent(t,e),this.eventHandlers.delete(t)}_unbindEvent(t,e){}resize(){this.ready&&this.mapInstance&&this._applyResize()}_applyResize(){}destroy(){if(this.eventHandlers.clear(),this.mapInstance&&"function"===typeof this.mapInstance.destroy)try{this.mapInstance.destroy()}catch(t){}this.mapInstance=null,this.ready=!1}}const de={standard:"amap",satellite:"satellite",hybrid:"satellite",traffic:"traffic"},pe={light:"amap://styles/normal",dark:"amap://styles/dark"};class fe extends he{constructor(t,e={}){super(t,e),this._mapTypeMap={...de},this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null,this._currentLayers=[]}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://webapi.amap.com/maps?v=2.0&key=${encodeURIComponent(this.apiKey)}&plugin=AMap.Scale,AMap.ToolBar`:(console.warn("[XtMap] 高德地图需要配置 apiKey"),"")}beforeLoadScript(){const t=this.options.securityJsCode||"undefined"!==typeof window&&window._AMapSecurityConfig&&window._AMapSecurityConfig.securityJsCode||"";t&&"undefined"!==typeof window&&(window._AMapSecurityConfig={securityJsCode:t})}isSdkLoaded(){return ue("AMap")&&"function"===typeof window.AMap}async createMap(){const t=window.AMap;if(!t)throw new Error("[XtMap] 高德地图 SDK 未加载");const e={center:this.center,zoom:this.zoom,mapStyle:pe[this.theme]||pe.light,viewMode:"2D",resizeEnable:!0};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),await new Promise(t=>{this.mapInstance.on("complete",()=>t()),setTimeout(t,1500)});for(const[n,i]of this.eventHandlers.entries())this._bindEvent(n,i)}_applyMapType(t){if(!this.mapInstance)return;const e=window.AMap;if(e){this._clearLayers();try{this.mapInstance.setMapStyle(pe[this.theme]||pe.light),"satellite"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this.mapInstance.add(this._satelliteLayer),this._currentLayers.push(this._satelliteLayer)):"hybrid"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this._roadnetLayer=new e.TileLayer.RoadNet,this.mapInstance.add([this._satelliteLayer,this._roadnetLayer]),this._currentLayers.push(this._satelliteLayer,this._roadnetLayer)):"traffic"===t&&(this._trafficLayer=new e.TileLayer.Traffic({autoRefresh:!0,interval:180}),this.mapInstance.add(this._trafficLayer),this._currentLayers.push(this._trafficLayer))}catch(n){console.warn("[XtMap] 设置地图类型失败:",n)}}}_clearLayers(){if(this.mapInstance){try{this._currentLayers.length>0&&this.mapInstance.remove(this._currentLayers)}catch(t){}this._currentLayers=[],this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null}}_applyTheme(t){if(this.mapInstance)try{this.mapInstance.setMapStyle(pe[t]||pe.light),this._applyMapType(this.mapType)}catch(e){console.warn("[XtMap] 设置主题失败:",e)}}_applyCenter(t){if(this.mapInstance)try{this.mapInstance.setCenter(t)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomchange",mapmove:"mapmove",complete:"complete",resize:"resize"},i=n[t]||t;this.mapInstance.on(i,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.lng,t.lnglat.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.off(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.resize)try{this.mapInstance.resize()}catch(t){}}destroy(){this._clearLayers(),super.destroy()}}const ge={standard:"vec",satellite:"img",hybrid:"img",traffic:"vec"},ye={light:"none",dark:"invert(1) hue-rotate(180deg) saturate(1.2) brightness(0.95)"};class ve extends he{constructor(t,e={}){super(t,e),this._mapTypeMap={...ge},this._layerType=e.tiandituLayerType||"vec",this._currentLayer=null,this._annotationLayer=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?"https://api.tianditu.gov.cn/api?v=4.0&tk="+encodeURIComponent(this.apiKey):(console.warn("[XtMap] 天地图需要配置 apiKey (tk)"),"")}isSdkLoaded(){return ue("T")&&"object"===typeof window.T&&window.T.Map}async createMap(){const t=window.T;if(!t||!t.Map)throw new Error("[XtMap] 天地图 SDK 未加载");const e={center:new t.LngLat(this.center[0],this.center[1]),zoom:this.zoom};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>{setTimeout(t,500)});for(const[n,i]of this.eventHandlers.entries())this._bindEvent(n,i)}_applyMapType(t){if(!this.mapInstance)return;const e=window.T;if(e)try{this._mapTypeMap[t];"standard"===t?this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1):"satellite"===t?this.mapInstance.setMapType(window.TMAP_SATELLITE_MAP||2):"hybrid"===t?this.mapInstance.setMapType(window.TMAP_HYBRID_MAP||3):this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1)}catch(n){console.warn("[XtMap] 天地图切换地图类型失败:",n)}}_applyTheme(t){if(!this.container)return;const e=ye[t]||"none",n=this.container.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e}),this.container.setAttribute("data-map-theme",t),this._setupThemeObserver(t)}_setupThemeObserver(t){if(this._themeObserver&&this._themeObserver.disconnect(),"dark"!==t)return;const e=ye[t];this._themeObserver=new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{if(1===t.nodeType)if("IMG"===t.tagName)t.style.filter=e,t.style.webkitFilter=e;else if(t.querySelectorAll){const n=t.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e})}})})});try{this._themeObserver.observe(this.container,{childList:!0,subtree:!0})}catch(n){}}_applyCenter(t){if(this.mapInstance&&window.T)try{this.mapInstance.centerAndZoom(new window.T.LngLat(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t&&void 0!==t.getLng)return[t.getLng(),t.getLat()]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend"},i=n[t]||t;this.mapInstance.addEventListener(i,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.getLng(),t.lnglat.getLat()]:null};e(n)})}catch(n){console.warn("[XtMap] 天地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.checkResize)try{this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._themeObserver&&(this._themeObserver.disconnect(),this._themeObserver=null),this.mapInstance&&"function"===typeof this.mapInstance.clearOverLays)try{this.mapInstance.clearOverLays()}catch(t){}super.destroy()}}const me={standard:"BMAP_NORMAL_MAP",satellite:"BMAP_SATELLITE_MAP",hybrid:"BMAP_HYBRID_MAP",traffic:"BMAP_NORMAL_MAP"},be={light:{style:"normal"},dark:{style:"dark"}};class xe extends he{constructor(t,e={}){super(t,e),this._mapTypeMap={...me},this._coordType=e.baiduCoordType||"bd09ll",this._trafficLayer=null,this._callbackName=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://api.map.baidu.com/api?v=3.0&ak=${encodeURIComponent(this.apiKey)}&callback=${this._callbackName}`:(console.warn("[XtMap] 百度地图需要配置 apiKey (ak)"),"")}beforeLoadScript(){this._callbackName=`__xt_map_baidu_${Date.now()}_${Math.floor(1e5*Math.random())}`,"undefined"!==typeof window&&(window[this._callbackName]=()=>{})}isSdkLoaded(){return ue("BMap")&&"function"===typeof window.BMap}async createMap(){const t=window.BMap;if(!t)throw new Error("[XtMap] 百度地图 SDK 未加载");const e={enableMapClick:!1};this.mapInstance=new t.Map(this.container,e),this.mapInstance.centerAndZoom(new t.Point(this.center[0],this.center[1]),this.zoom),this.mapInstance.enableScrollWheelZoom(!0),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>setTimeout(t,500));for(const[n,i]of this.eventHandlers.entries())this._bindEvent(n,i)}_applyMapType(t){if(this.mapInstance&&window.BMap)try{if(this._trafficLayer){try{this.mapInstance.removeTileLayer(this._trafficLayer)}catch(e){}this._trafficLayer=null}if("satellite"===t)this.mapInstance.setMapType(window.BMAP_SATELLITE_MAP||1);else if("hybrid"===t)this.mapInstance.setMapType(window.BMAP_HYBRID_MAP||2);else if("traffic"===t){this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0);try{const t=window.BMap;this._trafficLayer=new t.TrafficLayer,this.mapInstance.addTileLayer(this._trafficLayer)}catch(e){console.warn("[XtMap] 百度地图加载路况图层失败:",e)}}else this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0)}catch(e){console.warn("[XtMap] 百度地图切换地图类型失败:",e)}}_applyTheme(t){if(this.mapInstance&&window.BMap)try{const e=be[t]||be.light;if(this.mapInstance.setMapStyleV2)this.mapInstance.setMapStyleV2({styleId:"dark"===e.style?"midnight":""});else if(this.mapInstance.setMapStyle){const e="dark"===t?this._getDarkStyleJson():null;e&&this.mapInstance.setMapStyle({styleJson:e})}}catch(e){console.warn("[XtMap] 百度地图设置主题失败:",e)}}_getDarkStyleJson(){return[{featureType:"land",elementType:"geometry",stylers:{color:"#1a1a1a"}},{featureType:"water",elementType:"geometry",stylers:{color:"#0a1a2a"}},{featureType:"green",elementType:"geometry",stylers:{color:"#0a2a1a"}},{featureType:"building",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"highway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"highway",elementType:"geometry.stroke",stylers:{color:"#4a4a4a"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#333333"}},{featureType:"arterial",elementType:"geometry.stroke",stylers:{color:"#3d3d3d"}},{featureType:"local",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"railway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"subway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"boundary",elementType:"geometry",stylers:{color:"#666666"}},{featureType:"district",elementType:"labels.text.fill",stylers:{color:"#888888"}},{featureType:"poi",elementType:"labels",stylers:{visibility:"off"}}]}_applyCenter(t){if(this.mapInstance&&window.BMap)try{this.mapInstance.centerAndZoom(new window.BMap.Point(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t)return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend",mapmove:"movestart"},i=n[t]||t;this.mapInstance.addEventListener(i,t=>{const n={originalEvent:t,lnglat:t&&t.point?[t.point.lng,t.point.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 百度地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.enableResize)try{"function"===typeof this.mapInstance.checkResize&&this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._callbackName&&"undefined"!==typeof window)try{delete window[this._callbackName]}catch(t){}super.destroy()}}const _e={amap:fe,tianditu:ve,baidu:xe},we=t=>_e[t]||fe;const Se=["amap","tianditu","baidu"],Me=["standard","satellite","hybrid","traffic"],Oe=["light","dark"],Te={provider:"amap",apiKey:"",apiUrl:null,mapType:"standard",theme:"light",center:[116.397428,39.90923],zoom:11,plugins:[],securityJsCode:null,tiandituLayerType:"vec",baiduCoordType:"bd09ll"};let Ie={...Te};const Ce=[],Ae=(t,e)=>{Ce.forEach(n=>{try{n(t,e)}catch(i){console.warn("[XtMap] 配置变更监听异常:",i)}})},ke=()=>({...Ie}),De=t=>{Se.includes(t)?(Ie.provider=t,Ae("provider",t)):console.warn(`[XtMap] 无效的地图提供商: ${t},可选: ${Se.join(", ")}`)},Le=t=>{Ie.apiKey=t,Ae("apiKey",t)},Pe=t=>{Ie.apiUrl=t,Ae("apiUrl",t)},je=t=>{Me.includes(t)?(Ie.mapType=t,Ae("mapType",t)):console.warn(`[XtMap] 无效的地图类型: ${t},可选: ${Me.join(", ")}`)},Ne=t=>{Oe.includes(t)?(Ie.theme=t,Ae("theme",t)):console.warn(`[XtMap] 无效的主题: ${t},可选: ${Oe.join(", ")}`)},Re=t=>{Array.isArray(t)&&2===t.length?(Ie.center=t,Ae("center",t)):console.warn("[XtMap] center 必须是 [lng, lat] 数组")},Ee=t=>{const e=Number(t);isNaN(e)?console.warn("[XtMap] zoom 必须是数字"):(Ie.zoom=e,Ae("zoom",e))},ze=t=>{Array.isArray(t)?(Ie.plugins=t,Ae("plugins",t)):console.warn("[XtMap] plugins 必须是数组")},Be=t=>{Ie.securityJsCode=t,"undefined"!==typeof window&&t&&(window._AMapSecurityConfig={securityJsCode:t,...window._AMapSecurityConfig||{}}),Ae("securityJsCode",t)},Ve=()=>Ie.provider,Fe=()=>Ie.apiKey,He=()=>Ie.apiUrl,Ge=()=>Ie.mapType,We=()=>Ie.theme,Ye=()=>Ie.center,Ue=()=>Ie.zoom,Xe=()=>Ie.plugins,$e=t=>{if("function"===typeof t)return Ce.push(t),()=>{const e=Ce.indexOf(t);e>-1&&Ce.splice(e,1)}};var Ze={name:"XtMap",props:{provider:{type:String,default:"",validator:t=>""===t||Se.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||Me.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Oe.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},width:{type:String,default:"100%"},height:{type:String,default:"400px"},securityJsCode:{type:String,default:""},tiandituLayerType:{type:String,default:"vec"},baiduCoordType:{type:String,default:"bd09ll"}},data(){return{loading:!0,errorMessage:"",adapter:null,_unsubscribeConfig:null}},computed:{mergedProvider(){return this.provider||Ve()||"amap"},mergedApiKey(){return this.apiKey||Fe()||""},mergedApiUrl(){return this.apiUrl||He()||""},mergedMapType(){return this.mapType||Ge()||"standard"},mergedTheme(){return this.theme||We()||"light"},mergedCenter(){return this.center||Ye()||[116.397428,39.90923]},mergedZoom(){return null!==this.zoom?this.zoom:Ue()},mergedSecurityJsCode(){return this.securityJsCode||ke().securityJsCode||""},mergedPlugins(){return this.plugins.length>0?this.plugins:ke().plugins||[]}},watch:{mergedProvider:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedApiKey:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedMapType:{handler(t){this.adapter&&this.adapter.setMapType(t)}},mergedTheme:{handler(t){this.adapter&&this.adapter.setTheme(t),this.$refs.mapContainer&&this.$refs.mapContainer.setAttribute("data-theme",t)}},mergedCenter:{handler(t){this.adapter&&this.adapter.setCenter(t)}},mergedZoom:{handler(t){this.adapter&&this.adapter.setZoom(t)}},width:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},height:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},securityJsCode:{handler(t){t&&(Be(t),"amap"===this.mergedProvider&&this.adapter&&this.adapter.ready&&this.$nextTick(()=>this.rebuildMap()))}}},mounted(){this._unsubscribeConfig=$e((t,e)=>{this.provider||"provider"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiKey||"apiKey"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiUrl||"apiUrl"!==t||this.$nextTick(()=>this.rebuildMap()),!this.theme&&"theme"===t&&this.adapter&&this.adapter.setTheme(e),!this.mapType&&"mapType"===t&&this.adapter&&this.adapter.setMapType(e),!this.center&&"center"===t&&this.adapter&&this.adapter.setCenter(e),null===this.zoom&&"zoom"===t&&this.adapter&&this.adapter.setZoom(e)}),this.securityJsCode&&Be(this.securityJsCode),this.$nextTick(()=>this.initMap()),this._onWindowResize=()=>{this.adapter&&this.adapter.resize()},"undefined"!==typeof window&&window.addEventListener("resize",this._onWindowResize)},beforeDestroy(){this.destroyMap(),this._unsubscribeConfig&&this._unsubscribeConfig(),this._onWindowResize&&"undefined"!==typeof window&&window.removeEventListener("resize",this._onWindowResize)},methods:{async initMap(){const t=this.$refs.mapContainer;if(!t)return;t.style.width=this.width,t.style.height=this.height,this.securityJsCode&&Be(this.securityJsCode),this.loading=!0,this.errorMessage="";const e=we(this.mergedProvider);this.adapter=new e(t,{apiKey:this.mergedApiKey,apiUrl:this.mergedApiUrl,mapType:this.mergedMapType,theme:this.mergedTheme,center:this.mergedCenter,zoom:this.mergedZoom,plugins:this.mergedPlugins,securityJsCode:this.mergedSecurityJsCode,tiandituLayerType:this.tiandituLayerType,baiduCoordType:this.baiduCoordType});try{await this.adapter.init(),this.loading=!1,this._bindAdapterEvents(),this.$emit("ready",{provider:this.mergedProvider,map:this.adapter.getNativeMap(),adapter:this.adapter})}catch(n){this.loading=!1,this.errorMessage=n.message||"地图初始化失败",this.$emit("error",n)}},rebuildMap(){this.destroyMap(),"function"===typeof le&&le(),this.$nextTick(()=>this.initMap())},destroyMap(){this.adapter&&(this.adapter.destroy(),this.adapter=null)},_bindAdapterEvents(){if(!this.adapter)return;const t=["click","moveend","zoomend","zoomchange","mapmove"];t.forEach(t=>{this.adapter.on(t,e=>{this.$emit(t,e)})})},setCenter(t){this.adapter&&this.adapter.setCenter(t)},setZoom(t){this.adapter&&this.adapter.setZoom(t)},setMapType(t){this.adapter&&this.adapter.setMapType(t)},setTheme(t){this.adapter&&this.adapter.setTheme(t)},getCenter(){return this.adapter?this.adapter.getCenter():this.mergedCenter},getZoom(){return this.adapter?this.adapter.getZoom():this.mergedZoom},getNativeMap(){return this.adapter?this.adapter.getNativeMap():null},resize(){this.adapter&&this.adapter.resize()},on(t,e){this.adapter&&this.adapter.on(t,e)},off(t){this.adapter&&this.adapter.off(t)},rebuild(){this.rebuildMap()}}},qe=Ze,Ke=B(qe,ie,re,!1,null,null,null),Qe=Ke.exports;Qe.install=function(t){t.component(Qe.name,Qe)};var Je=Qe,tn=function(){var t=this,e=t._self._c;return e("div",{class:["xt-map-provider",{"xt-map-provider--dark":"dark"===t.mergedTheme}],style:t.wrapperStyle},[t._t("default")],2)},en=[],nn={name:"XtMapProvider",props:{provider:{type:String,default:"",validator:t=>""===t||Se.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||Me.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Oe.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},securityJsCode:{type:String,default:""},tag:{type:String,default:"div"}},data(){return{mergedTheme:this.theme||We()||"light"}},computed:{wrapperStyle(){return{}}},watch:{provider:{immediate:!0,handler(t){t&&De(t)}},apiKey:{immediate:!0,handler(t){t&&Le(t)}},apiUrl:{immediate:!0,handler(t){t&&Pe(t)}},mapType:{immediate:!0,handler(t){t&&je(t)}},theme:{immediate:!0,handler(t){t&&(Ne(t),this.mergedTheme=t)}},center:{immediate:!0,handler(t){t&&Re(t)}},zoom:{immediate:!0,handler(t){null!==t&&void 0!==t&&Ee(t)}},plugins:{immediate:!0,handler(t){t&&t.length>0&&ze(t)}},securityJsCode:{immediate:!0,handler(t){t&&Be(t)}}},provide(){return{xtMapConfig:{getProvider:()=>this.provider||Ve(),getApiKey:()=>this.apiKey||Fe(),getApiUrl:()=>this.apiUrl||He(),getMapType:()=>this.mapType||Ge(),getTheme:()=>this.theme||We(),getCenter:()=>this.center||Ye(),getZoom:()=>null!==this.zoom?this.zoom:Ue(),getPlugins:()=>this.plugins.length>0?this.plugins:Xe(),getConfig:()=>({provider:this.provider||Ve(),apiKey:this.apiKey||Fe(),apiUrl:this.apiUrl||He(),mapType:this.mapType||Ge(),theme:this.theme||We(),center:this.center||Ye(),zoom:null!==this.zoom?this.zoom:Ue()})}}},created(){this._unsubscribe=$e((t,e)=>{"theme"===t&&(this.mergedTheme=this.theme||e)})},beforeDestroy(){this._unsubscribe&&this._unsubscribe()}},rn=nn,an=(n("3cef"),B(rn,tn,en,!1,null,"16f243b0",null)),on=an.exports;on.install=function(t){t.component(on.name,on)};var sn=on,ln=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-box",style:t.styleAttrs},[t._t("default")],2)},un=[],cn={name:"XtGridBox",props:{columns:{type:[String,Array,Number],default:"1fr"},rows:{type:[String,Array],default:"auto"},gap:{type:String,default:""},rowGap:{type:String,default:""},colGap:{type:String,default:""},flow:{type:String,default:"row",validator:t=>["row","column","row dense","column dense"].includes(t)},areas:{type:[String,Array],default:""},align:{type:String,default:"stretch",validator:t=>["start","end","center","stretch","baseline"].includes(t)},justify:{type:String,default:"start",validator:t=>["start","end","center","space-between","space-around","space-evenly","stretch"].includes(t)},responsive:{type:Object,default:()=>({})},autoFlow:{type:String,default:""}},computed:{styleAttrs(){const t={display:"grid"};return"number"===typeof this.columns?t.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:Array.isArray(this.columns)?t.gridTemplateColumns=this.columns.join(" "):t.gridTemplateColumns=this.columns,Array.isArray(this.rows)?t.gridTemplateRows=this.rows.join(" "):t.gridTemplateRows=this.rows,this.gap?t.gap=this.gap:(this.rowGap&&(t.rowGap=this.rowGap),this.colGap&&(t.columnGap=this.colGap)),this.flow&&(t.gridAutoFlow=this.flow),this.areas&&(Array.isArray(this.areas)?t.gridTemplateAreas=this.areas.map(t=>`"${t}"`).join(" "):t.gridTemplateAreas=this.areas),this.align&&(t.placeItems=this.align),this.justify&&(t.placeContent=this.justify),Object.keys(this.responsive).length>0&&this.addResponsiveStyles(t),t}},methods:{addResponsiveStyles(t){const e={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};Object.entries(this.responsive).forEach(([t,n])=>{if(e[t]){e[t]}})}}},hn=cn,dn=B(hn,ln,un,!1,null,null,null),pn=dn.exports;pn.install=function(t){t.component(pn.name,pn)};var fn=pn,gn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-item",style:t.styleAttrs},[t._t("default")],2)},yn=[],vn={name:"XtGridItem",props:{span:{type:Number,default:1,validator:t=>t>0},rowSpan:{type:Number,default:1,validator:t=>t>0},start:{type:Number,default:0,validator:t=>t>=0},rowStart:{type:Number,default:0,validator:t=>t>=0},area:{type:String,default:""},justifySelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch"].includes(t)},alignSelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch","baseline"].includes(t)},customClass:{type:String,default:""}},computed:{styleAttrs(){const t={};return this.span>1&&(t.gridColumnEnd="span "+this.span),this.rowSpan>1&&(t.gridRowEnd="span "+this.rowSpan),this.start>0&&(t.gridColumnStart=this.start),this.rowStart>0&&(t.gridRowStart=this.rowStart),this.area&&(t.gridArea=this.area),this.justifySelf&&"auto"!==this.justifySelf&&(t.justifySelf=this.justifySelf),this.alignSelf&&"auto"!==this.alignSelf&&(t.alignSelf=this.alignSelf),t}}},mn=vn,bn=(n("d728"),B(mn,gn,yn,!1,null,"5318efc6",null)),xn=bn.exports;xn.install=function(t){t.component(xn.name,xn)};var _n=xn,wn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-progress",class:["xt-progress--"+t.type,"xt-progress--"+t.size]},["line"===t.type?e("div",{staticClass:"xt-progress__bar"},[e("div",{staticClass:"xt-progress__bar-inner",style:{width:t.percentage+"%",backgroundColor:t.color}},[e("transition",{attrs:{name:"xt-progress-fade"}},[t.showText?e("div",{staticClass:"xt-progress__bar-text"},[t._v(t._s(t.percentage)+"%")]):t._e()])],1)]):"circle"===t.type?e("div",{staticClass:"xt-progress__circle"},[e("svg",{staticClass:"xt-progress__circle-svg",attrs:{width:t.circleSize,height:t.circleSize}},[e("circle",{staticClass:"xt-progress__circle-bg",attrs:{cx:t.circleSize/2,cy:t.circleSize/2,r:t.circleRadius,fill:"none",stroke:t.bgColor,"stroke-width":t.strokeWidth}}),e("circle",{staticClass:"xt-progress__circle-bar",attrs:{cx:t.circleSize/2,cy:t.circleSize/2,r:t.circleRadius,fill:"none",stroke:t.color,"stroke-width":t.strokeWidth,"stroke-dasharray":t.circleLength,"stroke-dashoffset":t.circleOffset,"stroke-linecap":"round",transform:"rotate(-90 ${circleSize / 2} ${circleSize / 2})"}})]),t.showText?e("div",{staticClass:"xt-progress__circle-text"},[e("span",{staticClass:"xt-progress__circle-percent"},[t._v(t._s(t.percentage)+"%")])]):t._e()]):t._e(),t.showText&&"line"===t.type?e("div",{staticClass:"xt-progress__text"},[t._v(t._s(t.percentage)+"%")]):t._e()])},Sn=[],Mn={name:"XtProgress",props:{percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},type:{type:String,default:"line",validator:t=>["line","circle"].includes(t)},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},color:{type:String,default:"#1890ff"},bgColor:{type:String,default:"#ebeef5"},showText:{type:Boolean,default:!0},strokeWidth:{type:Number,default:6},circleSize:{type:Number,default:120}},computed:{circleRadius(){return(this.circleSize-this.strokeWidth)/2},circleLength(){return 2*Math.PI*this.circleRadius},circleOffset(){return this.circleLength*(1-this.percentage/100)}}},On=Mn,Tn=B(On,wn,Sn,!1,null,null,null),In=Tn.exports;In.install=function(t){t.component(In.name,In)};var Cn=In,An=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-tabs",class:["xt-tabs--"+t.position,{"xt-tabs--card":"card"===t.type}]},[e("div",{staticClass:"xt-tabs__header"},[e("div",{staticClass:"xt-tabs__nav"},t._l(t.panes,(function(n,i){return e("div",{key:n.name,staticClass:"xt-tabs__nav-item",class:{"xt-tabs__nav-item--active":t.activeName===n.name},on:{click:function(e){return t.handleTabClick(n.name)}}},[e("span",{staticClass:"xt-tabs__nav-link"},[t._v(t._s(n.label))])])})),0),e("div",{staticClass:"xt-tabs__nav-indicator",style:t.indicatorStyle})]),e("div",{staticClass:"xt-tabs__content"},[e("transition",{attrs:{name:"xt-tabs-fade",mode:"out-in"}},t._l(t.panes,(function(n,i){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeName===n.name,expression:"activeName === pane.name"}],key:n.name,staticClass:"xt-tabs__pane"},[t._t(n.name)],2)})),0)],1)])},kn=[],Dn={name:"XtTabs",props:{value:{type:[String,Number],default:""},type:{type:String,default:"default",validator:t=>["default","card"].includes(t)},position:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)}},data(){return{panes:[],activeName:this.value}},watch:{value(t){this.activeName=t},activeName(t){this.$emit("input",t),this.$emit("change",t)}},computed:{indicatorStyle(){const t=this.panes.findIndex(t=>t.name===this.activeName);if(-1===t)return{display:"none"};const e=this.$el&&this.$el.querySelectorAll(".xt-tabs__nav-item");if(!e||0===e.length)return{display:"none"};const n=e[t];return{left:n.offsetLeft+"px",width:n.offsetWidth+"px",display:"block"}}},methods:{handleTabClick(t){this.activeName=t},addPane(t){this.panes.find(e=>e.name===t.name)||(this.panes.push(t),this.activeName||1!==this.panes.length||(this.activeName=t.name))},removePane(t){const e=this.panes.findIndex(e=>e.name===t);e>-1&&this.panes.splice(e,1)}},mounted(){this.$children.forEach(t=>{"XtTabPane"===t.$options.name&&this.addPane({name:t.name,label:t.label})})}},Ln=Dn,Pn=B(Ln,An,kn,!1,null,null,null),jn=Pn.exports,Nn=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"xt-tab-pane"},[t._t("default")],2)},Rn=[],En={name:"XtTabPane",props:{name:{type:[String,Number],required:!0},label:{type:String,default:""}},computed:{isActive(){return this.$parent&&this.$parent.activeName===this.name}},mounted(){this.$parent&&"function"===typeof this.$parent.addPane&&this.$parent.addPane({name:this.name,label:this.label})},beforeDestroy(){this.$parent&&"function"===typeof this.$parent.removePane&&this.$parent.removePane(this.name)}},zn=En,Bn=B(zn,Nn,Rn,!1,null,null,null),Vn=Bn.exports;jn.install=function(t){t.component(jn.name,jn),t.component(Vn.name,Vn)};var Fn=jn,Hn=function(){var t=this,e=t._self._c;return e("span",{class:t.rootClasses},[e("span",{staticClass:"xt-badge__content"},[t._t("default")],2),t.hidden||!t.value&&!t.isDot?t._e():e("span",{staticClass:"xt-badge__badge",style:t.badgeStyle},[t.isDot?e("span"):t.isOverflow?e("span",[t._v(t._s(t.overflowText))]):e("span",[t._v(t._s(t.value))])])])},Gn=[],Wn={name:"XtBadge",props:{value:{type:[Number,String],default:""},type:{type:String,default:"primary",validator:t=>["primary","success","warning","danger","info"].includes(t)},max:{type:Number,default:99},isDot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showOverflow:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},color:{type:String,default:""}},computed:{rootClasses(){return["xt-badge","xt-badge--"+this.type,{"xt-badge--dot":this.isDot},{"xt-badge--hidden":this.hidden},{"xt-badge--fixed":this.fixed}]},badgeStyle(){const t={};return this.color&&(t.backgroundColor=this.color),t},overflowText(){return this.max+"+"},isOverflow(){return this.showOverflow&&this.value>this.max}}},Yn=Wn,Un=B(Yn,Hn,Gn,!1,null,null,null),Xn=Un.exports;Xn.install=function(t){t.component(Xn.name,Xn)};var $n=Xn,Zn=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},["quarter"==t.dateType?e("XtFlexBox",{staticClass:"xt-date-picker",class:{focus:t.isfocus},style:t.width?{width:""+t.width}:{},attrs:{type:"inline-flex"}},[e("Quarter",{attrs:{format:t.format,placeholder:"开始时间","quarter-type":"quarter-start",clearable:""},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("Quarter",{attrs:{format:t.format,placeholder:"结束时间","quarter-type":"quarter-end",clearable:""},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1):e("XtFlexBox",{staticClass:"xt-date",class:{focus:t.isfocus},style:t.width?{width:t.width+"px"}:{},attrs:{type:"inline-flex"}},[e("el-date-picker",{key:"startSelect",ref:"timeStart",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.startTimeRange,format:t.format,type:t.dateType,placeholder:"开始时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("el-date-picker",{key:"endSelect",ref:"timeEnd",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.endTimeRange,format:t.format,type:t.dateType,placeholder:"结束时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1)],1)},qn=[],Kn=function(){var t=this,e=t._self._c;return e("el-popover",{attrs:{trigger:"click",disabled:t.disabled,transition:"el-zoom-in-top",placement:t.placement,width:t.popoverWidth},on:{hide:t.handleBlur},model:{value:t.popoverVisible,callback:function(e){t.popoverVisible=e},expression:"popoverVisible"}},[e("div",{staticClass:"quarter-wrapper"},[e("BaseFlexBox",{attrs:{content:"between"}},[e("i",{staticClass:"el-icon-d-arrow-left",on:{click:t.prev}}),e("span",[t._v(t._s(t.selectYear))]),e("i",{staticClass:"el-icon-d-arrow-right",on:{click:t.after}})]),e("BaseFlexBox",{staticStyle:{"margin-top":"10px"},attrs:{content:"between"}},t._l(t.quarterList,(function(n){return e("el-button",{key:n.value,attrs:{disabled:t.getDisable(n),type:t.currentyear==t.selectYear&&n.value==t.currentQuarter?"primary":"",size:"mini",round:""},on:{click:function(e){return t.setCurrent(n)}}},[t._v(t._s(n.label))])})),1)],1),e("el-input",{ref:"reference",attrs:{slot:"reference",size:"small",value:t.quarterLabel,readonly:"",title:t.value,placeholder:t.placeholder,"prefix-icon":"el-icon-date",clearable:""},slot:"reference"})],1)},Qn=[],Jn=n("340b"),ti=n.n(Jn),ei={name:"DateQuarter",components:{BaseFlexBox:et},model:{props:"value",event:"change"},props:{value:{},quarterType:{type:String,default:"quarter"},placement:{type:String,default:"bottom-start"},format:{type:String,default:"yy-Qq"},popoverWidth:Number,placeholder:{},pickerOptions:{type:Object,default:()=>({disabledDate:()=>!1})},disabled:{}},data(){const t=this.getQuarterDate(this.value),e=t?t.getFullYear():"",n=t?t.getMonth():"",i=t?t.getFullYear():(new Date).getFullYear();return{dateVal:t,currentyear:e,currentQuarter:ti.a.getQuarter(t),selectYear:i,currentMonth:n,popoverVisible:!1,quarterList:[{label:"Q1",value:1},{label:"Q2",value:2},{label:"Q3",value:3},{label:"Q4",value:4}]}},computed:{diffQuarter(){return 4*(this.selectYear-this.currentyear)-this.currentQuarter},quarterLabel:{get(){return this.currentyear&&this.currentQuarter?this.getFormatVal():""}}},methods:{getQuarterDate(t){if(!t)return null;if("quarter-start"==this.quarterType)return ti.a.startOfQuarter(t);if("quarter-end"==this.quarterType)return ti.a.endOfQuarter(t);{const e=ti.a.getQuarter(t);return ti.a.setQuarter(this.value,e)}},getDisable(t){},handleChangeVal(t){},getFormatVal(){if(!this.format)return`${this.currentyear}-Q${this.currentQuarter}`;const t={y:this.currentyear,q:this.currentQuarter},e=this.format.replace(/(y|q)+/g,(e,n)=>{const i=t[n];return i||""});return e},setCurrent(t){this.dateVal||(this.dateVal=new Date),this.dateVal.setFullYear(this.selectYear),this.dateVal=ti.a.setQuarter(this.dateVal,t.value),this.$emit("change",this.dateVal),this.currentQuarter=t.value,this.currentyear=this.selectYear,this.popoverVisible=!1},after(){this.dateVal.setFullYear(this.dateVal.getFullYear()+1),this.selectYear=this.dateVal.getFullYear()},prev(){this.dateVal.setFullYear(this.dateVal.getFullYear()-1),this.selectYear=this.dateVal.getFullYear()},handleBlur(){this.$refs.reference.blur()}}},ni=ei,ii=B(ni,Kn,Qn,!1,null,null,null),ri=ii.exports;const ai={datetime:"yyyy-MM-dd HH:mm",month:"yyyy-MM",year:"yyyy",date:"yyyy-MM-dd",quarter:"yyyy-Qq",week:"yyyy-WW"};var oi={name:"XtDatePicker",components:{XtFlexBox:et,Quarter:ri},model:{prop:"value",event:"change"},props:{value:{},dateType:{type:String,default:"date"},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0},placeholder:{},width:{type:[String],default:"100%"}},data(){return{isfocus:!1}},computed:{format(){return ai[this.dateType]||"yyyy-MM-dd"},timeStart:{get(){return this.value&&this.value[0]},set(t){this.$emit("update:value",[t,this.timeEnd]),this.$emit("change",[t,this.timeEnd])}},timeEnd:{get(){return this.value&&this.value[1]},set(t){this.$emit("update:value",[this.timeStart,t]),this.$emit("change",[this.timeStart,t])}},startTimeRange(){if(!this.timeEnd)return{};const t=this.timeEnd.getTime();return{disabledDate:e=>e.getTime()>t}},endTimeRange(){if(!this.timeStart)return{};const t=this.timeStart.getTime();return{disabledDate:e=>e.getTime()<t}}},methods:{}},si=oi,li=(n("5798"),B(si,Zn,qn,!1,null,"67b7b031",null)),ui=li.exports;ui.install=function(t){t.component(ui.name,ui)};var ci=ui,hi=function(){var t=this,e=t._self._c;return"bar"==t.type?e("xt-bar",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-bar",t.$attrs,!1)):"line"==t.type?e("xt-line",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-line",t.$attrs,!1)):"pie"==t.type?e("xt-pie",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-pie",t.$attrs,!1)):"multi"==t.type?e("xt-multi",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-multi",t.$attrs,!1)):t._e()},di=[],pi=function(){var t=this,e=t._self._c;return e("div",{ref:"barchart",staticClass:"bar-box",style:t.chartStyle})},fi=[],gi={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,label:"吴十"},{value:70,label:"唐九"},{value:73,label:"钱一"},{value:78,label:"孙二"},{value:88,label:"刘八"},{value:93,label:"王七"},{value:99,label:"赵六"},{value:103,label:"宋五"},{value:113,label:"李四"},{value:125,label:"张三"}]},theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},markPoint:{type:Boolean,default:!1},unit:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null,name:"数量"}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart(),g.bindResizeObserver(this.$refs.barchart,this.myChart)},beforeUnmount(){g.unbindResizeObserver(this.$refs.barchart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(e){return!t.reverse&&t.longLable?e.replace(new RegExp(`(.{${t.longLableSplitNum}})`,"g"),"$1\n"):e}},data:t.chartData.map(t=>t[e.label])},i={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:t.energyType,axisTick:{inside:!0},min:0,splitNumber:t.splitNumber,max:function(e){return Math.ceil(e.max/t.splitNumber)*t.splitNumber},scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=t/1e4+"万":t>=1e7&&(t=t/1e7+"千万"),t}}},r={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?t.longLablePx:0),right:"10",bottom:(t.showZoom?50:20)+(!t.reverse&&t.longLable?t.longLablePx:0),containLabel:!0},xAxis:this.reverse?i:n,yAxis:this.reverse?n:i,series:{name:t.unit,type:"bar",avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const i=t[e.label],r=t[e.value];return{value:r,name:i,tooltip:{borderWidth:1}}})},dataZoom:t.showZoom?[{height:20,bottom:0}]:[]};this.simpleMode&&g.applySimpleMode(r,"bar"),this.myChart=g.init(t.$refs.barchart,this.theme,r,this.size)}}},yi=gi,vi=(n("80ec"),B(yi,pi,fi,!1,null,"6f672c2b",null)),mi=vi.exports,bi=function(){var t=this,e=t._self._c;return e("div",{ref:"linechart",staticClass:"line-box",style:t.chartStyle})},xi=[],_i={name:"XtLine",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},isArea:{type:Boolean,default:!1},unit:{type:String,default:""},intervalvalue:{type:Number,default:0},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart(),g.bindResizeObserver(this.$refs.linechart,this.myChart)},beforeUnmount(){g.unbindResizeObserver(this.$refs.linechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={animationDuration:500,grid:{top:"18%",left:"30",right:"30",bottom:"20"},xAxis:{type:"category",axisLabel:{interval:this.intervalvalue},boundaryGap:!1,data:t.chartData.map(t=>t[e.label])},yAxis:{type:"value",axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},name:t.unit,scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}},series:[{type:"line",symbol:"circle",areaStyle:t.isArea?{}:null,smooth:!0,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>t[e.value])}]};this.simpleMode&&g.applySimpleMode(n,"line"),this.myChart=g.init(t.$refs.linechart,this.theme,n,this.size)}}},wi=_i,Si=(n("04c6"),B(wi,bi,xi,!1,null,"ee5ba2d8",null)),Mi=Si.exports,Oi=function(){var t=this,e=t._self._c;return e("div",{ref:"piechart",staticClass:"pie-box",style:t.chartStyle})},Ti=[],Ii={name:"XtPie",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},colors:{type:Array,default:()=>[]},unit:{type:String,default:""},showLegend:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},highlightKey:String,roseType:{type:String,default:""},showLabel:{type:Boolean,default:!0},totalLabel:{type:String,default:"总数"}},data(){return{myChart:null}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t},totalNum(){const t=Object.assign({label:"label",value:"value",data:"data"},this.fieldKeys||{});return this.chartData.map(e=>parseFloat(e[t.value])).reduce((t,e)=>t+e,0)}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.$nextTick(()=>{this.initChart(),g.bindResizeObserver(this.$refs.piechart,this.myChart)})},beforeUnmount(){g.unbindResizeObserver(this.$refs.piechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={title:{text:`${t.totalLabel}:${t.totalNum}`,textStyle:{},top:"middle",left:"center"},tooltip:{trigger:"item"},legend:this.showLegend?{top:"top",right:"20",type:"scroll"}:null,grid:{left:30,right:0,top:20,bottom:0,containLabel:!0},series:[{name:t.unit,type:"pie",center:["50%","50%"],roseType:this.roseType,radius:["50%","65%"],minAngle:5,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const i=t[e.label],r=t[e.value];return{value:r,name:i,labelLine:{show:this.showLabel},emphasis:{labelLine:{show:this.showLabel}},label:{show:this.showLabel},tooltip:{formatter:"{b}:{c} ({d}%)",position:"inside",borderWidth:1}}})}]};this.simpleMode&&g.applySimpleMode(n,"pie"),this.myChart=g.init(t.$refs.piechart,this.theme,n,this.size)}}},Ci=Ii,Ai=(n("4167"),B(Ci,Oi,Ti,!1,null,"21c338ab",null)),ki=Ai.exports,Di=function(){var t=this,e=t._self._c;return e("div",{ref:"multilinechart",staticClass:"multiline-box",style:t.chartStyle})},Li=[],Pi={name:"XtMulti",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},simpleMode:{type:Boolean,default:!1},highlightKey:String,config:{type:Object,default(){return{interval:0,rotate:0,gridbottom:40,isShowthreshold:!1}}},chartData:{type:Array,default:()=>[{label:"入户数",unit:"户",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",unit:"个",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",unit:"个",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]}},data(){return{myChart:null}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t}},watch:{chartData:{deep:!0,handler(t,e){const n=this;this.myChart&&this.myChart.dispose(),this.myChart=null,n.initChart(),g.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},theme(t){this.myChart&&this.myChart.dispose(),this.myChart=null,this.initChart(),g.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},mounted(){this.initChart(),g.bindResizeObserver(this.$refs.multilinechart,this.myChart)},beforeUnmount(){g.unbindResizeObserver(this.$refs.multilinechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n=[];(t.chartData||[]).forEach(t=>{const e=t.unit||"";-1===n.indexOf(e)&&n.push(e)});const i=(t,e)=>{const n={type:"value",name:t,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}};return e>0&&(n.position="right",n.splitLine={show:!1}),n},r=n.length?n.map((t,e)=>i(t,e)):[i("",0)],a={};n.forEach((t,e)=>{a[t]=e});const o=t.chartData&&t.chartData.length&&t.chartData[0][e.data]||[],s={legend:{right:20,top:0,show:!0,data:t.chartData.map(t=>t[e.label]),textStyle:{}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",left:"40",right:"15",bottom:null==this.config.gridbottom?20:this.config.gridbottom},xAxis:{type:"category",axisLabel:{rotate:this.config.rotate},data:o.map(t=>t[e.label])},yAxis:r,dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData(a,e)};this.simpleMode&&g.applySimpleMode(s,"multi"),this.myChart=g.init(t.$refs.multilinechart,this.theme,s,this.size)},getSeriesData(t,e){const n=this,i=[];return n.chartData.forEach((n,r)=>{const a=n[e.data]||[],o={animation:!0,name:n[e.label],type:n.type||"bar",avoidLabelOverlap:!0,data:a.map(t=>t[e.value]),yAxisIndex:null!=t[n.unit||""]?t[n.unit||""]:0};i.push(o)}),i}}},ji=Pi,Ni=(n("3935"),B(ji,Di,Li,!1,null,"201ff8e5",null)),Ri=Ni.exports,Ei={name:"XtChart",components:{XtBar:mi,XtLine:Mi,XtPie:ki,XtMulti:Ri},props:{theme:{type:String,default:""},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},type:{type:String,required:!0,default:"bar"}},data(){return{myTheme:this.theme,mySize:this.size,observer:null}},mounted(){this.detectParentTheme(),this.observeThemeChange()},beforeUnmount(){this.observer&&this.observer.disconnect()},watch:{theme(t){this.myTheme=t},size(t){this.mySize=t}},methods:{detectParentTheme(){if(this.theme)return void(this.myTheme=this.theme);let t=this.$el?this.$el.parentElement:null;while(t){const e=t.getAttribute("data-theme");if(e)return void(this.myTheme="dark"===e?"dark":"default");t=t.parentElement}const e=document.body.getAttribute("data-theme"),n=document.documentElement.getAttribute("data-theme");this.myTheme="dark"===e||"dark"===n?"dark":"default"},observeThemeChange(){if(!this.$el)return;this.observer=new MutationObserver(t=>{t.forEach(t=>{if("attributes"===t.type&&"data-theme"===t.attributeName){const e=t.target.getAttribute("data-theme");"dark"===e?this.myTheme="dark":"light"===e&&(this.myTheme="default")}})});let t=this.$el.parentElement;while(t)this.observer.observe(t,{attributes:!0,attributeFilter:["data-theme"]}),t=t.parentElement;this.observer.observe(document.body,{attributes:!0,attributeFilter:["data-theme"]}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}}},zi=Ei,Bi=B(zi,hi,di,!1,null,null,null),Vi=Bi.exports;Vi.install=function(t){t.component(Vi.name,Vi)};var Fi=Vi,Hi=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(t.tag,t._g({tag:"component",class:t.iconClasses,style:t.iconStyle,on:{click:t.handleClick}},t.$listeners),[t.isSvgSprite?e("svg",{style:t.svgStyle,attrs:{"aria-hidden":"true"}},[e("use",{attrs:{href:t.svgHref}})]):t.hasDefaultSlot?t._t("default"):t._e()],2)},Gi=[];const Wi={},Yi={name:"XtIcon",inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:[String,Number],default:""},color:{type:String,default:""},spin:{type:Boolean,default:!1}},computed:{hasDefaultSlot(){return!!this.$slots.default},iconName(){return(this.name||"").trim()},isElIcon(){return/^el-icon-/.test(this.iconName)},isSvgInline(){return this.iconName.indexOf("<svg")>-1},isSvgSprite(){return/^(#|svg:)/.test(this.iconName)},isCustomFont(){return!!this.iconName&&(!this.isElIcon&&!this.isSvgInline&&!this.isSvgSprite)},svgHref(){if(!this.isSvgSprite)return"";const t=this.iconName.replace(/^svg:/,"").replace(/^#/,"");return"#"+t},needsExIconPrefix(){if(!this.isCustomFont)return!1;for(const t of Object.keys(Wi))if(0===this.iconName.indexOf(t))return!1;return!0},tag(){return this.isSvgInline?"span":"i"},iconClasses(){const t=[];return this.isElIcon?t.push(this.iconName):this.isSvgSprite?t.push("ex-icon-svg"):this.isCustomFont?(this.needsExIconPrefix&&t.push("ex-icon"),t.push(this.iconName)):this.isSvgInline&&t.push("ex-icon-inline-svg"),this.spin&&t.push("ex-icon-spin"),t},iconStyle(){const t={};if(this.size){const e="number"===typeof this.size?this.size+"px":this.size;t.fontSize=e,t.width=e,t.height=e}return this.color&&(t.color=this.color),this.isSvgInline&&(t.display="inline-block",t.verticalAlign="middle"),t},svgStyle(){return{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}},mounted(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},beforeUpdate(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},methods:{handleClick(t){this.$emit("click",t)}},registerPrefix:function(t){t&&"string"===typeof t&&(Wi[t]=!0)}};var Ui=Yi,Xi=Ui,$i=(n("6b14"),B(Xi,Hi,Gi,!1,null,"0e301b72",null)),Zi=$i.exports;Zi.install=function(t){t.component(Zi.name,Zi)};var qi,Ki,Qi=Zi,Ji=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-table-wrapper"},[t.title||t.$slots.toolbar?e("div",{staticClass:"xt-table-header"},[t.title?e("span",{staticClass:"xt-table-title"},[t._v(t._s(t.title))]):t._e(),e("div",{staticClass:"xt-table-toolbar"},[t._t("toolbar")],2)]):t._e(),e("div",{staticClass:"xt-table-body"},[e("VirtualElTable",t._g(t._b({ref:"table",staticClass:"xt-table",attrs:{data:t.processedTableData,height:t.computedHeight,"max-height":t.computedMaxHeight,"virtual-scroll":t.virtualScroll,"row-height":t.rowInitHeight,"buffer-size":t.bufferSize,"span-method":t.groupColumns.length?t.handleSpanMethod:void 0,"row-class-name":t.getRowClassName},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleSortChange}},"VirtualElTable",t.$attrs,!1),t.$listeners),[t.selection?e("el-table-column",{attrs:{type:"selection",width:"55",fixed:t.selectionFixed}}):t._e(),t.showIndex?e("el-table-column",{attrs:{type:"index",width:"60",label:"#",fixed:t.indexFixed,index:t.indexMethod}}):t._e(),t._l(t.flattenedColumns,(function(n){return[n.children&&n.children.length?e("el-table-column",t._b({key:n._key},"el-table-column",t.getColumnProps(n),!1),[t._l(n.children,(function(n){return[e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("XtTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2):e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("XtTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2)],1),t.showPagination?e("div",{staticClass:"xt-table-footer"},[e("el-pagination",{attrs:{"current-page":t.pagination.pageNum,"page-size":t.pagination.pageSize,total:t.total,"page-sizes":t.pagination.pageSizes||[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])},tr=[],er={name:"XtTableCell",functional:!0,props:{row:Object,index:Number,formatter:Function,column:{type:Object,default:null}},render:(t,e)=>{const n={row:e.props.row,index:e.props.index};e.props.column&&(n.column=e.props.column);const i=t=>null!==t&&void 0!==t&&"object"===typeof t&&t.hasOwnProperty("componentOptions"),r=e.props.formatter(t,n);return null===r||void 0===r||""===r?t("span",""):i(r)?r:t("span",String(r))}},nr=er,ir=B(nr,qi,Ki,!1,null,null,null),rr=ir.exports,ar=function(){var t=this,e=t._self._c;return e("el-table",t._g(t._b({ref:"innerTable",attrs:{data:t.renderList}},"el-table",t.$attrs,!1),t.$listeners),[t._t("default")],2)},or=[],sr={name:"VirtualElTable",inheritAttrs:!1,props:{virtualScroll:{type:Boolean,default:!1},rowHeight:{type:Number,default:48},bufferSize:{type:Number,default:5}},data(){return{scrollWrap:null,phantomDom:null,scrollTop:0,startIndex:0,endIndex:20,rafId:null,unwatchPhantom:null,layoutTimer:null,retryTimers:[]}},computed:{originData(){return this.$attrs.data||[]},renderList(){if(!this.virtualScroll)return this.originData;const t=Math.max(0,this.startIndex-this.bufferSize),e=Math.min(this.originData.length,this.endIndex+this.bufferSize);return this.originData.slice(t,e)},totalListHeight(){return this.originData.length*this.rowHeight},contentOffsetY(){return Math.max(0,this.startIndex-this.bufferSize)*this.rowHeight}},watch:{renderList(){this.scheduleLayout()},originData:{handler(t){this.virtualScroll&&t&&t.length&&this.$nextTick(()=>{this.calcVisibleRange()})}}},mounted(){this.$nextTick(()=>{this.initVirtualScroll()})},beforeDestroy(){this.unbindScrollEvent(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.unwatchPhantom&&(this.unwatchPhantom(),this.unwatchPhantom=null),this.layoutTimer&&(clearTimeout(this.layoutTimer),this.layoutTimer=null),this.retryTimers.forEach(t=>clearTimeout(t)),this.retryTimers=[]},methods:{initVirtualScroll(){if(!this.virtualScroll)return;if(this.scrollWrap=this.$refs.innerTable.$el.querySelector(".el-table__body-wrapper"),!this.scrollWrap)return console.warn("[VirtualElTable] 无法找到滚动容器,虚拟滚动功能已禁用"),void(this.virtualScroll=!1);this.scrollWrap.style.overflowY="auto",this.scrollWrap.style.overflowX="auto",this.wrapTableBody(),this.scrollWrap.addEventListener("scroll",this.onScroll,{passive:!0}),this.calcVisibleRange();const t=[100,300,600,1e3];t.forEach(t=>{const e=setTimeout(()=>{this.calcVisibleRange()},t);this.retryTimers.push(e)})},wrapTableBody(){const t=this.scrollWrap.querySelector(".el-table__body");if(!t||t.querySelector(".vs-phantom"))return;const e=document.createElement("div");e.className="vs-phantom",e.style.position="relative",e.style.minWidth="100%",e.style.boxSizing="border-box",e.style.zIndex="1",this.phantomDom=e;const n=t.querySelector("table");e.appendChild(n),t.appendChild(e),this.unwatchPhantom=this.$watch(["totalListHeight","contentOffsetY"],()=>{this.phantomDom&&(this.phantomDom.style.height=this.totalListHeight+"px",this.phantomDom.style.paddingTop=this.contentOffsetY+"px")},{immediate:!0})},onScroll(){this.scrollTop=this.scrollWrap.scrollTop,this.rafId||(this.rafId=requestAnimationFrame(()=>{this.calcVisibleRange(),this.rafId=null}))},calcVisibleRange(){if(!this.scrollWrap)return;let t=this.scrollWrap.clientHeight;if(!t){const e=this.$attrs.height||this.$attrs.maxHeight;e&&(t="number"===typeof e?e:parseInt(String(e),10))}if(!t||t<=0)return;const e=Math.ceil(t/this.rowHeight),n=Math.floor(this.scrollTop/this.rowHeight),i=Math.min(this.originData.length,n+e);n===this.startIndex&&i===this.endIndex||(this.startIndex=n,this.endIndex=i)},unbindScrollEvent(){this.scrollWrap&&this.scrollWrap.removeEventListener("scroll",this.onScroll)},scheduleLayout(){this.layoutTimer||(this.layoutTimer=setTimeout(()=>{this.$refs.innerTable&&this.$refs.innerTable.doLayout(),this.layoutTimer=null},0))},clearSelection(){return this.$refs.innerTable.clearSelection()},toggleRowSelection(){return this.$refs.innerTable.toggleRowSelection()},doLayout(){return this.$refs.innerTable.doLayout()}}},lr=sr,ur=(n("26be"),B(lr,ar,or,!1,null,"01f7dcee",null)),cr=ur.exports,hr={name:"XtTable",inheritAttrs:!1,components:{XtTableCell:rr,VirtualElTable:cr},props:{tableData:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},groupColumns:{type:Array,default:()=>[]},sortGroup:{type:Boolean,default:!1},defaultSort:{type:Object,default:null},title:{type:String,default:""},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},virtualScroll:{type:Boolean,default:!1},rowInitHeight:{type:Number,default:48},bufferSize:{type:Number,default:5},pagination:{type:Object,default:null},total:{type:Number,default:0},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},selectionFixed:{type:[String,Boolean],default:!1},indexFixed:{type:[String,Boolean],default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},subtotalConfig:{type:Object,default:()=>({enabled:!1})},totalConfig:{type:Object,default:()=>({enabled:!1})}},data(){return{spanCache:{},flattenedColumnsCache:[],selectedRows:[],sortProp:null,sortOrder:null}},computed:{showPagination(){return this.pagination&&this.total>0},computedHeight(){return this.height||void 0},computedMaxHeight(){return this.height?void 0:this.maxHeight||void 0},sortedTableData(){if(!this.tableData.length)return[];if(!this.sortProp||!this.sortOrder)return[...this.tableData];const t="ascending"===this.sortOrder?1:-1,e=this.resolveSortMethod(this.sortProp);return this.sortGroup&&this.groupColumns.length?this.groupSort([...this.tableData],e,t):[...this.tableData].sort((n,i)=>e(n,i)*t)},processedTableData(){if(!this.sortedTableData.length)return[];let t=[...this.sortedTableData];const e=this.subtotalConfig&&this.subtotalConfig.enabled,n=this.totalConfig&&this.totalConfig.enabled;if(!e&&!n)return t;this.findLabelColumn();let i=[];if(e&&this.subtotalConfig.groupBy&&this.subtotalConfig.groupBy.length){const e=this.groupData(t,this.subtotalConfig.groupBy);e.forEach(t=>{i.push(...t);const e=this.createSubtotalRow(t);i.push(e)})}else i=t;if(n){const e=this.createTotalRow(t);i.push(e)}return i},flattenedColumns(){if(this.flattenedColumnsCache.length)return this.flattenedColumnsCache;const t=(e,n="")=>e.map((e,i)=>{const r=n?`${n}_${i}`:String(i),a=e.prop||e.slot||e.label||r,o={...e,_key:a};return e.children&&e.children.length&&(o.children=t(e.children,r)),o});return this.flattenedColumnsCache=t(this.columns),this.flattenedColumnsCache}},watch:{tableData(){this.spanCache={},this.flattenedColumnsCache=[]},columns:{handler(){this.flattenedColumnsCache=[],this.spanCache={}},deep:!0},groupColumns:{handler(){this.spanCache={}},deep:!0},defaultSort:{handler(t){t&&t.prop&&(this.sortProp=t.prop,this.sortOrder=t.order||"ascending")},immediate:!1},sortProp(){this.spanCache={}}},created(){this.defaultSort&&this.defaultSort.prop&&(this.sortProp=this.defaultSort.prop,this.sortOrder=this.defaultSort.order||"ascending")},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.handleResize)})},beforeDestroy(){window.removeEventListener("resize",this.handleResize)},methods:{resolveSortMethod(t){const e=this.findColumnByProp(t);return e&&"function"===typeof e.sortMethod?e.sortMethod:(e,n)=>{const i=e[t],r=n[t];return null==i&&null==r?0:null==i?-1:null==r?1:"number"===typeof i&&"number"===typeof r?i-r:String(i).localeCompare(String(r),void 0,{numeric:!0})}},findColumnByProp(t){for(const e of this.columns)if(e.children&&e.children.length){for(const n of e.children)if(n.prop===t)return n}else if(e.prop===t)return e;return null},groupSort(t,e,n){const i={};t.forEach(t=>{const e=this.groupColumns.map(e=>null==t[e]?"":String(t[e])).join("|||");i[e]||(i[e]=[]),i[e].push(t)});const r=[];return Object.keys(i).sort().forEach(t=>{const a=i[t];a.sort((t,i)=>e(t,i)*n),r.push(...a)}),r},handleResize(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})},findLabelColumn(){for(const t of this.columns)if(t.children&&t.children.length){for(const e of t.children)if(e.prop)return{prop:e.prop,label:e.label}}else if(t.prop)return{prop:t.prop,label:t.label};return{prop:"",label:""}},groupData(t,e){const n=new Map;return t.forEach(t=>{const i=e.map(e=>t[e]).join("|||");n.has(i)||n.set(i,[]),n.get(i).push(t)}),n},_calcValue(t,e){if("function"===typeof e)return e(t);const n=e.prop,i=e.type||"sum",r=n?t.map(t=>parseFloat(t[n])||0):[];switch(i){case"sum":return r.reduce((t,e)=>t+e,0);case"avg":case"average":return r.length?r.reduce((t,e)=>t+e,0)/r.length:0;case"count":return t.length;case"min":return r.length?Math.min(...r):0;case"max":return r.length?Math.max(...r):0;default:return""}},createSubtotalRow(t){const e=this.subtotalConfig,n=this.findLabelColumn(),i=e.groupBy?e.groupBy[0]:"",r=t[0]?t[0][i]:"",a=e.labelText||r+" 小计",o={_rowType:"subtotal"};return o[n.prop]=a,e.columns&&Object.keys(e.columns).forEach(n=>{const i=e.columns[n];o[n]="string"===typeof i?this._calcValue(t,{prop:n,type:i}):this._calcValue(t,i)}),o},createTotalRow(t){const e=this.totalConfig,n=this.findLabelColumn(),i=e.labelText||"总计",r={_rowType:"total"};return r[n.prop]=i,e.columns&&Object.keys(e.columns).forEach(n=>{const i=e.columns[n];r[n]="string"===typeof i?this._calcValue(t,{prop:n,type:i}):this._calcValue(t,i)}),r},getRowClassName({row:t}){return"subtotal"===t._rowType?"xt-table-row-subtotal":"total"===t._rowType?"xt-table-row-total":""},getColumnProps(t){const{_key:e,children:n,render:i,formatter:r,slot:a,sortMethod:o,...s}=t;return s},indexMethod(t){return t+1},handleSpanMethod({row:t,column:e,rowIndex:n}){if("subtotal"===t._rowType||"total"===t._rowType)return{rowspan:1,colspan:1};if(!this.groupColumns.length)return{rowspan:1,colspan:1};const i=this.processedTableData,r=e.property,a=this.groupColumns.indexOf(r);if(-1===a)return{rowspan:1,colspan:1};const o=`${n}_${r}`;if(this.spanCache[o])return this.spanCache[o];if(n>0){const e=i[n-1];let r=!0;for(let n=0;n<=a;n++){const i=this.groupColumns[n];if(e[i]!==t[i]){r=!1;break}}if(r){const t={rowspan:0,colspan:1};return this.spanCache[o]=t,t}}let s=1;for(let u=n+1;u<i.length;u++){const e=i[u];let n=!0;for(let i=0;i<=a;i++){const r=this.groupColumns[i];if(e[r]!==t[r]){n=!1;break}}if(!n)break;s++}const l={rowspan:s>1?s:1,colspan:1};return this.spanCache[o]=l,l},handleSelectionChange(t){this.selectedRows=t.filter(t=>!t._rowType),this.$emit("selection-change",this.selectedRows)},handleSortChange(t){this.sortProp=t.prop,this.sortOrder=t.order,this.$emit("sort-change",t)},handleSizeChange(t){this.$emit("size-change",t)},handleCurrentChange(t){this.$emit("page-change",t)},getSelection(){return this.selectedRows},clearSelection(){this.$refs.table&&this.$refs.table.clearSelection(),this.selectedRows=[]},clearSort(){this.sortProp=null,this.sortOrder=null,this.$nextTick(()=>{this.$refs.table&&this.$refs.table.$refs.innerTable&&this.$refs.table.$refs.innerTable.clearSort()})},toggleRowSelection(t,e){this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)},toggleRowsSelection(t,e){t&&t.length&&t.forEach(t=>{this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)})},doLayout(){this.$refs.table&&this.$refs.table.doLayout()}}},dr=hr,pr=(n("a092"),B(dr,Ji,tr,!1,null,"cc24a63e",null)),fr=pr.exports;fr.install=function(t){t.component(fr.name,fr)};var gr=fr,yr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-list",class:{"xt-list--loading":t.loading}},[t.title||t.filterable||t.sortable||t.$slots.toolbar?e("div",{staticClass:"xt-list__header"},[t.title?e("span",{staticClass:"xt-list__title"},[t._v(t._s(t.title))]):t._e(),e("div",{staticClass:"xt-list__toolbar"},[t.filterable?e("div",{staticClass:"xt-list__search"},[e("el-input",{attrs:{placeholder:t.filterPlaceholder,size:"small",clearable:"","prefix-icon":"el-icon-search"},on:{input:t.handleSearch},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}})],1):t._e(),t.sortable&&t.sortBy?e("el-button",{attrs:{size:"small",icon:"el-icon-sort",type:t.currentSortOrder?"primary":"default",plain:""},on:{click:t.handleSortToggle}},[t._v(" "+t._s(t.sortLabel)+" ")]):t._e(),t._t("toolbar")],2)]):t._e(),e("div",{ref:"scrollContainer",staticClass:"xt-list__body",style:t.bodyStyle,on:{scroll:t.onScroll}},[t.virtualScroll?e("div",{staticClass:"xt-list__phantom",style:{height:t.totalHeight+"px"}},[e("div",{style:{paddingTop:t.offsetY+"px"}},[t.groupedData.length?[t._l(t.visibleGroups,(function(n,i){return[e("div",{key:n._key,staticClass:"xt-list__group"},[e("div",{staticClass:"xt-list__group-title",on:{click:function(e){return t.toggleGroup(n._key)}}},[e("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":n._expanded}},[e("i",{staticClass:"el-icon-arrow-right"})]),t._t("group-title",(function(){return[e("span",{staticClass:"xt-list__group-label"},[t._v(t._s(t.getGroupLabel(n)))]),e("span",{staticClass:"xt-list__group-count"},[t._v("("+t._s(n._items.length)+")")])]}),{group:n,items:n._items,expanded:n._expanded})],2),n._expanded?e("div",{class:["xt-list__cards","xt-list__cols-"+t.columns]},t._l(t.getVisibleItems(n),(function(i,r){return e("div",{key:i._id||r,staticClass:"xt-list__item",on:{click:function(e){return t.handleItemClick(i,n._key)}}},[e("el-card",{attrs:{shadow:t.shadow,"body-style":t.cardBodyStyle}},[t._t("default",(function(){return[t.getImage(i)?e("div",{staticClass:"xt-list__image"},[e("img",{attrs:{src:t.getImage(i),alt:t.getConfigValue(t.cardConfig.title,i)}})]):t._e(),t.getTag(i)?e("div",{staticClass:"xt-list__tag"},[e("el-tag",{attrs:{size:"small",type:t.getTagType(i)}},[t._v(t._s(t.getTag(i)))])],1):t._e(),t.getConfigValue(t.cardConfig.title,i)?e("div",{staticClass:"xt-list__card-title"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.title,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.subtitle,i)?e("div",{staticClass:"xt-list__card-subtitle"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.subtitle,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.content,i)?e("div",{staticClass:"xt-list__card-content"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.content,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.footer,i)?e("div",{staticClass:"xt-list__card-footer"},[t._t("card-footer",(function(){return[t._v(" "+t._s(t.getConfigValue(t.cardConfig.footer,i))+" ")]}),{item:i,index:t.getItemIndex(i,n)})],2):t._e()]}),{item:i,index:t.getItemIndex(i,n),group:n})],2)],1)})),0):t._e()])]}))]:t.loading?t._e():e("div",{staticClass:"xt-list__empty"},[t._t("empty",(function(){return[e("span",[t._v(t._s(t.emptyText))])]}))],2)],2)]):t.groupedData.length?[t._l(t.groupedData,(function(n){return[e("div",{key:n._key,staticClass:"xt-list__group"},[e("div",{staticClass:"xt-list__group-title",on:{click:function(e){return t.toggleGroup(n._key)}}},[e("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":n._expanded}},[e("i",{staticClass:"el-icon-arrow-right"})]),t._t("group-title",(function(){return[e("span",{staticClass:"xt-list__group-label"},[t._v(t._s(t.getGroupLabel(n)))]),e("span",{staticClass:"xt-list__group-count"},[t._v("("+t._s(n._items.length)+")")])]}),{group:n,items:n._items,expanded:n._expanded})],2),n._expanded?e("div",{class:["xt-list__cards","xt-list__cols-"+t.columns]},t._l(n._items,(function(i,r){return e("div",{key:i._id||r,staticClass:"xt-list__item",on:{click:function(e){return t.handleItemClick(i,n._key)}}},[e("el-card",{attrs:{shadow:t.shadow,"body-style":t.cardBodyStyle}},[t._t("default",(function(){return[t.getImage(i)?e("div",{staticClass:"xt-list__image"},[e("img",{attrs:{src:t.getImage(i),alt:t.getConfigValue(t.cardConfig.title,i)}})]):t._e(),t.getTag(i)?e("div",{staticClass:"xt-list__tag"},[e("el-tag",{attrs:{size:"small",type:t.getTagType(i)}},[t._v(t._s(t.getTag(i)))])],1):t._e(),t.getConfigValue(t.cardConfig.title,i)?e("div",{staticClass:"xt-list__card-title"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.title,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.subtitle,i)?e("div",{staticClass:"xt-list__card-subtitle"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.subtitle,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.content,i)?e("div",{staticClass:"xt-list__card-content"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.content,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.footer,i)?e("div",{staticClass:"xt-list__card-footer"},[t._t("card-footer",(function(){return[t._v(" "+t._s(t.getConfigValue(t.cardConfig.footer,i))+" ")]}),{item:i,index:r})],2):t._e()]}),{item:i,index:r,group:n})],2)],1)})),0):t._e()])]}))]:t.loading?t._e():e("div",{staticClass:"xt-list__empty"},[t._t("empty",(function(){return[e("span",[t._v(t._s(t.emptyText))])]}))],2),t.loadMore&&t.hasMore&&!t.loading?e("div",{staticClass:"xt-list__loadmore"},[e("el-button",{attrs:{type:"text",loading:t.loadMoreLoading},on:{click:t.handleLoadMore}},[t._v(" "+t._s(t.loadMoreText)+" ")])],1):t._e()],2),t.loading?e("div",{staticClass:"xt-list__loading"},[t._t("loading",(function(){return[e("i",{staticClass:"el-icon-loading"}),e("span",[t._v("加载中...")])]}))],2):t._e(),t.showPagination?e("div",{staticClass:"xt-list__footer"},[e("el-pagination",{attrs:{background:"",small:"","current-page":t.pagination.pageNum,"page-size":t.pagination.pageSize,total:t.total,"page-sizes":t.pagination.pageSizes||[10,20,50],layout:"total, prev, pager, next"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])},vr=[];const mr=160,br=44;var xr={name:"XtList",props:{data:{type:Array,default:()=>[]},groupBy:{type:String,default:""},groupLabel:{type:[String,Function],default:""},cardConfig:{type:Object,default:()=>({title:"title",subtitle:"",content:"",image:"",tag:"",tagType:"",footer:""})},title:{type:String,default:""},columns:{type:Number,default:1},shadow:{type:String,default:"hover"},cardBodyStyle:{type:Object,default:()=>({})},virtualScroll:{type:Boolean,default:!1},itemHeight:{type:Number,default:mr},bufferSize:{type:Number,default:3},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},expandAll:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},pagination:{type:Object,default:null},total:{type:Number,default:0},loadMore:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},loadMoreText:{type:String,default:"加载更多"},loadMoreLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},filterable:{type:Boolean,default:!1},filterPlaceholder:{type:String,default:"请输入搜索内容"},filterMethod:{type:Function,default:null},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:""},sortOrder:{type:String,default:""},sortMethod:{type:Function,default:null}},data(){return{groupExpandState:{},scrollTop:0,containerHeight:0,resizeObserver:null,rafId:null,searchText:"",currentSortOrder:this.sortOrder||""}},computed:{showPagination(){return this.pagination&&this.total>0},sortLabel(){return this.currentSortOrder?"ascending"===this.currentSortOrder?"升序":"降序":"排序"},bodyStyle(){const t={};return this.height&&(t.height="number"===typeof this.height?this.height+"px":this.height),this.maxHeight&&(t.maxHeight="number"===typeof this.maxHeight?this.maxHeight+"px":this.maxHeight),this.virtualScroll&&(t.overflowY="auto",t.overflowX="hidden"),t},filteredData(){return this.filterable&&this.searchText?this.data.filter(t=>"function"===typeof this.filterMethod?this.filterMethod(t,this.searchText):Object.values(t).some(t=>null!=t&&String(t).toLowerCase().includes(this.searchText.toLowerCase()))):this.data},sortedData(){if(!this.sortable||!this.sortBy||!this.currentSortOrder)return this.filteredData;const t="ascending"===this.currentSortOrder?1:-1,e="function"===typeof this.sortMethod?this.sortMethod:(t,e)=>{const n=t[this.sortBy],i=e[this.sortBy];return null==n&&null==i?0:null==n?-1:null==i?1:"number"===typeof n&&"number"===typeof i?n-i:String(n).localeCompare(String(i),void 0,{numeric:!0})};return[...this.filteredData].sort((n,i)=>e(n,i)*t)},groupedData(){const t=this.sortedData;if(!t||!t.length)return[];if(!this.groupBy)return[{_key:"_default",_items:t.map((t,e)=>({...t,_id:t._id||"item_"+e})),_expanded:!0}];const e={};t.forEach((t,n)=>{const i=t[this.groupBy],r=null!=i?String(i):"_undefined";e[r]||(e[r]={_key:r,_value:i,_items:[]}),e[r]._items.push({...t,_id:t._id||"item_"+n})});const n=Object.keys(e).sort().map(t=>{const n=e[t];return n._expanded=void 0!==this.groupExpandState[t]?this.groupExpandState[t]:this.expandAll,n});return n},totalHeight(){if(!this.virtualScroll)return 0;let t=0;return this.groupedData.forEach(e=>{if(t+=br,e._expanded){const n=Math.ceil(e._items.length/this.columns);t+=n*this.itemHeight}}),t},visibleGroups(){if(!this.virtualScroll)return this.groupedData;const t=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight),e=t+this.containerHeight+this.bufferSize*this.itemHeight*2,n=[];let i=0;return this.groupedData.forEach(r=>{const a=br+(r._expanded?Math.ceil(r._items.length/this.columns)*this.itemHeight:0),o=i+a;o>=t&&i<=e&&n.push(r),i=o}),n},offsetY(){if(!this.virtualScroll)return 0;let t=0;const e=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight);for(let n=0;n<this.groupedData.length;n++){const i=this.groupedData[n],r=br+(i._expanded?Math.ceil(i._items.length/this.columns)*this.itemHeight:0);if(!(t+r<=e))break;t+=r}return t}},watch:{data:{handler(){this.$nextTick(()=>{this.updateContainerHeight()})}},expandAll(t){const e={};this.groupedData.forEach(n=>{e[n._key]=t}),this.groupExpandState=e}},mounted(){this.$nextTick(()=>{this.updateContainerHeight(),this.bindResizeObserver()})},beforeDestroy(){this.unbindResizeObserver(),this.rafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.rafId),this.rafId=null)},methods:{toggleGroup(t){const e={...this.groupExpandState},n=void 0!==e[t]?e[t]:this.expandAll;this.accordion&&!n&&Object.keys(e).forEach(t=>{e[t]=!1}),e[t]=!n,this.groupExpandState=e,this.$nextTick(()=>{this.updateContainerHeight(),this.$emit("group-toggle",{key:t,expanded:e[t]})})},getGroupLabel(t){return""===this.groupLabel?t._value:"function"===typeof this.groupLabel?this.groupLabel(t):"string"===typeof this.groupLabel&&t._items[0]&&t._items[0][this.groupLabel]||t._value},getConfigValue(t,e){return t?"function"===typeof t?t(e):"string"===typeof t&&e[t]||"":""},getImage(t){return this.getConfigValue(this.cardConfig.image,t)},getTag(t){return this.getConfigValue(this.cardConfig.tag,t)},getTagType(t){return this.cardConfig.tagType?"function"===typeof this.cardConfig.tagType?this.cardConfig.tagType(t):this.cardConfig.tagType:""},getVisibleItems(t){if(!this.virtualScroll)return t._items;const e=this.bufferSize*this.itemHeight,n=Math.max(0,this.scrollTop-e),i=n+this.containerHeight+2*e;let r=0,a=0;for(let u=0;u<this.groupedData.length;u++){const e=this.groupedData[u];if(e._key===t._key){a=r+br;break}r+=br+(e._expanded?Math.ceil(e._items.length/this.columns)*this.itemHeight:0)}const o=a+Math.ceil(t._items.length/this.columns)*this.itemHeight;if(o<=n||a>=i)return[];const s=Math.max(0,Math.floor((n-a)/this.itemHeight)*this.columns),l=Math.min(t._items.length,Math.ceil((i-a)/this.itemHeight)*this.columns+e);return t._items.slice(Math.max(0,s),l)},getItemIndex(t,e){return e._items.indexOf(t)},onScroll(){this.virtualScroll&&(this.scrollTop=this.$refs.scrollContainer.scrollTop,this.rafId||"undefined"!==typeof requestAnimationFrame&&(this.rafId=requestAnimationFrame(()=>{this.$forceUpdate(),this.rafId=null})))},updateContainerHeight(){this.$refs.scrollContainer&&(this.containerHeight=this.$refs.scrollContainer.clientHeight)},bindResizeObserver(){if("undefined"===typeof ResizeObserver)return;const t=this.$refs.scrollContainer;t&&(this.resizeObserver=new ResizeObserver(()=>{this.updateContainerHeight()}),this.resizeObserver.observe(t))},unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},handleSearch(){this.$emit("search",this.searchText)},handleSortToggle(){const t=["","ascending","descending"],e=t.indexOf(this.currentSortOrder);this.currentSortOrder=t[(e+1)%3],this.$emit("sort-change",{prop:this.sortBy,order:this.currentSortOrder})},handleItemClick(t,e){this.$emit("click-item",{item:t,groupKey:e})},handleLoadMore(){this.$emit("load-more")},handleSizeChange(t){this.$emit("size-change",t)},handleCurrentChange(t){this.$emit("page-change",t)},scrollToTop(){this.$refs.scrollContainer&&this.$refs.scrollContainer.scrollTo({top:0,behavior:"smooth"})},expandGroup(t){const e={...this.groupExpandState};e[t]=!0,this.groupExpandState=e},collapseGroup(t){const e={...this.groupExpandState};e[t]=!1,this.groupExpandState=e},collapseAll(){const t={};this.groupedData.forEach(e=>{t[e._key]=!1}),this.groupExpandState=t},expandAllGroups(){this.groupExpandState={}}}},_r=xr,wr=(n("732a"),B(_r,yr,vr,!1,null,"53c7db00",null)),Sr=wr.exports;Sr.install=function(t){t.component(Sr.name,Sr)};var Mr=Sr,Or=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-scroll-arrow",class:["xt-scroll-arrow--"+t.direction],style:t.containerStyle},[t.showLeftArrow?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--left",on:{click:t.scrollLeft}},[e("i",{staticClass:"el-icon-arrow-left"})]):t._e(),e("div",{ref:"scrollContainer",staticClass:"xt-scroll-arrow__content",on:{scroll:t.handleScroll,click:t.handleClick}},[t._t("default")],2),t.showRightArrow?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--right",on:{click:t.scrollRight}},[e("i",{staticClass:"el-icon-arrow-right"})]):t._e(),t.showTopArrow&&"vertical"===t.direction?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--top",on:{click:t.scrollTop}},[e("i",{staticClass:"el-icon-arrow-up"})]):t._e(),t.showBottomArrow&&"vertical"===t.direction?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--bottom",on:{click:t.scrollBottom}},[e("i",{staticClass:"el-icon-arrow-down"})]):t._e()])},Tr=[],Ir={name:"XtScrollArrow",props:{direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},scrollStep:{type:Number,default:100},autoHide:{type:Boolean,default:!0},height:{type:[String,Number],default:""},width:{type:[String,Number],default:""},appendMode:{type:Boolean,default:!1},clickMode:{type:Boolean,default:!1}},data(){return{showLeftArrow:!1,showRightArrow:!1,showTopArrow:!1,showBottomArrow:!1}},computed:{containerStyle(){const t={};return this.height&&(t.height="number"===typeof this.height?this.height+"px":this.height),this.width&&(t.width="number"===typeof this.width?this.width+"px":this.width),t}},watch:{direction(){this.$nextTick(()=>{this.checkScroll()})}},mounted(){this.$nextTick(()=>{this.checkScroll()}),this.addResizeObserver(),this.addMutationObserver()},beforeDestroy(){this.removeResizeObserver(),this.removeMutationObserver()},methods:{addResizeObserver(){if("undefined"!==typeof ResizeObserver){this.resizeObserver=new ResizeObserver(()=>{this.$nextTick(()=>{this.checkScroll()})});const t=this.$refs.scrollContainer;t&&this.resizeObserver.observe(t)}},removeResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect()},addMutationObserver(){if("undefined"!==typeof MutationObserver){this.mutationObserver=new MutationObserver(()=>{this.$nextTick(()=>{this.checkScroll(),this.appendMode&&this.scrollToEnd()})});const t=this.$refs.scrollContainer;t&&this.mutationObserver.observe(t,{childList:!0,subtree:!0})}},removeMutationObserver(){this.mutationObserver&&this.mutationObserver.disconnect()},checkScroll(){const t=this.$refs.scrollContainer;if(t)if("horizontal"===this.direction){const e=t.scrollLeft,n=t.scrollWidth,i=t.clientWidth,r=n-i;this.showTopArrow=!1,this.showBottomArrow=!1,this.autoHide?(this.showLeftArrow=e>0,this.showRightArrow=r>0&&e<r):(this.showLeftArrow=r>0,this.showRightArrow=r>0)}else{const e=t.scrollTop,n=t.scrollHeight,i=t.clientHeight,r=n-i;this.showLeftArrow=!1,this.showRightArrow=!1,this.autoHide?(this.showTopArrow=e>0,this.showBottomArrow=r>0&&e<r):(this.showTopArrow=r>0,this.showBottomArrow=r>0)}},handleScroll(){this.checkScroll(),this.$emit("scroll",this.$refs.scrollContainer)},handleClick(t){if(!this.clickMode)return;const e=this.$refs.scrollContainer;if(!e)return;const n=t.target;if(!n||n===e)return;const i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),a=r.left>=i.left&&r.right<=i.right&&r.top>=i.top&&r.bottom<=i.bottom;if(!a)if("horizontal"===this.direction){const t=n.offsetLeft-(e.clientWidth-r.width)/2;e.scrollTo({left:t,behavior:"smooth"})}else{const t=n.offsetTop-(e.clientHeight-r.height)/2;e.scrollTo({top:t,behavior:"smooth"})}},scrollLeft(){const t=this.$refs.scrollContainer;t&&t.scrollBy({left:-this.scrollStep,behavior:"smooth"})},scrollRight(){const t=this.$refs.scrollContainer;t&&t.scrollBy({left:this.scrollStep,behavior:"smooth"})},scrollTop(){const t=this.$refs.scrollContainer;t&&t.scrollBy({top:-this.scrollStep,behavior:"smooth"})},scrollBottom(){const t=this.$refs.scrollContainer;t&&t.scrollBy({top:this.scrollStep,behavior:"smooth"})},scrollToEnd(){const t=this.$refs.scrollContainer;t&&("horizontal"===this.direction?t.scrollTo({left:t.scrollWidth,behavior:"smooth"}):t.scrollTo({top:t.scrollHeight,behavior:"smooth"}))}}},Cr=Ir,Ar=B(Cr,Or,Tr,!1,null,null,null),kr=Ar.exports;kr.install=function(t){t.component(kr.name,kr)};var Dr=kr,Lr=function(){var t=this,e=t._self._c;return e("el-container",{staticClass:"page-container"},[e("el-container",{staticClass:"page-main"},[t.$slots.header&&t.showHeader?e("el-header",{ref:"header",class:{"page-header":t.$slots.aside},attrs:{height:""}},[t._t("header")],2):t._e(),e("el-main",{ref:"main",staticStyle:{padding:"0"}},[t._t("default",null,{tableHeight:t.calcHeight-t.tableBorderHeight})],2),t.$slots.footer&&t.showFooter?e("el-footer",{ref:"footer",attrs:{height:""}},[t._t("footer")],2):t._e()],1),t.$slots.aside&&t.showAside?e("el-aside",{ref:"aside",staticClass:"page-aside",attrs:{width:t.asideWidth}},[t._t("aside")],2):t._e(),t._t("dialog")],2)},Pr=[],jr={name:"XtPage",props:{showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showAside:{type:Boolean,default:!0},diffHeight:{type:Number,default:0},minHeight:{type:Number,default:200},tableBorderHeight:{type:Number,default:1},asideWidth:{type:String}},data(){return{tableHeight:360}},computed:{calcHeight(){return Math.max(this.tableHeight,this.minHeight)}},mounted(){this.$nextTick(()=>{this.doLayout(),window.onresize=()=>{this.doLayout()}})},methods:{doLayout(){this.$refs.main&&(this.tableHeight=this.$refs.main.$el.getBoundingClientRect().height-this.diffHeight-this.tableBorderHeight)}}},Nr=jr,Rr=(n("b1a2"),B(Nr,Lr,Pr,!1,null,"f74d3006",null)),Er=Rr.exports;Er.install=function(t){t.component(Er.name,Er)};var zr=Er,Br=function(){var t=this,e=t._self._c;return e("div",{staticClass:"el-select select-tree"},[e("el-popover",{ref:"elPopover",attrs:{transition:"el-zoom-in-top","popper-class":"select-tree__popover",trigger:"click",disabled:t.disabled,placement:t.placement,width:t.popoverWidth},on:{"after-enter":t.handleScroll,show:t.handleFocus,hide:t.handleBlur},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("el-scrollbar",{ref:"scrollbar",attrs:{"wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e("el-tree",{ref:"elTree",staticClass:"select-tree__list",style:{minWidth:t.minWidth+"px"},attrs:{"default-expand-keys":t.defaultExpandKeys,"show-checkbox":t.multiple,"expand-on-click-node":t.multiple,data:t.data,props:t.props,"node-key":t.propsValue,"default-expand-all":t.defaultExpandAll,"check-strictly":t.checkStrictly,lazy:t.lazy,load:t.load,"icon-class":t.iconClass,"highlight-current":t.highlightCurrent,indent:t.indent,accordion:t.accordion,"filter-node-method":t.filterNodeMethod,"auto-expand-parent":t.autoExpandParent,"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand},on:{"check-change":t.checkChange,"node-click":t.nodeClick},nativeOn:{transitionend:function(e){return t.$refs.elPopover.updatePopper()}},scopedSlots:t._u([{key:"default",fn:function({data:n}){return e("div",{staticClass:"select-tree__item",class:t.treeItemClass(n)},[t._v(" "+t._s(n[t.propsLabel])+" ")])}}])})],1),e("el-input",{ref:"reference",class:{"is-active":t.visible,"is-selected":t.selectedLabel},attrs:{slot:"reference",clearable:t.clearable,readonly:!t.filterable,"validate-event":!1,size:t.size,disabled:t.disabled,placeholder:t.query||t.placeholder},on:{input:t.getTreeFilter,clear:t.clear},slot:"reference",model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[e("i",{staticClass:"el-input__icon el-input__icon-arrow-down el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1)],1)},Vr=[],Fr=n("d010"),Hr=n.n(Fr),Gr=n("4010"),Wr={name:"XtSelectTree",mixins:[Hr.a],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{data:{type:Array,default(){return[]}},props:{type:Object,default:()=>({value:"value",label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf"})},checkStrictly:Boolean,nodeKey:String,defaultExpandAll:Boolean,lazy:Boolean,load:Function,iconClass:String,indent:Number,accordion:Boolean,filterNodeMethod:{type:Function,default(t,e,n){return!t||-1!==n.label.indexOf(t)}},autoExpandParent:{type:Boolean,default:!0},renderContent:Function,renderAfterExpand:Boolean,clearable:Boolean,placeholder:{type:String,default:"请选择"},placement:{type:String,default:"bottom-start"},size:{type:String,default:""},disabled:Boolean,highlightCurrent:{default:!0,type:Boolean},filterable:{type:Boolean,default:!0},multiple:Boolean,value:{type:[Number,String,Array],default:""},defaultValue:{type:[Number,String,Array],default:""},nodeAbleClick:{type:Function,default(){return(t,e)=>!0}},popoverWidth:Number,checkLeafOnly:{default:!1,type:Boolean},includeHalfChecked:{default:!1,type:Boolean}},data(){return{timer:null,selectedLabel:"",minWidth:0,visible:!1,query:""}},computed:{triggerEventImmediate(){return this.defaultValue==this.value},propsValue(){return this.nodeKey||this.props.value||"value"},propsLabel(){return this.props.label||"label"},propsIsLeaf(){return this.props.isLeaf||"isLeaf"},defaultExpandKeys(){return Array.isArray(this.value)?this.value:this.value||0===this.value?[this.value]:[]}},watch:{value:{handler(){this.setSelected(this.triggerEventImmediate),this.dispatch("ElFormItem","el.form.change")}},data(){this.setSelected()}},created(){if(this.multiple&&!Array.isArray(this.value))throw new Error("[select-tree] props value must be array if use multiple")},mounted(){this.$nextTick(()=>{this.setSelected()}),Object(Gr["addResizeListener"])(this.$el,this.handleResize)},beforeDestroy(){this.$el&&this.handleResize&&Object(Gr["removeResizeListener"])(this.$el,this.handleResize)},methods:{getTreeFilter(t){this.$refs.elTree&&this.$refs.elTree.filter(t)},handleFocus(){this.filterable&&(this.$refs.elTree.filter(""),this.query=this.selectedLabel,this.selectedLabel="")},handleBlur(){this.filterable&&(this.selectedLabel=this.query,this.$refs.reference.blur())},valueChange(t,e){this.$emit("change",t,e)},clear(){this.visible=!1,this.multiple?(this.valueChange([]),this.$nextTick(()=>{this.$refs.elTree.setCheckedKeys([])})):this.valueChange(""),this.$emit("clear")},handleScroll(){this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},nodeClick(t,e,n){const i=t[this.propsValue];this.nodeAbleClick(t,e)&&(this.valueChange(i,t),this.selectedLabel=t[this.propsLabel],this.multiple||t.disabled||(this.visible=!1))},checkChange(t,e,n){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{const t=this.$refs.elTree,e=this.checkLeafOnly,n=this.includeHalfChecked,i=t.getCheckedNodes(e,n),r=t.getCheckedKeys(e);this.valueChange(r,i),this.setMultipleSelectedLabel()},50)},setSelected(t){this.$nextTick(()=>{const e=this.$refs.elTree;if(this.multiple)e.setCheckedKeys(this.value),this.setMultipleSelectedLabel(),t&&this.checkChange();else if(this.value){const n=e.getNode(this.value);e.setCurrentKey(this.value),n&&n.visible&&!this.lazy&&(n.isLeaf?n.parent.expand():n.expand()),this.selectedLabel=n?n.data[this.propsLabel]:"",t&&this.valueChange(this.value,n)}else e.setCurrentKey(""),this.selectedLabel="",t&&this.valueChange("")})},setMultipleSelectedLabel(){const t=this.$refs.elTree,e=t.getCheckedNodes(!this.checkStrictly);this.selectedLabel=e.map(t=>t[this.propsLabel]).join(",")},treeItemClass(t){return{"is-selected":!this.multiple&&t[this.propsValue]===this.value,"is-disabled":t.disabled}},handleResize(){this.minWidth=this.$el.clientWidth-2},getNodeById(t){return this.$refs.elTree.getNode(t)}}},Yr=Wr,Ur=(n("439a"),n("916e"),B(Yr,Br,Vr,!1,null,"962f42c0",null)),Xr=Ur.exports;Xr.install=function(t){t.component(Xr.name,Xr)};var $r=Xr,Zr=function(){var t=this,e=t._self._c;return e("BaseFlexBox",{attrs:{type:"inline-flex",gap:"5px"}},[t.action?e("el-upload",{ref:"uploadFile",attrs:{disabled:t.disabled||t.uploading,action:t.YSSQP+t.action,"file-list":t.fileList,data:{accessToken:t.accessToken,...t.data},multiple:t.multiple,limit:t.limit,"on-success":t.uploadSuccess,"show-file-list":!1,"auto-upload":t.autoUpload,"before-upload":t.uploadBefore,accept:".jpg,.jpeg,.png"}},[e("i",{staticClass:"el-icon-camera",staticStyle:{"font-size":"20px",padding:"20px",background:"#f0f0f1",color:"#409EFF"},style:{padding:t.plusPx/2+"px",cursor:t.disabled?"not-allowed":"pointer"}})]):t._e(),null!==t.fileList&&t.fileList.length>0?e("BaseFlexBox",{staticClass:"el-upload-list el-upload-list--picture-card",staticStyle:{flex:"1"},attrs:{gap:"5px",wrap:"wrap"}},t._l(t.fileList,(function(n,i){return e("li",{key:i,staticClass:"el-upload-list__item is-ready",staticStyle:{margin:"0",width:"62px",height:"62px"},style:{width:t.plusPx+22+"px",height:t.plusPx+22+"px"}},[e("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.YSSQP+"/"+n,alt:""},on:{click:t.clickHandler}}),e("span",{staticClass:"el-upload-list__item-actions",on:{click:function(e){return t.preShowPicture(n,i)}}},[e("span",{staticClass:"el-upload-list__item-preview",on:{click:function(e){return e.stopPropagation(),t.preShowPicture(n,i)}}},[e("i",{staticClass:"el-icon-zoom-in"})]),t.uploading||t.disabled?t._e():e("span",{staticClass:"el-upload-list__item-delete",staticStyle:{"margin-left":"0"},on:{click:function(e){return e.stopPropagation(),t.handleRemove(i)}}},[e("i",{staticClass:"el-icon-delete"})])])],1)})),0):t._e(),t.preview?[t.previewVisible?e("ImageViewer",{attrs:{"z-index":3e3,"base-url":t.baseUrl+"/",infiniteLoop:!1,"initial-index":t.imageIndex,"url-list":t.allFileList||t.fileList,"on-close":t.closeViewer}}):t._e()]:t._e()],2)},qr=[],Kr=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"viewer-fade"}},[e("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":t.zIndex},attrs:{tabindex:"-1"}},[e("div",{staticClass:"el-image-viewer__mask",on:{click:t.hide}}),e("span",{staticClass:"el-image-viewer__btn fix_close",on:{click:t.hide}},[e("i",{staticClass:"el-icon-close"})]),t.isSingle?t._e():[e("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[e("i",{staticClass:"el-icon-arrow-left"})]),e("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[e("i",{staticClass:"el-icon-arrow-right"})])],e("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[e("div",{staticClass:"el-image-viewer__actions__inner"},[e("i",{staticClass:"el-icon-zoom-out",on:{click:function(e){return e.stopPropagation(),t.handleActions("zoomOut")}}}),e("i",{staticClass:"el-icon-zoom-in",on:{click:function(e){return e.stopPropagation(),t.handleActions("zoomIn")}}}),e("i",{staticClass:"el-image-viewer__actions__divider"}),e("i",{class:t.mode.icon,on:{click:function(e){return e.stopPropagation(),t.toggleMode.apply(null,arguments)}}}),e("i",{staticClass:"el-image-viewer__actions__divider"}),e("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){return e.stopPropagation(),t.handleActions("anticlocelise")}}}),e("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){return e.stopPropagation(),t.handleActions("clocelise")}}})])]),e("div",{staticClass:"el-image-viewer__canvas"},t._l(t.urlList,(function(n,i){return i===t.index?e("img",{key:n,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()})),0)],2)])},Qr=[],Jr=n("8bbf"),ta=n.n(Jr);const ea=ta.a.prototype.$isServer,na=(ea||Number(document.documentMode),function(){return!ea&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}()),ia=function(){return!ea&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}();let ra=t=>{var e={};return t&&"[object Function]"===e.toString.call(t)};"object"===typeof Int8Array||!ta.a.prototype.$isServer&&"function"===typeof document.childNodes||(ra=function(t){return"function"===typeof t||!1});Object.prototype.hasOwnProperty;const aa=function(){return!ta.a.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function oa(t){let e=!1;return function(...n){e||(e=!0,window.requestAnimationFrame(i=>{t.apply(this,n),e=!1}))}}const sa={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},la=aa()?"DOMMouseScroll":"mousewheel";var ua={name:"elImageViewer",props:{baseUrl:{type:String,default:""},urlList:{type:Array,default:()=>[]},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}},initialIndex:{type:Number,default:0},infiniteLoop:{type:Boolean,default:!0}},data(){return{index:this.initialIndex,isShow:!1,infinite:this.infiniteLoop,loading:!1,mode:sa.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return 0===this.index},isLast(){return this.index===this.urlList.length-1},currentImg(){return this.baseUrl+this.urlList[this.index]},imgStyle(){const{scale:t,deg:e,offsetX:n,offsetY:i,enableTransition:r}=this.transform,a={transform:`scale(${1*t}) rotate(${e}deg)`,transition:r?"transform .3s":"","margin-left":n+"px","margin-top":i+"px"};return this.mode===sa.CONTAIN&&(a.maxWidth=a.maxHeight="80%"),a}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},currentImg(t){this.$nextTick(t=>{const e=this.$refs.img[0];e.complete||(this.loading=!0)})}},methods:{hide(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall(){this._keyDownHandler=oa(t=>{const e=t.keyCode;switch(e){case 27:this.hide();break;case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}}),this._mouseWheelHandler=oa(t=>{const e=t.wheelDelta?t.wheelDelta:-t.detail;e>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),na(document,"keydown",this._keyDownHandler),na(document,la,this._mouseWheelHandler)},deviceSupportUninstall(){ia(document,"keydown",this._keyDownHandler),ia(document,la,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(t){this.loading=!1},handleImgError(t){this.loading=!1,t.target.alt="加载失败"},handleMouseDown(t){if(this.loading||0!==t.button)return;const{offsetX:e,offsetY:n}=this.transform,i=t.pageX,r=t.pageY;this._dragHandler=oa(t=>{this.transform.offsetX=e+t.pageX-i,this.transform.offsetY=n+t.pageY-r}),na(document,"mousemove",this._dragHandler),na(document,"mouseup",t=>{ia(document,"mousemove",this._dragHandler)}),t.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const t=Object.keys(sa),e=Object.values(sa),n=e.indexOf(this.mode),i=(n+1)%t.length;this.mode=sa[t[i]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index-1+t)%t},next(){if(this.isLast&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index+1)%t},handleActions(t,e={}){if(this.loading)return;const{zoomRate:n,rotateDeg:i,enableTransition:r}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...e},{transform:a}=this;switch(t){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-n).toFixed(3)));break;case"zoomIn":a.scale<10&&(a.scale=parseFloat((a.scale+n).toFixed(3)));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i;break}a.enableTransition=r}},mounted(){this.deviceSupportInstall(),this.$refs["el-image-viewer__wrapper"].focus()}},ca=ua,ha=(n("2c86"),B(ca,Kr,Qr,!1,null,"236adf7f",null)),da=ha.exports,pa={name:"XtUpload",components:{ImageViewer:da},model:{prop:"src",event:"change"},props:{data:{type:Object,default:()=>({})},src:{type:String,default:"",required:!0},accessToken:{type:String,default:""},autoUpload:{type:Boolean,default:!0},action:{type:String,default:""},baseUrl:{type:String,default:""},multiple:{type:Boolean,default:!1},accept:{type:String,default:".jpg,.jpeg,.png"},limit:{type:Number,default:5},disabled:{type:Boolean,default:!1},size:{type:String,default:""},beforeEmitData:{type:Function,default:(t,e,n)=>200==t.code&&(t.data.Result?t.data.Data:t.data[0])},allFileList:{type:Array}},data(){return{YSSQP:this.baseUrl,previewVisible:!1,uploading:!1,imageUrl:"",fileList:[],imageIndex:0}},computed:{preview(){const{fileList:t}=this;return Array.isArray(t)&&t.length>0},plusPx(){const t="big"==this.size?100:20;return 2*t}},watch:{src:{immediate:!0,deep:!0,handler(t){this.fileList=t?t.split(","):[]}}},methods:{clickHandler(){this.preview&&(this.previewVisible=!0)},closeViewer(){this.previewVisible=!1},preShowPicture(t,e){if(this.allFileList&&0!=this.allFileList.length){const n=this.allFileList.findIndex(e=>e==t);this.imageIndex=n>-1?n:e}else this.imageIndex=e;t.indexOf(".pdf")>-1?window.open(t,"_blank"):(this.imageUrl=this.baseUrl+"/"+t,this.previewVisible=!0)},handleRemove(t,e){try{this.fileList.splice(t,1),this.$emit("change",this.fileList.join(","))}catch(n){console.log(n)}},getPathName(t){return t.split("/").pop().split(".")[0]},uploadBefore(t,e){console.log(t);const n="image/jpeg"===t.type||"image/jpg"===t.type||"image/png"===t.type||"application/pdf"===t.type,i=t.size/1024/1024<50;return n||this.$message.error("上传图片只能是jpg,jpeg,png,pdf格式!"),i||this.$message.error("上传图片大小不能超过50MB!"),n&&i},uploadSuccess(t,e,n){const i=this.beforeEmitData(t,e,n);if(i)return this.fileList.push(i),this.$emit("change",this.fileList.join(",")),this.$message({message:"上传成功",center:!0,type:"success"}),t.data[0];this.$message({message:"上传失败",center:!0,type:"error"})}}},fa=pa,ga=B(fa,Zr,qr,!1,null,null,null),ya=ga.exports;ya.install=function(t){t.component(ya.name,ya)};var va=ya;function ma(t=1e4){const e=["研发部","产品部","运营部","财务部","市场部"],n=["工程师","产品经理","运营专员","财务主管","市场经理"],i=["在职","休假","离职"];return Array.from({length:t},(t,r)=>({id:r+1,name:"用户"+(r+1),department:e[r%e.length],position:n[r%n.length],email:`user${r+1}@example.com`,phone:"13800138"+String(r).padStart(4,"0"),address:`北京市朝阳区第${r+1}号街道`,salary:5e3+Math.floor(1e4*Math.random()),status:i[r%i.length]}))}const ba=[{prop:"id",label:"ID",fixed:"left",width:80},{prop:"name",label:"姓名",fixed:"left",width:120},{prop:"department",label:"部门",width:150},{prop:"position",label:"职位",width:150},{prop:"email",label:"邮箱",width:200},{prop:"phone",label:"电话",width:130},{prop:"address",label:"地址",width:200},{prop:"salary",label:"薪资",width:120},{prop:"status",label:"状态",fixed:"right",width:100}],xa=j.default||j,{getConfig:_a,setConfig:wa,getTheme:Sa,getSize:Ma,getPrimaryColor:Oa,resetConfig:Ta,onConfigChange:Ia,setTheme:Ca,setSize:Aa,setPrimaryColor:ka}=xa,Da=[H,Z,nt,ut,yt,Mt,Dt,Ht,ee,ne,Je,sn,fn,_n,Cn,Fn,$n,ci,Fi,Qi,gr,Mr,Dr,mi,Mi,ki,Ri,zr,$r,va],La=function(t,e={}){La.installed||(La.installed=!0,Da.forEach(e=>{t.component(e.name,e)}),t.prototype.$xt={setTheme:Ca,setSize:Aa,setPrimaryColor:ka,getConfig:_a,setConfig:wa,getTheme:Sa,getSize:Ma,getPrimaryColor:Oa,resetConfig:Ta,onConfigChange:Ia},e&&(void 0!==e.theme&&Ca(e.theme),void 0!==e.size&&Aa(e.size),void 0!==e.primaryColor&&ka(e.primaryColor),void 0!==e.config&&wa(e.config)))};"undefined"!==typeof window&&window.Vue&&La(window.Vue);var Pa={install:La,components:Da,XtButton:H,XtInput:Z,XtFlexBox:nt,XtCard:ut,XtCardItem:yt,XtConfigProvider:Mt,XtText:Dt,XtTime:Ht,XtStepPrice:ee,XtStepPriceItem:ne,XtMap:Je,XtMapProvider:sn,XtGridBox:fn,XtGridItem:_n,XtProgress:Cn,XtTabs:Fn,XtBadge:$n,XtDatePicker:ci,XtIcon:Qi,XtTable:gr,XtList:Mr,XtScrollArrow:Dr,XtBar:mi,XtLine:Mi,XtPie:ki,XtMulti:Ri,XtPage:zr,XtSelectTree:$r,XtUpload:va};e["default"]=Pa},fb36:function(t,e,n){var i=n("b8f9"),r=n("c8d5");function a(t,e){var n=r(t),a=r(e),o=n.getFullYear()-a.getFullYear(),s=i(n)-i(a);return 4*o+s}t.exports=a},fb98:function(t,e,n){var i=n("1cc6");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},fbaf:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMinutes(0,0,0),e}t.exports=r},fc76:function(t,e,n){},fcb3:function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e);return i(t,12*n)}t.exports=r},fd39:function(t,e,n){var i=n("0978");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r}})}));
34
+ var i=n("1fb5"),r=n("9152"),a=n("e3db");function o(){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()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return c(this,t,e,n)}function c(t,e,n,i){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?y(t,e,n,i):"string"===typeof e?f(t,e,n):v(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e,n,i){return h(e),e<=0?l(t,e):void 0!==n?"string"===typeof i?l(t,e).fill(n,i):l(t,e).fill(n):l(t,e)}function p(t,e){if(h(e),t=l(t,e<0?0:0|m(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|x(e,n);t=l(t,i);var r=t.write(e,n);return r!==i&&(t=t.slice(0,r)),t}function g(t,e){var n=e.length<0?0:0|m(e.length);t=l(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function y(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function v(t,e){if(u.isBuffer(e)){var n=0|m(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&a(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function x(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 i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(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(i)return q(t).length;e=(""+e).toLowerCase(),i=!0}}function _(t,e,n){var i=!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 E(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function w(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function S(t,e,n,i,r){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:M(t,e,n,i,r);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):M(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function M(t,e,n,i,r){var a,o=1,s=t.length,l=e.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,s/=2,l/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var c=-1;for(a=n;a<s;a++)if(u(t,a)===u(e,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var h=!0,d=0;d<l;d++)if(u(t,a+d)!==u(e,d)){h=!1;break}if(h)return a}return-1}function O(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var a=e.length;if(a%2!==0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function T(t,e,n,i){return tt(q(e,t.length-n),t,n,i)}function I(t,e,n,i){return tt(K(e),t,n,i)}function C(t,e,n,i){return I(t,e,n,i)}function A(t,e,n,i){return tt(J(e),t,n,i)}function k(t,e,n,i){return tt(Q(e,t.length-n),t,n,i)}function D(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);var i=[],r=e;while(r<n){var a,o,s,l,u=t[r],c=null,h=u>239?4:u>223?3:u>191?2:1;if(r+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:a=t[r+1],128===(192&a)&&(l=(31&u)<<6|63&a,l>127&&(c=l));break;case 3:a=t[r+1],o=t[r+2],128===(192&a)&&128===(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:a=t[r+1],o=t[r+2],s=t[r+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return j(i)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),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 d(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,i=e.length,r=0,a=Math.min(n,i);r<a;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!a(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=u.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},u.byteLength=x,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?L(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,i,r){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===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,r>>>=0,this===t)return 0;for(var a=r-i,o=n-e,s=Math.min(a,o),l=this.slice(i,r),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){a=l[h],o=c[h];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},u.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return O(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return I(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function j(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",i=0;while(i<e)n+=String.fromCharCode.apply(String,t.slice(i,i+=P));return n}function N(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function R(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function E(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=e;a<n;++a)r+=Z(t[a]);return r}function z(t,e,n){for(var i=t.slice(e,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function B(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function V(t,e,n,i,r,a){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<a)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function F(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r<a;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function H(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r<a;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function G(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,i,a){return a||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),r.write(t,e,n,i,23,4),n+4}function Y(t,e,n,i,a){return a||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),r.write(t,e,n,i,52,8),n+8}u.prototype.slice=function(t,e){var n,i=this.length;if(t=~~t,e=void 0===e?i:~~e,t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var r=e-t;n=new u(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return i},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);var i=this[t+--e],r=1;while(e>0&&(r*=256))i+=this[t+--e]*r;return i},u.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||B(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||B(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||B(t,e,this.length);var i=this[t],r=1,a=0;while(++a<e&&(r*=256))i+=this[t+a]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||B(t,e,this.length);var i=e,r=1,a=this[t+--i];while(i>0&&(r*=256))a+=this[t+--i]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*e)),a},u.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||B(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||B(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||B(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||B(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||B(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;V(this,t,e,n,r,0)}var a=1,o=0;this[e]=255&t;while(++o<n&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;V(this,t,e,n,r,0)}var a=n-1,o=1;this[e+a]=255&t;while(--a>=0&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||V(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||V(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||V(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||V(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,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);V(this,t,e,n,r-1,-r)}var a=0,o=1,s=0;this[e]=255&t;while(++a<n&&(o*=256))t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);V(this,t,e,n,r-1,-r)}var a=n-1,o=1,s=0;this[e+a]=255&t;while(--a>=0&&(o*=256))t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/o>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||V(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||V(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):F(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||V(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):F(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||V(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||V(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 W(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return Y(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return Y(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,a=i-n;if(this===t&&n<e&&e<i)for(r=a-1;r>=0;--r)t[r+e]=this[r+n];else if(a<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},u.prototype.fill=function(t,e,n,i){if("string"===typeof t){if("string"===typeof e?(i=e,e=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!u.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(a=e;a<n;++a)this[a]=t;else{var o=u.isBuffer(t)?t:q(new u(t,i).toString()),s=o.length;for(a=0;a<n-e;++a)this[a+e]=o[a%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function X(t){if(t=$(t).replace(U,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function $(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var n;e=e||1/0;for(var i=t.length,r=null,a=[],o=0;o<i;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.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;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function K(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Q(t,e){for(var n,i,r,a=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i)}return a}function J(t){return i.toByteArray(X(t))}function tt(t,e,n,i){for(var r=0;r<i;++r){if(r+n>=e.length||r>=t.length)break;e[r+n]=t[r]}return r}function et(t){return t!==t}}).call(this,n("c8ba"))},b78a:function(t,e,n){var i=n("c8d5"),r=n("8946");function a(t,e,n){var a=n&&Number(n.weekStartsOn)||0,o=i(t),s=Number(e),l=o.getDay(),u=s%7,c=(u+7)%7,h=(c<a?7:0)+s-l;return r(o,h)}t.exports=a},b8a7:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}t.exports=r},b8f9:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=Math.floor(e.getMonth()/3)+1;return n}t.exports=r},badb:function(t,e,n){var i=n("ec1f");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},bb7c:function(t,e,n){var i=n("c873"),r=n("c8d5"),a=n("e13a"),o=n("52cf"),s=1440,l=43200,u=525600;function c(t,e,n){var c=n||{},h=i(t,e),d=c.locale,p=o.distanceInWords.localize;d&&d.distanceInWords&&d.distanceInWords.localize&&(p=d.distanceInWords.localize);var f,g,y,v={addSuffix:Boolean(c.addSuffix),comparison:h};h>0?(f=r(t),g=r(e)):(f=r(e),g=r(t));var m,b,x,_,w=Math[c.partialMethod?String(c.partialMethod):"floor"],S=a(g,f),M=g.getTimezoneOffset()-f.getTimezoneOffset(),O=w(S/60)-M;if(y=c.unit?String(c.unit):O<1?"s":O<60?"m":O<s?"h":O<l?"d":O<u?"M":"Y","s"===y)return p("xSeconds",S,v);if("m"===y)return p("xMinutes",O,v);if("h"===y)return m=w(O/60),p("xHours",m,v);if("d"===y)return b=w(O/s),p("xDays",b,v);if("M"===y)return x=w(O/l),p("xMonths",x,v);if("Y"===y)return _=w(O/u),p("xYears",_,v);throw new Error("Unknown unit: "+y)}t.exports=c},c2b5:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getDay();return n}t.exports=r},c4c2:function(t,e,n){var i=n("c8d5");function r(t,e,n){var r=i(t),a=i(e),o=void 0!==n?n:1,s=a.getTime();if(r.getTime()>s)throw new Error("The first date cannot be after the second date");var l=[],u=r;u.setHours(0,0,0,0);while(u.getTime()<=s)l.push(i(u)),u.setDate(u.getDate()+o);return l}t.exports=r},c4f9:function(t,e,n){var i=n("0978");function r(t){var e=new Date;return e.setDate(e.getDate()-1),i(t).getTime()===i(e).getTime()}t.exports=r},c589:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMinutes();return n}t.exports=r},c6ae:function(t,e,n){var i=n("2299");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},c7ce:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),a=r.getDay(),o=(a<n?7:0)+a-n;return r.setDate(r.getDate()-o),r.setHours(0,0,0,0),r}t.exports=r},c839:function(t,e,n){},c873:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=n.getTime(),a=i(e),o=a.getTime();return r>o?-1:r<o?1:0}t.exports=r},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},c8d5:function(t,e,n){var i=n("5465"),r=n("a735"),a=36e5,o=6e4,s=2,l=/[T ]/,u=/:/,c=/^(\d{2})$/,h=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],d=/^(\d{4})/,p=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],f=/^-(\d{2})$/,g=/^-?(\d{3})$/,y=/^-?(\d{2})-?(\d{2})$/,v=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,b=/^(\d{2}([.,]\d*)?)$/,x=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,_=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,S=/^(Z)$/,M=/^([+-])(\d{2})$/,O=/^([+-])(\d{2}):?(\d{2})$/;function T(t,e){if(r(t))return new Date(t.getTime());if("string"!==typeof t)return new Date(t);var n=e||{},a=n.additionalDigits;a=null==a?s:Number(a);var l=I(t),u=C(l.date,a),c=u.year,h=u.restDateString,d=A(h,c);if(d){var p,f=d.getTime(),g=0;if(l.time&&(g=k(l.time)),l.timezone)p=D(l.timezone)*o;else{var y=f+g,v=new Date(y);p=i(v);var m=new Date(y);m.setDate(v.getDate()+1);var b=i(m)-i(v);b>0&&(p+=b)}return new Date(f+g+p)}return new Date(t)}function I(t){var e,n={},i=t.split(l);if(u.test(i[0])?(n.date=null,e=i[0]):(n.date=i[0],e=i[1]),e){var r=w.exec(e);r?(n.time=e.replace(r[1],""),n.timezone=r[1]):n.time=e}return n}function C(t,e){var n,i=h[e],r=p[e];if(n=d.exec(t)||r.exec(t),n){var a=n[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(n=c.exec(t)||i.exec(t),n){var o=n[1];return{year:100*parseInt(o,10),restDateString:t.slice(o.length)}}return{year:null}}function A(t,e){if(null===e)return null;var n,i,r,a;if(0===t.length)return i=new Date(0),i.setUTCFullYear(e),i;if(n=f.exec(t),n)return i=new Date(0),r=parseInt(n[1],10)-1,i.setUTCFullYear(e,r),i;if(n=g.exec(t),n){i=new Date(0);var o=parseInt(n[1],10);return i.setUTCFullYear(e,0,o),i}if(n=y.exec(t),n){i=new Date(0),r=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return i.setUTCFullYear(e,r,s),i}if(n=v.exec(t),n)return a=parseInt(n[1],10)-1,L(e,a);if(n=m.exec(t),n){a=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return L(e,a,l)}return null}function k(t){var e,n,i;if(e=b.exec(t),e)return n=parseFloat(e[1].replace(",",".")),n%24*a;if(e=x.exec(t),e)return n=parseInt(e[1],10),i=parseFloat(e[2].replace(",",".")),n%24*a+i*o;if(e=_.exec(t),e){n=parseInt(e[1],10),i=parseInt(e[2],10);var r=parseFloat(e[3].replace(",","."));return n%24*a+i*o+1e3*r}return null}function D(t){var e,n;return e=S.exec(t),e?0:(e=M.exec(t),e?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=O.exec(t),e?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0))}function L(t,e,n){e=e||0,n=n||0;var i=new Date(0);i.setUTCFullYear(t,0,4);var r=i.getUTCDay()||7,a=7*e+n+1-r;return i.setUTCDate(i.getUTCDate()+a),i}t.exports=T},c980:function(t,e,n){var i=n("c8d5");function r(t){return 3===i(t).getDay()}t.exports=r},cb96:function(t,e,n){var i=n("c8d5");function r(t,e){var n=e&&Number(e.weekStartsOn)||0,r=i(t),a=r.getDay(),o=6+(a<n?-7:0)-(a-n);return r.setHours(0,0,0,0),r.setDate(r.getDate()+o),r}t.exports=r},cc64:function(t,e,n){var i=n("ccce");function r(t){return i(new Date,t)}t.exports=r},ccce:function(t,e,n){var i=n("1baf");function r(t,e){return i(t,e,{weekStartsOn:1})}t.exports=r},ce3d:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth(),r=n-n%3+3;return e.setMonth(r,0),e.setHours(0,0,0,0),e}t.exports=r},d010:function(t,e,n){"use strict";function i(t,e,n){this.$children.forEach((function(r){var a=r.$options.componentName;a===t?r.$emit.apply(r,[e].concat(n)):i.apply(r,[t,e].concat([n]))}))}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){var i=this.$parent||this.$root,r=i.$options.componentName;while(i&&(!r||r!==t))i=i.$parent,i&&(r=i.$options.componentName);i&&i.$emit.apply(i,[e].concat(n))},broadcast:function(t,e,n){i.call(this,t,e,n)}}}},d2ed:function(t,e,n){var i=n("e785"),r=36e5;function a(t,e){var n=i(t,e)/r;return n>0?Math.floor(n):Math.ceil(n)}t.exports=a},d420:function(t,e,n){var i=n("0978"),r=6e4,a=864e5;function o(t,e){var n=i(t),o=i(e),s=n.getTime()-n.getTimezoneOffset()*r,l=o.getTime()-o.getTimezoneOffset()*r;return Math.round((s-l)/a)}t.exports=o},d473:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=Number(e);return n.setMilliseconds(r),n}t.exports=r},d4ae:function(t,e,n){var i=n("f5dd");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},d51b:function(t,e,n){"use strict";var i=function(){function t(t){this.value=t}return t}(),r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(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}(),a=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,a=null;if(null==r[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete r[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return a},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"]=a},d67a:function(t,e,n){},d6f8:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}t.exports=r},d728:function(t,e,n){"use strict";n("71f3")},d975:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}t.exports=r},dddf:function(t,e,n){var i=n("acc4");function r(t){return i(t)?366:365}t.exports=r},de13:function(t,e,n){var i=n("8964"),r=n("b4c7");function a(t){var e=i(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var a=r(n);return a.setDate(a.getDate()-1),a}t.exports=a},df35:function(t,e,n){var i=n("27a1");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e13a:function(t,e,n){var i=n("e785");function r(t,e){var n=i(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},e1ca:function(t,e,n){var i=n("7a83");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e2ff:function(t,e,n){var i=n("8946");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e51d:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate(),r=new Date(0);return r.setFullYear(e,n,i-1),r.setHours(23,59,59,999),r}t.exports=n},e620:function(t,e,n){var i=n("c6ae");function r(t){return i(new Date,t)}t.exports=r},e73d:function(t,e,n){var i=n("c8d5"),r=n("81fc");function a(t,e){var n=i(t),a=Number(e),o=r(n)-a;return n.setDate(n.getDate()-7*o),n}t.exports=a},e785:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t),r=i(e);return n.getTime()-r.getTime()}t.exports=r},e830:function(t,e,n){var i=n("90e5");function r(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],l=["am","pm"],u=["a.m.","p.m."],c={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return r[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?s[1]:s[0]},a:function(t){return t.getHours()/12>=1?l[1]:l[0]},aa:function(t){return t.getHours()/12>=1?u[1]:u[0]}},h=["M","D","DDD","d","Q","W"];return h.forEach((function(t){c[t+"o"]=function(e,n){return a(n[t](e))}})),{formatters:c,formattingTokensRegExp:i(c)}}function a(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}t.exports=r},e895:function(t,e,n){},e96b:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setSeconds(0,0),e}t.exports=r},eaa5:function(t,e,n){var i=n("c8d5");function r(t,e,n,r){var a=i(t).getTime(),o=i(e).getTime(),s=i(n).getTime(),l=i(r).getTime();if(a>o||s>l)throw new Error("The start of the range cannot be after the end of the range");return a<l&&s<o}t.exports=r},ec1f:function(t,e,n){var i=n("c8d5");function r(t,e){var n=i(t).getTime(),r=Number(e);return new Date(n+r)}t.exports=r},eca2:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}t.exports=r},ee91:function(t,e,n){var i=n("3bc7");function r(t,e){var n=i(t,e)/7;return n>0?Math.floor(n):Math.ceil(n)}t.exports=r},f564:function(t,e,n){var i=n("e96b");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r},f56a:function(t,e,n){var i=n("c8d5");function r(t,e,n){var r=i(t).getTime(),a=i(e).getTime(),o=i(n).getTime();if(a>o)throw new Error("The start of the range cannot be after the end of the range");return r>=a&&r<=o}t.exports=r},f5dd:function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e),r=3*n;return i(t,r)}t.exports=r},f66d:function(t,e,n){var i=n("26d5");function r(t){return i(new Date,t)}t.exports=r},f9ff:function(t,e,n){var i=n("8964");function r(t,e){return i(t)-i(e)}t.exports=r},fa76:function(t,e,n){var i=n("c8d5"),r=n("8946"),a=n("84b9");function o(t,e){var n=i(t),o=Number(e),s=a(n),l=o-s;return r(n,l)}t.exports=o},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"XtChart",(function(){return Fi})),n.d(e,"createVirtualScrollData",(function(){return ma})),n.d(e,"virtualScrollColumns",(function(){return ba})),n.d(e,"utils",(function(){return xa})),n.d(e,"variables",(function(){return o.a})),n.d(e,"getConfig",(function(){return _a})),n.d(e,"setConfig",(function(){return wa})),n.d(e,"getTheme",(function(){return Sa})),n.d(e,"getSize",(function(){return Ma})),n.d(e,"getPrimaryColor",(function(){return Oa})),n.d(e,"resetConfig",(function(){return Ta})),n.d(e,"onConfigChange",(function(){return Ia})),n.d(e,"setTheme",(function(){return Ca})),n.d(e,"setSize",(function(){return Aa})),n.d(e,"setPrimaryColor",(function(){return ka})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("72fa"),n("d67a");var a=n("ad4d"),o=n.n(a),s={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},valueAxis:{axisLabel:{color:"#666666"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",borderColor:"#dcdfe6",textStyle:{color:"#333333"},trigger:"axis"}},l={color:["#1060ff","#6648fe","#26ddff","#1bae94","#ff8041","#3a5dca","#c7dd4b"],backgroundColor:"#000",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#ffffff",fontSize:16},subtextStyle:{color:"#ffffff",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#ffffff"}},radar:{indicator:{color:"#ffffff"}},map:{label:{color:"#ffffff"},itemStyle:{borderColor:"#dcdfe6"}},valueAxis:{axisLabel:{color:"#ffffff"}},categoryAxis:{axisLabel:{color:"#ffffff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#ffffff"}},xAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},yAxis:{axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#666666","#666666"]}},legend:{textStyle:{color:"#ffffff"}},tooltip:{backgroundColor:"#333333",borderWidth:1,borderColor:"#dcdfe6",textStyle:{color:"#fff"}},trigger:"axis"};const u={default:s,white:s,dark:l};let c=null;function h(){if(!c&&"undefined"!==typeof window)try{c=n("313e");for(const t in u)c.registerTheme(t,u[t])}catch(t){console.warn("[XtChart] echarts 加载失败:",t.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function p(){}function f(t,e){if(null==e)return t;if(Array.isArray(e))return e.slice();if("object"!==typeof e)return e;if(null==t||"object"!==typeof t)return JSON.parse(JSON.stringify(e));const n=Array.isArray(t)?t.slice():Object.assign({},t);return Object.keys(e).forEach(t=>{const i=e[t];null!==i&&void 0!==i?n[t]="object"===typeof i?f(n[t],i):i:e.hasOwnProperty(t)&&(n[t]=i)}),n}p.currentTheme="default",p.currentSize="medium",p.inverse=!1,p.EchartsUtil={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(t){return!this.reverse&&this.longLable?t.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):t}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},p.chartInstanceList=[],p.resizeObserverList=[],p.simpleModeOption={legend:{show:!1},tooltip:{borderWidth:0,extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.12);"},grid:{top:"5%",left:"5%",right:"5%",bottom:"5%",containLabel:!0},xAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},animationDuration:300,animationEasing:"linear"},p.simpleModeByType={bar:{series:{barWidth:"60%",label:{show:!1},markPoint:null,emphasis:{itemStyle:{shadowBlur:6,shadowOffsetX:0,shadowColor:"rgba(0,0,0,0.15)"}}}},line:{series:{symbol:"none",smooth:!0,symbolSize:0,label:{show:!1},areaStyle:null}},pie:{legend:{show:!1},title:{show:!1},series:{radius:["40%","72%"],label:{show:!1},labelLine:{show:!1}}},multi:{legend:{show:!1},grid:{top:"8%",left:"5%",right:"5%",bottom:"5%",containLabel:!0}}},p.applySimpleMode=function(t,e){if(!t||"object"!==typeof t)return t;const n=JSON.parse(JSON.stringify(p.simpleModeOption)),i=p.simpleModeByType[e]||{},r=f(n,i);if(Object.keys(r).forEach(e=>{"series"!==e&&(null==t[e]?t[e]=r[e]:"object"!==typeof t[e]||"object"!==typeof r[e]||Array.isArray(t[e])||(t[e]=f(r[e],t[e])))}),t.series&&Array.isArray(t.series)){const e=r.series||{};t.series=t.series.map(t=>null==t||"object"!==typeof t?t:f(e,t))}return["xAxis","yAxis"].forEach(e=>{if(null!=t[e]&&"object"===typeof t[e]){const n=r[e]||{};Array.isArray(t[e])?t[e]=t[e].map(t=>null==t||"object"!==typeof t?t:f(n,t)):t[e]=f(n,t[e])}}),t},p.mergeOptions=function(t,e){return Object.assign({},t,e)},p.applyFontSize=function(t,e){const n=d[e]||d.medium,i=JSON.parse(JSON.stringify(t));i.title&&i.title.textStyle&&(i.title.textStyle.fontSize=n.title),i.title&&i.title.subtextStyle&&(i.title.subtextStyle.fontSize=n.subtitle),i.legend&&i.legend.textStyle&&(i.legend.textStyle.fontSize=n.legend),i.tooltip&&i.tooltip.textStyle&&(i.tooltip.textStyle.fontSize=n.tooltip),i.pie&&i.pie.label&&"object"===typeof i.pie.label&&(i.pie.label.fontSize=n.label),i.radar&&i.radar.indicator&&"object"===typeof i.radar.indicator&&i.radar.indicator.textStyle&&(i.radar.indicator.textStyle.fontSize=n.label),i.map&&i.map.label&&"object"===typeof i.map.label&&(i.map.label.fontSize=n.label);const r=function(t){t&&(t.axisLabel||(t.axisLabel={}),i.axisLabel&&i.axisLabel.color&&(t.axisLabel.color=i.axisLabel.color),t.axisLabel.fontSize=n.axisLabel)};return i.xAxis&&(Array.isArray(i.xAxis)?i.xAxis.forEach(r):r(i.xAxis)),i.yAxis&&(Array.isArray(i.yAxis)?i.yAxis.forEach(r):r(i.yAxis)),i},p.init=function(t,e,n,i){const r=h();if(!r||!t)return null;e=e||"default",i=i||"medium",n=n||{};const a=this.currentTheme||e,o=this.currentSize||i;this.currentTheme=a,this.currentSize=o;let s=u[a];s=this.applyFontSize(s,o);const l=this.mergeOptions(s,n),c=r.init(t,a);return c.setOption(l,!0),this.chartInstanceList.push({dom:t,chart:c,customOption:n,size:o}),this.bindResize(c),c},p.changeSingleTheme=function(t,e,n,i){const r=h();if(!r||!t||!e)return;n=n||{},i=i||"default",this.currentTheme=i,e.dispose();const a=r.init(t,i,n),o=this.chartInstanceList.find((function(e){return e.dom===t}));return o&&(o.chart=a),a},p.changeAllTheme=function(t,e){const n=h();n&&t&&(this.currentTheme=t,e&&(this.currentSize=e),this.chartInstanceList.forEach((function(e){const i=e.dom,r=e.chart,a=e.customOption,o=e.size||p.currentSize;r&&r.dispose();const s=n.init(i,t);let l=u[t];l=p.applyFontSize(l,o);const c=p.mergeOptions(l,a);s.setOption(c,!0),e.chart=s,e.size=o,p.bindResize(s)})))},p.bindResize=function(t){t&&!t.resizeLocked&&(window.addEventListener("resize",(function(){t.resize()})),t._resizeLocked=!0)},p.bindResizeObserver=function(t,e){if(!t||!e||"undefined"===typeof ResizeObserver)return;const n=new ResizeObserver(()=>{e.resize()});n.observe(t),p.resizeObserverList.push({dom:t,observer:n,chartIns:e})},p.unbindResizeObserver=function(t){const e=p.resizeObserverList.findIndex(e=>e.dom===t);-1!==e&&(p.resizeObserverList[e].observer.disconnect(),p.resizeObserverList.splice(e,1))},p.destroy=function(t){t&&t.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(e){return e.chart!==t}))},p.destroyAll=function(){this.chartInstanceList.forEach((function(t){t.chart&&t.chart.dispose()})),this.chartInstanceList=[],this.resizeObserverList.forEach((function(t){t.observer.disconnect()})),this.resizeObserverList=[]};var g=p;const y={theme:"white",size:"medium",primaryColor:"#1890ff"};let v={...y};const m=[],b=function(t,e){m.forEach(n=>{n(t,e)})},x=function(){return{...v}},_=function(t){"object"===typeof t&&null!==t?(void 0!==t.theme&&S(t.theme),void 0!==t.size&&M(t.size),void 0!==t.primaryColor&&C(t.primaryColor)):console.warn("[XtElementUI] setConfig 必须传入对象参数")};function w(){return"undefined"!==typeof window&&"undefined"!==typeof document}const S=function(t){const e=["white","dark"];if(e.includes(t)){if(v.theme=t,w()){const e=document.documentElement;"dark"===t?e.setAttribute("data-theme","dark"):e.setAttribute("data-theme",t),g.changeAllTheme(v.theme,v.size)}b("theme",t)}else console.warn(`[XtElementUI] 无效的主题值: ${t},可选值: ${e.join(", ")}`)},M=function(t){const e=["small","medium","large"];e.includes(t)?(v.size=t,w()&&(document.documentElement.setAttribute("data-size",t),g.changeAllTheme(v.theme,v.size)),b("size",t)):console.warn(`[XtElementUI] 无效的大小值: ${t},可选值: ${e.join(", ")}`)};function O(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function T(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")}function I(t,e){const n=O(t);if(!n)return t;const i=Math.round(2.55*e),r=Math.min(255,n.r+i),a=Math.min(255,n.g+i),o=Math.min(255,n.b+i);return T(r,a,o)}const C=function(t){const e=/^#[0-9A-Fa-f]{3}$|^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/;if(!e.test(t))return void console.warn(`[XtElementUI] 无效的颜色值: ${t},请使用十六进制颜色格式,如 #1890ff`);let n=t;4===t.length?n="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]:9===t.length&&(n=t.substring(0,7)),v.primaryColor=n,w()&&(document.documentElement.style.setProperty("--xt-color-primary",n),document.documentElement.style.setProperty("--xt-color-primary-light-3",I(n,30)),document.documentElement.style.setProperty("--xt-color-primary-light-5",I(n,50)),document.documentElement.style.setProperty("--xt-color-primary-light-7",I(n,70)),document.documentElement.style.setProperty("--xt-color-primary-light-8",I(n,80)),document.documentElement.style.setProperty("--xt-color-primary-light-9",I(n,90))),b("primaryColor",n)},A=function(){return v.theme},k=function(){return v.size},D=function(){return v.primaryColor},L=function(){_(y)},P=function(t){if("function"===typeof t)return m.push(t),function(){const e=m.indexOf(t);e>-1&&m.splice(e,1)};console.warn("[XtElementUI] onConfigChange 必须传入函数")};var j={setTheme:S,setSize:M,setPrimaryColor:C,getConfig:x,setConfig:_,getTheme:A,getSize:k,getPrimaryColor:D,resetConfig:L,onConfigChange:P},N=function(){var t=this,e=t._self._c;return e("el-button",t._b({staticClass:"xt-button",class:t.buttonClasses,on:{click:t.handleClick}},"el-button",t.$attrs,!1),[t._t("default")],2)},R=[],E={name:"XtButton",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{type:{type:String,default:"default",validator:t=>["default","primary","success","warning","danger"].includes(t)},throttle:{type:Number,default:0},size:{type:String,default:null,validator:t=>!t||["mini","small","medium","large"].includes(t)}},data(){return{lastClickTime:0}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},buttonClasses(){return["xt-button-"+this.finalSize,"xt-button-"+this.type]}},methods:{handleClick(){this.throttle>0&&Date.now()-this.lastClickTime<this.throttle||(this.lastClickTime=Date.now(),this.$emit("click"))}}},z=E;function B(t,e,n,i,r,a,o,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var V=B(z,N,R,!1,null,null,null),F=V.exports;F.install=function(t){t.component(F.name,F)};var H=F,G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-input",class:[t.size?"xt-input--"+t.size:"",{"is-disabled":t.disabled}]},[e("el-input",{style:t.inputStyle,attrs:{value:t.displayValue,placeholder:t.placeholder,type:t.isNumberType?"text":t.type,size:t.size,disabled:t.disabled,readonly:t.readonly},on:{input:t.handleInput,change:t.handleChange,focus:t.handleFocus,blur:t.handleBlur}})],1)},W=[],Y={name:"XtInput",props:{value:[String,Number],placeholder:{type:String,default:"请输入内容"},type:{type:String,default:"text"},size:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:""}},data(){return{currentStr:"",isFocused:!1}},computed:{isNumberType(){return"number"===this.type},displayValue(){return this.isNumberType?this.currentStr:this.value},inputStyle(){return this.color?{"--xt-input-focus-color":this.color}:{}}},watch:{value:{immediate:!0,handler(t){this.isNumberType&&!this.isFocused&&(this.currentStr=null===t||void 0===t||""===t?"":String(t))}}},methods:{isValidNumber(t){return/^[+-]?\d*\.?\d*$/.test(t)},handleInput(t){if(this.isNumberType){if(this.isValidNumber(t)){this.currentStr=t;const e=this.parseToNumber(t);void 0!==e&&this.$emit("input",e)}}else this.$emit("input",t)},handleChange(t){if(this.isNumberType){const e=this.parseToNumber(t);this.$emit("change",e)}else this.$emit("change",t)},handleFocus(t){this.isFocused=!0,this.$emit("focus",t)},handleBlur(t){if(this.isFocused=!1,this.isNumberType){const e=this.parseToNumber(this.currentStr);this.$emit("blur",e,t),void 0!==e?(this.currentStr=String(e),this.$emit("input",e)):""!==this.currentStr&&(this.currentStr="",this.$emit("input",void 0))}else this.$emit("blur",t)},parseToNumber(t){if(!t||"+"===t||"-"===t||"."===t||"+."===t||"-."===t||"-."===t)return;const e=parseFloat(t);return isNaN(e)?void 0:e}}},U=Y,X=B(U,G,W,!1,null,null,null),$=X.exports;$.install=function(t){t.component($.name,$)};var Z=$,q=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-flex-box",class:t.classAttrs,style:t.flexStyle},[t._t("default")],2)},K=[],Q={name:"XtFlexBox",props:{type:{type:String,default:"flex"},align:{type:String,default:"center"},content:{type:String,default:"start"},direction:{type:String,default:"row"},wrap:{type:String,default:"unset"},gap:{type:String,default:""}},computed:{classAttrs(){const{type:t,align:e,wrap:n,direction:i,content:r}=this;return[""+t,"align-"+e,"content-"+r,"direction-"+i,"wrap-"+n]},flexStyle(){const t={};return this.gap?t.gap=this.gap:t.gap="var(--xt-flex-box-gap, 8px)",t}}},J=Q,tt=B(J,q,K,!1,null,null,null),et=tt.exports;et.install=function(t){t.component(et.name,et)};var nt=et,it=function(){var t=this,e=t._self._c;return e("el-card",t._b({staticClass:"xt-card",class:t.cardClasses,scopedSlots:t._u([t.$slots.header||t.title?{key:"header",fn:function(){return[t._t("header",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0}:null],null,!0)},"el-card",t.$attrs,!1),[t._t("default")],2)},rt=[],at={name:"XtCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:t=>["always","hover","never"].includes(t)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:t=>!t||["small","medium","large"].includes(t)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["xt-card-"+this.shadow,"xt-card-"+this.finalSize,{"xt-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},ot=at,st=B(ot,it,rt,!1,null,null,null),lt=st.exports;lt.install=function(t){t.component(lt.name,lt)};var ut=lt,ct=function(){var t=this,e=t._self._c;return e("xt-card",{staticClass:"xt-card-item",class:{["is-"+t.type]:!!t.type},attrs:{bordered:!1}},[e("xt-flex-box",{attrs:{content:"between"}},[e("div",[e("div",[e("xt-text",{attrs:{bold:"",size:"extra-large"}},[t._v(t._s(t.title))])],1),e("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:t.type,decimals:0},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),e("div",{staticStyle:{margin:"5px 0"}},[e("xt-text",{attrs:{size:"small"}},[t._v("较昨日")]),e("xt-text",{attrs:{format:"normal",type:t.diff>0?"success":"danger",suffix:t.diff>0?"↑":"↓"},model:{value:t.change,callback:function(e){t.change=e},expression:"change"}})],1)],1),e("div",{staticStyle:{height:"100%"}},[t._t("icon",(function(){return[e("xt-text",{attrs:{size:"extra-large",type:t.type}},[e("xt-icon",{attrs:{name:"el-icon-user",size:48}})],1)]}))],2)])],1)},ht=[],dt={name:"XtCardItem",props:{type:{type:String,default:"primary"},title:{type:String,default:""},diff:{type:Number,default:0},value:{type:Number,default:0},change:{type:Number,default:0}},data(){return{}}},pt=dt,ft=B(pt,ct,ht,!1,null,null,null),gt=ft.exports;gt.install=function(t){t.component(gt.name,gt)};var yt=gt;const vt="undefined"!==typeof HTMLElement?HTMLElement:Object;var mt,bt,xt={name:"XtConfigProvider",inheritAttrs:!1,provide(){return{xtConfig:{theme:this.theme,size:this.size,primaryColor:this.primaryColor}}},watch:{theme(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},size(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},primaryColor(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}}},render(t){if("template"===this.tag||this.proxyElement){const e=this.$slots.default;return e&&0!==e.length?1===e.length?e[0]:t("div",{class:"xt-config-provider-wrapper",attrs:{"data-theme":this.theme}},e):t("div")}return t(this.tag,{style:this.mergedStyle,class:this.computedClass,attrs:{...this.customAttrs,"data-theme":this.theme}},this.$slots.default)},props:{theme:{type:String,default:"white",validator:t=>["white","dark","auto"].includes(t)},size:{type:String,default:"medium"},primaryColor:{type:String,default:"#1890ff"},vars:{type:Object,default:()=>({})},tag:{type:String,default:"div",validator:t=>["div","span","section","main","template","article","aside"].includes(t)},injectBackground:{type:Boolean,default:!1},injectColor:{type:Boolean,default:!1},proxyElement:{type:[vt,String,Object],default:null,description:"代理元素,将样式应用到该元素上。支持 HTMLElement、CSS选择器字符串或 ref 对象"},onThemeChange:{type:Function,default:null,description:"主题改变时的钩子函数,接收参数: { theme, size, primaryColor }"},onStyleApplied:{type:Function,default:null,description:"样式应用完成时的钩子函数,接收参数: { element, style, theme }"}},computed:{mergedStyle(){const t={...this.vars};if(this.primaryColor){const e=this.normalizeColor(this.primaryColor);t["--xt-color-primary"]=e,t["--xt-color-primary-light-3"]=this.lightenColor(e,30),t["--xt-color-primary-light-5"]=this.lightenColor(e,50),t["--xt-color-primary-light-7"]=this.lightenColor(e,70),t["--xt-color-primary-light-8"]=this.lightenColor(e,80),t["--xt-color-primary-light-9"]=this.lightenColor(e,90),t["--xt-color-primary-dark-2"]=this.darkenColor(e,20)}const e={small:"14px",medium:"16px",large:"18px"};return e[this.size]&&(t["--xt-font-size-base"]=e[this.size]),"dark"===this.theme?(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#141414"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#E5EAF3")):(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#ffffff"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#2c3e50")),t},computedClass(){const t=[];return"template"!==this.tag&&t.push("xt-config-provider"),t},customAttrs(){const t=["theme","size","primaryColor","vars","tag","injectBackground","injectColor","proxyElement"],e={};for(const n in this.$attrs)t.includes(n)||(e[n]=this.$attrs[n]);return e}},mounted(){this.applyProxyElementStyle()},updated(){this.applyProxyElementStyle()},beforeUnmount(){this.clearProxyElementStyle()},methods:{normalizeColor(t){if(!t)return"#1890ff";if(/^#[0-9A-Fa-f]{6}$/.test(t))return t;if(/^#[0-9A-Fa-f]{3}$/.test(t))return"#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3];if(/^#[0-9A-Fa-f]{8}$/.test(t))return t.substring(0,7);const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(e){const t=parseInt(e[1]),n=parseInt(e[2]),i=parseInt(e[3]);return this.rgbToHex(t,n,i)}return console.warn("[XtConfigProvider] 无法识别的颜色格式:",t),"#1890ff"},hexToRgb(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgbToHex(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")},lightenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const i=e/100,r=Math.round(n.r*(1-i)+255*i),a=Math.round(n.g*(1-i)+255*i),o=Math.round(n.b*(1-i)+255*i);return this.rgbToHex(r,a,o)},darkenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const i=e/100,r=Math.max(0,Math.round(n.r*(1-i))),a=Math.max(0,Math.round(n.g*(1-i))),o=Math.max(0,Math.round(n.b*(1-i)));return this.rgbToHex(r,a,o)},getProxyElement(){const{proxyElement:t}=this;return t?t instanceof HTMLElement?t:"string"===typeof t?document.querySelector(t):t.$el?t.$el:t.value&&t.value instanceof HTMLElement?t.value:(console.warn("[XtConfigProvider] 无法解析 proxyElement:",t),null):null},applyProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle,n=t.getAttribute("data-theme");for(const i in e)t.style.setProperty(i,e[i]);t.setAttribute("data-theme",this.theme),g.changeAllTheme(this.theme,this.size,this.primaryColor),n!==this.theme&&"function"===typeof this.onThemeChange&&this.onThemeChange({theme:this.theme,size:this.size,primaryColor:this.primaryColor,prevTheme:n}),"function"===typeof this.onStyleApplied&&this.onStyleApplied({element:t,style:e,theme:this.theme,size:this.size,primaryColor:this.primaryColor})},clearProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle;for(const n in e)t.style.removeProperty(n);t.removeAttribute("data-theme")}}},_t=xt,wt=(n("83d1"),B(_t,mt,bt,!1,null,"4af969c3",null)),St=wt.exports;St.install=function(t){t.component(St.name,St)};var Mt=St,Ot=function(){var t=this,e=t._self._c;return t.showTooltip&&t.ellipsis?e("el-tooltip",{attrs:{content:t.displayTooltipContent,placement:t.tooltipPlacement,disabled:!t.isOverflow,effect:"dark"}},[e("span",{ref:"textRef",staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format},{"xt-text--ellipsis":t.ellipsis},{"xt-text--ellipsis-multiline":t.ellipsis&&t.ellipsisRows>1}],style:t.customStyle,on:{mouseenter:t.handleMouseEnter}},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)]):e("span",{ref:"textRef",staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format},{"xt-text--ellipsis":t.ellipsis},{"xt-text--ellipsis-multiline":t.ellipsis&&t.ellipsisRows>1}],style:t.customStyle},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},Tt=[],It={name:"XtText",model:{prop:"value",event:"input"},props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},size:{type:String,default:"small",validator:t=>["extra-large","large","medium","small","mini","extra-small"].includes(t)},bold:{type:Boolean,default:!1},letterSpacing:{type:[String,Number],default:""},ellipsis:{type:Boolean,default:!1},ellipsisRows:{type:Number,default:1,validator:t=>t>=1&&t<=10},showTooltip:{type:Boolean,default:!0},tooltipPlacement:{type:String,default:"top",validator:t=>["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"].includes(t)},tooltipContent:{type:String,default:""},format:{type:String,default:"normal",validator:t=>["normal","thousand","money"].includes(t)},money:{type:Boolean,default:!1},value:{type:[Number,String],default:""},currency:{type:String,default:"CNY",validator:t=>["CNY","USD","EUR","JPY","GBP","AUD","CAD"].includes(t)},decimals:{type:Number,default:2,validator:t=>t>=0&&t<=10},locale:{type:String,default:"zh-CN"},showSign:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""}},data(){return{isOverflow:!1}},computed:{realFormat(){return this.money?"money":this.format},customStyle(){const t={};return this.letterSpacing&&(t.letterSpacing="number"===typeof this.letterSpacing?this.letterSpacing+"px":this.letterSpacing),this.ellipsis&&this.ellipsisRows>1&&(t.WebkitLineClamp=this.ellipsisRows),t},displayTooltipContent(){return this.tooltipContent?this.tooltipContent:void 0!==this.formattedValue?this.formattedValue:this.$slots.default&&this.$slots.default.length>0?this.extractSlotText(this.$slots.default):this.value},formattedValue(){const t=this.realFormat,{value:e}=this;if(""===e||void 0===e||null===e)return;const n="string"===typeof e?parseFloat(e):e;if(isNaN(n))return e;try{let e="";const i=this.showSign?"always":"auto";switch(t){case"thousand":e=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:i}).format(n);break;case"money":e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:i}).format(n);break;default:return}return e}catch(i){return e}}},methods:{handleMouseEnter(){this.checkOverflow()},checkOverflow(){const t=this.$refs.textRef;t?this.ellipsisRows>1?this.isOverflow=t.scrollHeight>t.clientHeight:this.isOverflow=t.scrollWidth>t.clientWidth:this.isOverflow=!1},extractSlotText(t){let e="";return t.forEach(t=>{"string"===typeof t.children?e+=t.children:"string"===typeof t.text?e+=t.text:t.children&&Array.isArray(t.children)&&(e+=this.extractSlotText(t.children))}),e.trim()}},mounted(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()}),this._resizeObserver=new ResizeObserver(()=>{this.ellipsis&&this.showTooltip&&this.checkOverflow()}),this.$nextTick(()=>{this.$refs.textRef&&this._resizeObserver.observe(this.$refs.textRef)})},beforeDestroy(){this._resizeObserver&&this._resizeObserver.disconnect()},watch:{value(){this.ellipsis&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})},ellipsis(t){t&&this.showTooltip&&this.$nextTick(()=>{this.checkOverflow()})}}},Ct=It,At=B(Ct,Ot,Tt,!1,null,null,null),kt=At.exports;kt.install=function(t){t.component(kt.name,kt)};var Dt=kt,Lt=function(){var t=this,e=t._self._c;return e("span",{staticClass:"xt-time",class:[t.typeColor?"xt-time--"+t.typeColor:"","xt-time--"+t.size,{"xt-time--bold":t.bold}],style:t.customStyle,on:{click:t.handleClick}},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return["text"===t.mode?[void 0!==t.displayText?[t._v(t._s(t.displayText))]:t.hideEmpty?t._e():[t._v(t._s(t.emptyText))]]:"now"===t.mode?[t._v(" "+t._s(t.nowText)+" ")]:"countdown"===t.mode?[t.isCountdownFinished?[t._t("finished",(function(){return[t._v(t._s(t.finishedText))]}))]:[t._v(" "+t._s(t.countdownText)+" ")]]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},Pt=[];const jt="YYYY-MM-DD HH:mm:ss";function Nt(t){const e=String(t);return e.length<2?"0"+e:e}function Rt(t){if(null===t||void 0===t||""===t)return null;if(t instanceof Date)return isNaN(t.getTime())?null:t;if("number"===typeof t){const e=t<1e12?1e3*t:t,n=new Date(e);return isNaN(n.getTime())?null:n}if("string"===typeof t){if(/^\d+$/.test(t)){const e=Number(t),n=e<1e12?1e3*e:e,i=new Date(n);return isNaN(i.getTime())?null:i}const e=t.replace(/-/g,"/"),n=new Date(e);return isNaN(n.getTime())?null:n}return null}function Et(t,e){if(!t)return"";const n=e||jt,i={YYYY:t.getFullYear(),MM:Nt(t.getMonth()+1),DD:Nt(t.getDate()),HH:Nt(t.getHours()),mm:Nt(t.getMinutes()),ss:Nt(t.getSeconds()),SSS:String(t.getMilliseconds()).padStart(3,"0")};return n.replace(/YYYY|MM|DD|HH|mm|ss|SSS/g,t=>i[t])}var zt={name:"XtTime",props:{type:{type:String,default:"now",validator:t=>["now","countdown","text"].includes(t)},size:{type:String,default:"base",validator:t=>["extra-large","large","medium","base","small","extra-small"].includes(t)},typeColor:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},bold:{type:Boolean,default:!1},format:{type:String,default:jt},prefix:{type:String,default:""},suffix:{type:String,default:""},emptyText:{type:String,default:"-"},hideEmpty:{type:Boolean,default:!1},interval:{type:Number,default:1e3,validator:t=>t>=100},value:{type:[String,Number,Date],default:""},targetTime:{type:[String,Number,Date],default:""},countdownFormat:{type:String,default:"DHMS",validator:t=>["DHMS","HMS","MS","SEC"].includes(t)},finishedText:{type:String,default:"已结束"}},data(){return{tick:0}},computed:{mode(){return this.type},parsedValue(){return Rt(this.value)},parsedTarget(){return Rt(this.targetTime)},displayText(){if(this.parsedValue)return Et(this.parsedValue,this.format)},nowText(){this.tick;return Et(new Date,this.format)},remainingMs(){if("countdown"!==this.mode)return 0;this.tick;if(!this.parsedTarget)return 0;const t=this.parsedTarget.getTime()-Date.now();return t>0?t:0},isCountdownFinished(){return"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0},countdownText(){if(!this.parsedTarget)return this.emptyText;const t=Math.floor(this.remainingMs/1e3);if(t<=0)return this.finishedText;switch(this.countdownFormat){case"SEC":return t+"秒";case"MS":{const e=Math.floor(t/60),n=t%60;return`${Nt(e)}分${Nt(n)}秒`}case"HMS":{const e=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60;return`${Nt(e)}时${Nt(n)}分${Nt(i)}秒`}case"DHMS":default:{const e=Math.floor(t/86400),n=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),r=t%60;return`${e}天${Nt(n)}时${Nt(i)}分${Nt(r)}秒`}}},customStyle(){return{}}},watch:{type(){this.restartTimer()},interval(){this.restartTimer()}},mounted(){this.restartTimer()},beforeDestroy(){this.clearTimer()},activated(){this.restartTimer()},deactivated(){this.clearTimer()},methods:{restartTimer(){this.clearTimer(),"now"!==this.mode&&"countdown"!==this.mode||(this.tick++,this._timer=setInterval(()=>{this.tick++,"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0&&(this.clearTimer(),this.$emit("finish"))},this.interval))},clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)},handleClick(t){this.$emit("click",t)}}},Bt=zt,Vt=B(Bt,Lt,Pt,!1,null,null,null),Ft=Vt.exports;Ft.install=function(t){t.component(Ft.name,Ft)};var Ht=Ft,Gt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price",class:{"is-disabled":t.disabled}},[t.title||t.$slots.header?e("div",{staticClass:"xt-step-price__header"},[t.title?e("xt-text",{attrs:{bold:"",size:"medium"}},[t._v(t._s(t.title))]):t._e(),t._t("header"),t.disabled||t.isLimitReached?t._e():e("xt-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus",plain:""},on:{click:t.onAdd}},[t._v("新增"+t._s(t.stepName))]),t.isLimitReached?e("xt-text",{attrs:{size:"small","type-color":"info"}},[t._v("已达上限("+t._s(t.localItems.length)+"/"+t._s(t.limit)+")")]):t._e()],2):t._e(),e("div",{staticClass:"xt-step-price__list"},t._l(t.localItems,(function(n,i){return e("XtStepPriceItem",{key:i,attrs:{value:n,index:i,"is-first":0===i,"is-last":i===t.localItems.length-1,"items-length":t.localItems.length,removable:0!==i,"min-locked":0!==i,unit:t.unit,precision:t.precision,"step-name":t.stepName,step:t.step,"left-bracket":t.leftBracket,"right-bracket":t.rightBracket,"field-keys":t.fieldKeys,disabled:t.disabled,"allow-negative":t.allowNegative},on:{input:e=>t.onItemInput(e,i),"max-change":t.onMaxChange,"min-change":t.onMinChange,delete:t.onDelete,blur:t.onFieldBlur}})})),1),0===t.localItems.length?e("div",{staticClass:"xt-step-price__empty"},[e("span",[t._v("暂无数据,点击右上角「新增"+t._s(t.stepName)+"」开始配置")])]):t._e(),t.tip||t.$slots.tip?e("div",{staticClass:"xt-step-price__tip"},[t._t("tip",(function(){return[e("xt-text",{attrs:{size:"small","type-color":"warning"}},[t._v(t._s(t.tip))])]}))],2):t._e()])},Wt=[],Yt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price-item"},[e("div",{staticClass:"xt-step-price-item__range"},[e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalLeftBracket))]),t.itemsLength>1?e("span",{staticClass:"xt-step-price-item__name"},[t._v("第"+t._s(t.index+1)+t._s(t.stepName))]):t._e(),e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalRightBracket))]),e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:t.disabled||t.minLocked,size:"small",placeholder:"下限"},on:{blur:e=>{t.onMinBlur(),t.onBlur(e)}},model:{value:t.minInput,callback:function(e){t.minInput=t._n(e)},expression:"minInput"}}),e("span",{staticClass:"xt-step-price-item__comma"},[t._v("-")]),t.isLast?e("span",{staticClass:"xt-step-price-item__infinity"},[t._v("+∞")]):e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{type:"number",disabled:t.disabled,size:"small",placeholder:"上限"},on:{blur:e=>{t.onMaxBlur(),t.onBlur(e)}},model:{value:t.maxInput,callback:function(e){t.maxInput=t._n(e)},expression:"maxInput"}})],1),e("div",{staticClass:"xt-step-price-item__price"},[e("xt-input",{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{type:"number",disabled:t.disabled,size:"small",placeholder:"价格"},on:{blur:e=>{t.onPriceBlur(),t.onBlur(e)}},model:{value:t.priceInput,callback:function(e){t.priceInput=t._n(e)},expression:"priceInput"}}),e("span",{staticClass:"xt-step-price-item__unit"},[t._v(t._s(t.unit))])],1),!t.disabled&&t.removable&&t.itemsLength>1?e("xt-button",{staticClass:"xt-step-price-item__delete",attrs:{text:"",icon:"el-icon-delete"},on:{click:t.onDelete}}):t._e()],1)},Ut=[],Xt={name:"XtStepPriceItem",props:{value:{type:Object,required:!0,default:()=>({min:0,max:null,price:0})},stepName:{type:String,default:"阶梯"},index:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1},itemsLength:{type:Number,default:1},removable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},minLocked:{type:Boolean,default:!1},unit:{type:String,default:"元"},precision:{type:Number,default:2},step:{type:Number,default:1},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},finalRightBracket(){return null!==this.rightBracket&&void 0!==this.rightBracket&&""!==this.rightBracket?this.rightBracket:this.isLast?"]":")"},finalLeftBracket(){return null===this.leftBracket||void 0===this.leftBracket?"[":this.leftBracket}},data(){const{minVal:t,maxVal:e,priceVal:n}=this.getPriceItem(this.value);return{minInput:t,maxInput:e,priceInput:n}},watch:{value:{deep:!0,immediate:!0,handler(t){const{minVal:e,maxVal:n,priceVal:i}=this.getPriceItem(t);this.minInput=e,this.maxInput=n,this.priceInput=i}},isLast(t){if(t)this.maxInput=null;else{const t=this.safeNumber(this.minInput,0),e=this.value;this.maxInput=this.safeNumber(e&&e[this.keyMax],t+1)}}},methods:{getPriceItem(t){const e=t,n=this.safeNumber(e&&e[this.keyMin],0),i=this.isLast?null:this.safeNumber(e&&e[this.keyMax],n+1),r=this.safeNumber(e&&e[this.keyPrice],0);return{minVal:n,maxVal:i,priceVal:r}},safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},emitChange(t){const e={[this.keyMin]:this.minInput,[this.keyMax]:this.isLast?null:this.maxInput,[this.keyPrice]:this.priceInput,...t};this.$emit("input",e),this.$emit("change",e,this.index)},onMinBlur(){let t=this.safeNumber(this.minInput,0);0!==t&&(t=Number(t.toFixed(this.precision))),this.minInput=t,this.$emit("min-change",t,this.index),this.emitChange({[this.keyMin]:t})},onMaxBlur(){if(this.isLast)return;const t=this.safeNumber(this.minInput,0),e=this.safeNumber(this.step,1);let n=this.safeNumber(this.maxInput,t+e);n<=t&&(n=t+e),n=Number(n.toFixed(this.precision)),this.maxInput=n,this.$emit("max-change",n,this.index),this.emitChange({[this.keyMax]:n})},onPriceBlur(){const t=this.priceInput;if(null===t||void 0===t||""===t||isNaN(t))return this.priceInput="",void this.emitChange({[this.keyPrice]:""});let e=this.safeNumber(t,0);e<0&&!this.allowNegative&&(e=0),e=Number(e.toFixed(this.precision)),this.priceInput=e,this.emitChange({[this.keyPrice]:e})},onBlur(t){this.$emit("blur",t)},onDelete(){this.$emit("delete",this.index)}}},$t=Xt,Zt=B($t,Yt,Ut,!1,null,null,null),qt=Zt.exports,Kt={name:"XtStepPrice",components:{XtStepPriceItem:qt},inject:{elFormItem:{default:""}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},isLimitReached(){const t=Number(this.limit);return t>0&&this.localItems.length>=t}},props:{value:{type:Array,default:()=>[]},title:{type:String,default:""},unit:{type:String,default:"元"},stepName:{type:String,default:"阶梯"},precision:{type:Number,default:2},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})},limit:{type:Number,default:0},step:{type:Number,default:10},disabled:{type:Boolean,default:!1},allowNegative:{type:Boolean,default:!1},tip:{type:String,default:"区间左闭右闭 [min, max],最后一级为 [min, +∞),保证连续且不重叠。"},defaultFirst:{type:Boolean,default:!0}},data(){return{localItems:this.normalize(this.value)}},watch:{value:{deep:!0,immediate:!0,handler(t){this.localItems=this.normalize(t)}}},methods:{safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},cloneItems(t){return Array.isArray(t)?t.map(t=>{const e=t&&t[this.keyPrice];return{[this.keyMin]:this.safeNumber(t&&t[this.keyMin],0),[this.keyMax]:t&&null==t[this.keyMax]||t&&""===t[this.keyMax]?null:this.safeNumber(t[this.keyMax],null),[this.keyPrice]:null===e||void 0===e||""===e?"":this.safeNumber(e,0)}}):[]},normalize(t){const e=this.cloneItems(t);return 0===e.length&&this.defaultFirst&&e.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:0}),this.ensureContinuity(e),e},ensureContinuity(t){if(!Array.isArray(t)||0===t.length)return;t[0][this.keyMin]=0;const e=this.safeNumber(this.step,1);for(let n=0;n<t.length;n++){const i=t[n],r=t[n+1],a=this.safeNumber(i[this.keyMin],0);if(r){let t=this.safeNumber(i[this.keyMax],a+e);t<=a&&(t=a+e),t=Number(t.toFixed(this.precision)),i[this.keyMax]=t,r[this.keyMin]=t}else i[this.keyMax]=null;const o=i[this.keyPrice];i[this.keyPrice]=null===o||void 0===o||""===o?"":this.safeNumber(o,0)}},emit(){this.ensureContinuity(this.localItems);const t=this.cloneItems(this.localItems);this.$emit("input",t),this.$emit("change",t),this.dispatchFormEvent("el.form.change",t)},dispatchFormEvent(t,e){this.elFormItem&&this.elFormItem.$emit(t,e)},onFieldBlur(){this.dispatchFormEvent("el.form.blur",this.localItems)},validate(t){const e=this.localItems;if(!Array.isArray(e)||0===e.length)return t&&t(!1,[{field:"stepPrice",message:"请配置"+this.stepName,type:"error"}]),!1;const n=[];for(let i=0;i<e.length;i++){const t=e[i],r=t[this.keyPrice],a=t[this.keyMin],o=t[this.keyMax],s=this.safeNumber(r,0),l=this.safeNumber(a,0);if(null===r||void 0===r||""===r?n.push({field:`stepPrice[${i}].price`,message:`第${i+1}${this.stepName}价格不能为空`,type:"error"}):s<0&&!this.allowNegative&&n.push({field:`stepPrice[${i}].price`,message:`第${i+1}${this.stepName}价格不能为负数`,type:"error"}),null===a||void 0===a||""===a?n.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限不能为空`,type:"error"}):l<0&&!this.allowNegative&&n.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限不能为负数`,type:"error"}),this.isLast(i)||(null===o||void 0===o||""===o?n.push({field:`stepPrice[${i}].max`,message:`第${i+1}${this.stepName}上限不能为空`,type:"error"}):this.safeNumber(o,0)<=l&&n.push({field:`stepPrice[${i}].max`,message:`第${i+1}${this.stepName}上限必须大于下限`,type:"error"})),i>0){const t=e[i-1],r=t[this.keyMax];null!==r&&this.safeNumber(r,0)!==l&&n.push({field:`stepPrice[${i}].min`,message:`第${i+1}${this.stepName}下限必须等于上一${this.stepName}上限`,type:"error"})}}return n.length>0?(t&&t(!1,n),!1):(t&&t(!0),!0)},isLast(t){return t===this.localItems.length-1},onItemInput(t,e){const n=this.localItems[e];if(n&&t&&void 0!==t[this.keyPrice]){const e=t[this.keyPrice];if(null===e||void 0===e||""===e)n[this.keyPrice]="";else{let t=this.safeNumber(e,0);t=Number(t.toFixed(this.precision)),n[this.keyPrice]=t}this.emit()}},onMaxChange(t,e){const n=this.localItems[e];if(!n)return;const i=this.safeNumber(this.step,1);let r=this.safeNumber(t,this.safeNumber(n[this.keyMin],0)+i);r=Number(r.toFixed(this.precision)),n[this.keyMax]=r;const a=this.localItems[e+1];a&&(a[this.keyMin]=r),this.emit()},onMinChange(t,e){const n=this.localItems[e];if(n){if(0===e)n[this.keyMin]=0;else{let i=this.safeNumber(t,this.safeNumber(n[this.keyMin],0));0!==i&&(i=Number(i.toFixed(this.precision))),n[this.keyMin]=i;const r=this.localItems[e-1];r&&(r[this.keyMax]=i)}this.emit()}},onAdd(){const t=this.localItems,e=Number(this.limit);if(e>0&&t.length>=e)return;const n=this.safeNumber(this.step,1);if(0===t.length)return t.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:10}),void this.emit();const i=t[t.length-1],r=this.safeNumber(i[this.keyMin],0),a=r+n;let o=0;const s=[...t.slice(0,-1),{[this.keyMin]:r,[this.keyMax]:a,[this.keyPrice]:o},{[this.keyMin]:a,[this.keyMax]:null,[this.keyPrice]:o}];this.localItems=s,this.emit()},onDelete(t){const e=this.localItems;if(e.length<=1)return;if(0===t)return;const n=e[t],i=e[t-1],r=e[t+1];i&&r?i[this.keyMax]=null==n[this.keyMax]?null:Number(n[this.keyMax]):i&&!r?i[this.keyMax]=null:!i&&r&&(r[this.keyMin]=0),e.splice(t,1),this.emit()}}},Qt=Kt,Jt=B(Qt,Gt,Wt,!1,null,null,null),te=Jt.exports;te.install=function(t){t.component(te.name,te),t.component(qt.name,qt)};var ee=te;qt.install=function(t){t.component(qt.name,qt)};var ne=qt,ie=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-map-wrapper"},[e("div",{ref:"mapContainer",staticClass:"xt-map-container",attrs:{"data-theme":t.mergedTheme}}),t.loading?e("div",{staticClass:"xt-map-loading"},[e("span",[t._v("地图加载中...")])]):t._e(),t.errorMessage?e("div",{staticClass:"xt-map-error"},[e("span",[t._v(t._s(t.errorMessage))])]):t._e(),t._t("overlay")],2)},re=[];const ae=new Map,oe=new Map,se=(t,e={})=>{if("undefined"===typeof window)return Promise.reject(new Error("[XtMap] 非浏览器环境"));const{charset:n="utf-8",async:i=!0,timeout:r=3e4}=e;if(ae.has(t))return ae.get(t);if(oe.has(t))return oe.get(t);const a=new Promise((e,a)=>{const o=document.createElement("script");o.type="text/javascript",o.src=t,o.charset=n,o.async=i;let s=null,l=!1;const u=()=>{l=!0,s&&clearTimeout(s),o.onload=null,o.onerror=null};o.onload=()=>{l||(u(),oe.delete(t),ae.set(t,Promise.resolve(o)),e(o))},o.onerror=e=>{l||(u(),oe.delete(t),a(new Error("[XtMap] 脚本加载失败: "+t)))},r>0&&(s=setTimeout(()=>{l||(u(),oe.delete(t),a(new Error("[XtMap] 脚本加载超时: "+t)))},r)),document.head.appendChild(o)});return oe.set(t,a),a},le=()=>{ae.clear(),oe.clear()},ue=t=>"undefined"!==typeof window&&void 0!==window[t];const ce={standard:"standard",satellite:"satellite",hybrid:"hybrid",traffic:"traffic"};class he{constructor(t,e={}){this.container=t,this.options=e,this.mapInstance=null,this.mapType=e.mapType||"standard",this.theme=e.theme||"light",this.center=e.center||[116.397428,39.90923],this.zoom=e.zoom||11,this.apiKey=e.apiKey||"",this.apiUrl=e.apiUrl||null,this.plugins=e.plugins||[],this.eventHandlers=new Map,this.ready=!1,this._mapTypeMap={...ce}}getScriptUrl(){throw new Error("[XtMap] 子类必须实现 getScriptUrl()")}isSdkLoaded(){throw new Error("[XtMap] 子类必须实现 isSdkLoaded()")}beforeLoadScript(){}async createMap(){throw new Error("[XtMap] 子类必须实现 createMap()")}async init(){if(!this.container)throw new Error("[XtMap] 缺少容器元素");if(!this.isSdkLoaded()){this.beforeLoadScript();const t=this.getScriptUrl();if(!t)throw new Error("[XtMap] 缺少 API URL,请配置 apiKey 或 apiUrl");await se(t),await this._waitForSdkReady()}return await this.createMap(),this.ready=!0,this.mapInstance}async _waitForSdkReady(){return new Promise(t=>{let e=0;const n=100,i=()=>{this.isSdkLoaded()||e>=n?t():(e++,setTimeout(i,100))};i()})}getNativeMapType(t){return this._mapTypeMap[t]||this._mapTypeMap.standard}setMapType(t){this.mapType=t,this.ready&&this.mapInstance&&this._applyMapType(t)}_applyMapType(t){}setTheme(t){this.theme=t,this.ready&&this.mapInstance&&this._applyTheme(t)}_applyTheme(t){}setCenter(t){this.center=t,this.ready&&this.mapInstance&&this._applyCenter(t)}_applyCenter(t){}setZoom(t){this.zoom=t,this.ready&&this.mapInstance&&this._applyZoom(t)}_applyZoom(t){}getCenter(){return this.center}getZoom(){return this.zoom}getNativeMap(){return this.mapInstance}on(t,e){"function"===typeof e&&(this.eventHandlers.set(t,e),this.ready&&this.mapInstance&&this._bindEvent(t,e))}_bindEvent(t,e){}off(t){const e=this.eventHandlers.get(t);e&&this.ready&&this.mapInstance&&this._unbindEvent(t,e),this.eventHandlers.delete(t)}_unbindEvent(t,e){}resize(){this.ready&&this.mapInstance&&this._applyResize()}_applyResize(){}destroy(){if(this.eventHandlers.clear(),this.mapInstance&&"function"===typeof this.mapInstance.destroy)try{this.mapInstance.destroy()}catch(t){}this.mapInstance=null,this.ready=!1}}const de={standard:"amap",satellite:"satellite",hybrid:"satellite",traffic:"traffic"},pe={light:"amap://styles/normal",dark:"amap://styles/dark"};class fe extends he{constructor(t,e={}){super(t,e),this._mapTypeMap={...de},this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null,this._currentLayers=[]}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://webapi.amap.com/maps?v=2.0&key=${encodeURIComponent(this.apiKey)}&plugin=AMap.Scale,AMap.ToolBar`:(console.warn("[XtMap] 高德地图需要配置 apiKey"),"")}beforeLoadScript(){const t=this.options.securityJsCode||"undefined"!==typeof window&&window._AMapSecurityConfig&&window._AMapSecurityConfig.securityJsCode||"";t&&"undefined"!==typeof window&&(window._AMapSecurityConfig={securityJsCode:t})}isSdkLoaded(){return ue("AMap")&&"function"===typeof window.AMap}async createMap(){const t=window.AMap;if(!t)throw new Error("[XtMap] 高德地图 SDK 未加载");const e={center:this.center,zoom:this.zoom,mapStyle:pe[this.theme]||pe.light,viewMode:"2D",resizeEnable:!0};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),await new Promise(t=>{this.mapInstance.on("complete",()=>t()),setTimeout(t,1500)});for(const[n,i]of this.eventHandlers.entries())this._bindEvent(n,i)}_applyMapType(t){if(!this.mapInstance)return;const e=window.AMap;if(e){this._clearLayers();try{this.mapInstance.setMapStyle(pe[this.theme]||pe.light),"satellite"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this.mapInstance.add(this._satelliteLayer),this._currentLayers.push(this._satelliteLayer)):"hybrid"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this._roadnetLayer=new e.TileLayer.RoadNet,this.mapInstance.add([this._satelliteLayer,this._roadnetLayer]),this._currentLayers.push(this._satelliteLayer,this._roadnetLayer)):"traffic"===t&&(this._trafficLayer=new e.TileLayer.Traffic({autoRefresh:!0,interval:180}),this.mapInstance.add(this._trafficLayer),this._currentLayers.push(this._trafficLayer))}catch(n){console.warn("[XtMap] 设置地图类型失败:",n)}}}_clearLayers(){if(this.mapInstance){try{this._currentLayers.length>0&&this.mapInstance.remove(this._currentLayers)}catch(t){}this._currentLayers=[],this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null}}_applyTheme(t){if(this.mapInstance)try{this.mapInstance.setMapStyle(pe[t]||pe.light),this._applyMapType(this.mapType)}catch(e){console.warn("[XtMap] 设置主题失败:",e)}}_applyCenter(t){if(this.mapInstance)try{this.mapInstance.setCenter(t)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomchange",mapmove:"mapmove",complete:"complete",resize:"resize"},i=n[t]||t;this.mapInstance.on(i,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.lng,t.lnglat.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.off(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.resize)try{this.mapInstance.resize()}catch(t){}}destroy(){this._clearLayers(),super.destroy()}}const ge={standard:"vec",satellite:"img",hybrid:"img",traffic:"vec"},ye={light:"none",dark:"invert(1) hue-rotate(180deg) saturate(1.2) brightness(0.95)"};class ve extends he{constructor(t,e={}){super(t,e),this._mapTypeMap={...ge},this._layerType=e.tiandituLayerType||"vec",this._currentLayer=null,this._annotationLayer=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?"https://api.tianditu.gov.cn/api?v=4.0&tk="+encodeURIComponent(this.apiKey):(console.warn("[XtMap] 天地图需要配置 apiKey (tk)"),"")}isSdkLoaded(){return ue("T")&&"object"===typeof window.T&&window.T.Map}async createMap(){const t=window.T;if(!t||!t.Map)throw new Error("[XtMap] 天地图 SDK 未加载");const e={center:new t.LngLat(this.center[0],this.center[1]),zoom:this.zoom};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>{setTimeout(t,500)});for(const[n,i]of this.eventHandlers.entries())this._bindEvent(n,i)}_applyMapType(t){if(!this.mapInstance)return;const e=window.T;if(e)try{this._mapTypeMap[t];"standard"===t?this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1):"satellite"===t?this.mapInstance.setMapType(window.TMAP_SATELLITE_MAP||2):"hybrid"===t?this.mapInstance.setMapType(window.TMAP_HYBRID_MAP||3):this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1)}catch(n){console.warn("[XtMap] 天地图切换地图类型失败:",n)}}_applyTheme(t){if(!this.container)return;const e=ye[t]||"none",n=this.container.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e}),this.container.setAttribute("data-map-theme",t),this._setupThemeObserver(t)}_setupThemeObserver(t){if(this._themeObserver&&this._themeObserver.disconnect(),"dark"!==t)return;const e=ye[t];this._themeObserver=new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{if(1===t.nodeType)if("IMG"===t.tagName)t.style.filter=e,t.style.webkitFilter=e;else if(t.querySelectorAll){const n=t.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e})}})})});try{this._themeObserver.observe(this.container,{childList:!0,subtree:!0})}catch(n){}}_applyCenter(t){if(this.mapInstance&&window.T)try{this.mapInstance.centerAndZoom(new window.T.LngLat(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t&&void 0!==t.getLng)return[t.getLng(),t.getLat()]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend"},i=n[t]||t;this.mapInstance.addEventListener(i,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.getLng(),t.lnglat.getLat()]:null};e(n)})}catch(n){console.warn("[XtMap] 天地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.checkResize)try{this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._themeObserver&&(this._themeObserver.disconnect(),this._themeObserver=null),this.mapInstance&&"function"===typeof this.mapInstance.clearOverLays)try{this.mapInstance.clearOverLays()}catch(t){}super.destroy()}}const me={standard:"BMAP_NORMAL_MAP",satellite:"BMAP_SATELLITE_MAP",hybrid:"BMAP_HYBRID_MAP",traffic:"BMAP_NORMAL_MAP"},be={light:{style:"normal"},dark:{style:"dark"}};class xe extends he{constructor(t,e={}){super(t,e),this._mapTypeMap={...me},this._coordType=e.baiduCoordType||"bd09ll",this._trafficLayer=null,this._callbackName=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://api.map.baidu.com/api?v=3.0&ak=${encodeURIComponent(this.apiKey)}&callback=${this._callbackName}`:(console.warn("[XtMap] 百度地图需要配置 apiKey (ak)"),"")}beforeLoadScript(){this._callbackName=`__xt_map_baidu_${Date.now()}_${Math.floor(1e5*Math.random())}`,"undefined"!==typeof window&&(window[this._callbackName]=()=>{})}isSdkLoaded(){return ue("BMap")&&"function"===typeof window.BMap}async createMap(){const t=window.BMap;if(!t)throw new Error("[XtMap] 百度地图 SDK 未加载");const e={enableMapClick:!1};this.mapInstance=new t.Map(this.container,e),this.mapInstance.centerAndZoom(new t.Point(this.center[0],this.center[1]),this.zoom),this.mapInstance.enableScrollWheelZoom(!0),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>setTimeout(t,500));for(const[n,i]of this.eventHandlers.entries())this._bindEvent(n,i)}_applyMapType(t){if(this.mapInstance&&window.BMap)try{if(this._trafficLayer){try{this.mapInstance.removeTileLayer(this._trafficLayer)}catch(e){}this._trafficLayer=null}if("satellite"===t)this.mapInstance.setMapType(window.BMAP_SATELLITE_MAP||1);else if("hybrid"===t)this.mapInstance.setMapType(window.BMAP_HYBRID_MAP||2);else if("traffic"===t){this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0);try{const t=window.BMap;this._trafficLayer=new t.TrafficLayer,this.mapInstance.addTileLayer(this._trafficLayer)}catch(e){console.warn("[XtMap] 百度地图加载路况图层失败:",e)}}else this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0)}catch(e){console.warn("[XtMap] 百度地图切换地图类型失败:",e)}}_applyTheme(t){if(this.mapInstance&&window.BMap)try{const e=be[t]||be.light;if(this.mapInstance.setMapStyleV2)this.mapInstance.setMapStyleV2({styleId:"dark"===e.style?"midnight":""});else if(this.mapInstance.setMapStyle){const e="dark"===t?this._getDarkStyleJson():null;e&&this.mapInstance.setMapStyle({styleJson:e})}}catch(e){console.warn("[XtMap] 百度地图设置主题失败:",e)}}_getDarkStyleJson(){return[{featureType:"land",elementType:"geometry",stylers:{color:"#1a1a1a"}},{featureType:"water",elementType:"geometry",stylers:{color:"#0a1a2a"}},{featureType:"green",elementType:"geometry",stylers:{color:"#0a2a1a"}},{featureType:"building",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"highway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"highway",elementType:"geometry.stroke",stylers:{color:"#4a4a4a"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#333333"}},{featureType:"arterial",elementType:"geometry.stroke",stylers:{color:"#3d3d3d"}},{featureType:"local",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"railway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"subway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"boundary",elementType:"geometry",stylers:{color:"#666666"}},{featureType:"district",elementType:"labels.text.fill",stylers:{color:"#888888"}},{featureType:"poi",elementType:"labels",stylers:{visibility:"off"}}]}_applyCenter(t){if(this.mapInstance&&window.BMap)try{this.mapInstance.centerAndZoom(new window.BMap.Point(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t)return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend",mapmove:"movestart"},i=n[t]||t;this.mapInstance.addEventListener(i,t=>{const n={originalEvent:t,lnglat:t&&t.point?[t.point.lng,t.point.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 百度地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.enableResize)try{"function"===typeof this.mapInstance.checkResize&&this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._callbackName&&"undefined"!==typeof window)try{delete window[this._callbackName]}catch(t){}super.destroy()}}const _e={amap:fe,tianditu:ve,baidu:xe},we=t=>_e[t]||fe;const Se=["amap","tianditu","baidu"],Me=["standard","satellite","hybrid","traffic"],Oe=["light","dark"],Te={provider:"amap",apiKey:"",apiUrl:null,mapType:"standard",theme:"light",center:[116.397428,39.90923],zoom:11,plugins:[],securityJsCode:null,tiandituLayerType:"vec",baiduCoordType:"bd09ll"};let Ie={...Te};const Ce=[],Ae=(t,e)=>{Ce.forEach(n=>{try{n(t,e)}catch(i){console.warn("[XtMap] 配置变更监听异常:",i)}})},ke=()=>({...Ie}),De=t=>{Se.includes(t)?(Ie.provider=t,Ae("provider",t)):console.warn(`[XtMap] 无效的地图提供商: ${t},可选: ${Se.join(", ")}`)},Le=t=>{Ie.apiKey=t,Ae("apiKey",t)},Pe=t=>{Ie.apiUrl=t,Ae("apiUrl",t)},je=t=>{Me.includes(t)?(Ie.mapType=t,Ae("mapType",t)):console.warn(`[XtMap] 无效的地图类型: ${t},可选: ${Me.join(", ")}`)},Ne=t=>{Oe.includes(t)?(Ie.theme=t,Ae("theme",t)):console.warn(`[XtMap] 无效的主题: ${t},可选: ${Oe.join(", ")}`)},Re=t=>{Array.isArray(t)&&2===t.length?(Ie.center=t,Ae("center",t)):console.warn("[XtMap] center 必须是 [lng, lat] 数组")},Ee=t=>{const e=Number(t);isNaN(e)?console.warn("[XtMap] zoom 必须是数字"):(Ie.zoom=e,Ae("zoom",e))},ze=t=>{Array.isArray(t)?(Ie.plugins=t,Ae("plugins",t)):console.warn("[XtMap] plugins 必须是数组")},Be=t=>{Ie.securityJsCode=t,"undefined"!==typeof window&&t&&(window._AMapSecurityConfig={securityJsCode:t,...window._AMapSecurityConfig||{}}),Ae("securityJsCode",t)},Ve=()=>Ie.provider,Fe=()=>Ie.apiKey,He=()=>Ie.apiUrl,Ge=()=>Ie.mapType,We=()=>Ie.theme,Ye=()=>Ie.center,Ue=()=>Ie.zoom,Xe=()=>Ie.plugins,$e=t=>{if("function"===typeof t)return Ce.push(t),()=>{const e=Ce.indexOf(t);e>-1&&Ce.splice(e,1)}};var Ze={name:"XtMap",props:{provider:{type:String,default:"",validator:t=>""===t||Se.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||Me.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Oe.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},width:{type:String,default:"100%"},height:{type:String,default:"400px"},securityJsCode:{type:String,default:""},tiandituLayerType:{type:String,default:"vec"},baiduCoordType:{type:String,default:"bd09ll"}},data(){return{loading:!0,errorMessage:"",adapter:null,_unsubscribeConfig:null}},computed:{mergedProvider(){return this.provider||Ve()||"amap"},mergedApiKey(){return this.apiKey||Fe()||""},mergedApiUrl(){return this.apiUrl||He()||""},mergedMapType(){return this.mapType||Ge()||"standard"},mergedTheme(){return this.theme||We()||"light"},mergedCenter(){return this.center||Ye()||[116.397428,39.90923]},mergedZoom(){return null!==this.zoom?this.zoom:Ue()},mergedSecurityJsCode(){return this.securityJsCode||ke().securityJsCode||""},mergedPlugins(){return this.plugins.length>0?this.plugins:ke().plugins||[]}},watch:{mergedProvider:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedApiKey:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedMapType:{handler(t){this.adapter&&this.adapter.setMapType(t)}},mergedTheme:{handler(t){this.adapter&&this.adapter.setTheme(t),this.$refs.mapContainer&&this.$refs.mapContainer.setAttribute("data-theme",t)}},mergedCenter:{handler(t){this.adapter&&this.adapter.setCenter(t)}},mergedZoom:{handler(t){this.adapter&&this.adapter.setZoom(t)}},width:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},height:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},securityJsCode:{handler(t){t&&(Be(t),"amap"===this.mergedProvider&&this.adapter&&this.adapter.ready&&this.$nextTick(()=>this.rebuildMap()))}}},mounted(){this._unsubscribeConfig=$e((t,e)=>{this.provider||"provider"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiKey||"apiKey"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiUrl||"apiUrl"!==t||this.$nextTick(()=>this.rebuildMap()),!this.theme&&"theme"===t&&this.adapter&&this.adapter.setTheme(e),!this.mapType&&"mapType"===t&&this.adapter&&this.adapter.setMapType(e),!this.center&&"center"===t&&this.adapter&&this.adapter.setCenter(e),null===this.zoom&&"zoom"===t&&this.adapter&&this.adapter.setZoom(e)}),this.securityJsCode&&Be(this.securityJsCode),this.$nextTick(()=>this.initMap()),this._onWindowResize=()=>{this.adapter&&this.adapter.resize()},"undefined"!==typeof window&&window.addEventListener("resize",this._onWindowResize)},beforeDestroy(){this.destroyMap(),this._unsubscribeConfig&&this._unsubscribeConfig(),this._onWindowResize&&"undefined"!==typeof window&&window.removeEventListener("resize",this._onWindowResize)},methods:{async initMap(){const t=this.$refs.mapContainer;if(!t)return;t.style.width=this.width,t.style.height=this.height,this.securityJsCode&&Be(this.securityJsCode),this.loading=!0,this.errorMessage="";const e=we(this.mergedProvider);this.adapter=new e(t,{apiKey:this.mergedApiKey,apiUrl:this.mergedApiUrl,mapType:this.mergedMapType,theme:this.mergedTheme,center:this.mergedCenter,zoom:this.mergedZoom,plugins:this.mergedPlugins,securityJsCode:this.mergedSecurityJsCode,tiandituLayerType:this.tiandituLayerType,baiduCoordType:this.baiduCoordType});try{await this.adapter.init(),this.loading=!1,this._bindAdapterEvents(),this.$emit("ready",{provider:this.mergedProvider,map:this.adapter.getNativeMap(),adapter:this.adapter})}catch(n){this.loading=!1,this.errorMessage=n.message||"地图初始化失败",this.$emit("error",n)}},rebuildMap(){this.destroyMap(),"function"===typeof le&&le(),this.$nextTick(()=>this.initMap())},destroyMap(){this.adapter&&(this.adapter.destroy(),this.adapter=null)},_bindAdapterEvents(){if(!this.adapter)return;const t=["click","moveend","zoomend","zoomchange","mapmove"];t.forEach(t=>{this.adapter.on(t,e=>{this.$emit(t,e)})})},setCenter(t){this.adapter&&this.adapter.setCenter(t)},setZoom(t){this.adapter&&this.adapter.setZoom(t)},setMapType(t){this.adapter&&this.adapter.setMapType(t)},setTheme(t){this.adapter&&this.adapter.setTheme(t)},getCenter(){return this.adapter?this.adapter.getCenter():this.mergedCenter},getZoom(){return this.adapter?this.adapter.getZoom():this.mergedZoom},getNativeMap(){return this.adapter?this.adapter.getNativeMap():null},resize(){this.adapter&&this.adapter.resize()},on(t,e){this.adapter&&this.adapter.on(t,e)},off(t){this.adapter&&this.adapter.off(t)},rebuild(){this.rebuildMap()}}},qe=Ze,Ke=B(qe,ie,re,!1,null,null,null),Qe=Ke.exports;Qe.install=function(t){t.component(Qe.name,Qe)};var Je=Qe,tn=function(){var t=this,e=t._self._c;return e("div",{class:["xt-map-provider",{"xt-map-provider--dark":"dark"===t.mergedTheme}],style:t.wrapperStyle},[t._t("default")],2)},en=[],nn={name:"XtMapProvider",props:{provider:{type:String,default:"",validator:t=>""===t||Se.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||Me.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Oe.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},securityJsCode:{type:String,default:""},tag:{type:String,default:"div"}},data(){return{mergedTheme:this.theme||We()||"light"}},computed:{wrapperStyle(){return{}}},watch:{provider:{immediate:!0,handler(t){t&&De(t)}},apiKey:{immediate:!0,handler(t){t&&Le(t)}},apiUrl:{immediate:!0,handler(t){t&&Pe(t)}},mapType:{immediate:!0,handler(t){t&&je(t)}},theme:{immediate:!0,handler(t){t&&(Ne(t),this.mergedTheme=t)}},center:{immediate:!0,handler(t){t&&Re(t)}},zoom:{immediate:!0,handler(t){null!==t&&void 0!==t&&Ee(t)}},plugins:{immediate:!0,handler(t){t&&t.length>0&&ze(t)}},securityJsCode:{immediate:!0,handler(t){t&&Be(t)}}},provide(){return{xtMapConfig:{getProvider:()=>this.provider||Ve(),getApiKey:()=>this.apiKey||Fe(),getApiUrl:()=>this.apiUrl||He(),getMapType:()=>this.mapType||Ge(),getTheme:()=>this.theme||We(),getCenter:()=>this.center||Ye(),getZoom:()=>null!==this.zoom?this.zoom:Ue(),getPlugins:()=>this.plugins.length>0?this.plugins:Xe(),getConfig:()=>({provider:this.provider||Ve(),apiKey:this.apiKey||Fe(),apiUrl:this.apiUrl||He(),mapType:this.mapType||Ge(),theme:this.theme||We(),center:this.center||Ye(),zoom:null!==this.zoom?this.zoom:Ue()})}}},created(){this._unsubscribe=$e((t,e)=>{"theme"===t&&(this.mergedTheme=this.theme||e)})},beforeDestroy(){this._unsubscribe&&this._unsubscribe()}},rn=nn,an=(n("3cef"),B(rn,tn,en,!1,null,"16f243b0",null)),on=an.exports;on.install=function(t){t.component(on.name,on)};var sn=on,ln=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-box",style:t.styleAttrs},[t._t("default")],2)},un=[],cn={name:"XtGridBox",props:{columns:{type:[String,Array,Number],default:"1fr"},rows:{type:[String,Array],default:"auto"},gap:{type:String,default:""},rowGap:{type:String,default:""},colGap:{type:String,default:""},flow:{type:String,default:"row",validator:t=>["row","column","row dense","column dense"].includes(t)},areas:{type:[String,Array],default:""},align:{type:String,default:"stretch",validator:t=>["start","end","center","stretch","baseline"].includes(t)},justify:{type:String,default:"start",validator:t=>["start","end","center","space-between","space-around","space-evenly","stretch"].includes(t)},responsive:{type:Object,default:()=>({})},autoFlow:{type:String,default:""}},computed:{styleAttrs(){const t={display:"grid"};return"number"===typeof this.columns?t.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:Array.isArray(this.columns)?t.gridTemplateColumns=this.columns.join(" "):t.gridTemplateColumns=this.columns,Array.isArray(this.rows)?t.gridTemplateRows=this.rows.join(" "):t.gridTemplateRows=this.rows,this.gap?t.gap=this.gap:(this.rowGap&&(t.rowGap=this.rowGap),this.colGap&&(t.columnGap=this.colGap)),this.flow&&(t.gridAutoFlow=this.flow),this.areas&&(Array.isArray(this.areas)?t.gridTemplateAreas=this.areas.map(t=>`"${t}"`).join(" "):t.gridTemplateAreas=this.areas),this.align&&(t.placeItems=this.align),this.justify&&(t.placeContent=this.justify),Object.keys(this.responsive).length>0&&this.addResponsiveStyles(t),t}},methods:{addResponsiveStyles(t){const e={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};Object.entries(this.responsive).forEach(([t,n])=>{if(e[t]){e[t]}})}}},hn=cn,dn=B(hn,ln,un,!1,null,null,null),pn=dn.exports;pn.install=function(t){t.component(pn.name,pn)};var fn=pn,gn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-item",style:t.styleAttrs},[t._t("default")],2)},yn=[],vn={name:"XtGridItem",props:{span:{type:Number,default:1,validator:t=>t>0},rowSpan:{type:Number,default:1,validator:t=>t>0},start:{type:Number,default:0,validator:t=>t>=0},rowStart:{type:Number,default:0,validator:t=>t>=0},area:{type:String,default:""},justifySelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch"].includes(t)},alignSelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch","baseline"].includes(t)},customClass:{type:String,default:""}},computed:{styleAttrs(){const t={};return this.span>1&&(t.gridColumnEnd="span "+this.span),this.rowSpan>1&&(t.gridRowEnd="span "+this.rowSpan),this.start>0&&(t.gridColumnStart=this.start),this.rowStart>0&&(t.gridRowStart=this.rowStart),this.area&&(t.gridArea=this.area),this.justifySelf&&"auto"!==this.justifySelf&&(t.justifySelf=this.justifySelf),this.alignSelf&&"auto"!==this.alignSelf&&(t.alignSelf=this.alignSelf),t}}},mn=vn,bn=(n("d728"),B(mn,gn,yn,!1,null,"5318efc6",null)),xn=bn.exports;xn.install=function(t){t.component(xn.name,xn)};var _n=xn,wn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-progress",class:["xt-progress--"+t.type,"xt-progress--"+t.size]},["line"===t.type?e("div",{staticClass:"xt-progress__bar"},[e("div",{staticClass:"xt-progress__bar-inner",style:{width:t.percentage+"%",backgroundColor:t.color}},[e("transition",{attrs:{name:"xt-progress-fade"}},[t.showText?e("div",{staticClass:"xt-progress__bar-text"},[t._v(t._s(t.percentage)+"%")]):t._e()])],1)]):"circle"===t.type?e("div",{staticClass:"xt-progress__circle"},[e("svg",{staticClass:"xt-progress__circle-svg",attrs:{width:t.circleSize,height:t.circleSize}},[e("circle",{staticClass:"xt-progress__circle-bg",attrs:{cx:t.circleSize/2,cy:t.circleSize/2,r:t.circleRadius,fill:"none",stroke:t.bgColor,"stroke-width":t.strokeWidth}}),e("circle",{staticClass:"xt-progress__circle-bar",attrs:{cx:t.circleSize/2,cy:t.circleSize/2,r:t.circleRadius,fill:"none",stroke:t.color,"stroke-width":t.strokeWidth,"stroke-dasharray":t.circleLength,"stroke-dashoffset":t.circleOffset,"stroke-linecap":"round",transform:"rotate(-90 ${circleSize / 2} ${circleSize / 2})"}})]),t.showText?e("div",{staticClass:"xt-progress__circle-text"},[e("span",{staticClass:"xt-progress__circle-percent"},[t._v(t._s(t.percentage)+"%")])]):t._e()]):t._e(),t.showText&&"line"===t.type?e("div",{staticClass:"xt-progress__text"},[t._v(t._s(t.percentage)+"%")]):t._e()])},Sn=[],Mn={name:"XtProgress",props:{percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},type:{type:String,default:"line",validator:t=>["line","circle"].includes(t)},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},color:{type:String,default:"#1890ff"},bgColor:{type:String,default:"#ebeef5"},showText:{type:Boolean,default:!0},strokeWidth:{type:Number,default:6},circleSize:{type:Number,default:120}},computed:{circleRadius(){return(this.circleSize-this.strokeWidth)/2},circleLength(){return 2*Math.PI*this.circleRadius},circleOffset(){return this.circleLength*(1-this.percentage/100)}}},On=Mn,Tn=B(On,wn,Sn,!1,null,null,null),In=Tn.exports;In.install=function(t){t.component(In.name,In)};var Cn=In,An=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-tabs",class:["xt-tabs--"+t.position,{"xt-tabs--card":"card"===t.type}]},[e("div",{staticClass:"xt-tabs__header"},[e("div",{staticClass:"xt-tabs__nav"},t._l(t.panes,(function(n,i){return e("div",{key:n.name,staticClass:"xt-tabs__nav-item",class:{"xt-tabs__nav-item--active":t.activeName===n.name},on:{click:function(e){return t.handleTabClick(n.name)}}},[e("span",{staticClass:"xt-tabs__nav-link"},[t._v(t._s(n.label))])])})),0),e("div",{staticClass:"xt-tabs__nav-indicator",style:t.indicatorStyle})]),e("div",{staticClass:"xt-tabs__content"},[e("transition",{attrs:{name:"xt-tabs-fade",mode:"out-in"}},t._l(t.panes,(function(n,i){return e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeName===n.name,expression:"activeName === pane.name"}],key:n.name,staticClass:"xt-tabs__pane"},[t._t(n.name)],2)})),0)],1)])},kn=[],Dn={name:"XtTabs",props:{value:{type:[String,Number],default:""},type:{type:String,default:"default",validator:t=>["default","card"].includes(t)},position:{type:String,default:"top",validator:t=>["top","bottom","left","right"].includes(t)}},data(){return{panes:[],activeName:this.value}},watch:{value(t){this.activeName=t},activeName(t){this.$emit("input",t),this.$emit("change",t)}},computed:{indicatorStyle(){const t=this.panes.findIndex(t=>t.name===this.activeName);if(-1===t)return{display:"none"};const e=this.$el&&this.$el.querySelectorAll(".xt-tabs__nav-item");if(!e||0===e.length)return{display:"none"};const n=e[t];return{left:n.offsetLeft+"px",width:n.offsetWidth+"px",display:"block"}}},methods:{handleTabClick(t){this.activeName=t},addPane(t){this.panes.find(e=>e.name===t.name)||(this.panes.push(t),this.activeName||1!==this.panes.length||(this.activeName=t.name))},removePane(t){const e=this.panes.findIndex(e=>e.name===t);e>-1&&this.panes.splice(e,1)}},mounted(){this.$children.forEach(t=>{"XtTabPane"===t.$options.name&&this.addPane({name:t.name,label:t.label})})}},Ln=Dn,Pn=B(Ln,An,kn,!1,null,null,null),jn=Pn.exports,Nn=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"xt-tab-pane"},[t._t("default")],2)},Rn=[],En={name:"XtTabPane",props:{name:{type:[String,Number],required:!0},label:{type:String,default:""}},computed:{isActive(){return this.$parent&&this.$parent.activeName===this.name}},mounted(){this.$parent&&"function"===typeof this.$parent.addPane&&this.$parent.addPane({name:this.name,label:this.label})},beforeDestroy(){this.$parent&&"function"===typeof this.$parent.removePane&&this.$parent.removePane(this.name)}},zn=En,Bn=B(zn,Nn,Rn,!1,null,null,null),Vn=Bn.exports;jn.install=function(t){t.component(jn.name,jn),t.component(Vn.name,Vn)};var Fn=jn,Hn=function(){var t=this,e=t._self._c;return e("span",{class:t.rootClasses},[e("span",{staticClass:"xt-badge__content"},[t._t("default")],2),t.hidden||!t.value&&!t.isDot?t._e():e("span",{staticClass:"xt-badge__badge",style:t.badgeStyle},[t.isDot?e("span"):t.isOverflow?e("span",[t._v(t._s(t.overflowText))]):e("span",[t._v(t._s(t.value))])])])},Gn=[],Wn={name:"XtBadge",props:{value:{type:[Number,String],default:""},type:{type:String,default:"primary",validator:t=>["primary","success","warning","danger","info"].includes(t)},max:{type:Number,default:99},isDot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},showOverflow:{type:Boolean,default:!0},fixed:{type:Boolean,default:!1},color:{type:String,default:""}},computed:{rootClasses(){return["xt-badge","xt-badge--"+this.type,{"xt-badge--dot":this.isDot},{"xt-badge--hidden":this.hidden},{"xt-badge--fixed":this.fixed}]},badgeStyle(){const t={};return this.color&&(t.backgroundColor=this.color),t},overflowText(){return this.max+"+"},isOverflow(){return this.showOverflow&&this.value>this.max}}},Yn=Wn,Un=B(Yn,Hn,Gn,!1,null,null,null),Xn=Un.exports;Xn.install=function(t){t.component(Xn.name,Xn)};var $n=Xn,Zn=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},["quarter"==t.dateType?e("XtFlexBox",{staticClass:"xt-date-picker",class:{focus:t.isfocus},style:t.width?{width:""+t.width}:{},attrs:{type:"inline-flex"}},[e("Quarter",{attrs:{format:t.format,placeholder:"开始时间","quarter-type":"quarter-start",clearable:""},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("Quarter",{attrs:{format:t.format,placeholder:"结束时间","quarter-type":"quarter-end",clearable:""},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1):e("XtFlexBox",{staticClass:"xt-date",class:{focus:t.isfocus},style:t.width?{width:t.width+"px"}:{},attrs:{type:"inline-flex"}},[e("el-date-picker",{key:"startSelect",ref:"timeStart",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.startTimeRange,format:t.format,type:t.dateType,placeholder:"开始时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("el-date-picker",{key:"endSelect",ref:"timeEnd",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.endTimeRange,format:t.format,type:t.dateType,placeholder:"结束时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1)],1)},qn=[],Kn=function(){var t=this,e=t._self._c;return e("el-popover",{attrs:{trigger:"click",disabled:t.disabled,transition:"el-zoom-in-top",placement:t.placement,width:t.popoverWidth},on:{hide:t.handleBlur},model:{value:t.popoverVisible,callback:function(e){t.popoverVisible=e},expression:"popoverVisible"}},[e("div",{staticClass:"quarter-wrapper"},[e("BaseFlexBox",{attrs:{content:"between"}},[e("i",{staticClass:"el-icon-d-arrow-left",on:{click:t.prev}}),e("span",[t._v(t._s(t.selectYear))]),e("i",{staticClass:"el-icon-d-arrow-right",on:{click:t.after}})]),e("BaseFlexBox",{staticStyle:{"margin-top":"10px"},attrs:{content:"between"}},t._l(t.quarterList,(function(n){return e("el-button",{key:n.value,attrs:{disabled:t.getDisable(n),type:t.currentyear==t.selectYear&&n.value==t.currentQuarter?"primary":"",size:"mini",round:""},on:{click:function(e){return t.setCurrent(n)}}},[t._v(t._s(n.label))])})),1)],1),e("el-input",{ref:"reference",attrs:{slot:"reference",size:"small",value:t.quarterLabel,readonly:"",title:t.value,placeholder:t.placeholder,"prefix-icon":"el-icon-date",clearable:""},slot:"reference"})],1)},Qn=[],Jn=n("340b"),ti=n.n(Jn),ei={name:"DateQuarter",components:{BaseFlexBox:et},model:{props:"value",event:"change"},props:{value:{},quarterType:{type:String,default:"quarter"},placement:{type:String,default:"bottom-start"},format:{type:String,default:"yy-Qq"},popoverWidth:Number,placeholder:{},pickerOptions:{type:Object,default:()=>({disabledDate:()=>!1})},disabled:{}},data(){const t=this.getQuarterDate(this.value),e=t?t.getFullYear():"",n=t?t.getMonth():"",i=t?t.getFullYear():(new Date).getFullYear();return{dateVal:t,currentyear:e,currentQuarter:ti.a.getQuarter(t),selectYear:i,currentMonth:n,popoverVisible:!1,quarterList:[{label:"Q1",value:1},{label:"Q2",value:2},{label:"Q3",value:3},{label:"Q4",value:4}]}},computed:{diffQuarter(){return 4*(this.selectYear-this.currentyear)-this.currentQuarter},quarterLabel:{get(){return this.currentyear&&this.currentQuarter?this.getFormatVal():""}}},methods:{getQuarterDate(t){if(!t)return null;if("quarter-start"==this.quarterType)return ti.a.startOfQuarter(t);if("quarter-end"==this.quarterType)return ti.a.endOfQuarter(t);{const e=ti.a.getQuarter(t);return ti.a.setQuarter(this.value,e)}},getDisable(t){},handleChangeVal(t){},getFormatVal(){if(!this.format)return`${this.currentyear}-Q${this.currentQuarter}`;const t={y:this.currentyear,q:this.currentQuarter},e=this.format.replace(/(y|q)+/g,(e,n)=>{const i=t[n];return i||""});return e},setCurrent(t){this.dateVal||(this.dateVal=new Date),this.dateVal.setFullYear(this.selectYear),this.dateVal=ti.a.setQuarter(this.dateVal,t.value),this.$emit("change",this.dateVal),this.currentQuarter=t.value,this.currentyear=this.selectYear,this.popoverVisible=!1},after(){this.dateVal.setFullYear(this.dateVal.getFullYear()+1),this.selectYear=this.dateVal.getFullYear()},prev(){this.dateVal.setFullYear(this.dateVal.getFullYear()-1),this.selectYear=this.dateVal.getFullYear()},handleBlur(){this.$refs.reference.blur()}}},ni=ei,ii=B(ni,Kn,Qn,!1,null,null,null),ri=ii.exports;const ai={datetime:"yyyy-MM-dd HH:mm",month:"yyyy-MM",year:"yyyy",date:"yyyy-MM-dd",quarter:"yyyy-Qq",week:"yyyy-WW"};var oi={name:"XtDatePicker",components:{XtFlexBox:et,Quarter:ri},model:{prop:"value",event:"change"},props:{value:{},dateType:{type:String,default:"date"},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0},placeholder:{},width:{type:[String],default:"100%"}},data(){return{isfocus:!1}},computed:{format(){return ai[this.dateType]||"yyyy-MM-dd"},timeStart:{get(){return this.value&&this.value[0]},set(t){this.$emit("update:value",[t,this.timeEnd]),this.$emit("change",[t,this.timeEnd])}},timeEnd:{get(){return this.value&&this.value[1]},set(t){this.$emit("update:value",[this.timeStart,t]),this.$emit("change",[this.timeStart,t])}},startTimeRange(){if(!this.timeEnd)return{};const t=this.timeEnd.getTime();return{disabledDate:e=>e.getTime()>t}},endTimeRange(){if(!this.timeStart)return{};const t=this.timeStart.getTime();return{disabledDate:e=>e.getTime()<t}}},methods:{}},si=oi,li=(n("5798"),B(si,Zn,qn,!1,null,"67b7b031",null)),ui=li.exports;ui.install=function(t){t.component(ui.name,ui)};var ci=ui,hi=function(){var t=this,e=t._self._c;return"bar"==t.type?e("xt-bar",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-bar",t.$attrs,!1)):"line"==t.type?e("xt-line",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-line",t.$attrs,!1)):"pie"==t.type?e("xt-pie",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-pie",t.$attrs,!1)):"multi"==t.type?e("xt-multi",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"xt-multi",t.$attrs,!1)):t._e()},di=[],pi=function(){var t=this,e=t._self._c;return e("div",{ref:"barchart",staticClass:"bar-box",style:t.chartStyle})},fi=[],gi={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,label:"吴十"},{value:70,label:"唐九"},{value:73,label:"钱一"},{value:78,label:"孙二"},{value:88,label:"刘八"},{value:93,label:"王七"},{value:99,label:"赵六"},{value:103,label:"宋五"},{value:113,label:"李四"},{value:125,label:"张三"}]},theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},markPoint:{type:Boolean,default:!1},unit:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null,name:"数量"}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart(),g.bindResizeObserver(this.$refs.barchart,this.myChart)},beforeUnmount(){g.unbindResizeObserver(this.$refs.barchart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(e){return!t.reverse&&t.longLable?e.replace(new RegExp(`(.{${t.longLableSplitNum}})`,"g"),"$1\n"):e}},data:t.chartData.map(t=>t[e.label])},i={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:t.energyType,axisTick:{inside:!0},min:0,splitNumber:t.splitNumber,max:function(e){return Math.ceil(e.max/t.splitNumber)*t.splitNumber},scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=t/1e4+"万":t>=1e7&&(t=t/1e7+"千万"),t}}},r={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?t.longLablePx:0),right:"10",bottom:(t.showZoom?50:20)+(!t.reverse&&t.longLable?t.longLablePx:0),containLabel:!0},xAxis:this.reverse?i:n,yAxis:this.reverse?n:i,series:{name:t.unit,type:"bar",avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const i=t[e.label],r=t[e.value];return{value:r,name:i,tooltip:{borderWidth:1}}})},dataZoom:t.showZoom?[{height:20,bottom:0}]:[]};this.simpleMode&&g.applySimpleMode(r,"bar"),this.myChart=g.init(t.$refs.barchart,this.theme,r,this.size)}}},yi=gi,vi=(n("80ec"),B(yi,pi,fi,!1,null,"6f672c2b",null)),mi=vi.exports,bi=function(){var t=this,e=t._self._c;return e("div",{ref:"linechart",staticClass:"line-box",style:t.chartStyle})},xi=[],_i={name:"XtLine",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},isArea:{type:Boolean,default:!1},unit:{type:String,default:""},intervalvalue:{type:Number,default:0},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart(),g.bindResizeObserver(this.$refs.linechart,this.myChart)},beforeUnmount(){g.unbindResizeObserver(this.$refs.linechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={animationDuration:500,grid:{top:"18%",left:"30",right:"30",bottom:"20"},xAxis:{type:"category",axisLabel:{interval:this.intervalvalue},boundaryGap:!1,data:t.chartData.map(t=>t[e.label])},yAxis:{type:"value",axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},name:t.unit,scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}},series:[{type:"line",symbol:"circle",areaStyle:t.isArea?{}:null,smooth:!0,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>t[e.value])}]};this.simpleMode&&g.applySimpleMode(n,"line"),this.myChart=g.init(t.$refs.linechart,this.theme,n,this.size)}}},wi=_i,Si=(n("04c6"),B(wi,bi,xi,!1,null,"ee5ba2d8",null)),Mi=Si.exports,Oi=function(){var t=this,e=t._self._c;return e("div",{ref:"piechart",staticClass:"pie-box",style:t.chartStyle})},Ti=[],Ii={name:"XtPie",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},colors:{type:Array,default:()=>[]},unit:{type:String,default:""},showLegend:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},highlightKey:String,roseType:{type:String,default:""},showLabel:{type:Boolean,default:!0},totalLabel:{type:String,default:"总数"}},data(){return{myChart:null}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t},totalNum(){const t=Object.assign({label:"label",value:"value",data:"data"},this.fieldKeys||{});return this.chartData.map(e=>parseFloat(e[t.value])).reduce((t,e)=>t+e,0)}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.$nextTick(()=>{this.initChart(),g.bindResizeObserver(this.$refs.piechart,this.myChart)})},beforeUnmount(){g.unbindResizeObserver(this.$refs.piechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={title:{text:`${t.totalLabel}:${t.totalNum}`,textStyle:{},top:"middle",left:"center"},tooltip:{trigger:"item"},legend:this.showLegend?{top:"top",right:"20",type:"scroll"}:null,grid:{left:30,right:0,top:20,bottom:0,containLabel:!0},series:[{name:t.unit,type:"pie",center:["50%","50%"],roseType:this.roseType,radius:["50%","65%"],minAngle:5,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const i=t[e.label],r=t[e.value];return{value:r,name:i,labelLine:{show:this.showLabel},emphasis:{labelLine:{show:this.showLabel}},label:{show:this.showLabel},tooltip:{formatter:"{b}:{c} ({d}%)",position:"inside",borderWidth:1}}})}]};this.simpleMode&&g.applySimpleMode(n,"pie"),this.myChart=g.init(t.$refs.piechart,this.theme,n,this.size)}}},Ci=Ii,Ai=(n("4167"),B(Ci,Oi,Ti,!1,null,"21c338ab",null)),ki=Ai.exports,Di=function(){var t=this,e=t._self._c;return e("div",{ref:"multilinechart",staticClass:"multiline-box",style:t.chartStyle})},Li=[],Pi={name:"XtMulti",props:{theme:{},size:{type:String,default:"medium"},width:{type:String,default:"100%"},height:{type:String,default:"100%"},ratio:{type:Number,default:null},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},simpleMode:{type:Boolean,default:!1},highlightKey:String,config:{type:Object,default(){return{interval:0,rotate:0,gridbottom:40,isShowthreshold:!1}}},chartData:{type:Array,default:()=>[{label:"入户数",unit:"户",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",unit:"个",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",unit:"个",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]}},data(){return{myChart:null}},computed:{chartStyle(){const t={};return this.width&&(t.width=this.width),this.ratio?t.aspectRatio=this.ratio:this.height&&(t.height=this.height),t}},watch:{chartData:{deep:!0,handler(t,e){const n=this;this.myChart&&this.myChart.dispose(),this.myChart=null,n.initChart(),g.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},theme(t){this.myChart&&this.myChart.dispose(),this.myChart=null,this.initChart(),g.bindResizeObserver(this.$refs.multilinechart,this.myChart)}},mounted(){this.initChart(),g.bindResizeObserver(this.$refs.multilinechart,this.myChart)},beforeUnmount(){g.unbindResizeObserver(this.$refs.multilinechart),this.myChart&&this.myChart.dispose()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n=[];(t.chartData||[]).forEach(t=>{const e=t.unit||"";-1===n.indexOf(e)&&n.push(e)});const i=(t,e)=>{const n={type:"value",name:t,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}};return e>0&&(n.position="right",n.splitLine={show:!1}),n},r=n.length?n.map((t,e)=>i(t,e)):[i("",0)],a={};n.forEach((t,e)=>{a[t]=e});const o=t.chartData&&t.chartData.length&&t.chartData[0][e.data]||[],s={legend:{right:20,top:0,show:!0,data:t.chartData.map(t=>t[e.label]),textStyle:{}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",left:"40",right:"15",bottom:null==this.config.gridbottom?20:this.config.gridbottom},xAxis:{type:"category",axisLabel:{rotate:this.config.rotate},data:o.map(t=>t[e.label])},yAxis:r,dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData(a,e)};this.simpleMode&&g.applySimpleMode(s,"multi"),this.myChart=g.init(t.$refs.multilinechart,this.theme,s,this.size)},getSeriesData(t,e){const n=this,i=[];return n.chartData.forEach((n,r)=>{const a=n[e.data]||[],o={animation:!0,name:n[e.label],type:n.type||"bar",avoidLabelOverlap:!0,data:a.map(t=>t[e.value]),yAxisIndex:null!=t[n.unit||""]?t[n.unit||""]:0};i.push(o)}),i}}},ji=Pi,Ni=(n("3935"),B(ji,Di,Li,!1,null,"201ff8e5",null)),Ri=Ni.exports,Ei={name:"XtChart",components:{XtBar:mi,XtLine:Mi,XtPie:ki,XtMulti:Ri},props:{theme:{type:String,default:""},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},type:{type:String,required:!0,default:"bar"}},data(){return{myTheme:this.theme,mySize:this.size,observer:null}},mounted(){this.detectParentTheme(),this.observeThemeChange()},beforeUnmount(){this.observer&&this.observer.disconnect()},watch:{theme(t){this.myTheme=t},size(t){this.mySize=t}},methods:{detectParentTheme(){if(this.theme)return void(this.myTheme=this.theme);let t=this.$el?this.$el.parentElement:null;while(t){const e=t.getAttribute("data-theme");if(e)return void(this.myTheme="dark"===e?"dark":"default");t=t.parentElement}const e=document.body.getAttribute("data-theme"),n=document.documentElement.getAttribute("data-theme");this.myTheme="dark"===e||"dark"===n?"dark":"default"},observeThemeChange(){if(!this.$el)return;this.observer=new MutationObserver(t=>{t.forEach(t=>{if("attributes"===t.type&&"data-theme"===t.attributeName){const e=t.target.getAttribute("data-theme");"dark"===e?this.myTheme="dark":"light"===e&&(this.myTheme="default")}})});let t=this.$el.parentElement;while(t)this.observer.observe(t,{attributes:!0,attributeFilter:["data-theme"]}),t=t.parentElement;this.observer.observe(document.body,{attributes:!0,attributeFilter:["data-theme"]}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}}},zi=Ei,Bi=B(zi,hi,di,!1,null,null,null),Vi=Bi.exports;Vi.install=function(t){t.component(Vi.name,Vi)};var Fi=Vi,Hi=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(t.tag,t._g({tag:"component",class:t.iconClasses,style:t.iconStyle,on:{click:t.handleClick}},t.$listeners),[t.isSvgSprite?e("svg",{style:t.svgStyle,attrs:{"aria-hidden":"true"}},[e("use",{attrs:{href:t.svgHref}})]):t.hasDefaultSlot?t._t("default"):t._e()],2)},Gi=[];const Wi={},Yi={name:"XtIcon",inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:[String,Number],default:""},color:{type:String,default:""},spin:{type:Boolean,default:!1}},computed:{hasDefaultSlot(){return!!this.$slots.default},iconName(){return(this.name||"").trim()},isElIcon(){return/^el-icon-/.test(this.iconName)},isSvgInline(){return this.iconName.indexOf("<svg")>-1},isSvgSprite(){return/^(#|svg:)/.test(this.iconName)},isCustomFont(){return!!this.iconName&&(!this.isElIcon&&!this.isSvgInline&&!this.isSvgSprite)},svgHref(){if(!this.isSvgSprite)return"";const t=this.iconName.replace(/^svg:/,"").replace(/^#/,"");return"#"+t},needsExIconPrefix(){if(!this.isCustomFont)return!1;for(const t of Object.keys(Wi))if(0===this.iconName.indexOf(t))return!1;return!0},tag(){return this.isSvgInline?"span":"i"},iconClasses(){const t=[];return this.isElIcon?t.push(this.iconName):this.isSvgSprite?t.push("ex-icon-svg"):this.isCustomFont?(this.needsExIconPrefix&&t.push("ex-icon"),t.push(this.iconName)):this.isSvgInline&&t.push("ex-icon-inline-svg"),this.spin&&t.push("ex-icon-spin"),t},iconStyle(){const t={};if(this.size){const e="number"===typeof this.size?this.size+"px":this.size;t.fontSize=e,t.width=e,t.height=e}return this.color&&(t.color=this.color),this.isSvgInline&&(t.display="inline-block",t.verticalAlign="middle"),t},svgStyle(){return{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}},mounted(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},beforeUpdate(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},methods:{handleClick(t){this.$emit("click",t)}},registerPrefix:function(t){t&&"string"===typeof t&&(Wi[t]=!0)}};var Ui=Yi,Xi=Ui,$i=(n("6b14"),B(Xi,Hi,Gi,!1,null,"0e301b72",null)),Zi=$i.exports;Zi.install=function(t){t.component(Zi.name,Zi)};var qi,Ki,Qi=Zi,Ji=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-table-wrapper"},[t.title||t.$slots.toolbar?e("div",{staticClass:"xt-table-header"},[t.title?e("span",{staticClass:"xt-table-title"},[t._v(t._s(t.title))]):t._e(),e("div",{staticClass:"xt-table-toolbar"},[t._t("toolbar")],2)]):t._e(),e("div",{staticClass:"xt-table-body"},[e("VirtualElTable",t._g(t._b({ref:"table",staticClass:"xt-table",attrs:{data:t.processedTableData,height:t.computedHeight,"max-height":t.computedMaxHeight,"virtual-scroll":t.virtualScroll,"row-height":t.rowInitHeight,"buffer-size":t.bufferSize,"span-method":t.groupColumns.length?t.handleSpanMethod:void 0,"row-class-name":t.getRowClassName},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleSortChange}},"VirtualElTable",t.$attrs,!1),t.$listeners),[t.selection?e("el-table-column",{attrs:{type:"selection",width:"55",fixed:t.selectionFixed}}):t._e(),t.showIndex?e("el-table-column",{attrs:{type:"index",width:"60",label:"#",fixed:t.indexFixed,index:t.indexMethod}}):t._e(),t._l(t.flattenedColumns,(function(n){return[n.children&&n.children.length?e("el-table-column",t._b({key:n._key},"el-table-column",t.getColumnProps(n),!1),[t._l(n.children,(function(n){return[e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("XtTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2):e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("XtTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2)],1),t.showPagination?e("div",{staticClass:"xt-table-footer"},[e("el-pagination",{attrs:{"current-page":t.pagination.pageNum,"page-size":t.pagination.pageSize,total:t.total,"page-sizes":t.pagination.pageSizes||[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])},tr=[],er={name:"XtTableCell",functional:!0,props:{row:Object,index:Number,formatter:Function,column:{type:Object,default:null}},render:(t,e)=>{const n={row:e.props.row,index:e.props.index};e.props.column&&(n.column=e.props.column);const i=t=>null!==t&&void 0!==t&&"object"===typeof t&&t.hasOwnProperty("componentOptions"),r=e.props.formatter(t,n);return null===r||void 0===r||""===r?t("span",""):i(r)?r:t("span",String(r))}},nr=er,ir=B(nr,qi,Ki,!1,null,null,null),rr=ir.exports,ar=function(){var t=this,e=t._self._c;return e("el-table",t._g(t._b({ref:"innerTable",attrs:{data:t.renderList}},"el-table",t.$attrs,!1),t.$listeners),[t._t("default")],2)},or=[],sr={name:"VirtualElTable",inheritAttrs:!1,props:{virtualScroll:{type:Boolean,default:!1},rowHeight:{type:Number,default:48},bufferSize:{type:Number,default:5}},data(){return{scrollWrap:null,phantomDom:null,scrollTop:0,startIndex:0,endIndex:20,rafId:null,unwatchPhantom:null,layoutTimer:null,retryTimers:[]}},computed:{originData(){return this.$attrs.data||[]},renderList(){if(!this.virtualScroll)return this.originData;const t=Math.max(0,this.startIndex-this.bufferSize),e=Math.min(this.originData.length,this.endIndex+this.bufferSize);return this.originData.slice(t,e)},totalListHeight(){return this.originData.length*this.rowHeight},contentOffsetY(){return Math.max(0,this.startIndex-this.bufferSize)*this.rowHeight}},watch:{renderList(){this.scheduleLayout()},originData:{handler(t){this.virtualScroll&&t&&t.length&&this.$nextTick(()=>{this.calcVisibleRange()})}}},mounted(){this.$nextTick(()=>{this.initVirtualScroll()})},beforeDestroy(){this.unbindScrollEvent(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.unwatchPhantom&&(this.unwatchPhantom(),this.unwatchPhantom=null),this.layoutTimer&&(clearTimeout(this.layoutTimer),this.layoutTimer=null),this.retryTimers.forEach(t=>clearTimeout(t)),this.retryTimers=[]},methods:{initVirtualScroll(){if(!this.virtualScroll)return;if(this.scrollWrap=this.$refs.innerTable.$el.querySelector(".el-table__body-wrapper"),!this.scrollWrap)return console.warn("[VirtualElTable] 无法找到滚动容器,虚拟滚动功能已禁用"),void(this.virtualScroll=!1);this.scrollWrap.style.overflowY="auto",this.scrollWrap.style.overflowX="auto",this.wrapTableBody(),this.scrollWrap.addEventListener("scroll",this.onScroll,{passive:!0}),this.calcVisibleRange();const t=[100,300,600,1e3];t.forEach(t=>{const e=setTimeout(()=>{this.calcVisibleRange()},t);this.retryTimers.push(e)})},wrapTableBody(){const t=this.scrollWrap.querySelector(".el-table__body");if(!t||t.querySelector(".vs-phantom"))return;const e=document.createElement("div");e.className="vs-phantom",e.style.position="relative",e.style.minWidth="100%",e.style.boxSizing="border-box",e.style.zIndex="1",this.phantomDom=e;const n=t.querySelector("table");e.appendChild(n),t.appendChild(e),this.unwatchPhantom=this.$watch(["totalListHeight","contentOffsetY"],()=>{this.phantomDom&&(this.phantomDom.style.height=this.totalListHeight+"px",this.phantomDom.style.paddingTop=this.contentOffsetY+"px")},{immediate:!0})},onScroll(){this.scrollTop=this.scrollWrap.scrollTop,this.rafId||(this.rafId=requestAnimationFrame(()=>{this.calcVisibleRange(),this.rafId=null}))},calcVisibleRange(){if(!this.scrollWrap)return;let t=this.scrollWrap.clientHeight;if(!t){const e=this.$attrs.height||this.$attrs.maxHeight;e&&(t="number"===typeof e?e:parseInt(String(e),10))}if(!t||t<=0)return;const e=Math.ceil(t/this.rowHeight),n=Math.floor(this.scrollTop/this.rowHeight),i=Math.min(this.originData.length,n+e);n===this.startIndex&&i===this.endIndex||(this.startIndex=n,this.endIndex=i)},unbindScrollEvent(){this.scrollWrap&&this.scrollWrap.removeEventListener("scroll",this.onScroll)},scheduleLayout(){this.layoutTimer||(this.layoutTimer=setTimeout(()=>{this.$refs.innerTable&&this.$refs.innerTable.doLayout(),this.layoutTimer=null},0))},clearSelection(){return this.$refs.innerTable.clearSelection()},toggleRowSelection(){return this.$refs.innerTable.toggleRowSelection()},doLayout(){return this.$refs.innerTable.doLayout()}}},lr=sr,ur=(n("26be"),B(lr,ar,or,!1,null,"01f7dcee",null)),cr=ur.exports,hr={name:"XtTable",inheritAttrs:!1,components:{XtTableCell:rr,VirtualElTable:cr},props:{tableData:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},groupColumns:{type:Array,default:()=>[]},sortGroup:{type:Boolean,default:!1},defaultSort:{type:Object,default:null},title:{type:String,default:""},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},virtualScroll:{type:Boolean,default:!1},rowInitHeight:{type:Number,default:48},bufferSize:{type:Number,default:5},pagination:{type:Object,default:null},total:{type:Number,default:0},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},selectionFixed:{type:[String,Boolean],default:!1},indexFixed:{type:[String,Boolean],default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},subtotalConfig:{type:Object,default:()=>({enabled:!1})},totalConfig:{type:Object,default:()=>({enabled:!1})}},data(){return{spanCache:{},flattenedColumnsCache:[],selectedRows:[],sortProp:null,sortOrder:null}},computed:{showPagination(){return this.pagination&&this.total>0},computedHeight(){return this.height||void 0},computedMaxHeight(){return this.height?void 0:this.maxHeight||void 0},sortedTableData(){if(!this.tableData.length)return[];if(!this.sortProp||!this.sortOrder)return[...this.tableData];const t="ascending"===this.sortOrder?1:-1,e=this.resolveSortMethod(this.sortProp);return this.sortGroup&&this.groupColumns.length?this.groupSort([...this.tableData],e,t):[...this.tableData].sort((n,i)=>e(n,i)*t)},processedTableData(){if(!this.sortedTableData.length)return[];let t=[...this.sortedTableData];const e=this.subtotalConfig&&this.subtotalConfig.enabled,n=this.totalConfig&&this.totalConfig.enabled;if(!e&&!n)return t;this.findLabelColumn();let i=[];if(e&&this.subtotalConfig.groupBy&&this.subtotalConfig.groupBy.length){const e=this.groupData(t,this.subtotalConfig.groupBy);e.forEach(t=>{i.push(...t);const e=this.createSubtotalRow(t);i.push(e)})}else i=t;if(n){const e=this.createTotalRow(t);i.push(e)}return i},flattenedColumns(){if(this.flattenedColumnsCache.length)return this.flattenedColumnsCache;const t=(e,n="")=>e.map((e,i)=>{const r=n?`${n}_${i}`:String(i),a=e.prop||e.slot||e.label||r,o={...e,_key:a};return e.children&&e.children.length&&(o.children=t(e.children,r)),o});return this.flattenedColumnsCache=t(this.columns),this.flattenedColumnsCache}},watch:{tableData(){this.spanCache={},this.flattenedColumnsCache=[]},columns:{handler(){this.flattenedColumnsCache=[],this.spanCache={}},deep:!0},groupColumns:{handler(){this.spanCache={}},deep:!0},defaultSort:{handler(t){t&&t.prop&&(this.sortProp=t.prop,this.sortOrder=t.order||"ascending")},immediate:!1},sortProp(){this.spanCache={}}},created(){this.defaultSort&&this.defaultSort.prop&&(this.sortProp=this.defaultSort.prop,this.sortOrder=this.defaultSort.order||"ascending")},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.handleResize)})},beforeDestroy(){window.removeEventListener("resize",this.handleResize)},methods:{resolveSortMethod(t){const e=this.findColumnByProp(t);return e&&"function"===typeof e.sortMethod?e.sortMethod:(e,n)=>{const i=e[t],r=n[t];return null==i&&null==r?0:null==i?-1:null==r?1:"number"===typeof i&&"number"===typeof r?i-r:String(i).localeCompare(String(r),void 0,{numeric:!0})}},findColumnByProp(t){for(const e of this.columns)if(e.children&&e.children.length){for(const n of e.children)if(n.prop===t)return n}else if(e.prop===t)return e;return null},groupSort(t,e,n){const i={};t.forEach(t=>{const e=this.groupColumns.map(e=>null==t[e]?"":String(t[e])).join("|||");i[e]||(i[e]=[]),i[e].push(t)});const r=[];return Object.keys(i).sort().forEach(t=>{const a=i[t];a.sort((t,i)=>e(t,i)*n),r.push(...a)}),r},handleResize(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})},findLabelColumn(){for(const t of this.columns)if(t.children&&t.children.length){for(const e of t.children)if(e.prop)return{prop:e.prop,label:e.label}}else if(t.prop)return{prop:t.prop,label:t.label};return{prop:"",label:""}},groupData(t,e){const n=new Map;return t.forEach(t=>{const i=e.map(e=>t[e]).join("|||");n.has(i)||n.set(i,[]),n.get(i).push(t)}),n},_calcValue(t,e){if("function"===typeof e)return e(t);const n=e.prop,i=e.type||"sum",r=n?t.map(t=>parseFloat(t[n])||0):[];switch(i){case"sum":return r.reduce((t,e)=>t+e,0);case"avg":case"average":return r.length?r.reduce((t,e)=>t+e,0)/r.length:0;case"count":return t.length;case"min":return r.length?Math.min(...r):0;case"max":return r.length?Math.max(...r):0;default:return""}},createSubtotalRow(t){const e=this.subtotalConfig,n=this.findLabelColumn(),i=e.groupBy?e.groupBy[0]:"",r=t[0]?t[0][i]:"",a=e.labelText||r+" 小计",o={_rowType:"subtotal"};return o[n.prop]=a,e.columns&&Object.keys(e.columns).forEach(n=>{const i=e.columns[n];o[n]="string"===typeof i?this._calcValue(t,{prop:n,type:i}):this._calcValue(t,i)}),o},createTotalRow(t){const e=this.totalConfig,n=this.findLabelColumn(),i=e.labelText||"总计",r={_rowType:"total"};return r[n.prop]=i,e.columns&&Object.keys(e.columns).forEach(n=>{const i=e.columns[n];r[n]="string"===typeof i?this._calcValue(t,{prop:n,type:i}):this._calcValue(t,i)}),r},getRowClassName({row:t}){return"subtotal"===t._rowType?"xt-table-row-subtotal":"total"===t._rowType?"xt-table-row-total":""},getColumnProps(t){const{_key:e,children:n,render:i,formatter:r,slot:a,sortMethod:o,...s}=t;return s},indexMethod(t){return t+1},handleSpanMethod({row:t,column:e,rowIndex:n}){if("subtotal"===t._rowType||"total"===t._rowType)return{rowspan:1,colspan:1};if(!this.groupColumns.length)return{rowspan:1,colspan:1};const i=this.processedTableData,r=e.property,a=this.groupColumns.indexOf(r);if(-1===a)return{rowspan:1,colspan:1};const o=`${n}_${r}`;if(this.spanCache[o])return this.spanCache[o];if(n>0){const e=i[n-1];let r=!0;for(let n=0;n<=a;n++){const i=this.groupColumns[n];if(e[i]!==t[i]){r=!1;break}}if(r){const t={rowspan:0,colspan:1};return this.spanCache[o]=t,t}}let s=1;for(let u=n+1;u<i.length;u++){const e=i[u];let n=!0;for(let i=0;i<=a;i++){const r=this.groupColumns[i];if(e[r]!==t[r]){n=!1;break}}if(!n)break;s++}const l={rowspan:s>1?s:1,colspan:1};return this.spanCache[o]=l,l},handleSelectionChange(t){this.selectedRows=t.filter(t=>!t._rowType),this.$emit("selection-change",this.selectedRows)},handleSortChange(t){this.sortProp=t.prop,this.sortOrder=t.order,this.$emit("sort-change",t)},handleSizeChange(t){this.$emit("size-change",t)},handleCurrentChange(t){this.$emit("page-change",t)},getSelection(){return this.selectedRows},clearSelection(){this.$refs.table&&this.$refs.table.clearSelection(),this.selectedRows=[]},clearSort(){this.sortProp=null,this.sortOrder=null,this.$nextTick(()=>{this.$refs.table&&this.$refs.table.$refs.innerTable&&this.$refs.table.$refs.innerTable.clearSort()})},toggleRowSelection(t,e){this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)},toggleRowsSelection(t,e){t&&t.length&&t.forEach(t=>{this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)})},doLayout(){this.$refs.table&&this.$refs.table.doLayout()}}},dr=hr,pr=(n("a092"),B(dr,Ji,tr,!1,null,"cc24a63e",null)),fr=pr.exports;fr.install=function(t){t.component(fr.name,fr)};var gr=fr,yr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-list",class:{"xt-list--loading":t.loading}},[t.title||t.filterable||t.sortable||t.$slots.toolbar?e("div",{staticClass:"xt-list__header"},[t.title?e("span",{staticClass:"xt-list__title"},[t._v(t._s(t.title))]):t._e(),e("div",{staticClass:"xt-list__toolbar"},[t.filterable?e("div",{staticClass:"xt-list__search"},[e("el-input",{attrs:{placeholder:t.filterPlaceholder,size:"small",clearable:"","prefix-icon":"el-icon-search"},on:{input:t.handleSearch},model:{value:t.searchText,callback:function(e){t.searchText=e},expression:"searchText"}})],1):t._e(),t.sortable&&t.sortBy?e("el-button",{attrs:{size:"small",icon:"el-icon-sort",type:t.currentSortOrder?"primary":"default",plain:""},on:{click:t.handleSortToggle}},[t._v(" "+t._s(t.sortLabel)+" ")]):t._e(),t._t("toolbar")],2)]):t._e(),e("div",{ref:"scrollContainer",staticClass:"xt-list__body",style:t.bodyStyle,on:{scroll:t.onScroll}},[t.virtualScroll?e("div",{staticClass:"xt-list__phantom",style:{height:t.totalHeight+"px"}},[e("div",{style:{paddingTop:t.offsetY+"px"}},[t.groupedData.length?[t._l(t.visibleGroups,(function(n,i){return[e("div",{key:n._key,staticClass:"xt-list__group"},[e("div",{staticClass:"xt-list__group-title",on:{click:function(e){return t.toggleGroup(n._key)}}},[e("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":n._expanded}},[e("i",{staticClass:"el-icon-arrow-right"})]),t._t("group-title",(function(){return[e("span",{staticClass:"xt-list__group-label"},[t._v(t._s(t.getGroupLabel(n)))]),e("span",{staticClass:"xt-list__group-count"},[t._v("("+t._s(n._items.length)+")")])]}),{group:n,items:n._items,expanded:n._expanded})],2),n._expanded?e("div",{class:["xt-list__cards","xt-list__cols-"+t.columns]},t._l(t.getVisibleItems(n),(function(i,r){return e("div",{key:i._id||r,staticClass:"xt-list__item",on:{click:function(e){return t.handleItemClick(i,n._key)}}},[e("el-card",{attrs:{shadow:t.shadow,"body-style":t.cardBodyStyle}},[t._t("default",(function(){return[t.getImage(i)?e("div",{staticClass:"xt-list__image"},[e("img",{attrs:{src:t.getImage(i),alt:t.getConfigValue(t.cardConfig.title,i)}})]):t._e(),t.getTag(i)?e("div",{staticClass:"xt-list__tag"},[e("el-tag",{attrs:{size:"small",type:t.getTagType(i)}},[t._v(t._s(t.getTag(i)))])],1):t._e(),t.getConfigValue(t.cardConfig.title,i)?e("div",{staticClass:"xt-list__card-title"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.title,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.subtitle,i)?e("div",{staticClass:"xt-list__card-subtitle"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.subtitle,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.content,i)?e("div",{staticClass:"xt-list__card-content"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.content,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.footer,i)?e("div",{staticClass:"xt-list__card-footer"},[t._t("card-footer",(function(){return[t._v(" "+t._s(t.getConfigValue(t.cardConfig.footer,i))+" ")]}),{item:i,index:t.getItemIndex(i,n)})],2):t._e()]}),{item:i,index:t.getItemIndex(i,n),group:n})],2)],1)})),0):t._e()])]}))]:t.loading?t._e():e("div",{staticClass:"xt-list__empty"},[t._t("empty",(function(){return[e("span",[t._v(t._s(t.emptyText))])]}))],2)],2)]):t.groupedData.length?[t._l(t.groupedData,(function(n){return[e("div",{key:n._key,staticClass:"xt-list__group"},[e("div",{staticClass:"xt-list__group-title",on:{click:function(e){return t.toggleGroup(n._key)}}},[e("span",{staticClass:"xt-list__group-arrow",class:{"is-expanded":n._expanded}},[e("i",{staticClass:"el-icon-arrow-right"})]),t._t("group-title",(function(){return[e("span",{staticClass:"xt-list__group-label"},[t._v(t._s(t.getGroupLabel(n)))]),e("span",{staticClass:"xt-list__group-count"},[t._v("("+t._s(n._items.length)+")")])]}),{group:n,items:n._items,expanded:n._expanded})],2),n._expanded?e("div",{class:["xt-list__cards","xt-list__cols-"+t.columns]},t._l(n._items,(function(i,r){return e("div",{key:i._id||r,staticClass:"xt-list__item",on:{click:function(e){return t.handleItemClick(i,n._key)}}},[e("el-card",{attrs:{shadow:t.shadow,"body-style":t.cardBodyStyle}},[t._t("default",(function(){return[t.getImage(i)?e("div",{staticClass:"xt-list__image"},[e("img",{attrs:{src:t.getImage(i),alt:t.getConfigValue(t.cardConfig.title,i)}})]):t._e(),t.getTag(i)?e("div",{staticClass:"xt-list__tag"},[e("el-tag",{attrs:{size:"small",type:t.getTagType(i)}},[t._v(t._s(t.getTag(i)))])],1):t._e(),t.getConfigValue(t.cardConfig.title,i)?e("div",{staticClass:"xt-list__card-title"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.title,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.subtitle,i)?e("div",{staticClass:"xt-list__card-subtitle"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.subtitle,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.content,i)?e("div",{staticClass:"xt-list__card-content"},[t._v(" "+t._s(t.getConfigValue(t.cardConfig.content,i))+" ")]):t._e(),t.getConfigValue(t.cardConfig.footer,i)?e("div",{staticClass:"xt-list__card-footer"},[t._t("card-footer",(function(){return[t._v(" "+t._s(t.getConfigValue(t.cardConfig.footer,i))+" ")]}),{item:i,index:r})],2):t._e()]}),{item:i,index:r,group:n})],2)],1)})),0):t._e()])]}))]:t.loading?t._e():e("div",{staticClass:"xt-list__empty"},[t._t("empty",(function(){return[e("span",[t._v(t._s(t.emptyText))])]}))],2),t.loadMore&&t.hasMore&&!t.loading?e("div",{staticClass:"xt-list__loadmore"},[e("el-button",{attrs:{type:"text",loading:t.loadMoreLoading},on:{click:t.handleLoadMore}},[t._v(" "+t._s(t.loadMoreText)+" ")])],1):t._e()],2),t.loading?e("div",{staticClass:"xt-list__loading"},[t._t("loading",(function(){return[e("i",{staticClass:"el-icon-loading"}),e("span",[t._v("加载中...")])]}))],2):t._e(),t.showPagination?e("div",{staticClass:"xt-list__footer"},[e("el-pagination",{attrs:{background:"",small:"","current-page":t.pagination.pageNum,"page-size":t.pagination.pageSize,total:t.total,"page-sizes":t.pagination.pageSizes||[10,20,50],layout:"total, prev, pager, next"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])},vr=[];const mr=160,br=44;var xr={name:"XtList",props:{data:{type:Array,default:()=>[]},groupBy:{type:String,default:""},groupLabel:{type:[String,Function],default:""},cardConfig:{type:Object,default:()=>({title:"title",subtitle:"",content:"",image:"",tag:"",tagType:"",footer:""})},title:{type:String,default:""},columns:{type:Number,default:1},shadow:{type:String,default:"hover"},cardBodyStyle:{type:Object,default:()=>({})},virtualScroll:{type:Boolean,default:!1},itemHeight:{type:Number,default:mr},bufferSize:{type:Number,default:3},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},expandAll:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},pagination:{type:Object,default:null},total:{type:Number,default:0},loadMore:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},loadMoreText:{type:String,default:"加载更多"},loadMoreLoading:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},filterable:{type:Boolean,default:!1},filterPlaceholder:{type:String,default:"请输入搜索内容"},filterMethod:{type:Function,default:null},sortable:{type:Boolean,default:!1},sortBy:{type:String,default:""},sortOrder:{type:String,default:""},sortMethod:{type:Function,default:null}},data(){return{groupExpandState:{},scrollTop:0,containerHeight:0,resizeObserver:null,rafId:null,searchText:"",currentSortOrder:this.sortOrder||""}},computed:{showPagination(){return this.pagination&&this.total>0},sortLabel(){return this.currentSortOrder?"ascending"===this.currentSortOrder?"升序":"降序":"排序"},bodyStyle(){const t={};return this.height&&(t.height="number"===typeof this.height?this.height+"px":this.height),this.maxHeight&&(t.maxHeight="number"===typeof this.maxHeight?this.maxHeight+"px":this.maxHeight),this.virtualScroll&&(t.overflowY="auto",t.overflowX="hidden"),t},filteredData(){return this.filterable&&this.searchText?this.data.filter(t=>"function"===typeof this.filterMethod?this.filterMethod(t,this.searchText):Object.values(t).some(t=>null!=t&&String(t).toLowerCase().includes(this.searchText.toLowerCase()))):this.data},sortedData(){if(!this.sortable||!this.sortBy||!this.currentSortOrder)return this.filteredData;const t="ascending"===this.currentSortOrder?1:-1,e="function"===typeof this.sortMethod?this.sortMethod:(t,e)=>{const n=t[this.sortBy],i=e[this.sortBy];return null==n&&null==i?0:null==n?-1:null==i?1:"number"===typeof n&&"number"===typeof i?n-i:String(n).localeCompare(String(i),void 0,{numeric:!0})};return[...this.filteredData].sort((n,i)=>e(n,i)*t)},groupedData(){const t=this.sortedData;if(!t||!t.length)return[];if(!this.groupBy)return[{_key:"_default",_items:t.map((t,e)=>({...t,_id:t._id||"item_"+e})),_expanded:!0}];const e={};t.forEach((t,n)=>{const i=t[this.groupBy],r=null!=i?String(i):"_undefined";e[r]||(e[r]={_key:r,_value:i,_items:[]}),e[r]._items.push({...t,_id:t._id||"item_"+n})});const n=Object.keys(e).sort().map(t=>{const n=e[t];return n._expanded=void 0!==this.groupExpandState[t]?this.groupExpandState[t]:this.expandAll,n});return n},totalHeight(){if(!this.virtualScroll)return 0;let t=0;return this.groupedData.forEach(e=>{if(t+=br,e._expanded){const n=Math.ceil(e._items.length/this.columns);t+=n*this.itemHeight}}),t},visibleGroups(){if(!this.virtualScroll)return this.groupedData;const t=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight),e=t+this.containerHeight+this.bufferSize*this.itemHeight*2,n=[];let i=0;return this.groupedData.forEach(r=>{const a=br+(r._expanded?Math.ceil(r._items.length/this.columns)*this.itemHeight:0),o=i+a;o>=t&&i<=e&&n.push(r),i=o}),n},offsetY(){if(!this.virtualScroll)return 0;let t=0;const e=Math.max(0,this.scrollTop-this.bufferSize*this.itemHeight);for(let n=0;n<this.groupedData.length;n++){const i=this.groupedData[n],r=br+(i._expanded?Math.ceil(i._items.length/this.columns)*this.itemHeight:0);if(!(t+r<=e))break;t+=r}return t}},watch:{data:{handler(){this.$nextTick(()=>{this.updateContainerHeight()})}},expandAll(t){const e={};this.groupedData.forEach(n=>{e[n._key]=t}),this.groupExpandState=e}},mounted(){this.$nextTick(()=>{this.updateContainerHeight(),this.bindResizeObserver()})},beforeDestroy(){this.unbindResizeObserver(),this.rafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.rafId),this.rafId=null)},methods:{toggleGroup(t){const e={...this.groupExpandState},n=void 0!==e[t]?e[t]:this.expandAll;this.accordion&&!n&&Object.keys(e).forEach(t=>{e[t]=!1}),e[t]=!n,this.groupExpandState=e,this.$nextTick(()=>{this.updateContainerHeight(),this.$emit("group-toggle",{key:t,expanded:e[t]})})},getGroupLabel(t){return""===this.groupLabel?t._value:"function"===typeof this.groupLabel?this.groupLabel(t):"string"===typeof this.groupLabel&&t._items[0]&&t._items[0][this.groupLabel]||t._value},getConfigValue(t,e){return t?"function"===typeof t?t(e):"string"===typeof t&&e[t]||"":""},getImage(t){return this.getConfigValue(this.cardConfig.image,t)},getTag(t){return this.getConfigValue(this.cardConfig.tag,t)},getTagType(t){return this.cardConfig.tagType?"function"===typeof this.cardConfig.tagType?this.cardConfig.tagType(t):this.cardConfig.tagType:""},getVisibleItems(t){if(!this.virtualScroll)return t._items;const e=this.bufferSize*this.itemHeight,n=Math.max(0,this.scrollTop-e),i=n+this.containerHeight+2*e;let r=0,a=0;for(let u=0;u<this.groupedData.length;u++){const e=this.groupedData[u];if(e._key===t._key){a=r+br;break}r+=br+(e._expanded?Math.ceil(e._items.length/this.columns)*this.itemHeight:0)}const o=a+Math.ceil(t._items.length/this.columns)*this.itemHeight;if(o<=n||a>=i)return[];const s=Math.max(0,Math.floor((n-a)/this.itemHeight)*this.columns),l=Math.min(t._items.length,Math.ceil((i-a)/this.itemHeight)*this.columns+e);return t._items.slice(Math.max(0,s),l)},getItemIndex(t,e){return e._items.indexOf(t)},onScroll(){this.virtualScroll&&(this.scrollTop=this.$refs.scrollContainer.scrollTop,this.rafId||"undefined"!==typeof requestAnimationFrame&&(this.rafId=requestAnimationFrame(()=>{this.$forceUpdate(),this.rafId=null})))},updateContainerHeight(){this.$refs.scrollContainer&&(this.containerHeight=this.$refs.scrollContainer.clientHeight)},bindResizeObserver(){if("undefined"===typeof ResizeObserver)return;const t=this.$refs.scrollContainer;t&&(this.resizeObserver=new ResizeObserver(()=>{this.updateContainerHeight()}),this.resizeObserver.observe(t))},unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},handleSearch(){this.$emit("search",this.searchText)},handleSortToggle(){const t=["","ascending","descending"],e=t.indexOf(this.currentSortOrder);this.currentSortOrder=t[(e+1)%3],this.$emit("sort-change",{prop:this.sortBy,order:this.currentSortOrder})},handleItemClick(t,e){this.$emit("click-item",{item:t,groupKey:e})},handleLoadMore(){this.$emit("load-more")},handleSizeChange(t){this.$emit("size-change",t)},handleCurrentChange(t){this.$emit("page-change",t)},scrollToTop(){this.$refs.scrollContainer&&this.$refs.scrollContainer.scrollTo({top:0,behavior:"smooth"})},expandGroup(t){const e={...this.groupExpandState};e[t]=!0,this.groupExpandState=e},collapseGroup(t){const e={...this.groupExpandState};e[t]=!1,this.groupExpandState=e},collapseAll(){const t={};this.groupedData.forEach(e=>{t[e._key]=!1}),this.groupExpandState=t},expandAllGroups(){this.groupExpandState={}}}},_r=xr,wr=(n("732a"),B(_r,yr,vr,!1,null,"53c7db00",null)),Sr=wr.exports;Sr.install=function(t){t.component(Sr.name,Sr)};var Mr=Sr,Or=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-scroll-arrow",class:["xt-scroll-arrow--"+t.direction],style:t.containerStyle},[t.showLeftArrow?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--left",on:{click:t.scrollLeft}},[e("i",{staticClass:"el-icon-arrow-left"})]):t._e(),e("div",{ref:"scrollContainer",staticClass:"xt-scroll-arrow__content",on:{scroll:t.handleScroll,click:t.handleClick}},[t._t("default")],2),t.showRightArrow?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--right",on:{click:t.scrollRight}},[e("i",{staticClass:"el-icon-arrow-right"})]):t._e(),t.showTopArrow&&"vertical"===t.direction?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--top",on:{click:t.scrollTop}},[e("i",{staticClass:"el-icon-arrow-up"})]):t._e(),t.showBottomArrow&&"vertical"===t.direction?e("div",{staticClass:"xt-scroll-arrow__btn xt-scroll-arrow__btn--bottom",on:{click:t.scrollBottom}},[e("i",{staticClass:"el-icon-arrow-down"})]):t._e()])},Tr=[],Ir={name:"XtScrollArrow",props:{direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},scrollStep:{type:Number,default:100},autoHide:{type:Boolean,default:!0},height:{type:[String,Number],default:""},width:{type:[String,Number],default:""},appendMode:{type:Boolean,default:!1},clickMode:{type:Boolean,default:!1}},data(){return{showLeftArrow:!1,showRightArrow:!1,showTopArrow:!1,showBottomArrow:!1}},computed:{containerStyle(){const t={};return this.height&&(t.height="number"===typeof this.height?this.height+"px":this.height),this.width&&(t.width="number"===typeof this.width?this.width+"px":this.width),t}},watch:{direction(){this.$nextTick(()=>{this.checkScroll()})}},mounted(){this.$nextTick(()=>{this.checkScroll()}),this.addResizeObserver(),this.addMutationObserver()},beforeDestroy(){this.removeResizeObserver(),this.removeMutationObserver()},methods:{addResizeObserver(){if("undefined"!==typeof ResizeObserver){this.resizeObserver=new ResizeObserver(()=>{this.$nextTick(()=>{this.checkScroll()})});const t=this.$refs.scrollContainer;t&&this.resizeObserver.observe(t)}},removeResizeObserver(){this.resizeObserver&&this.resizeObserver.disconnect()},addMutationObserver(){if("undefined"!==typeof MutationObserver){this.mutationObserver=new MutationObserver(()=>{this.$nextTick(()=>{this.checkScroll(),this.appendMode&&this.scrollToEnd()})});const t=this.$refs.scrollContainer;t&&this.mutationObserver.observe(t,{childList:!0,subtree:!0})}},removeMutationObserver(){this.mutationObserver&&this.mutationObserver.disconnect()},checkScroll(){const t=this.$refs.scrollContainer;if(t)if("horizontal"===this.direction){const e=t.scrollLeft,n=t.scrollWidth,i=t.clientWidth,r=n-i;this.showTopArrow=!1,this.showBottomArrow=!1,this.autoHide?(this.showLeftArrow=e>0,this.showRightArrow=r>0&&e<r):(this.showLeftArrow=r>0,this.showRightArrow=r>0)}else{const e=t.scrollTop,n=t.scrollHeight,i=t.clientHeight,r=n-i;this.showLeftArrow=!1,this.showRightArrow=!1,this.autoHide?(this.showTopArrow=e>0,this.showBottomArrow=r>0&&e<r):(this.showTopArrow=r>0,this.showBottomArrow=r>0)}},handleScroll(){this.checkScroll(),this.$emit("scroll",this.$refs.scrollContainer)},handleClick(t){if(!this.clickMode)return;const e=this.$refs.scrollContainer;if(!e)return;const n=t.target;if(!n||n===e)return;const i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),a=r.left>=i.left&&r.right<=i.right&&r.top>=i.top&&r.bottom<=i.bottom;if(!a)if("horizontal"===this.direction){const t=n.offsetLeft-(e.clientWidth-r.width)/2;e.scrollTo({left:t,behavior:"smooth"})}else{const t=n.offsetTop-(e.clientHeight-r.height)/2;e.scrollTo({top:t,behavior:"smooth"})}},scrollLeft(){const t=this.$refs.scrollContainer;t&&t.scrollBy({left:-this.scrollStep,behavior:"smooth"})},scrollRight(){const t=this.$refs.scrollContainer;t&&t.scrollBy({left:this.scrollStep,behavior:"smooth"})},scrollTop(){const t=this.$refs.scrollContainer;t&&t.scrollBy({top:-this.scrollStep,behavior:"smooth"})},scrollBottom(){const t=this.$refs.scrollContainer;t&&t.scrollBy({top:this.scrollStep,behavior:"smooth"})},scrollToEnd(){const t=this.$refs.scrollContainer;t&&("horizontal"===this.direction?t.scrollTo({left:t.scrollWidth,behavior:"smooth"}):t.scrollTo({top:t.scrollHeight,behavior:"smooth"}))}}},Cr=Ir,Ar=B(Cr,Or,Tr,!1,null,null,null),kr=Ar.exports;kr.install=function(t){t.component(kr.name,kr)};var Dr=kr,Lr=function(){var t=this,e=t._self._c;return e("el-container",{staticClass:"page-container"},[e("el-container",{staticClass:"page-main"},[t.$slots.header&&t.showHeader?e("el-header",{ref:"header",class:{"page-header":t.$slots.aside},attrs:{height:""}},[t._t("header")],2):t._e(),e("el-main",{ref:"main",staticStyle:{padding:"0"}},[t._t("default",null,{tableHeight:t.calcHeight-t.tableBorderHeight})],2),t.$slots.footer&&t.showFooter?e("el-footer",{ref:"footer",attrs:{height:""}},[t._t("footer")],2):t._e()],1),t.$slots.aside&&t.showAside?e("el-aside",{ref:"aside",staticClass:"page-aside",attrs:{width:t.asideWidth}},[t._t("aside")],2):t._e(),t._t("dialog")],2)},Pr=[],jr={name:"XtPage",props:{showHeader:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showAside:{type:Boolean,default:!0},diffHeight:{type:Number,default:0},minHeight:{type:Number,default:200},tableBorderHeight:{type:Number,default:1},asideWidth:{type:String}},data(){return{tableHeight:360}},computed:{calcHeight(){return Math.max(this.tableHeight,this.minHeight)}},mounted(){this.$nextTick(()=>{this.doLayout(),window.onresize=()=>{this.doLayout()}})},methods:{doLayout(){this.$refs.main&&(this.tableHeight=this.$refs.main.$el.getBoundingClientRect().height-this.diffHeight-this.tableBorderHeight)}}},Nr=jr,Rr=(n("b1a2"),B(Nr,Lr,Pr,!1,null,"f74d3006",null)),Er=Rr.exports;Er.install=function(t){t.component(Er.name,Er)};var zr=Er,Br=function(){var t=this,e=t._self._c;return e("div",{staticClass:"el-select select-tree"},[e("el-popover",{ref:"elPopover",attrs:{transition:"el-zoom-in-top","popper-class":"select-tree__popover",trigger:"click",disabled:t.disabled,placement:t.placement,width:t.popoverWidth},on:{"after-enter":t.handleScroll,show:t.handleFocus,hide:t.handleBlur},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("el-scrollbar",{ref:"scrollbar",attrs:{"wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e("el-tree",{ref:"elTree",staticClass:"select-tree__list",style:{minWidth:t.minWidth+"px"},attrs:{"default-expand-keys":t.defaultExpandKeys,"show-checkbox":t.multiple,"expand-on-click-node":t.multiple,data:t.data,props:t.props,"node-key":t.propsValue,"default-expand-all":t.defaultExpandAll,"check-strictly":t.checkStrictly,lazy:t.lazy,load:t.load,"icon-class":t.iconClass,"highlight-current":t.highlightCurrent,indent:t.indent,accordion:t.accordion,"filter-node-method":t.filterNodeMethod,"auto-expand-parent":t.autoExpandParent,"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand},on:{"check-change":t.checkChange,"node-click":t.nodeClick},nativeOn:{transitionend:function(e){return t.$refs.elPopover.updatePopper()}},scopedSlots:t._u([{key:"default",fn:function({data:n}){return e("div",{staticClass:"select-tree__item",class:t.treeItemClass(n)},[t._v(" "+t._s(n[t.propsLabel])+" ")])}}])})],1),e("el-input",{ref:"reference",class:{"is-active":t.visible,"is-selected":t.selectedLabel},attrs:{slot:"reference",clearable:t.clearable,readonly:!t.filterable,"validate-event":!1,size:t.size,disabled:t.disabled,placeholder:t.query||t.placeholder},on:{input:t.getTreeFilter,clear:t.clear},slot:"reference",model:{value:t.selectedLabel,callback:function(e){t.selectedLabel=e},expression:"selectedLabel"}},[e("i",{staticClass:"el-input__icon el-input__icon-arrow-down el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1)],1)},Vr=[],Fr=n("d010"),Hr=n.n(Fr),Gr=n("4010"),Wr={name:"XtSelectTree",mixins:[Hr.a],inheritAttrs:!1,model:{prop:"value",event:"change"},props:{data:{type:Array,default(){return[]}},props:{type:Object,default:()=>({value:"value",label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf"})},checkStrictly:Boolean,nodeKey:String,defaultExpandAll:Boolean,lazy:Boolean,load:Function,iconClass:String,indent:Number,accordion:Boolean,filterNodeMethod:{type:Function,default(t,e,n){return!t||-1!==n.label.indexOf(t)}},autoExpandParent:{type:Boolean,default:!0},renderContent:Function,renderAfterExpand:Boolean,clearable:Boolean,placeholder:{type:String,default:"请选择"},placement:{type:String,default:"bottom-start"},size:{type:String,default:""},disabled:Boolean,highlightCurrent:{default:!0,type:Boolean},filterable:{type:Boolean,default:!0},multiple:Boolean,value:{type:[Number,String,Array],default:""},defaultValue:{type:[Number,String,Array],default:""},nodeAbleClick:{type:Function,default(){return(t,e)=>!0}},popoverWidth:Number,checkLeafOnly:{default:!1,type:Boolean},includeHalfChecked:{default:!1,type:Boolean}},data(){return{timer:null,selectedLabel:"",minWidth:0,visible:!1,query:""}},computed:{triggerEventImmediate(){return this.defaultValue==this.value},propsValue(){return this.nodeKey||this.props.value||"value"},propsLabel(){return this.props.label||"label"},propsIsLeaf(){return this.props.isLeaf||"isLeaf"},defaultExpandKeys(){return Array.isArray(this.value)?this.value:this.value||0===this.value?[this.value]:[]}},watch:{value:{handler(){this.setSelected(this.triggerEventImmediate),this.dispatch("ElFormItem","el.form.change")}},data(){this.setSelected()}},created(){if(this.multiple&&!Array.isArray(this.value))throw new Error("[select-tree] props value must be array if use multiple")},mounted(){this.$nextTick(()=>{this.setSelected()}),Object(Gr["addResizeListener"])(this.$el,this.handleResize)},beforeDestroy(){this.$el&&this.handleResize&&Object(Gr["removeResizeListener"])(this.$el,this.handleResize)},methods:{getTreeFilter(t){this.$refs.elTree&&this.$refs.elTree.filter(t)},handleFocus(){this.filterable&&(this.$refs.elTree.filter(""),this.query=this.selectedLabel,this.selectedLabel="")},handleBlur(){this.filterable&&(this.selectedLabel=this.query,this.$refs.reference.blur())},valueChange(t,e){this.$emit("change",t,e)},clear(){this.visible=!1,this.multiple?(this.valueChange([]),this.$nextTick(()=>{this.$refs.elTree.setCheckedKeys([])})):this.valueChange(""),this.$emit("clear")},handleScroll(){this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},nodeClick(t,e,n){const i=t[this.propsValue];this.nodeAbleClick(t,e)&&(this.valueChange(i,t),this.selectedLabel=t[this.propsLabel],this.multiple||t.disabled||(this.visible=!1))},checkChange(t,e,n){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{const t=this.$refs.elTree,e=this.checkLeafOnly,n=this.includeHalfChecked,i=t.getCheckedNodes(e,n),r=t.getCheckedKeys(e);this.valueChange(r,i),this.setMultipleSelectedLabel()},50)},setSelected(t){this.$nextTick(()=>{const e=this.$refs.elTree;if(this.multiple)e.setCheckedKeys(this.value),this.setMultipleSelectedLabel(),t&&this.checkChange();else if(this.value){const n=e.getNode(this.value);e.setCurrentKey(this.value),n&&n.visible&&!this.lazy&&(n.isLeaf?n.parent.expand():n.expand()),this.selectedLabel=n?n.data[this.propsLabel]:"",t&&this.valueChange(this.value,n)}else e.setCurrentKey(""),this.selectedLabel="",t&&this.valueChange("")})},setMultipleSelectedLabel(){const t=this.$refs.elTree,e=t.getCheckedNodes(!this.checkStrictly);this.selectedLabel=e.map(t=>t[this.propsLabel]).join(",")},treeItemClass(t){return{"is-selected":!this.multiple&&t[this.propsValue]===this.value,"is-disabled":t.disabled}},handleResize(){this.minWidth=this.$el.clientWidth-2},getNodeById(t){return this.$refs.elTree.getNode(t)}}},Yr=Wr,Ur=(n("439a"),n("916e"),B(Yr,Br,Vr,!1,null,"962f42c0",null)),Xr=Ur.exports;Xr.install=function(t){t.component(Xr.name,Xr)};var $r=Xr,Zr=function(){var t=this,e=t._self._c;return e("BaseFlexBox",{attrs:{type:"inline-flex",gap:"5px"}},[t.action?e("el-upload",{ref:"uploadFile",attrs:{disabled:t.disabled||t.uploading,action:t.YSSQP+t.action,"file-list":t.fileList,data:{accessToken:t.accessToken,...t.data},multiple:t.multiple,limit:t.limit,"on-success":t.uploadSuccess,"show-file-list":!1,"auto-upload":t.autoUpload,"before-upload":t.uploadBefore,accept:".jpg,.jpeg,.png"}},[e("i",{staticClass:"el-icon-camera",staticStyle:{"font-size":"20px",padding:"20px",background:"#f0f0f1",color:"#409EFF"},style:{padding:t.plusPx/2+"px",cursor:t.disabled?"not-allowed":"pointer"}})]):t._e(),null!==t.fileList&&t.fileList.length>0?e("BaseFlexBox",{staticClass:"el-upload-list el-upload-list--picture-card",staticStyle:{flex:"1"},attrs:{gap:"5px",wrap:"wrap"}},t._l(t.fileList,(function(n,i){return e("li",{key:i,staticClass:"el-upload-list__item is-ready",staticStyle:{margin:"0",width:"62px",height:"62px"},style:{width:t.plusPx+22+"px",height:t.plusPx+22+"px"}},[e("el-image",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.YSSQP+"/"+n,alt:""},on:{click:t.clickHandler}}),e("span",{staticClass:"el-upload-list__item-actions",on:{click:function(e){return t.preShowPicture(n,i)}}},[e("span",{staticClass:"el-upload-list__item-preview",on:{click:function(e){return e.stopPropagation(),t.preShowPicture(n,i)}}},[e("i",{staticClass:"el-icon-zoom-in"})]),t.uploading||t.disabled?t._e():e("span",{staticClass:"el-upload-list__item-delete",staticStyle:{"margin-left":"0"},on:{click:function(e){return e.stopPropagation(),t.handleRemove(i)}}},[e("i",{staticClass:"el-icon-delete"})])])],1)})),0):t._e(),t.preview?[t.previewVisible?e("ImageViewer",{attrs:{"z-index":3e3,"base-url":t.baseUrl+"/",infiniteLoop:!1,"initial-index":t.imageIndex,"url-list":t.allFileList||t.fileList,"on-close":t.closeViewer}}):t._e()]:t._e()],2)},qr=[],Kr=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"viewer-fade"}},[e("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":t.zIndex},attrs:{tabindex:"-1"}},[e("div",{staticClass:"el-image-viewer__mask",on:{click:t.hide}}),e("span",{staticClass:"el-image-viewer__btn fix_close",on:{click:t.hide}},[e("i",{staticClass:"el-icon-close"})]),t.isSingle?t._e():[e("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!t.infinite&&t.isFirst},on:{click:t.prev}},[e("i",{staticClass:"el-icon-arrow-left"})]),e("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!t.infinite&&t.isLast},on:{click:t.next}},[e("i",{staticClass:"el-icon-arrow-right"})])],e("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[e("div",{staticClass:"el-image-viewer__actions__inner"},[e("i",{staticClass:"el-icon-zoom-out",on:{click:function(e){return e.stopPropagation(),t.handleActions("zoomOut")}}}),e("i",{staticClass:"el-icon-zoom-in",on:{click:function(e){return e.stopPropagation(),t.handleActions("zoomIn")}}}),e("i",{staticClass:"el-image-viewer__actions__divider"}),e("i",{class:t.mode.icon,on:{click:function(e){return e.stopPropagation(),t.toggleMode.apply(null,arguments)}}}),e("i",{staticClass:"el-image-viewer__actions__divider"}),e("i",{staticClass:"el-icon-refresh-left",on:{click:function(e){return e.stopPropagation(),t.handleActions("anticlocelise")}}}),e("i",{staticClass:"el-icon-refresh-right",on:{click:function(e){return e.stopPropagation(),t.handleActions("clocelise")}}})])]),e("div",{staticClass:"el-image-viewer__canvas"},t._l(t.urlList,(function(n,i){return i===t.index?e("img",{key:n,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:t.imgStyle,attrs:{src:t.currentImg},on:{load:t.handleImgLoad,error:t.handleImgError,mousedown:t.handleMouseDown}}):t._e()})),0)],2)])},Qr=[],Jr=n("8bbf"),ta=n.n(Jr);const ea=ta.a.prototype.$isServer,na=(ea||Number(document.documentMode),function(){return!ea&&document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}()),ia=function(){return!ea&&document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}();let ra=t=>{var e={};return t&&"[object Function]"===e.toString.call(t)};"object"===typeof Int8Array||!ta.a.prototype.$isServer&&"function"===typeof document.childNodes||(ra=function(t){return"function"===typeof t||!1});Object.prototype.hasOwnProperty;const aa=function(){return!ta.a.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function oa(t){let e=!1;return function(...n){e||(e=!0,window.requestAnimationFrame(i=>{t.apply(this,n),e=!1}))}}const sa={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},la=aa()?"DOMMouseScroll":"mousewheel";var ua={name:"elImageViewer",props:{baseUrl:{type:String,default:""},urlList:{type:Array,default:()=>[]},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}},initialIndex:{type:Number,default:0},infiniteLoop:{type:Boolean,default:!0}},data(){return{index:this.initialIndex,isShow:!1,infinite:this.infiniteLoop,loading:!1,mode:sa.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle(){return this.urlList.length<=1},isFirst(){return 0===this.index},isLast(){return this.index===this.urlList.length-1},currentImg(){return this.baseUrl+this.urlList[this.index]},imgStyle(){const{scale:t,deg:e,offsetX:n,offsetY:i,enableTransition:r}=this.transform,a={transform:`scale(${1*t}) rotate(${e}deg)`,transition:r?"transform .3s":"","margin-left":n+"px","margin-top":i+"px"};return this.mode===sa.CONTAIN&&(a.maxWidth=a.maxHeight="80%"),a}},watch:{index:{handler:function(t){this.reset(),this.onSwitch(t)}},currentImg(t){this.$nextTick(t=>{const e=this.$refs.img[0];e.complete||(this.loading=!0)})}},methods:{hide(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall(){this._keyDownHandler=oa(t=>{const e=t.keyCode;switch(e){case 27:this.hide();break;case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut");break}}),this._mouseWheelHandler=oa(t=>{const e=t.wheelDelta?t.wheelDelta:-t.detail;e>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),na(document,"keydown",this._keyDownHandler),na(document,la,this._mouseWheelHandler)},deviceSupportUninstall(){ia(document,"keydown",this._keyDownHandler),ia(document,la,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(t){this.loading=!1},handleImgError(t){this.loading=!1,t.target.alt="加载失败"},handleMouseDown(t){if(this.loading||0!==t.button)return;const{offsetX:e,offsetY:n}=this.transform,i=t.pageX,r=t.pageY;this._dragHandler=oa(t=>{this.transform.offsetX=e+t.pageX-i,this.transform.offsetY=n+t.pageY-r}),na(document,"mousemove",this._dragHandler),na(document,"mouseup",t=>{ia(document,"mousemove",this._dragHandler)}),t.preventDefault()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const t=Object.keys(sa),e=Object.values(sa),n=e.indexOf(this.mode),i=(n+1)%t.length;this.mode=sa[t[i]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index-1+t)%t},next(){if(this.isLast&&!this.infinite)return;const t=this.urlList.length;this.index=(this.index+1)%t},handleActions(t,e={}){if(this.loading)return;const{zoomRate:n,rotateDeg:i,enableTransition:r}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...e},{transform:a}=this;switch(t){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-n).toFixed(3)));break;case"zoomIn":a.scale<10&&(a.scale=parseFloat((a.scale+n).toFixed(3)));break;case"clocelise":a.deg+=i;break;case"anticlocelise":a.deg-=i;break}a.enableTransition=r}},mounted(){this.deviceSupportInstall(),this.$refs["el-image-viewer__wrapper"].focus()}},ca=ua,ha=(n("2c86"),B(ca,Kr,Qr,!1,null,"236adf7f",null)),da=ha.exports,pa={name:"XtUpload",components:{ImageViewer:da},model:{prop:"src",event:"change"},props:{data:{type:Object,default:()=>({})},src:{type:String,default:"",required:!0},accessToken:{type:String,default:""},autoUpload:{type:Boolean,default:!0},action:{type:String,default:""},baseUrl:{type:String,default:""},multiple:{type:Boolean,default:!1},accept:{type:String,default:".jpg,.jpeg,.png"},limit:{type:Number,default:5},disabled:{type:Boolean,default:!1},size:{type:String,default:""},beforeEmitData:{type:Function,default:(t,e,n)=>200==t.code&&(t.data.Result?t.data.Data:t.data[0])},allFileList:{type:Array}},data(){return{YSSQP:this.baseUrl,previewVisible:!1,uploading:!1,imageUrl:"",fileList:[],imageIndex:0}},computed:{preview(){const{fileList:t}=this;return Array.isArray(t)&&t.length>0},plusPx(){const t="big"==this.size?100:20;return 2*t}},watch:{src:{immediate:!0,deep:!0,handler(t){this.fileList=t?t.split(","):[]}}},methods:{clickHandler(){this.preview&&(this.previewVisible=!0)},closeViewer(){this.previewVisible=!1},preShowPicture(t,e){if(this.allFileList&&0!=this.allFileList.length){const n=this.allFileList.findIndex(e=>e==t);this.imageIndex=n>-1?n:e}else this.imageIndex=e;t.indexOf(".pdf")>-1?window.open(t,"_blank"):(this.imageUrl=this.baseUrl+"/"+t,this.previewVisible=!0)},handleRemove(t,e){try{this.fileList.splice(t,1),this.$emit("change",this.fileList.join(","))}catch(n){console.log(n)}},getPathName(t){return t.split("/").pop().split(".")[0]},uploadBefore(t,e){console.log(t);const n="image/jpeg"===t.type||"image/jpg"===t.type||"image/png"===t.type||"application/pdf"===t.type,i=t.size/1024/1024<50;return n||this.$message.error("上传图片只能是jpg,jpeg,png,pdf格式!"),i||this.$message.error("上传图片大小不能超过50MB!"),n&&i},uploadSuccess(t,e,n){const i=this.beforeEmitData(t,e,n);if(i)return this.fileList.push(i),this.$emit("change",this.fileList.join(",")),this.$message({message:"上传成功",center:!0,type:"success"}),t.data[0];this.$message({message:"上传失败",center:!0,type:"error"})}}},fa=pa,ga=B(fa,Zr,qr,!1,null,null,null),ya=ga.exports;ya.install=function(t){t.component(ya.name,ya)};var va=ya;function ma(t=1e4){const e=["研发部","产品部","运营部","财务部","市场部"],n=["工程师","产品经理","运营专员","财务主管","市场经理"],i=["在职","休假","离职"];return Array.from({length:t},(t,r)=>({id:r+1,name:"用户"+(r+1),department:e[r%e.length],position:n[r%n.length],email:`user${r+1}@example.com`,phone:"13800138"+String(r).padStart(4,"0"),address:`北京市朝阳区第${r+1}号街道`,salary:5e3+Math.floor(1e4*Math.random()),status:i[r%i.length]}))}const ba=[{prop:"id",label:"ID",fixed:"left",width:80},{prop:"name",label:"姓名",fixed:"left",width:120},{prop:"department",label:"部门",width:150},{prop:"position",label:"职位",width:150},{prop:"email",label:"邮箱",width:200},{prop:"phone",label:"电话",width:130},{prop:"address",label:"地址",width:200},{prop:"salary",label:"薪资",width:120},{prop:"status",label:"状态",fixed:"right",width:100}],xa=j.default||j,{getConfig:_a,setConfig:wa,getTheme:Sa,getSize:Ma,getPrimaryColor:Oa,resetConfig:Ta,onConfigChange:Ia,setTheme:Ca,setSize:Aa,setPrimaryColor:ka}=xa,Da=[H,Z,nt,ut,yt,Mt,Dt,Ht,ee,ne,Je,sn,fn,_n,Cn,Fn,$n,ci,Fi,Qi,gr,Mr,Dr,mi,Mi,ki,Ri,zr,$r,va],La=function(t,e={}){La.installed||(La.installed=!0,Da.forEach(e=>{t.component(e.name,e)}),t.prototype.$xt={setTheme:Ca,setSize:Aa,setPrimaryColor:ka,getConfig:_a,setConfig:wa,getTheme:Sa,getSize:Ma,getPrimaryColor:Oa,resetConfig:Ta,onConfigChange:Ia},e&&(void 0!==e.theme&&Ca(e.theme),void 0!==e.size&&Aa(e.size),void 0!==e.primaryColor&&ka(e.primaryColor),void 0!==e.config&&wa(e.config)))};"undefined"!==typeof window&&window.Vue&&La(window.Vue);var Pa={install:La,components:Da,XtButton:H,XtInput:Z,XtFlexBox:nt,XtCard:ut,XtCardItem:yt,XtConfigProvider:Mt,XtText:Dt,XtTime:Ht,XtStepPrice:ee,XtStepPriceItem:ne,XtMap:Je,XtMapProvider:sn,XtGridBox:fn,XtGridItem:_n,XtProgress:Cn,XtTabs:Fn,XtBadge:$n,XtDatePicker:ci,XtIcon:Qi,XtTable:gr,XtList:Mr,XtScrollArrow:Dr,XtBar:mi,XtLine:Mi,XtPie:ki,XtMulti:Ri,XtPage:zr,XtSelectTree:$r,XtUpload:va};e["default"]=Pa},fb36:function(t,e,n){var i=n("b8f9"),r=n("c8d5");function a(t,e){var n=r(t),a=r(e),o=n.getFullYear()-a.getFullYear(),s=i(n)-i(a);return 4*o+s}t.exports=a},fb98:function(t,e,n){var i=n("1cc6");function r(t,e){var n=Number(e);return i(t,-n)}t.exports=r},fbaf:function(t,e,n){var i=n("c8d5");function r(t){var e=i(t);return e.setMinutes(0,0,0),e}t.exports=r},fc76:function(t,e,n){},fcb3:function(t,e,n){var i=n("6665");function r(t,e){var n=Number(e);return i(t,12*n)}t.exports=r},fd39:function(t,e,n){var i=n("0978");function r(t,e){var n=i(t),r=i(e);return n.getTime()===r.getTime()}t.exports=r}})}));