@perses-dev/stat-chart-plugin 0.11.0 → 0.11.1
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.
- package/__mf/js/StatChart.91907838.js +6 -0
- package/__mf/js/async/{964.2c4a1982.js → 121.3f61f76f.js} +2 -2
- package/__mf/js/async/{488.daa22b59.js → 177.eb221fda.js} +1 -1
- package/__mf/js/async/192.8a915b5e.js +1 -0
- package/__mf/js/async/2.086684e1.js +1 -0
- package/__mf/js/async/205.1bcd0ed9.js +83 -0
- package/__mf/js/async/235.046777ba.js +1 -0
- package/__mf/js/async/252.71d76564.js +22 -0
- package/__mf/js/async/274.d4e1eee8.js +2 -0
- package/__mf/js/async/293.d523e0ab.js +1 -0
- package/__mf/js/async/302.b54c0505.js +2 -0
- package/__mf/js/async/356.f5a1c439.js +1 -0
- package/__mf/js/async/392.a8143615.js +2 -0
- package/__mf/js/async/450.13fefb05.js +1 -0
- package/__mf/js/async/465.fc9973fc.js +2 -0
- package/__mf/js/async/470.57be52e3.js +2 -0
- package/__mf/js/async/{214.fbd87600.js → 587.6d7b1a7f.js} +1 -1
- package/__mf/js/async/588.496be9cb.js +1 -0
- package/__mf/js/async/616.f83c59ff.js +1 -0
- package/__mf/js/async/71.603fe88a.js +1 -0
- package/__mf/js/async/721.0467c07c.js +1 -0
- package/__mf/js/async/790.42bd307b.js +7 -0
- package/__mf/js/async/873.bde3655e.js +1 -0
- package/__mf/js/async/911.29a700f7.js +65 -0
- package/__mf/js/async/941.c1c0755a.js +2 -0
- package/__mf/js/async/{738.ab4d3413.js → 968.eb198ceb.js} +1 -1
- package/__mf/js/async/978.c7471d24.js +1 -0
- package/__mf/js/async/__federation_expose_StatChart.fd6bf4ac.js +1 -0
- package/__mf/js/async/lib-router.ed92c54d.js +2 -0
- package/__mf/js/main.5a7ad716.js +6 -0
- package/lib/StatChartBase.js +1 -1
- package/lib/StatChartBase.js.map +1 -1
- package/lib/StatChartOptionsEditorSettings.d.ts.map +1 -1
- package/lib/StatChartOptionsEditorSettings.js +60 -32
- package/lib/StatChartOptionsEditorSettings.js.map +1 -1
- package/lib/StatChartPanel.d.ts.map +1 -1
- package/lib/StatChartPanel.js +3 -1
- package/lib/StatChartPanel.js.map +1 -1
- package/lib/bootstrap.js +1 -1
- package/lib/bootstrap.js.map +1 -1
- package/lib/cjs/StatChartOptionsEditorSettings.js +58 -30
- package/lib/cjs/StatChartPanel.js +3 -1
- package/lib/cjs/index-federation.js +12 -12
- package/lib/cjs/stat-chart-model.js +25 -4
- package/lib/stat-chart-model.d.ts +9 -1
- package/lib/stat-chart-model.d.ts.map +1 -1
- package/lib/stat-chart-model.js +19 -1
- package/lib/stat-chart-model.js.map +1 -1
- package/mf-manifest.json +34 -34
- package/mf-stats.json +34 -34
- package/package.json +4 -4
- package/__mf/js/StatChart.7c0ea76c.js +0 -5
- package/__mf/js/async/173.879ec01b.js +0 -2
- package/__mf/js/async/224.82f1452f.js +0 -1
- package/__mf/js/async/238.5475e796.js +0 -1
- package/__mf/js/async/292.a2435289.js +0 -1
- package/__mf/js/async/298.2736d1ac.js +0 -1
- package/__mf/js/async/409.b9808041.js +0 -1
- package/__mf/js/async/518.d772e916.js +0 -2
- package/__mf/js/async/651.f2aaf868.js +0 -1
- package/__mf/js/async/694.d6624664.js +0 -1
- package/__mf/js/async/711.30b0444f.js +0 -22
- package/__mf/js/async/740.2a430835.js +0 -1
- package/__mf/js/async/75.c51a3e1b.js +0 -1
- package/__mf/js/async/764.c5215ca9.js +0 -83
- package/__mf/js/async/770.edf0b438.js +0 -1
- package/__mf/js/async/804.ee813935.js +0 -1
- package/__mf/js/async/85.559c8591.js +0 -7
- package/__mf/js/async/863.41130256.js +0 -2
- package/__mf/js/async/954.8c39b26f.js +0 -2
- package/__mf/js/async/960.a322ec99.js +0 -2
- package/__mf/js/async/962.5508c92d.js +0 -1
- package/__mf/js/async/966.4cf38e97.js +0 -65
- package/__mf/js/async/981.c97e9bc4.js +0 -2
- package/__mf/js/async/__federation_expose_StatChart.20659f63.js +0 -1
- package/__mf/js/async/lib-router.5a2b101a.js +0 -2
- package/__mf/js/main.b4991a3c.js +0 -5
- /package/__mf/css/async/{263.d3010b86.css → 442.d3010b86.css} +0 -0
- /package/__mf/css/async/{341.d3010b86.css → 61.d3010b86.css} +0 -0
- /package/__mf/css/async/{759.d3010b86.css → 823.d3010b86.css} +0 -0
- /package/__mf/js/async/{964.2c4a1982.js.LICENSE.txt → 121.3f61f76f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{764.c5215ca9.js.LICENSE.txt → 205.1bcd0ed9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{711.30b0444f.js.LICENSE.txt → 252.71d76564.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{960.a322ec99.js.LICENSE.txt → 274.d4e1eee8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{518.d772e916.js.LICENSE.txt → 302.b54c0505.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{981.c97e9bc4.js.LICENSE.txt → 392.a8143615.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{954.8c39b26f.js.LICENSE.txt → 465.fc9973fc.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{173.879ec01b.js.LICENSE.txt → 470.57be52e3.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{85.559c8591.js.LICENSE.txt → 790.42bd307b.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{863.41130256.js.LICENSE.txt → 941.c1c0755a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.5a2b101a.js.LICENSE.txt → lib-router.ed92c54d.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 465.fc9973fc.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.chunk_StatChart=self.chunk_StatChart||[]).push([["465"],{31831:function(t,e,n){n.d(e,{C6:()=>r});var i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},74915:function(t,e,n){n.d(e,{C6:()=>r});var i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},68532:function(t,e,n){n.d(e,{Jw:()=>o,LR:()=>u,LW:()=>l,Nz:()=>h,Xr:()=>d,ap:()=>f,oi:()=>s,t5:()=>p});var i=n(4884),r=(0,n(84124).$r)();function o(t,e,n,r,o){if(e&&e.ecModel){var a,s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l=e&&e.isAnimationEnabled(),u="update"===t;if(!l)return null;var h=void 0,c=void 0,p=void 0;return r?(h=(0,i.retrieve2)(r.duration,200),c=(0,i.retrieve2)(r.easing,"cubicOut"),p=0):(h=e.getShallow(u?"animationDurationUpdate":"animationDuration"),c=e.getShallow(u?"animationEasingUpdate":"animationEasing"),p=e.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(h=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(p=a.delay)),(0,i.isFunction)(p)&&(p=p(n,o)),(0,i.isFunction)(h)&&(h=h(n)),{duration:h||0,delay:p,easing:c}}function a(t,e,n,r,a,s,l){var u,h=!1;(0,i.isFunction)(a)?(l=s,s=a,a=null):(0,i.isObject)(a)&&(s=a.cb,l=a.during,h=a.isFrom,u=a.removeOpt,a=a.dataIndex);var c="leave"===t;c||e.stopAnimation("leave");var p=o(t,r,a,c?u||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(p&&p.duration>0){var f={duration:p.duration,delay:p.delay||0,easing:p.easing,done:s,force:!!s||!!l,setToFinal:!c,scope:t,during:l};h?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),h||e.attr(n),l&&l(1),s&&s()}function s(t,e,n,i,r,o){a("update",t,e,n,i,r,o)}function l(t,e,n,i,r,o){a("enter",t,e,n,i,r,o)}function u(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function h(t,e,n,i,r,o){u(t)||a("leave",t,e,n,i,r,o)}function c(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),h(t,{style:{opacity:0}},e,n,i)}function p(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||c(t,e,n,i)}):c(t,e,n,i)}function f(t){r(t).oldStyle=t.style}function d(t){return r(t).oldStyle}},17182:function(t,e,n){n.d(e,{A:()=>d});var i=n(31831),r=n(60253),o=n(79620),a=n(68532),s=n(35032),l=n(72059),u=n(18538),h=n(4884),c=n(73394),p=n(64586);function f(t,e){this.parent.drift(t,e)}let d=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return(0,i.C6)(e,t),e.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();var a=(0,r.v5)(t,-1,-1,2,2,null,o);a.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=f,this._symbolType=t,this.add(a)},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(){(0,l.HY)(this.childAt(0))},e.prototype.downplay=function(){(0,l.SD)(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 o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,h=r&&r.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,c)}else{var p=this.childAt(0);p.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};h?p.attr(f):a.oi(p,f,s,n),(0,a.ap)(p)}if(this._updateCommon(t,n,l,i,r),u){var p=this.childAt(0);if(!h){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,a.LW(p,f,s,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,o){var a,s,f,d,g,y,v,m,_,x=this.childAt(0),w=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,g=i.blurScope,v=i.labelStatesModels,m=i.hoverScale,_=i.cursorStyle,y=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(e),S=b.getModel("emphasis");a=S.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),s=b.getModel(["blur","itemStyle"]).getItemStyle(),d=S.get("focus"),g=S.get("blurScope"),y=S.get("disabled"),v=(0,c.lx)(b),m=S.getShallow("scale"),_=b.getShallow("cursor")}var A=t.getItemVisual(e,"symbolRotate");x.attr("rotation",(A||0)*Math.PI/180||0);var M=(0,r.hV)(t.getItemVisual(e,"symbolOffset"),n);M&&(x.x=M[0],x.y=M[1]),_&&x.attr("cursor",_);var T=t.getItemVisual(e,"style"),C=T.fill;if(x instanceof p.Ay){var k=x.style;x.useStyle((0,h.extend)({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},T))}else x.__isEmptyBrush?x.useStyle((0,h.extend)({},T)):x.useStyle(T),x.style.decal=null,x.setColor(C,o&&o.symbolInnerColor),x.style.strokeNoScale=!0;var I=t.getItemVisual(e,"liftZ"),D=this._z2;null!=I?null==D&&(this._z2=x.z2,x.z2+=I):null!=D&&(x.z2=D,this._z2=null);var O=o&&o.useNameLabel;(0,c.qM)(x,v,{labelFetcher:w,labelDataIndex:e,defaultText:function(e){return O?t.getName(e):(0,u.i)(t,e)},inheritColor:C,defaultOpacity:T.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var P=x.ensureState("emphasis");P.style=a,x.ensureState("select").style=f,x.ensureState("blur").style=s;var L=null==m||!0===m?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;P.scaleX=this._sizeX*L,P.scaleY=this._sizeY*L,this.setSymbolScale(1),(0,l.Lm)(this,d,g,y)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=(0,s.z)(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&a.Nz(l,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();a.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return(0,r.xU)(t.getItemVisual(e,"symbolSize"))},e}(o.A)},22448:function(t,e,n){n.d(e,{A:()=>p});var i=n(79620),r=n(68532),o=n(59033),a=n(17182),s=n(4884),l=n(73394);function u(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function h(t){return null==t||(0,s.isObject)(t)||(t={isIgnore:t}),t||{}}function c(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:(0,l.lx)(e),cursorStyle:e.get("cursor")}}let p=function(){function t(t){this.group=new i.A,this._SymbolCtor=t||a.A}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=h(e);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=c(t),p={disableAnimation:s},f=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add(function(i){var r=f(i);if(u(t,r,i,e)){var o=new a(t,i,l,p);o.setPosition(r),t.setItemGraphicEl(i,o),n.add(o)}}).update(function(h,c){var d=o.getItemGraphicEl(c),g=f(h);if(!u(t,g,h,e))return void n.remove(d);var y=t.getItemVisual(h,"symbol")||"circle",v=d&&d.getSymbolType&&d.getSymbolType();if(!d||v&&v!==y)n.remove(d),(d=new a(t,h,l,p)).setPosition(g);else{d.updateData(t,h,l,p);var m={x:g[0],y:g[1]};s?d.attr(m):r.oi(d,m,i)}n.add(d),t.setItemGraphicEl(h,d)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=f,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=c(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=h(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(u(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){o.traverseElements(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}()},55037:function(t,e,n){n.d(e,{Ip:()=>h,Mi:()=>u,SM:()=>l});var i=n(63811),r=n(68532),o=n(23917),a=n(21916),s=n(4884);function l(t,e,n,o,a){var l=t.getArea(),u=l.x,h=l.y,c=l.width,p=l.height,f=n.get(["lineStyle","width"])||2;u-=f/2,h-=f/2,c+=f,p+=f,c=Math.ceil(c),u!==Math.floor(u)&&(u=Math.floor(u),c++);var d=new i.A({shape:{x:u,y:h,width:c,height:p}});if(e){var g=t.getBaseAxis(),y=g.isHorizontal(),v=g.inverse;y?(v&&(d.shape.x+=c),d.shape.width=0):(v||(d.shape.y+=p),d.shape.height=0);var m=(0,s.isFunction)(a)?function(t){a(t,d)}:null;r.LW(d,{shape:{width:c,height:p,x:u,y:h}},n,null,o,m)}return d}function u(t,e,n){var i=t.getArea(),s=(0,a.LI)(i.r0,1),l=(0,a.LI)(i.r,1),u=new o.A({shape:{cx:(0,a.LI)(t.cx,1),cy:(0,a.LI)(t.cy,1),r0:s,r:l,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?u.shape.endAngle=i.startAngle:u.shape.r=s,r.LW(u,{shape:{endAngle:i.endAngle,r:l}},n)),u}function h(t,e,n,i,r){if(t){if("polar"===t.type)return u(t,e,n);else if("cartesian2d"===t.type)return l(t,e,n,i,r)}return null}},65132:function(t,e,n){n.d(e,{A:()=>r});var i=n(84124);function r(){var t=(0,i.$r)();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}},43059:function(t,e,n){n.d(e,{A:()=>y});var i=n(4884),r=n(15764),o=n(85337),a=n(1122),s=n(84124),l=n(51907),u=function(t){this.coordSysDims=[],this.axisMap=(0,i.createHashMap)(),this.categoryAxisMap=(0,i.createHashMap)(),this.coordSysName=t},h={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",s.US).models[0],o=t.getReferringComponents("yAxis",s.US).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),c(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),c(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",s.US).models[0];e.coordSysDims=["single"],n.set("single",r),c(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",s.US).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),c(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),c(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();(0,i.each)(a.parallelAxisIndex,function(t,i){var a=o.getComponent("parallelAxis",t),l=s[i];n.set(l,a),c(a)&&(r.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))})}};function c(t){return"category"===t.get("type")}var p=n(79576),f=n(41402),d=n(88569),g=n(95056);let y=function(t,e,n){n=n||{};var c,y,v,m,_,x,w,b,S=e.getSourceManager(),A=!1;t?(A=!0,b=(0,p.AF)(t)):A=(b=S.getSource()).sourceFormat===g.mK;var M=function(t){var e=t.get("coordinateSystem"),n=new u(e),i=h[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),T=(y=e.get("coordinateSystem"),v=l.A.get(y),M&&M.coordSysDims&&(c=i.map(M.coordSysDims,function(t){var e={name:t},n=M.axisMap.get(t);if(n){var i=n.get("type");e.type=(0,a.B)(i)}return e})),c||(c=v&&(v.getDimensionsInfo?v.getDimensionsInfo():v.dimensions.slice())||["x","y"]),c),C=n.useEncodeDefaulter,k=i.isFunction(C)?C:C?i.curry(d.OC,T,e):null,I={coordDimensions:T,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:k,canOmitUnusedDimensions:!A},D=(0,o.A)(b,I),O=(m=D.dimensions,_=n.createInvertedIndices,M&&i.each(m,function(t,e){var n=t.coordDim,i=M.categoryAxisMap.get(n);i&&(null==x&&(x=e),t.ordinalMeta=i.getOrdinalMeta(),_&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(w=!0)}),w||null==x||(m[x].otherDims.itemName=0),x),P=A?null:S.getSharedDataStore(D),L=(0,f.iJ)(e,{schema:D,store:P}),R=new r.A(D,e);R.setCalculationInfo(L);var N=null!=O&&function(t){if(t.sourceFormat===g.mK){var e=function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!i.isArray((0,s.vj)(e))}}(b)?function(t,e,n,i){return i===O?n:this.defaultDimValueGetter(t,e,n,i)}:null;return R.hasItemOption=!1,R.initData(A?b:P,null,N),R}},18538:function(t,e,n){n.d(e,{T:()=>a,i:()=>o});var i=n(98609),r=n(4884);function o(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var o=(0,i.QE)(t,e,n[0]);return null!=o?o+"":null}if(r){for(var a=[],s=0;s<n.length;s++)a.push((0,i.QE)(t,e,n[s]));return a.join(" ")}}function a(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,r.isArray)(e))return e+"";for(var i=[],o=0;o<n.length;o++){var a=t.getDimensionIndex(n[o]);a>=0&&i.push(e[a])}return i.join(" ")}},62707:function(t,e,n){n.d(e,{a:()=>V});var i=n(31831),r=n(43059),o=n(55785),a=n(60253),s=n(79620),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,i.C6)(e,t),e.prototype.getInitialData=function(t){return(0,r.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new s.A,n=(0,a.v5)("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"),o="none"===i?"circle":i,l=.8*t.itemHeight,u=(0,a.v5)(o,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);return e.add(u),u.setStyle(t.itemStyle),u.rotation=("inherit"===t.iconRotate?r:t.iconRotate||0)*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(o.A),u=n(4884),h=n(22448),c=n(17182),p=n(41402);function f(t,e,n){var i,r,o,a,s=t.getBaseAxis(),l=t.getOtherAxis(s),h=(i=l,r=n,o=0,a=i.scale.getExtent(),"start"===r?o=a[0]:"end"===r?o=a[1]:(0,u.isNumber)(r)&&!isNaN(r)?o=r:a[0]>0?o=a[0]:a[1]<0&&(o=a[1]),o),c=s.dim,f=l.dim,d=e.mapDimension(f),g=e.mapDimension(c),y=+("x"===f||"radius"===f),v=(0,u.map)(t.dimensions,function(t){return e.mapDimension(t)}),m=!1,_=e.getCalculationInfo("stackResultDimension");return(0,p.sJ)(e,v[0])&&(m=!0,v[0]=_),(0,p.sJ)(e,v[1])&&(m=!0,v[1]=_),{dataDimsForPoint:v,valueStart:h,valueAxisDim:f,baseAxisDim:c,stacked:!!m,valueDim:d,baseDim:g,baseDataOffset:y,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function d(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var g=n(30095),y=n(87142),v=n(68532),m=n(52384),_=n(84124),x=n(25970),w=n(31440),b=n(55037),S=n(43139),A=n(72059),M=n(73394),T=n(18538),C=n(35032),k=n(3306),I=n(34196);function D(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function O(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function P(t,e){var n=O(t),i=n[0],r=n[1],o=O(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function L(t){return u.isNumber(t)?t:.5*!!t}function R(t,e,n,i){var r=e.getBaseAxis(),o=+("x"!==r.dim&&"radius"!==r.dim),a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||c.push(t[s],t[s+1]);t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+h[o])/2,f=[];l[o]=f[o]=p,l[1-o]=u[1-o],f[1-o]=h[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function N(t,e){return[t[2*e],t[2*e+1]]}function E(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<A.BV.length;e++)if(t.get([A.BV[e],"endLabel","show"]))return!0;return!1}function z(t,e,n,i){if(!(0,S.g)(e,"cartesian2d"))return(0,b.Mi)(e,n,i);var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=E(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=(0,b.SM)(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 c=h.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)}return l&&l(1,h),h}var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.init=function(){var t=new s.A,e=new h.A;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i,r=this,o=t.coordinateSystem,a=this.group,s=t.getData(),l=t.getModel("lineStyle"),h=t.getModel("areaStyle"),p=s.getLayout("points")||[],m="polar"===o.type,_=this._coordSys,x=this._symbolDraw,w=this._polyline,b=this._polygon,S=this._lineGroup,M=!e.ssr&&t.get("animation"),T=!h.isEmpty(),O=h.get("origin"),P=f(o,s,O),N=T&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=(0,g.J)(2*i),o=0;o<i;o++){var a=d(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(o,s,P),E=t.get("showSymbol"),B=t.get("connectNulls"),F=E&&!m&&function(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&!(r&&function(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(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*c.A.getSymbolSize(e,a)[+!!t.isHorizontal()]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return u.each(o.getViewLabels(),function(t){s[o.scale.getRawOrdinalNumber(t.tickValue)]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,s,o),H=this._data;H&&H.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),H.setItemGraphicEl(e,null))}),E||x.remove(),a.add(S);var V=!m&&t.get("step");o&&o.getArea&&t.get("clip",!0)&&(null!=(i=o.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i;var W=function(t,e,n){var i,r,o=t.getVisual("visualMeta");if(o&&o.length&&t.count()){if("cartesian2d"!==e.type)return;for(var a=o.length-1;a>=0;a--){var s=t.getDimensionInfo(o[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){r=o[a];break}}if(!r)return;var l=e.getAxis(i),h=u.map(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),c=h.length,p=r.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),p.reverse());var f=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i);return{coord:n,color:(0,I.lerp)(r,[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else if(u>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}else n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}return r}(h,"x"===i?n.getWidth():n.getHeight()),d=f.length;if(!d&&c)return h[0].coord<0?p[1]?p[1]:h[c-1].color:p[0]?p[0]:h[0].color;var g=f[0].coord-10,v=f[d-1].coord+10,m=v-g;if(m<.001)return"transparent";u.each(f,function(t){t.offset=(t.coord-g)/m}),f.push({offset:d?f[d-1].offset:.5,color:p[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:p[0]||"transparent"});var _=new y.A(0,0,0,0,f,!0);return _[i]=g,_[i+"2"]=v,_}}(s,o,n)||s.getVisual("style")[s.getVisual("drawType")];if(w&&_.type===o.type&&V===this._step){T&&!b?b=this._newPolygon(p,N):b&&!T&&(S.remove(b),b=this._polygon=null),m||this._initOrUpdateEndLabel(t,o,(0,k.he)(W));var G=S.getClipPath();if(G){var U=z(this,o,!1,t);v.LW(G,{shape:U.shape},t)}else S.setClipPath(z(this,o,!0,t));E&&x.updateData(s,{isIgnore:F,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),D(this._stackedOnPoints,N)&&D(this._points,p)||(M?this._doUpdateAnimation(s,N,o,n,V,O,B):(V&&(p=R(p,o,V,B),N&&(N=R(N,o,V,B))),w.setShape({points:p}),b&&b.setShape({points:p,stackedOnPoints:N})))}else E&&x.updateData(s,{isIgnore:F,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),M&&this._initSymbolLabelAnimation(s,o,i),V&&(p=R(p,o,V,B),N&&(N=R(N,o,V,B))),w=this._newPolyline(p),T?b=this._newPolygon(p,N):b&&(S.remove(b),b=this._polygon=null),m||this._initOrUpdateEndLabel(t,o,(0,k.he)(W)),S.setClipPath(z(this,o,!0,t));var Y=t.getModel("emphasis"),X=Y.get("focus"),j=Y.get("blurScope"),q=Y.get("disabled");w.useStyle(u.defaults(l.getLineStyle(),{fill:"none",stroke:W,lineJoin:"bevel"})),(0,A.Mx)(w,t,"lineStyle"),w.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(w.getState("emphasis").style.lineWidth=+w.style.lineWidth+1),(0,C.z)(w).seriesIndex=t.seriesIndex,(0,A.Lm)(w,X,j,q);var Z=L(t.get("smooth")),K=t.get("smoothMonotone");if(w.setShape({smooth:Z,smoothMonotone:K,connectNulls:B}),b){var $=s.getCalculationInfo("stackedOnSeries"),Q=0;b.useStyle(u.defaults(h.getAreaStyle(),{fill:W,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(Q=L($.get("smooth"))),b.setShape({smooth:Z,stackedOnSmooth:Q,smoothMonotone:K,connectNulls:B}),(0,A.Mx)(b,t,"areaStyle"),(0,C.z)(b).seriesIndex=t.seriesIndex,(0,A.Lm)(b,X,j,q)}var J=function(t){r._changePolyState(t)};s.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=o,this._stackedOnPoints=N,this._points=p,this._step=V,this._valueOrigin=O,t.get("triggerLineEvent")&&(this.packEventData(t,w),b&&this.packEventData(t,b))},e.prototype.packEventData=function(t,e){(0,C.z)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=_.le(r,i);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))w.A.prototype.highlight.call(this,t,e,n,i);else{var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,p=t.get("z")||0;(s=new c.A(r,o)).x=l,s.y=u,s.setZ(h,p);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=h,f.z=p,f.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=_.le(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else w.A.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;(0,A.Pk)(this._polyline,t),e&&(0,A.Pk)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new x.N({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 x.z({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,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");u.isFunction(l)&&(l=l(null));var h=s.get("animationDelay")||0,c=u.isFunction(h)?h(null):h;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],p=void 0,f=void 0,d=void 0;if(n)if(r){var g=e.pointToCoord(s);i?(p=n.startAngle,f=n.endAngle,d=-g[1]/180*Math.PI):(p=n.r0,f=n.r,d=g[0])}else i?(p=n.x,f=n.x+n.width,d=t.x):(p=n.y+n.height,f=n.y,d=t.y);var y=f===p?0:(d-p)/(f-p);a&&(y=1-y);var v=u.isFunction(h)?h(o):l*y+c,m=t.getSymbolPath(),_=m.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:v}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:v}),m.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(E(t)){var r,o,a,s=t.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var h=this._endLabel;h||((h=this._endLabel=new m.Ay({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var c=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(u);c>=0&&((0,M.qM)(l,(0,M.lx)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:c,defaultText:function(t,e,n){return null!=n?(0,T.T)(s,n):(0,T.i)(s,t)},enableTextSetter:!0},(o=(r=e.getBaseAxis()).isHorizontal(),a=r.inverse,{normal:{align:i.get("align")||(o?a?"right":"left":"center"),verticalAlign:i.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){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"),h=n.hostModel,c=h.get("connectNulls"),p=o.get("precision"),f=o.get("distance")||0,d=a.getBaseAxis(),g=d.isHorizontal(),y=d.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?f:0)*(y?-1:1),w=(g?0:-f)*(y?-1:1),b=g?"x":"y",S=function(t,e,n){for(var i,r,o=t.length/2,a=+("x"!==n),s=0,l=-1,u=0;u<o;u++)if(!(isNaN(r=t[2*u+a])||isNaN(t[2*u+1-a]))){if(0===u){i=r;continue}if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),A=S.range,T=A[1]-A[0],C=void 0;if(T>=1){if(T>1&&!c){var k=N(u,A[0]);s.attr({x:k[0]+x,y:k[1]+w}),r&&(C=h.getRawValue(A[0]))}else{var k=l.getPointOn(m,b);k&&s.attr({x:k[0]+x,y:k[1]+w});var I=h.getRawValue(A[0]),D=h.getRawValue(A[1]);r&&(C=_.Il(n,p,I,D,S.t))}i.lastFrameIndex=A[0]}else{var O=1===t||i.lastFrameIndex>0?A[0]:0,k=N(u,O);r&&(C=h.getRawValue(O)),s.attr({x:k[0]+x,y:k[1]+w})}if(r){var P=(0,M.Lu)(s);"function"==typeof P.setLabelText&&P.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a,s){for(var l,u=(l=[],e.diff(t).add(function(t){l.push({cmd:"+",idx:t})}).update(function(t,e){l.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){l.push({cmd:"-",idx:t})}).execute(),l),h=[],c=[],p=[],y=[],v=[],m=[],_=[],x=f(r,e,a),w=t.getLayout("points")||[],b=e.getLayout("points")||[],S=0;S<u.length;S++){var A=u[S],M=!0,T=void 0,C=void 0;switch(A.cmd){case"=":T=2*A.idx,C=2*A.idx1;var k=w[T],I=w[T+1],D=b[C],O=b[C+1];(isNaN(k)||isNaN(I))&&(k=D,I=O),h.push(k,I),c.push(D,O),p.push(n[T],n[T+1]),y.push(i[C],i[C+1]),_.push(e.getRawIndex(A.idx1));break;case"+":var P=A.idx,L=x.dataDimsForPoint,R=r.dataToPoint([e.get(L[0],P),e.get(L[1],P)]);C=2*P,h.push(R[0],R[1]),c.push(b[C],b[C+1]);var N=d(x,r,e,P);p.push(N[0],N[1]),y.push(i[C],i[C+1]),_.push(e.getRawIndex(P));break;case"-":M=!1}M&&(v.push(A),m.push(m.length))}m.sort(function(t,e){return _[t]-_[e]});for(var E=h.length,z=(0,g.J)(E),B=(0,g.J)(E),F=(0,g.J)(E),H=(0,g.J)(E),V=[],S=0;S<m.length;S++){var W=m[S],G=2*S,U=2*W;z[G]=h[U],z[G+1]=h[U+1],B[G]=c[U],B[G+1]=c[U+1],F[G]=p[U],F[G+1]=p[U+1],H[G]=y[U],H[G+1]=y[U+1],V[S]=v[W]}return{current:z,next:B,stackedOnCurrent:F,stackedOnNext:H,status:V}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin,0),c=h.current,p=h.stackedOnCurrent,y=h.next,m=h.stackedOnNext;if(r&&(c=R(h.current,n,r,a),p=R(h.stackedOnCurrent,n,r,a),y=R(h.next,n,r,a),m=R(h.stackedOnNext,n,r,a)),P(c,y)>3e3||l&&P(p,m)>3e3){s.stopAnimation(),s.setShape({points:y}),l&&(l.stopAnimation(),l.setShape({points:y,stackedOnPoints:m}));return}s.shape.__points=h.current,s.shape.points=c;var _={shape:{points:y}};h.current!==c&&(_.shape.__points=h.next),s.stopAnimation(),v.oi(s,_,u),l&&(l.setShape({points:c,stackedOnPoints:p}),l.stopAnimation(),v.oi(l,{shape:{stackedOnPoints:m}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var x=[],w=h.status,b=0;b<w.length;b++)if("="===w[b].cmd){var S=t.getItemGraphicEl(w[b].idx1);S&&x.push({el:S,ptIdx:b})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<x.length;e++){var n=x[e].el,i=2*x[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}(w.A),F=n(97548),H=n(50821);function V(t){t.registerChartView(B),t.registerSeriesModel(l),t.registerLayout((0,F.A)("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,(0,H.A)("line"))}},25970:function(t,e,n){n.d(e,{N:()=>p,z:()=>d});var i=n(31831),r=n(30070),o=n(40843),a=n(26989),s=Math.min,l=Math.max;function u(t,e){return isNaN(t)||isNaN(e)}function h(t,e,n,i,r,o,a,h,c){for(var p,f,d,g,y,v,m=n,_=0;_<i;_++){var x=e[2*m],w=e[2*m+1];if(m>=r||m<0)break;if(u(x,w)){if(c){m+=o;continue}break}if(m===n)t[o>0?"moveTo":"lineTo"](x,w),d=x,g=w;else{var b=x-p,S=w-f;if(b*b+S*S<.5){m+=o;continue}if(a>0){for(var A=m+o,M=e[2*A],T=e[2*A+1];M===x&&T===w&&_<i;)_++,A+=o,m+=o,M=e[2*A],T=e[2*A+1],x=e[2*m],w=e[2*m+1],b=x-p,S=w-f;var C=_+1;if(c)for(;u(M,T)&&C<i;)C++,A+=o,M=e[2*A],T=e[2*A+1];var k=.5,I=0,D=0,O=void 0,P=void 0;if(C>=i||u(M,T))y=x,v=w;else{I=M-p,D=T-f;var L=x-p,R=M-x,N=w-f,E=T-w,z=void 0,B=void 0;if("x"===h){z=Math.abs(L),B=Math.abs(R);var F=I>0?1:-1;y=x-F*z*a,v=w,O=x+F*B*a,P=w}else if("y"===h){z=Math.abs(N),B=Math.abs(E);var H=D>0?1:-1;y=x,v=w-H*z*a,O=x,P=w+H*B*a}else z=Math.sqrt(L*L+N*N),y=x-I*a*(1-(k=(B=Math.sqrt(R*R+E*E))/(B+z))),v=w-D*a*(1-k),O=x+I*a*k,P=w+D*a*k,O=s(O,l(M,x)),P=s(P,l(T,w)),O=l(O,s(M,x)),P=l(P,s(T,w)),I=O-x,D=P-w,y=x-I*z/B,v=w-D*z/B,y=s(y,l(p,x)),v=s(v,l(f,w)),y=l(y,s(p,x)),v=l(v,s(f,w)),I=x-y,D=w-v,O=x+I*B/z,P=w+D*B/z}t.bezierCurveTo(d,g,y,v,x,w),d=O,g=P}else t.lineTo(x,w)}p=x,f=w,m+=o}return _}var c=function(){this.smooth=0,this.smoothConstraint=!0},p=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new c},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&u(n[2*r-2],n[2*r-1]);r--);for(;i<r&&u(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=h(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.data,s=o.A.CMD,l="x"===e,u=[],h=0;h<r.length;){var c=r[h++],p=void 0,f=void 0,d=void 0,g=void 0,y=void 0,v=void 0,m=void 0;switch(c){case s.M:n=r[h++],i=r[h++];break;case s.L:if(p=r[h++],f=r[h++],(m=l?(t-n)/(p-n):(t-i)/(f-i))<=1&&m>=0){var _=l?(f-i)*m+i:(p-n)*m+n;return l?[t,_]:[_,t]}n=p,i=f;break;case s.C:p=r[h++],f=r[h++],d=r[h++],g=r[h++],y=r[h++],v=r[h++];var x=l?(0,a._E)(n,p,d,y,t,u):(0,a._E)(i,f,g,v,t,u);if(x>0)for(var w=0;w<x;w++){var b=u[w];if(b<=1&&b>=0){var _=l?(0,a.Yb)(i,f,g,v,b):(0,a.Yb)(n,p,d,y,b);return l?[t,_]:[_,t]}}n=y,i=v}}},e}(r.Ay),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(c),d=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new f},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&u(n[2*o-2],n[2*o-1]);o--);for(;r<o&&u(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=h(t,n,r,o,o,1,e.smooth,a,e.connectNulls);h(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(r.Ay)},79132:function(t,e,n){n.d(e,{A:()=>A});var i=n(4884),r=n(79620),o=n(28887),a=n(59033),s=n(52384),l=n(35032),u=n(73394),h=n(25744),c=n(21916),p=n(60253),f=n(37817),d=n(28535),g=n(93530),y=n(6417),v=Math.PI,m=function(){function t(t,e){this.group=new r.A,this.opt=e,this.axisModel=t,(0,i.defaults)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new r.A({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!_[t]},t.prototype.add=function(t){_[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=(0,c._7)(e-t);return(0,c.dh)(o)?(r=n>0?"top":"bottom",i="center"):(0,c.dh)(o-v)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<v?n>0?"right":"left":n>0?"left":"right"),{rotation:o,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}(),_={axisLine:function(t,e,n,r){var s=e.get(["axisLine","show"]);if("auto"===s&&t.handleAutoShown&&(s=t.handleAutoShown("axisLine")),s){var l=e.axis.getExtent(),u=r.transform,h=[l[0],0],c=[l[1],0],f=h[0]>c[0];u&&((0,d.applyTransform)(h,h,u),(0,d.applyTransform)(c,c,u));var g=(0,i.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new o.A({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:g,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});a.subPixelOptimizeLine(y.shape,y.style.lineWidth),y.anid="line",n.add(y);var v=e.get(["axisLine","symbol"]);if(null!=v){var m=e.get(["axisLine","symbolSize"]);(0,i.isString)(v)&&(v=[v,v]),((0,i.isString)(m)||(0,i.isNumber)(m))&&(m=[m,m]);var _=(0,p.hV)(e.get(["axisLine","symbolOffset"])||0,m),x=m[0],w=m[1];(0,i.each)([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(e,i){if("none"!==v[i]&&null!=v[i]){var r=(0,p.v5)(v[i],-x/2,-w/2,x,w,g.stroke,!0),o=e.r+e.offset,a=f?c:h;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,r){var o=function(t,e,n,r){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");if("auto"===s&&r.handleAutoShown&&(s=r.handleAutoShown("axisTick")),!(!s||o.scale.isBlank())){for(var l=a.getModel("lineStyle"),u=r.tickDirection*a.get("length"),h=S(o.getTicksCoords(),e.transform,u,(0,i.defaults)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<h.length;c++)t.add(h[c]);return h}}(n,r,e,t),a=function(t,e,n,r){var o=n.axis;if(!(!(0,i.retrieve)(r.axisLabelShow,n.get(["axisLabel","show"]))||o.scale.isBlank())){var a=n.getModel("axisLabel"),c=a.get("margin"),p=o.getViewLabels(),f=((0,i.retrieve)(r.labelRotate,a.get("rotate"))||0)*v/180,d=m.innerTextLayout(r.rotation,f,r.labelDirection),g=n.getCategories&&n.getCategories(!0),y=[],_=m.isLabelSilent(n),x=n.get("triggerEvent");return(0,i.each)(p,function(f,v){var w="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(f.tickValue):f.tickValue,b=f.formattedLabel,S=f.rawLabel,A=a;if(g&&g[w]){var M=g[w];(0,i.isObject)(M)&&M.textStyle&&(A=new h.A(M.textStyle,a,n.ecModel))}var T=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=o.dataToCoord(w),k=A.getShallow("align",!0)||d.textAlign,I=(0,i.retrieve2)(A.getShallow("alignMinLabel",!0),k),D=(0,i.retrieve2)(A.getShallow("alignMaxLabel",!0),k),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||d.textVerticalAlign,P=(0,i.retrieve2)(A.getShallow("verticalAlignMinLabel",!0),O),L=(0,i.retrieve2)(A.getShallow("verticalAlignMaxLabel",!0),O),R=new s.Ay({x:C,y:r.labelOffset+r.labelDirection*c,rotation:d.rotation,silent:_,z2:10+(f.level||0),style:(0,u.VB)(A,{text:b,align:0===v?I:v===p.length-1?D:k,verticalAlign:0===v?P:v===p.length-1?L:O,fill:(0,i.isFunction)(T)?T("category"===o.type?S:"value"===o.type?w+"":w,v):T})});if(R.anid="label_"+w,x){var N=m.makeAxisEventDataBase(n);N.targetType="axisLabel",N.value=S,N.tickIndex=v,"category"===o.type&&(N.dataIndex=w),(0,l.z)(R).eventData=N}e.add(R),R.updateTransform(),y.push(R),t.add(R),R.decomposeTransform()}),y}}(n,r,e,t);if(function(t,e,n){if(!(0,g.PJ)(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],h=n[1],c=n[n.length-1],p=n[n.length-2];!1===i?(x(o),x(u)):w(o,a)&&(i?(x(a),x(h)):(x(o),x(u))),!1===r?(x(s),x(c)):w(l,s)&&(r?(x(l),x(p)):(x(s),x(c)))}}(e,a,o),function(t,e,n,r){var o=n.axis,a=n.getModel("minorTick");if(!(!a.get("show")||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),h=(0,i.defaults)(l.getLineStyle(),(0,i.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var p=S(s[c],e.transform,u,h,"minorticks_"+c),f=0;f<p.length;f++)t.add(p[f])}}(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var c=(0,y.os)((0,i.map)(a,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}}));(0,y.If)(c)}},axisName:function(t,e,n,r){var o,h,p=(0,i.retrieve)(t.axisName,e.get("name"));if(p){var f,d,g,y,_,x,w,S,A,M=e.get("nameLocation"),T=t.nameDirection,C=e.getModel("nameTextStyle"),k=e.get("nameGap")||0,I=e.axis.getExtent(),D=I[0]>I[1]?-1:1,O=["start"===M?I[0]-D*k:"end"===M?I[1]+D*k:(I[0]+I[1])/2,b(M)?t.labelOffset+T*k:0],P=e.get("nameRotate");null!=P&&(P=P*v/180),b(M)?o=m.innerTextLayout(t.rotation,null!=P?P:t.rotation,T):(f=t.rotation,d=M,g=P||0,y=I,w=(0,c._7)(g-f),S=y[0]>y[1],A="start"===d&&!S||"start"!==d&&S,(0,c.dh)(w-v/2)?(x=A?"bottom":"top",_="center"):(0,c.dh)(w-1.5*v)?(x=A?"top":"bottom",_="center"):(x="middle",_=w<1.5*v&&w>v/2?A?"left":"right":A?"right":"left"),o={rotation:w,textAlign:_,textVerticalAlign:x},null!=(h=t.axisNameAvailableWidth)&&(isFinite(h=Math.abs(h/Math.sin(o.rotation)))||(h=null)));var L=C.getFont(),R=e.get("nameTruncate",!0)||{},N=R.ellipsis,E=(0,i.retrieve)(t.nameTruncateMaxWidth,R.maxWidth,h),z=new s.Ay({x:O[0],y:O[1],rotation:o.rotation,silent:m.isLabelSilent(e),style:(0,u.VB)(C,{text:p,font:L,overflow:"truncate",width:E,ellipsis:N,fill:C.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:C.get("align")||o.textAlign,verticalAlign:C.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(a.setTooltipConfig({el:z,componentModel:e,itemName:p}),z.__fullText=p,z.anid="name",e.get("triggerEvent")){var B=m.makeAxisEventDataBase(e);B.targetType="axisName",B.name=p,(0,l.z)(z).eventData=B}r.add(z),z.updateTransform(),n.add(z),z.decomposeTransform()}}};function x(t){t&&(t.ignore=!0)}function w(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=f.identity([]);return f.rotate(r,r,-t.rotation),n.applyTransform(f.mul([],r,t.getLocalTransform())),i.applyTransform(f.mul([],r,e.getLocalTransform())),n.intersect(i)}}function b(t){return"middle"===t||"center"===t}function S(t,e,n,i,r){for(var s=[],l=[],u=[],h=0;h<t.length;h++){var c=t[h].coord;l[0]=c,l[1]=0,u[0]=c,u[1]=n,e&&((0,d.applyTransform)(l,l,e),(0,d.applyTransform)(u,u,e));var p=new o.A({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:i,z2:2,autoBatch:!0,silent:!0});a.subPixelOptimizeLine(p.shape,p.style.lineWidth),p.anid=r+"_"+t[h].tickValue,s.push(p)}return s}let A=m},8642:function(t,e,n){n.d(e,{A:()=>s});var i=n(31831),r=n(33828),o=n(43583),a={};let s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(e,n,i,o){this.axisPointerClass&&r.h_(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 o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=r.mg(t);a?(this._axisPointer||(this._axisPointer=new o)).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){a[t]=e},e.getAxisPointerClass=function(t){return t&&a[t]},e.type="axis",e}(o.A)},28767:function(t,e,n){n.d(e,{V:()=>s,Y:()=>a});var i=n(4884),r=n(63811),o=(0,n(84124).$r)();function a(t,e,n,a){var s=n.axis;if(!s.scale.isBlank()){var l=n.getModel("splitArea"),u=l.getModel("areaStyle"),h=u.get("color"),c=a.coordinateSystem.getRect(),p=s.getTicksCoords({tickModel:l,clamp:!0});if(p.length){var f=h.length,d=o(t).splitAreaColors,g=i.createHashMap(),y=0;if(d)for(var v=0;v<p.length;v++){var m=d.get(p[v].tickValue);if(null!=m){y=(m+(f-1)*v)%f;break}}var _=s.toGlobalCoord(p[0].coord),x=u.getAreaStyle();h=i.isArray(h)?h:[h];for(var v=1;v<p.length;v++){var w=s.toGlobalCoord(p[v].coord),b=void 0,S=void 0,A=void 0,M=void 0;s.isHorizontal()?(b=_,S=c.y,A=w-b,M=c.height,_=b+A):(b=c.x,S=_,A=c.width,M=w-S,_=S+M);var T=p[v-1].tickValue;null!=T&&g.set(T,y),e.add(new r.A({anid:null!=T?"area_"+T:null,shape:{x:b,y:S,width:A,height:M},style:i.defaults({fill:h[y]},x),autoBatch:!0,silent:!0})),y=(y+1)%f}o(t).splitAreaColors=g}}}function s(t){o(t).splitAreaColors=null}},86132:function(t,e,n){n.d(e,{A:()=>m});var i=n(4884),r=n(79620),o=n(59033),a=n(52384),s=n(68532),l=n(33828),u=n(77250),h=n(89425),c=(0,n(84124).$r)(),p=i.clone,f=i.bind;function d(t,e,n,r){!function t(e,n){if(!(i.isObject(e)&&i.isObject(n)))return e===n;var r=!0;return i.each(n,function(n,i){r=r&&t(e[i],n)}),!!r}(c(n).lastProp,r)&&(c(n).lastProp=r,e?s.oi(n,r,t):(n.stopAnimation(),n.attr(r)))}function g(t,e){t[e.get(["label","show"])?"show":"hide"]()}function y(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function v(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)})}let m=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,o){var a=e.get("value"),s=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,o||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||"hide"===s){l&&l.hide(),u&&u.hide();return}l&&l.show(),u&&u.show();var h={};this.makeElOption(h,a,t,e,n);var c=h.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var p=this._moveAnimation=this.determineAnimation(t,e);if(l){var f=i.curry(d,e,p);this.updatePointerEl(l,h,f),this.updateLabelEl(l,h,f,e)}else l=this._group=new r.A,this.createPointerEl(l,h,t,e),this.createLabelEl(l,h,t,e),n.getZr().add(l);v(l,e,!0),this._renderHandle(a)}},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,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=l.Yc(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/s>a}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=c(t).pointerEl=new o[r.type](p(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=c(t).labelEl=new a.Ay(p(e.label));t.add(r),g(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=c(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=c(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),g(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,s=n.getModel("handle"),l=n.get("status");if(!s.get("show")||!l||"hide"===l){a&&r.remove(a),this._handle=null;return}this._handle||(e=!0,a=this._handle=o.createIcon(s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){u.ds(t.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),r.add(a)),v(a,n,!1),a.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=s.get("size");i.isArray(c)||(c=[c,c]),a.scaleX=c[0]/2,a.scaleY=c[1]/2,h.N(this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){d(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(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(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(y(i)),c(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),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),h.IU(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}()},8927:function(t,e,n){n.d(e,{A:()=>o});var i=n(4884),r=n(84124);function o(t,e){var n,o=[],a=t.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=r.le(s,t);if(null==l||l<0||i.isArray(l))return{point:[]};var u=s.getItemGraphicEl(l),h=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(h&&h.dataToPoint)if(t.isStacked){var c=h.getBaseAxis(),p=h.getOtherAxis(c).dim,f=c.dim,d=+("x"===p||"radius"===p),g=s.mapDimension(f),y=[];y[d]=s.get(g,l),y[1-d]=s.get(s.getCalculationInfo("stackResultDimension"),l),o=h.dataToPoint(y)||[]}else o=h.dataToPoint(s.getValues(i.map(h.dimensions,function(t){return s.mapDimension(t)}),l))||[];else if(u){var v=u.getBoundingRect().clone();v.applyTransform(u.transform),o=[v.x+v.width/2,v.y+v.height/2]}return{point:o,el:u}}},27462:function(t,e,n){n.d(e,{h:()=>h,k:()=>s});var i=n(4884),r=n(35209),o=(0,n(84124).$r)(),a=i.each;function s(t,e,n){if(!r.A.node){var s=e.getZr();o(s).records||(o(s).records={}),function(t,e){o(t).initialized||(o(t).initialized=!0,n("click",i.curry(u,"click")),n("mousemove",i.curry(u,"mousemove")),n("globalout",l));function n(n,i){t.on(n,function(n){var r,s,l,u,h,c,p,f,d=(r=e,s={showTip:[],hideTip:[]},{dispatchAction:l=function(t){var e=s[t.type];e?e.push(t):(t.dispatchAction=l,r.dispatchAction(t))},pendings:s});a(o(t).records,function(t){t&&i(t,n,d.dispatchAction)}),u=d.pendings,h=e,p=u.showTip.length,f=u.hideTip.length,p?c=u.showTip[p-1]:f&&(c=u.hideTip[f-1]),c&&(c.dispatchAction=null,h.dispatchAction(c))})}}(s,e),(o(s).records[t]||(o(s).records[t]={})).handler=n}}function l(t,e,n){t.handler("leave",null,n)}function u(t,e,n,i){e.handler(t,n,i)}function h(t,e){if(!r.A.node){var n=e.getZr();(o(n).records||{})[t]&&(o(n).records[t]=null)}}},11652:function(t,e,n){n.d(e,{a:()=>T});var i=n(8642),r=n(31831),o=n(86132),a=n(49024),s=n(45660),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,l=o.grid,c=i.get("type"),p=u(l,o).getOtherAxis(o).getGlobalExtent(),f=o.toGlobalCoord(o.dataToCoord(e,!0));if(c&&"none"!==c){var d=a.bY(i),g=h[c](o,f,p);g.style=d,t.graphicKey=g.type,t.pointer=g}var y=s.Zp(l.model,n);a.DA(e,t,y,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=s.Zp(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=a.Tc(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,o=r.grid,a=r.getGlobalExtent(!0),s=u(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),h=[t.x,t.y];h[l]+=e[l],h[l]=Math.min(a[1],h[l]),h[l]=Math.max(a[0],h[l]);var c=(s[1]+s[0])/2,p=[c,c];return p[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(o.A);function u(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var h={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:a.MU([e,n[0]],[e,n[1]],c(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:a.cU([e-i/2,n[0]],[i,r],c(t))}}};function c(t){return+("x"!==t.dim)}var p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.C6)(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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(n(36805).A),f=n(27462),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,r.C6)(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";f.k("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){f.h("axisPointer",e)},e.prototype.dispose=function(t,e){f.h("axisPointer",e)},e.type="axisPointer",e}(n(43583).A),g=n(4884),y=n(33828),v=n(84124),m=n(8927),_=(0,v.$r)();function x(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||(0,g.bind)(n.dispatchAction,n),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){M(r)&&(r=(0,m.A)({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,u,h,c,p,f,d,y,v,x,T=M(r),C=t.axesInfo,k=a.axesInfo,I="leave"===i||M(r),D={},O={},P={list:[],map:{}},L={showPointer:(0,g.curry)(b,O),showTooltip:(0,g.curry)(S,P)};(0,g.each)(a.coordSysMap,function(t,e){var n=T||t.containPoint(r);(0,g.each)(a.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(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}}(C,t);if(!I&&n&&(!C||o)){var a=o&&o.value;null!=a||T||(a=i.pointToData(r)),null!=a&&w(t,a,L,!1,D)}})});var R={};return(0,g.each)(k,function(t,e){var n=t.linkGroup;n&&!O[e]&&(0,g.each)(n.axesInfo,function(e,i){var r=O[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,A(e),A(t)))),R[t.key]=o}})}),(0,g.each)(R,function(t,e){w(k[e],t,L,!0,D)}),s=O,l=k,u=D.axesInfo=[],(0,g.each)(l,function(t,e){var n=t.axisPointerModel.option,i=s[e];i?(t.useHandle||(n.status="show"),n.value=i.value,n.seriesDataIndices=(i.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&u.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),function(t,e,n,i){if(M(e)||!t.list.length)return i({type:"hideTip"});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})}(P,r,t,o),h=k,p=(c=n).getZr(),f="axisPointerLastHighlights",d=_(p)[f]||{},y=_(p)[f]={},(0,g.each)(h,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,g.each)(n.seriesDataIndices,function(t){y[t.seriesIndex+" | "+t.dataIndex]=t})}),v=[],x=[],(0,g.each)(d,function(t,e){y[e]||x.push(t)}),(0,g.each)(y,function(t,e){d[e]||v.push(t)}),x.length&&c.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:x}),v.length&&c.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:v}),D}}function w(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void n.showPointer(t,e);var a,s,l,u,h,c,p,f,d=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],p=Number.MAX_VALUE,f=-1,(0,g.each)(s.seriesModels,function(t,e){var n,i,r=t.getData().mapDimensionsAll(u);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);i=o.dataIndices,n=o.nestestValue}else{if(!(i=t.getData().indicesOfNearest(r[0],a,"category"===l.type?.5:null)).length)return;n=t.getData().get(r[0],i[0])}if(null!=n&&isFinite(n)){var s=a-n,d=Math.abs(s);d<=p&&((d<p||s>=0&&f<0)&&(p=d,f=s,h=n,c.length=0),(0,g.each)(i,function(e){c.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:c,snapToValue:h}),y=d.payloadBatch,v=d.snapToValue;y[0]&&null==r.seriesIndex&&(0,g.extend)(r,y[0]),!i&&t.snap&&o.containData(v)&&null!=v&&(e=v),n.showPointer(t,e,y),n.showTooltip(t,d,v)}}function b(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function S(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=y.og(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function A(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 M(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function T(t){i.A.registerAxisPointerClass("CartesianAxisPointer",l),t.registerComponentModel(p),t.registerComponentView(d),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,g.isArray)(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=(0,y.Fo)(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},x)}},33828:function(t,e,n){n.d(e,{Fo:()=>o,Yc:()=>l,h_:()=>s,mg:()=>u,og:()=>c});var i=n(25744),r=n(4884);function o(t,e){var n,o,s,l,u,p,f,d,g={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return n=g,o=t,s=e,l=o.getComponent("tooltip"),p=(u=o.getComponent("axisPointer")).get("link",!0)||[],f=[],(0,r.each)(s.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=c(t.model),s=n.coordSysAxesInfo[e]={};n.coordSysMap[e]=t;var d=t.model.getModel("tooltip",l);if((0,r.each)(t.getAxes(),(0,r.curry)(m,!1,null)),t.getTooltipAxes&&l&&d.get("show")){var g="axis"===d.get("trigger"),y="cross"===d.get(["axisPointer","type"]),v=t.getTooltipAxes(d.get(["axisPointer","axis"]));(g||y)&&(0,r.each)(v.baseAxes,(0,r.curry)(m,!y||"cross",g)),y&&(0,r.each)(v.otherAxes,(0,r.curry)(m,"cross",!1))}}function m(e,l,g){var y=g.model.getModel("axisPointer",u),v=y.get("show");if(v&&("auto"!==v||e||h(y))){null==l&&(l=y.get("triggerTooltip"));var m=(y=e?function(t,e,n,o,a,s){var l=e.getModel("axisPointer"),u={};(0,r.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){u[t]=(0,r.clone)(l.get(t))}),u.snap="category"!==t.type&&!!s,"cross"===l.get("type")&&(u.type="line");var h=u.label||(u.label={});if(null==h.show&&(h.show=!1),"cross"===a){var c=l.get(["label","show"]);if(h.show=null==c||c,!s){var p=u.lineStyle=l.get("crossStyle");p&&(0,r.defaults)(h,p.textStyle)}}return t.model.getModel("axisPointer",new i.A(u,n,o))}(g,d,u,o,e,l):y).get("snap"),_=y.get("triggerEmphasis"),x=c(g.model),w=l||m||"category"===g.type,b=n.axesInfo[x]={key:x,axis:g,coordSys:t,axisPointerModel:y,triggerTooltip:l,triggerEmphasis:_,involveSeries:w,snap:m,useHandle:h(y),seriesModels:[],linkGroup:null};s[x]=b,n.seriesInvolved=n.seriesInvolved||w;var S=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(a(o[i+"AxisId"],n.id)||a(o[i+"AxisIndex"],n.componentIndex)||a(o[i+"AxisName"],n.name))return r}}(p,g);if(null!=S){var A=f[S]||(f[S]={axesInfo:{}});A.axesInfo[x]=b,A.mapper=p[S].mapper,b.linkGroup=A}}}}),g.seriesInvolved&&(d=g,t.eachSeries(function(t){var e=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);e&&"none"!==n&&!1!==n&&"item"!==n&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&(0,r.each)(d.coordSysAxesInfo[c(e.model)],function(n){var i=n.axis;e.getAxis(i.dim)===i&&(n.seriesModels.push(t),null==n.seriesDataCount&&(n.seriesDataCount=0),n.seriesDataCount+=t.getData().count())})})),g}function a(t,e){return"all"===t||(0,r.isArray)(t)&&(0,r.indexOf)(t,e)>=0||t===e}function s(t){var e=l(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=h(n);null==o&&(r.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function l(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[c(t)]}function u(t){var e=l(t);return e&&e.axisPointerModel}function h(t){return!!t.get(["handle","show"])}function c(t){return t.type+"||"+t.id}},49024:function(t,e,n){n.d(e,{DA:()=>g,MU:()=>y,T8:()=>p,Tc:()=>d,_F:()=>f,bY:()=>c,cU:()=>v,u7:()=>m});var i=n(4884),r=n(59033),o=n(23960),a=n(3306),s=n(37817),l=n(93530),u=n(79132),h=n(73394);function c(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function p(t,e,n,i,r){var s,l,u,c,p,d,g=f(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),y=n.getModel("label"),v=a.QX(y.get("padding")||0),m=y.getFont(),_=o.NO(g,m),x=r.position,w=_.width+v[1]+v[3],b=_.height+v[0]+v[2],S=r.align;"right"===S&&(x[0]-=w),"center"===S&&(x[0]-=w/2);var A=r.verticalAlign;"bottom"===A&&(x[1]-=b),"middle"===A&&(x[1]-=b/2),s=x,l=w,u=b,p=(c=i).getWidth(),d=c.getHeight(),s[0]=Math.min(s[0]+l,p)-l,s[1]=Math.min(s[1]+u,d)-u,s[0]=Math.max(s[0],0),s[1]=Math.max(s[1],0);var M=y.get("backgroundColor");M&&"auto"!==M||(M=e.get(["axisLine","lineStyle","color"])),t.label={x:x[0],y:x[1],style:(0,h.VB)(y,{text:g,font:m,fill:y.getTextColor(),padding:v,backgroundColor:M}),z2:10}}function f(t,e,n,r,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),s=o.formatter;if(s){var u={value:l.Dt(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};i.each(r,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&u.seriesData.push(r)}),i.isString(s)?a=s.replace("{value}",a):i.isFunction(s)&&(a=s(u))}return a}function d(t,e,n){var i=s.create();return s.rotate(i,i,n.rotation),s.translate(i,i,n.position),r.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function g(t,e,n,i,r,o){var a=u.A.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),p(e,i,r,o,{position:d(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function y(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function v(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function m(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}},90652:function(t,e,n){n.d(e,{a:()=>h});var i=n(31831),r=n(36805),o=n(43583),a=n(95056),s=n(66282),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.C6)(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new s.R(this),(0,s.A)(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),(0,s.A)(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:a.i_},e}(r.A),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.C6)(e,t),e.type="dataset",e}(o.A);function h(t){t.registerComponentModel(l),t.registerComponentView(u)}},59738:function(t,e,n){n.d(e,{a:()=>a});var i=n(50926),r=n(11652),o=n(74653);function a(t){(0,o.Y)(i.a),(0,o.Y)(r.a)}},50926:function(t,e,n){n.d(e,{a:()=>U});var i=n(31831),r=n(43583),o=n(36805),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(o.A),s=n(63811),l=n(4884),u=n(54648),h=n(84124),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",h.US).models[0]},e.type="cartesian2dAxis",e}(o.A);l.mixin(c,u.L);var p=n(96833),f=n(10675),d=n(93530),g=n(51690),y=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 l.map(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),l.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}(),v=n(37817),m=n(28535),_=["x","y"];function x(t){return"interval"===t.type||"time"===t.type}var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=_,e}return(0,i.C6)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(x(t)&&x(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,p=this._transform=[l,0,0,u,h,c];this._invTransform=(0,v.invert)([],p)}}},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(),o=new g.A(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},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(0,m.applyTransform)(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return(0,m.applyTransform)(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,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new g.A(i,r,o,a)},e}(y),b=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return(0,i.C6)(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)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(n(71335).A),S=n(45660),A=n(48497),M=n(10108),T=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_,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){var e,n=(0,l.keys)(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,u=a.scale;(0,A.rf)(u)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):((0,d.af)(u,s),(0,A.rf)(u)&&(e=a))}r.length&&(e||(e=r.pop(),(0,d.af)(e.scale,e.model)),(0,l.each)(r,function(t){(0,M.m)(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};(0,l.each)(n.x,function(t){k(n,"y",t,r)}),(0,l.each)(n.y,function(t){k(n,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=(0,f.dV)(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,l.each)(a,function(t){var e,n,i,r,a=t.isHorizontal(),s=a?[0,o.width]:[0,o.height],l=+!!t.inverse;t.setExtent(s[l],s[1-l]),e=t,n=a?o.x:o.y,r=(i=e.getExtent())[0]+i[1],e.toGlobalCoord="x"===e.dim?function(t){return t+n}:function(t){return r-t+n},e.toLocalCoord="x"===e.dim?function(t){return t-n}:function(t){return r-t+n}})}s(),r&&((0,l.each)(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,d.Og)(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}}),s()),(0,l.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]}(0,l.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",h.US).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",h.US).models[0],a=t.gridModel,s=this._coordsList;return i?(e=i.coordinateSystem,0>(0,l.indexOf)(s,e)&&(e=null)):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{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,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function u(e){return function(n,i){if(C(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new b(e,(0,d.f$)(n),[0,0],n.get("type"),l),h="category"===u.type;u.onBand=h&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=r,u.index=i,r._axesList.push(u),a[e][i]=u,s[e]++}}}this._axesMap=a,(0,l.each)(a.x,function(e,n){(0,l.each)(a.y,function(r,o){var a="x"+n+"y"+o,s=new w(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)})})},t.prototype._updateScale=function(t,e){function n(t,e){(0,l.each)((0,d.wq)(t,e.dim),function(n){e.scale.unionExtentFromData(t,n)})}(0,l.each)(this._axesList,function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}}),t.eachSeries(function(t){if((0,S.gO)(t)){var i=(0,S.LR)(t),r=i.xAxisModel,o=i.yAxisModel;if(C(r,e)&&C(o,e)){var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}},this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,l.each)(this.getCartesians(),function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);0>(0,l.indexOf)(e,r)&&e.push(r),0>(0,l.indexOf)(n,o)&&n.push(o)}),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)}),e.eachSeries(function(t){if((0,S.gO)(t)){var e=(0,S.LR)(t),n=e.xAxisModel,i=e.yAxisModel;t.coordinateSystem=n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,i.componentIndex)}}),i},t.dimensions=_,t}();function C(t,e){return t.getCoordSysModel()===e}function k(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)I(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&I(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function I(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,d.JJ)(t)}var D=n(79620),O=n(59033),P=n(28887),L=n(79132),R=n(8642),N=n(28767),E=["axisLine","axisTickLabel","axisName"],z=["splitArea","splitLine","minorSplitLine"],B=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,i.C6)(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new D.A,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=S.Zp(a,e),u=new L.A(e,l.extend({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,A.rf)(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));l.each(E,u.add,u),this._axisGroup.add(u.getGroup()),l.each(z,function(t){e.get([t,"show"])&&F[t](this,this._axisGroup,e,a)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||O.groupTransition(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){(0,N.V)(this)},e.type="cartesianAxis",e}(R.A),F={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=l.isArray(s)?s:[s];for(var u=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=0,p=r.getTicksCoords({tickModel:o}),f=[],d=[],g=a.getLineStyle(),y=0;y<p.length;y++){var v=r.toGlobalCoord(p[y].coord);h?(f[0]=v,f[1]=u.y,d[0]=v,d[1]=u.y+u.height):(f[0]=u.x,f[1]=v,d[0]=u.x+u.width,d[1]=v);var m=c++%s.length,_=p[y].tickValue,x=new P.A({anid:null!=_?"line_"+p[y].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:l.defaults({stroke:s[m]},g),silent:!0});O.subPixelOptimizeLine(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],h=[],c=o.getLineStyle(),p=0;p<l.length;p++)for(var f=0;f<l[p].length;f++){var d=r.toGlobalCoord(l[p][f].coord);s?(u[0]=d,u[1]=a.y,h[0]=d,h[1]=a.y+a.height):(u[0]=a.x,u[1]=d,h[0]=a.x+a.width,h[1]=d);var g=new P.A({anid:"minor_line_"+l[p][f].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:c,silent:!0});O.subPixelOptimizeLine(g.shape,c.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){(0,N.Y)(t,e,n,i)}},H=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.type="xAxis",e}(B),V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=H.type,e}return(0,i.C6)(e,t),e.type="yAxis",e}(B),W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,i.C6)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new s.A({shape:t.coordinateSystem.getRect(),style:(0,l.defaults)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(r.A),G={offset:0};function U(t){t.registerComponentView(W),t.registerComponentModel(a),t.registerCoordinateSystem("cartesian2d",T),(0,p.A)(t,"x",c,G),(0,p.A)(t,"y",c,G),t.registerComponentView(H),t.registerComponentView(V),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}},72106:function(t,e,n){n.d(e,{a:()=>g});var i=n(31831),r=n(4884),o=n(52384),a=n(63811),s=n(35032),l=n(73394),u=n(10675),h=n(36805),c=n(43583),p=n(3306),f=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(0,i.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(h.A),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,i.C6)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,h=t.getModel("textStyle"),c=t.getModel("subtextStyle"),f=t.get("textAlign"),d=r.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),g=new o.Ay({style:(0,l.VB)(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10}),y=g.getBoundingRect(),v=t.get("subtext"),m=new o.Ay({style:(0,l.VB)(c,{text:v,fill:c.getTextColor(),y:y.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),_=t.get("link"),x=t.get("sublink"),w=t.get("triggerEvent",!0);g.silent=!_&&!w,m.silent=!x&&!w,_&&g.on("click",function(){(0,p.JW)(_,"_"+t.get("target"))}),x&&m.on("click",function(){(0,p.JW)(x,"_"+t.get("subtarget"))}),(0,s.z)(g).eventData=(0,s.z)(m).eventData=w?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(g),v&&i.add(m);var b=i.getBoundingRect(),S=t.getBoxLayoutParams();S.width=b.width,S.height=b.height;var A=(0,u.dV)(S,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));f||("middle"===(f=t.get("left")||t.get("right"))&&(f="center"),"right"===f?A.x+=A.width:"center"===f&&(A.x+=A.width/2)),d||("center"===(d=t.get("top")||t.get("bottom"))&&(d="middle"),"bottom"===d?A.y+=A.height:"middle"===d&&(A.y+=A.height/2),d=d||"top"),i.x=A.x,i.y=A.y,i.markRedraw();var M={align:f,verticalAlign:d};g.setStyle(M),m.setStyle(M),b=i.getBoundingRect();var T=A.margin,C=t.getItemStyle(["color","opacity"]);C.fill=t.get("backgroundColor");var k=new a.A({shape:{x:b.x-T[3],y:b.y-T[0],width:b.width+T[1]+T[3],height:b.height+T[0]+T[2],r:t.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(k)}},e.type="title",e}(c.A);function g(t){t.registerComponentModel(f),t.registerComponentView(d)}},55875:function(t,e,n){n.d(e,{a:()=>K});var i=n(11652),r=n(74653),o=n(31831),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(n(36805).A),s=n(4884),l=n(35209),u=n(77250),h=n(26776),c=n(3306);function p(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function f(t){if(l.A.domSupported){for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}}var d=f(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),g=f(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function y(t,e){if(!t)return e;e=(0,c.Cb)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var v=n(56803),m=y(g,"transition"),_=y(d,"transform"),x="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(l.A.transform3dSupported?"will-change:transform;":"");function w(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!l.A.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=l.A.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+_+":"+a+";":[["top",0],["left",0],[d,a]]}function b(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,h.lJ)(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var S=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,l.A.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&((0,s.isString)(r)?document.querySelector(r):(0,s.isDom)(r)?r:(0,s.isFunction)(r)&&r(t.getDom()));b(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();(0,u.e0)(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,n,i=this._api.getDom(),r=(e="position",(n=i.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?e?n[e]:n:null),o=i.style;"absolute"!==o.position&&"absolute"!==r&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n,i,r,o,a,u,h,p,f,d,g,y,b,S,A,M,T,C,k,I,D,O=this.el,P=O.style,L=this._styleCoord;O.innerHTML?P.cssText=x+(n=!this._firstShow,i=this._longHide,r=[],o=t.get("transitionDuration"),a=t.get("backgroundColor"),u=t.get("shadowBlur"),h=t.get("shadowColor"),p=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),d=t.getModel("textStyle"),g=(0,v.CO)(t,"html"),y=p+"px "+f+"px "+u+"px "+h,r.push("box-shadow:"+y),n&&o&&r.push((S="opacity"+(b=" "+o/2+"s cubic-bezier(0.23,1,0.32,1)")+",visibility"+b,i||(b=" "+o+"s cubic-bezier(0.23,1,0.32,1)",S+=l.A.transformSupported?","+_+b:",left"+b+",top"+b),m+":"+S)),a&&r.push("background-color:"+a),(0,s.each)(["width","color","radius"],function(e){var n="border-"+e,i=(0,c.Cb)(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))}),r.push((A=[],M=d.get("fontSize"),(T=d.getTextColor())&&A.push("color:"+T),A.push("font:"+d.getFont()),M&&A.push("line-height:"+Math.round(3*M/2)+"px"),C=d.get("textShadowColor"),k=d.get("textShadowBlur")||0,I=d.get("textShadowOffsetX")||0,D=d.get("textShadowOffsetY")||0,C&&k&&A.push("text-shadow:"+I+"px "+D+"px "+k+"px "+C),(0,s.each)(["decoration","align"],function(t){var e=d.get(t);e&&A.push("text-"+t+":"+e)}),A.join(";"))),null!=g&&r.push("padding:"+(0,c.QX)(g).join("px ")+"px"),r.join(";")+";")+w(L[0],L[1],!0)+"border-color:"+(0,c.he)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):P.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if((0,s.isString)(r)&&"item"===n.get("trigger")&&!p(n)&&(a=function(t,e,n){if(!(0,s.isString)(n)||"inside"===n)return"";var i,r,o=t.get("backgroundColor"),a=t.get("borderWidth");e=(0,c.he)(e);var l=i="left"===(i=n)?"right":"right"===i?"left":"top"===i?"bottom":"top",u=Math.max(1.5*Math.round(a),6),h="",p=_+":";(0,s.indexOf)(["left","right"],l)>-1?(h+="top:50%",p+="translateY(-50%) rotate("+(r="left"===l?-225:-45)+"deg)"):(h+="left:50%",p+="translateX(-50%) rotate("+(r="top"===l?225:45)+"deg)");var f=r*Math.PI/180,d=u+a,g=d*Math.abs(Math.cos(f))+d*Math.abs(Math.sin(f));h+=";"+l+":-"+Math.round(((g-Math.SQRT2*a)/2+Math.SQRT2*a-(g-d)/2)*100)/100+"px";var y=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;z-index:-1;",h+";"+p+";","border-bottom:"+y,"border-right:"+y,"background-color:"+o+";"].join("")+'"></div>'}(n,i,r)),(0,s.isString)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",(0,s.isArray)(t)||(t=[t]);for(var l=0;l<t.length;l++)(0,s.isDom)(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(a&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=a,o.appendChild(u)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(b(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=w(n[0],n[1]);(0,s.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;e.visibility="hidden",e.opacity="0",l.A.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((0,s.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.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}(),A=n(52384),M=n(58391),T=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),I(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 o=this;s.isObject(t)&&(0,M.$8)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new A.Ay({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,v.CO)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),s.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),s.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=k(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;I(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=C(r.borderWidth||0),a=k(r);n.x=t+o+a.left,n.y=e+o+a.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(s.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 C(t){return Math.max(0,t)}function k(t){var e=C(t.shadowBlur||0),n=C(t.shadowOffsetX||0),i=C(t.shadowOffsetY||0);return{left:C(e-n),right:C(e+n),top:C(e-i),bottom:C(e+i)}}function I(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var D=n(21916),O=n(63811),P=n(8927),L=n(10675),R=n(25744),N=n(27462),E=n(93530),z=n(49024),B=n(84124),F=n(43583),H=n(29456),V=n(35032),W=n(42345),G=n(26889),U=n(89425),Y=new O.A({shape:{x:-1,y:-1,width:2,height:2}}),X=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,o.C6)(e,t),e.prototype.init=function(t,e){if(!l.A.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=(0,B.XJ)(n.get("renderMode"));this._tooltipContent="richText"===i?new T(e):new S(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!l.A.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")?(0,U.N)(this,"_updatePosition",50,"fixRate"):(0,U.IU)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");N.k("itemTooltip",this._api,(0,s.bind)(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(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&&!l.A.node&&n.getDom()){var r=q(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i,r=(0,B.HB)(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=(0,B.JO)(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(n.getViewOfComponentModel(a).group.traverse(function(e){var n=(0,V.z)(e).tooltipConfig;if(n&&n.name===t.name)return i=e,!0}),i))return{componentMainType:o,componentIndex:a.componentIndex,el:i}}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y)Y.x=i.x,Y.y=i.y,Y.update(),(0,V.z)(Y).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:Y},r);else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=(0,P.A)(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,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,i.from!==this.uid&&this._hide(q(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===j([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){if("legend"===(0,V.z)(n).ssrType)return;this._lastDataByCoordSys=null,(0,G.R)(n,function(t){return null!=(0,V.z)(t).dataIndex?(i=t,!0):null!=(0,V.z)(t).tooltipConfig?(r=t,!0):void 0},!0),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,s.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],o=j([e.tooltipOption],i),a=this._renderMode,l=[],u=(0,v.Qx)("section",{blocks:[],noHeader:!0}),h=[],p=new v.lb;(0,s.each)(t,function(t){(0,s.each)(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=z._F(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),f=(0,v.Qx)("section",{header:o,noHeader:!(0,s.trim)(o),sortBlocks:!0,blocks:[]});u.blocks.push(f),(0,s.each)(t.seriesDataIndices,function(u){var d=n.getSeriesByIndex(u.seriesIndex),g=u.dataIndexInside,y=d.getDataParams(g);if(!(y.dataIndex<0)){y.axisDim=t.axisDim,y.axisIndex=t.axisIndex,y.axisType=t.axisType,y.axisId=t.axisId,y.axisValue=E.Dt(e.axis,{value:r}),y.axisValueLabel=o,y.marker=p.makeTooltipMarker("item",(0,c.he)(y.color),a);var v=(0,W.L)(d.formatTooltip(g,!0,null)),m=v.frag;if(m){var _=j([d],i).get("valueFormatter");f.blocks.push(_?(0,s.extend)({valueFormatter:_},m):m)}v.text&&h.push(v.text),l.push(y)}})}})}),u.blocks.reverse(),h.reverse();var f=e.position,d=o.get("order"),g=(0,v.Yu)(u,p,a,d,n.get("useUTC"),o.get("textStyle"));g&&h.unshift(g);var y="richText"===a?"\n\n":"<br/>",m=h.join(y);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(o,f,r[0],r[1],this._tooltipContent,l):this._showTooltipContent(o,m,l,Math.random()+"",r[0],r[1],f,null,p)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=(0,V.z)(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),l=r.dataModel||a,u=r.dataIndex,h=r.dataType,p=l.getData(h),f=this._renderMode,d=t.positionDefault,g=j([p.getItemModel(u),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=g.get("trigger");if(null==y||"item"===y){var m=l.getDataParams(u,h),_=new v.lb;m.marker=_.makeTooltipMarker("item",(0,c.he)(m.color),f);var x=(0,W.L)(l.formatTooltip(u,!1,h)),w=g.get("order"),b=g.get("valueFormatter"),S=x.frag,A=S?(0,v.Yu)(b?(0,s.extend)({valueFormatter:b},S):S,_,f,w,i.get("useUTC"),g.get("textStyle")):x.text,M="item_"+l.name+"_"+u;this._showOrMove(g,function(){this._showTooltipContent(g,A,m,M,t.offsetX,t.offsetY,t.position,t.target,_)}),n({type:"showTip",dataIndexInside:u,dataIndex:p.getRawIndex(u),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=(0,V.z)(e),r=i.tooltipConfig.option||{};if((0,s.isString)(r)){var o=r;r={content:o,formatter:o}}var a=[r],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&a.push(l),a.push({formatter:r.content});var u=t.positionDefault,h=j(a,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",f=new v.lb;this._showOrMove(h,function(){var n=(0,s.clone)(h.get("formatterParams")||{});this._showTooltipContent(h,c,n,p,t.offsetX,t.offsetY,t.position,e,f)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,l,u){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var p=t.get("formatter");a=a||t.get("position");var f=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(p)if((0,s.isString)(p)){var g=t.ecModel.get("useUTC"),y=(0,s.isArray)(n)?n[0]:n,v=y&&y.axisType&&y.axisType.indexOf("time")>=0;f=p,v&&(f=(0,H.GP)(y.axisValue,f,g)),f=(0,c.YK)(f,n,!0)}else if((0,s.isFunction)(p)){var m=(0,s.bind)(function(e,i){e===this._ticket&&(h.setContent(i,u,t,d,a),this._updatePosition(t,a,r,o,h,n,l))},this);this._ticket=i,f=p(n,i,m)}else f=p;h.setContent(f,u,t,d,a),h.show(t,d),this._updatePosition(t,a,r,o,h,n,l)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||(0,s.isArray)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,s.isArray)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var l=this._api.getWidth(),u=this._api.getHeight();e=e||t.get("position");var h=r.getSize(),c=t.get("align"),f=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),(0,s.isFunction)(e)&&(e=e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()})),(0,s.isArray)(e))n=(0,D.lo)(e[0],l),i=(0,D.lo)(e[1],u);else if((0,s.isObject)(e)){var g=e;g.width=h[0],g.height=h[1];var y=(0,L.dV)(g,{width:l,height:u});n=y.x,i=y.y,c=null,f=null}else if((0,s.isString)(e)&&a){var v=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,h,t.get("borderWidth"));n=v[0],i=v[1]}else{var m,_,x,w,b,S,A,M,T,C,v=(m=n,_=i,x=r,w=l,b=u,S=c?null:20,A=f?null:20,T=(M=x.getSize())[0],C=M[1],null!=S&&(m+T+S+2>w?m-=T+S:m+=S),null!=A&&(_+C+A>b?_-=C+A:_+=A),[m,_]);n=v[0],i=v[1]}if(c&&(n-=Z(c)?h[0]/2:"right"===c?h[0]:0),f&&(i-=Z(f)?h[1]/2:"bottom"===f?h[1]:0),p(t)){var k,I,O,P,R,N,E,z,v=(k=n,I=i,O=r,P=l,R=u,E=(N=O.getSize())[0],z=N[1],k=Math.min(k+E,P)-E,I=Math.min(I+z,R)-z,[k=Math.max(k,0),I=Math.max(I,0)]);n=v[0],i=v[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&&(0,s.each)(n,function(n,o){var a=n.dataByAxis||[],l=(t[o]||{}).dataByAxis||[];(r=r&&a.length===l.length)&&(0,s.each)(a,function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],u=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===u.length)&&(0,s.each)(a,function(t,e){var n=u[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}),i&&(0,s.each)(t.seriesDataIndices,function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!l.A.node&&e.getDom()&&((0,U.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),N.h("itemTooltip",e))},e.type="tooltip",e}(F.A);function j(t,e,n){var i,r=e.ecModel;n?(i=new R.A(n,r,r),i=new R.A(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof R.A&&(a=a.get("tooltip",!0)),(0,s.isString)(a)&&(a={formatter:a}),a&&(i=new R.A(a,i,r)))}return i}function q(t,e){return t.dispatchAction||(0,s.bind)(e.dispatchAction,e)}function Z(t){return"center"===t||"middle"===t}function K(t){(0,r.Y)(i.a),t.registerComponentModel(a),t.registerComponentView(X),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s.noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s.noop)}},6941:function(t,e,n){n.d(e,{J:()=>s});var i=n(4884),r=n(56803),o=n(98609),a=n(84124);function s(t){var e,n,s,l,u=t.series,h=t.dataIndex,c=t.multipleSeries,p=u.getData(),f=p.mapDimensionsAll("defaultedTooltip"),d=f.length,g=u.getRawValue(h),y=(0,i.isArray)(g),v=(0,r.aw)(u,h);if(d>1||y&&!d){var m=function(t,e,n,a,s){var l=e.getData(),u=(0,i.reduce)(t,function(t,e,n){var i=l.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),h=[],c=[],p=[];function f(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?p.push((0,r.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(h.push(t),c.push(n.type)))}return a.length?(0,i.each)(a,function(t){f((0,o.QE)(l,n,t),t)}):(0,i.each)(t,f),{inlineValues:h,inlineValueTypes:c,blocks:p}}(g,u,h,f,v);e=m.inlineValues,n=m.inlineValueTypes,s=m.blocks,l=m.inlineValues[0]}else if(d){var _=p.getDimensionInfo(f[0]);l=e=(0,o.QE)(p,h,f[0]),n=_.type}else l=e=y?g[0]:g;var x=(0,a.O0)(u),w=x&&u.name||"",b=p.getName(h),S=c?w:b;return(0,r.Qx)("section",{header:w,noHeader:c||!x,sortParam:l,blocks:[(0,r.Qx)("nameValue",{markerType:"item",markerColor:v,name:S,noName:!(0,i.trim)(S),value:e,valueType:n,dataIndex:h})].concat(s||[])})}},56803:function(t,e,n){n.d(e,{CO:()=>x,Qx:()=>p,Yu:()=>y,aw:()=>_,lb:()=>w});var i=n(26776),r=n(3306),o=n(4884),a=n(47163),s=n(21916),l="line-height:1";function u(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,i.Me)(r+"")+"px;color:"+(0,i.Me)(n)+";font-weight:"+(0,i.Me)(o+""),valueStyle:"font-size:"+(0,i.Me)(s+"")+"px;color:"+(0,i.Me)(a)+";font-weight:"+(0,i.Me)(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var h=[0,10,20,30],c=["","\n","\n\n","\n\n\n"];function p(t,e){return e.type=t,e}function f(t){return"section"===t.type}function d(t,e,n,s){var p,y=e.noHeader,_={html:h[p=function t(e){if(f(e)){var n=0,i=e.blocks.length,r=i>1||i>0&&!e.noHeader;return(0,o.each)(e.blocks,function(e){var i=t(e);i>=n&&(n=i+ +(r&&(!i||f(e)&&!e.noHeader)))}),n}return 0}(e)],richText:c[p]},x=[],w=e.blocks||[];(0,o.assert)(!w||(0,o.isArray)(w)),w=w||[];var b=t.orderMode;if(e.sortBlocks&&b){w=w.slice();var S={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(S,b)){var A=new a.Fl(S[b],null);w.sort(function(t,e){return A.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===b&&w.reverse()}(0,o.each)(w,function(n,i){var r=e.valueFormatter,a=(f(n)?d:g)(r?(0,o.extend)((0,o.extend)({},t),{valueFormatter:r}):t,n,i>0?_.html:0,s);null!=a&&x.push(a)});var M="richText"===t.renderMode?x.join(_.richText):v(x.join(""),y?n:_.html);if(y)return M;var T=(0,r.yC)(e.header,"ordinal",t.useUTC),C=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?m(t,T,C)+_.richText+M:v('<div style="'+C+";"+l+';">'+(0,i.Me)(T)+"</div>"+M,n)}function g(t,e,n,a){var s=t.renderMode,l=e.noName,h=e.noValue,c=!e.markerType,p=e.name,f=t.useUTC,d=e.valueFormatter||t.valueFormatter||function(t){return t=(0,o.isArray)(t)?t:[t],(0,o.map)(t,function(t,e){return(0,r.yC)(t,(0,o.isArray)(I)?I[e]:I,f)})};if(!l||!h){var g,y,_,x,w,b,S,A,M,T,C=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),k=l?"":(0,r.yC)(p,"ordinal",f),I=e.valueType,D=h?[]:d(e.value,e.dataIndex),O=!c||!l,P=!c&&l,L=u(a,s),R=L.nameStyle,N=L.valueStyle;return"richText"===s?(c?"":C)+(l?"":m(t,k,R))+(h?"":(g=t,y=D,_=O,x=P,w=[N],_&&w.push({padding:[0,0,0,x?10:20],align:"right"}),g.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(y)?y.join(" "):y,w))):v((c?"":C)+(l?"":(b=k,'<span style="'+R+";"+(c?"":"margin-left:2px")+'">'+(0,i.Me)(b)+"</span>"))+(h?"":(S=D,A=O,M=P,T=N,S=(0,o.isArray)(S)?S:[S],'<span style="'+(A?"float:right;margin-left:"+(M?"10px":"20px"):"")+";"+T+'">'+(0,o.map)(S,function(t){return(0,i.Me)(t)}).join(" ")+"</span>")),n)}}function y(t,e,n,i,r,o){if(t)return(f(t)?d:g)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function v(t,e){return'<div style="margin: '+e+"px 0 0;"+l+';">'+t+'<div style="clear:both"></div></div>'}function m(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function _(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,r.he)(n)}function x(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var w=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,a=(0,r.qg)({color:e,type:t,renderMode:n,markerId:i});return(0,o.isString)(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,o.isArray)(e)?(0,o.each)(e,function(t){return(0,o.extend)(n,t)}):(0,o.extend)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},71335:function(t,e,n){n.d(e,{A:()=>v});var i=n(4884),r=n(21916),o=n(23960),a=n(84124),s=n(93530),l=(0,a.$r)();function u(t,e){var n,r,o,a,u=h(t,"labels"),g=(0,s.j2)(e),y=c(u,g);return y||(i.isFunction(g)?o=d(t,g):(a="auto"===g?null!=(r=l(n=t).autoInterval)?r:l(n).autoInterval=n.calculateCategoryInterval():g,o=f(t,a)),p(u,g,{labels:o,labelCategoryInterval:a}))}function h(t,e){return l(t)[e]||(l(t)[e]=[])}function c(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function p(t,e,n){return t.push({key:e,value:n}),n}function f(t,e,n){var i=(0,s.ry)(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),h=o[0],c=r.count();0!==h&&u>1&&c/u>2&&(h=Math.round(Math.ceil(h/u)*u));var p=(0,s.PJ)(t),f=a.get("showMinLabel")||p,d=a.get("showMaxLabel")||p;f&&h!==o[0]&&y(o[0]);for(var g=h;g<=o[1];g+=u)y(g);function y(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return d&&g-u!==o[1]&&y(o[1]),l}function d(t,e,n){var r=t.scale,o=(0,s.ry)(t),a=[];return i.each(r.getTicks(),function(t){var i=r.getLabel(t),s=t.value;e(t.value,i)&&a.push(n?s:{formattedLabel:o(t),rawLabel:i,tickValue:s})}),a}var g=[0,1];function y(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}let v=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(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return(0,r.hb)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&y(n=n.slice(),i.count()),(0,r.Cb)(t,g,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&y(n=n.slice(),i.count());var o=(0,r.Cb)(t,n,g,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=("category"===this.type?function(t,e){var n,r,o=h(t,"ticks"),a=(0,s.j2)(e),l=c(o,a);if(l)return l;if((!e.get("show")||t.scale.isBlank())&&(n=[]),i.isFunction(a))n=d(t,a,!0);else if("auto"===a){var g=u(t,t.getLabelModel());r=g.labelCategoryInterval,n=i.map(g.labels,function(t){return t.tickValue})}else n=f(t,r=a,!0);return p(o,a,{ticks:n,tickCategoryInterval:r})}(this,e):{ticks:i.map(this.scale.getTicks(),function(t){return t.value})}).ticks,o=(0,i.map)(n,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,o){var a,s,l=e.length;if(t.onBand&&!n&&l){var u=t.getExtent();if(1===l)e[0].coord=u[0],a=e[1]={coord:u[1]};else{var h=e[l-1].tickValue-e[0].tickValue,c=(e[l-1].coord-e[0].coord)/h;(0,i.each)(e,function(t){t.coord-=c/2}),s=1+t.scale.getExtent()[1]-e[l-1].tickValue,a={coord:e[l-1].coord+c*s},e.push(a)}var p=u[0]>u[1];f(e[0].coord,u[0])&&(o?e[0].coord=u[0]:e.shift()),o&&f(u[0],e[0].coord)&&e.unshift({coord:u[0]}),f(u[1],a.coord)&&(o?a.coord=u[1]:e.pop()),o&&f(a.coord,u[1])&&e.push({coord:u[1]})}function f(t,e){return t=(0,r.LI)(t),e=(0,r.LI)(e),p?t>e:t<e}}(this,o,e.get("alignWithLabel"),t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return(0,i.map)(e,function(t){return(0,i.map)(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){var t,e,n,r,o,a;return("category"===this.type?(t=this,e=t.getLabelModel(),n=u(t,e),!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n):(r=this,o=r.scale.getTicks(),a=(0,s.ry)(r),{labels:i.map(o,function(t,e){return{level:t.level,formattedLabel:a(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value}})})).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+ +!!this.onBand;return 0===n&&(n=1),Math.abs(Math.abs(t[1]-t[0]))/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e,n,i=(n=(e=t).getLabelModel(),{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:n.get("rotate")||0,font:n.getFont()}),r=(0,s.ry)(t),a=(i.axisRotate-i.labelRotate)/180*Math.PI,u=t.scale,h=u.getExtent(),c=u.count();if(h[1]-h[0]<1)return 0;var p=1;c>40&&(p=Math.max(1,Math.floor(c/40)));for(var f=h[0],d=t.dataToCoord(f+1)-t.dataToCoord(f),g=Math.abs(d*Math.cos(a)),y=Math.abs(d*Math.sin(a)),v=0,m=0;f<=h[1];f+=p){var _=0,x=0,w=o.NO(r({value:f}),i.font,"center","top");_=1.3*w.width,x=1.3*w.height,v=Math.max(v,_,7),m=Math.max(m,x,7)}var b=v/g,S=m/y;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var A=Math.max(0,Math.floor(Math.min(b,S))),M=l(t.model),T=t.getExtent(),C=M.lastAutoInterval,k=M.lastTickCount;return null!=C&&null!=k&&1>=Math.abs(C-A)&&1>=Math.abs(k-c)&&C>A&&M.axisExtent0===T[0]&&M.axisExtent1===T[1]?A=C:(M.lastTickCount=c,M.lastAutoInterval=A,M.axisExtent0=T[0],M.axisExtent1=T[1]),A}(this)},t}()},43139:function(t,e,n){n.d(e,{g:()=>i});function i(t,e){return t.type===e}},10108:function(t,e,n){n.d(e,{m:()=>l});var i=n(21916),r=n(37396),o=n(93530),a=n(48497),s=Math.log;function l(t,e,n){var l=r.A.prototype,u=l.getTicks.call(n),h=l.getTicks.call(n,!0),c=u.length-1,p=l.getInterval.call(n),f=(0,o.Rx)(t,e),d=f.extent,g=f.fixMin,y=f.fixMax;if("log"===t.type){var v=s(t.base);d=[s(d[0])/v,s(d[1])/v]}t.setExtent(d[0],d[1]),t.calcNiceExtent({splitNumber:c,fixMin:g,fixMax:y});var m=l.getExtent.call(t);g&&(d[0]=m[0]),y&&(d[1]=m[1]);var _=l.getInterval.call(t),x=d[0],w=d[1];if(g&&y)_=(w-x)/c;else if(g)for(w=d[0]+_*c;w<d[1]&&isFinite(w)&&isFinite(d[1]);)_=(0,a.kH)(_),w=d[0]+_*c;else if(y)for(x=d[1]-_*c;x>d[0]&&isFinite(x)&&isFinite(d[0]);)_=(0,a.kH)(_),x=d[1]-_*c;else{t.getTicks().length-1>c&&(_=(0,a.kH)(_));var b=_*c;w=Math.ceil(d[1]/_)*_,(x=(0,i.LI)(w-b))<0&&d[0]>=0?(x=0,w=(0,i.LI)(b)):w>0&&d[1]<=0&&(w=0,x=-(0,i.LI)(b))}var S=(u[0].value-h[0].value)/p,A=(u[c].value-h[c].value)/p;l.setExtent.call(t,x+_*S,w+_*A),l.setInterval.call(t,_),(S||A)&&l.setNiceExtent.call(t,x+_,w-_)}},2296:function(t,e,n){n.d(e,{A:()=>u});var i=n(4884),r={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:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},o=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},r),a=i.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:"#F4F7FD",width:1}}},r),s=i.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),l=i.defaults({logBase:10},a);let u={category:o,value:a,time:s,log:l}},93530:function(t,e,n){n.d(e,{f$:()=>C,PN:()=>N,Dt:()=>D,wq:()=>R,Rx:()=>M,ry:()=>I,Og:()=>O,JJ:()=>k,j2:()=>P,af:()=>T,PJ:()=>L});var i=n(4884),r=n(55724),o=n(37396),a=n(47799),s=n(30730),l=n(51690),u=n(16264),h=n(31831),c=n(21916),p=n(48497),f=a.A.prototype,d=o.A.prototype,g=c.LI,y=Math.floor,v=Math.ceil,m=Math.pow,_=Math.log,x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new o.A,e._interval=0,e}return(0,h.C6)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=d.getTicks.call(this,t);return i.map(o,function(t){var e=t.value,i=c.LI(m(this.base,e));return i=e===n[0]&&this._fixMin?b(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?b(i,r[1]):i}},this)},e.prototype.setExtent=function(t,e){var n=_(this.base);t=_(Math.max(0,t))/n,e=_(Math.max(0,e))/n,d.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=f.getExtent.call(this);e[0]=m(t,e[0]),e[1]=m(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=b(e[0],n[0])),this._fixMax&&(e[1]=b(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=_(t[0])/_(e),t[1]=_(t[1])/_(e),f.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(n!==1/0&&!(n<=0)){var i=c.au(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&1>Math.abs(i)&&Math.abs(i)>0;)i*=10;var r=[c.LI(v(e[0]/i)*i),c.LI(y(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){d.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=_(t)/_(this.base),p.lP(t,this._extent)},e.prototype.normalize=function(t){return t=_(t)/_(this.base),p.S8(t,this._extent)},e.prototype.scale=function(t){return t=p.hs(t,this._extent),m(this.base,t)},e.type="log",e}(a.A),w=x.prototype;function b(t,e){return g(t,c.XV(e))}w.getMinorTicks=d.getMinorTicks,w.getLabel=d.getLabel,a.A.registerClass(x);var S=n(41402),A=n(89972);function M(t,e){var n=t.type,r=(0,A.Tc)(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var o=r.min,a=r.max,l=e.ecModel;if(l&&"time"===n){var u=(0,s.GL)("bar",l),h=!1;if(i.each(u,function(t){h=h||t.getBaseAxis()===e.axis}),h){var c=function(t,e,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],l=(0,s.VA)(r,n.axis);if(void 0===l)return{min:t,max:e};var u=1/0;i.each(l,function(t){u=Math.min(t.offset,u)});var h=-1/0;i.each(l,function(t){h=Math.max(t.offset+t.width,h)});var c=(u=Math.abs(u))+(h=Math.abs(h)),p=e-t,f=p/(1-(u+h)/a)-p;return e+=h/c*f,{min:t-=u/c*f,max:e}}(o,a,e,(0,s.vq)(u));o=c.min,a=c.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function T(t,e){var n=M(t,e),i=n.extent,r=e.get("splitNumber");t instanceof x&&(t.base=e.get("logBase"));var o=t.type,a=e.get("interval"),s="interval"===o||"time"===o;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:s?e.get("minInterval"):null,maxInterval:s?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function C(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r.A({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new u.A({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a.A.getClass(e)||o.A)}}function k(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function I(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(n,i){return t.scale.getFormattedLabel(n,i,e)}:i.isString(e)?function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}:i.isFunction(e)?function(i,r){return null!=n&&(r=i.value-n),e(D(t,i),r,null!=i.level?{level:i.level}:null)}:function(e){return t.scale.getLabel(e)}}function D(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function O(t){var e,n,i,o=t.model,a=t.scale;if(!(!o.get(["axisLabel","show"])||a.isBlank())){var s=a.getExtent();n=a instanceof r.A?a.count():(e=a.getTicks()).length;var u=t.getLabelModel(),h=I(t),c=1;n>40&&(c=Math.ceil(n/40));for(var p=0;p<n;p+=c){var f=h(e?e[p]:{value:s[0]+p},p),d=function(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new l.A(t.x,t.y,o,a)}(u.getTextRect(f),u.get("rotate")||0);i?i.union(d):i=d}return i}}function P(t){var e=t.get("interval");return null==e?"auto":e}function L(t){return"category"===t.type&&0===P(t.getLabelModel())}function R(t,e){var n={};return i.each(t.mapDimensionsAll(e),function(e){n[(0,S.me)(t,e)]=!0}),i.keys(n)}function N(t,e,n){e&&i.each(R(e,n),function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}},54648:function(t,e,n){n.d(e,{L:()=>i});var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()},96833:function(t,e,n){n.d(e,{A:()=>u});var i=n(31831),r=n(2296),o=n(10675),a=n(44513),s={value:1,category:1,time:1,log:1},l=n(4884);function u(t,e,n,u){(0,l.each)(s,function(s,c){var p=(0,l.merge)((0,l.merge)({},r.A[c],!0),u,!0),f=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+c,n}return(0,i.C6)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,o.ad)(this),i=n?(0,o.vs)(t):{},r=e.getTheme();(0,l.merge)(t,r.get(c+"Axis")),(0,l.merge)(t,this.getDefaultOption()),t.type=h(t),n&&(0,o.YA)(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=a.A.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.type=e+"Axis."+c,n.defaultOption=p,n}(n);t.registerComponentModel(f)}),t.registerSubTypeDefaulter(e+"Axis",h)}function h(t){return t.type||(t.data?"category":"value")}},45660:function(t,e,n){n.d(e,{LR:()=>s,Zp:()=>o,gO:()=>a});var i=n(4884),r=n(84124);function o(t,e,n){n=n||{};var r=t.coordinateSystem,o=e.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,u=s?"onZero":l,h=o.dim,c=r.getRect(),p=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,g="x"===h?[p[2]-d,p[3]+d]:[p[0]-d,p[1]+d];if(s){var y=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(y,g[1]),g[0])}a.position=["y"===h?g[f[u]]:p[0],"x"===h?g[f[u]]:p[3]],a.rotation=Math.PI/2*("x"!==h),a.labelDirection=a.tickDirection=a.nameDirection=({top:-1,bottom:1,left:-1,right:1})[l],a.labelOffset=s?g[f[l]]-g[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i.retrieve(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=e.get(["axisLabel","rotate"]);return a.labelRotate="top"===u?-v:v,a.z2=1,a}function a(t){return"cartesian2d"===t.get("coordinateSystem")}function s(t){var e={xAxisModel:null,yAxisModel:null};return i.each(e,function(n,i){var o=i.replace(/Model$/,""),a=t.getReferringComponents(o,r.US).models[0];e[i]=a}),e}},89972:function(t,e,n){n.d(e,{Tc:()=>l});var i=n(4884),r=n(23960),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);(0,i.isFunction)(a)?this._modelMinNum=u(t,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=u(t,a));var s=this._modelMaxRaw=e.get("max",!0);if((0,i.isFunction)(s)?this._modelMaxNum=u(t,s({min:n[0],max:n[1]})):"dataMax"!==s&&(this._modelMaxNum=u(t,s)),o)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),h=(0,i.isArray)(l)?l:[l||0,l||0];"boolean"==typeof h[0]||"boolean"==typeof h[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,r.lo)(h[0],1),(0,r.lo)(h[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=s,h=null!=l;null==s&&(s=t?r?0:NaN:e-o[0]*a),null==l&&(l=t?r?r-1:NaN:n+o[1]*a),null!=s&&isFinite(s)||(s=NaN),null!=l&&isFinite(l)||(l=NaN);var c=(0,i.eqNaN)(s)||(0,i.eqNaN)(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var p=this._determinedMin,f=this._determinedMax;return null!=p&&(s=p,u=!0),null!=f&&(l=f,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new o(t,e,n),t.rawExtentInfo=i),i}function u(t,e){return null==e?null:(0,i.eqNaN)(e)?NaN:t.parse(e)}},51907:function(t,e,n){n.d(e,{A:()=>o});var i=n(4884),r={};let o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i.each(r,function(i,r){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(t,e){i.each(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}()},31950:function(t,e,n){n.d(e,{AS:()=>eW,El:()=>ec,OH:()=>e$,aQ:()=>eU,E:()=>er.E,mz:()=>e8,qg:()=>ej,ZB:()=>e6,bf:()=>eY,zm:()=>eV,lP:()=>eX,rE:()=>eh,xV:()=>eK,cf:()=>eq,Ej:()=>e3,Ng:()=>eF,Oh:()=>e0,Bo:()=>eJ,AF:()=>e1,Ts:()=>eB,iY:()=>e9,FQ:()=>ep,pX:()=>eQ,vV:()=>e4,p5:()=>e7,tb:()=>eZ,FP:()=>eG,Zf:()=>eH});var i,r,o,a,s,l,u,h,c,p,f,d,g,y,v,m,_,x,w,b,S,A,M=n(31831),T=n(66726),C=n(4884),k=n(35209),I=n(24952),D=n(16419),O=n(84124),P=n(25744),L=n(36805),R="";"undefined"!=typeof navigator&&(R=navigator.platform||"");var N="rgba(0, 0, 0, 0.2)";let E={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:N,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:N,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:N,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:N,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:N,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:N,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:R.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};var z=n(88569),B=n(20020),F=n(57699),H="\0_ec_inner",V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,M.C6)(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new P.A(i),this._locale=new P.A(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=U(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,U(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):o(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 s=i.getMediaOption(this);s.length&&(0,C.each)(s,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,o=this._componentsCount,a=[],s=(0,C.createHashMap)(),l=e&&e.replaceMergeMainTypeMap;(0,z.ps)(this),(0,C.each)(t,function(t,e){null!=t&&(L.A.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,C.clone)(t):(0,C.merge)(n[e],t,!0))}),l&&l.each(function(t,e){L.A.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))}),L.A.topologicalTravel(a,L.A.getAllClassMainTypes(),function(e){var a,s=(0,B.a)(this,e,O.qB(t[e])),u=r.get(e),h=u?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=O.O2(u,s,h);O.GX(c,e,L.A),n[e]=null,r.set(e,null),o.set(e,0);var p=[],f=[],d=0;(0,C.each)(c,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,s=L.A.getClass(e,t.keyInfo.subType,!o);if(!s)return;if("tooltip"===e){if(a)return;a=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=(0,C.extend)({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),(0,C.extend)(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(p.push(i.option),f.push(i),d++):(p.push(void 0),f.push(void 0))},this),n[e]=p,r.set(e,f),o.set(e,d),"series"===e&&i(this)},this),this._seriesIndices||i(this)},e.prototype.getOption=function(){var t=(0,C.clone)(this.option);return(0,C.each)(t,function(e,n){if(L.A.hasClass(n)){for(var i=O.qB(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!O.oh(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t[H],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var 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,n=t.mainType;if(!n)return[];var i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(n);return a&&a.length?(null!=i?(e=[],(0,C.each)(O.qB(i),function(t){a[t]&&e.push(a[t])})):e=null!=r?W("id",r,a):null!=o?W("name",o,a):(0,C.filter)(a,function(t){return!!t}),G(e,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(e=a,n=s+"Index",i=s+"Id",r=s+"Name",e&&(null!=e[n]||null!=e[i]||null!=e[r])?{mainType:s,index:e[n],id:e[i],name:e[r]}:null);return o=G(l?this.queryComponents(l):(0,C.filter)(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?(0,C.filter)(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,C.isFunction)(t))i.each(function(n,i){for(var r=0;n&&r<n.length;r++){var o=n[r];o&&t.call(e,i,o,o.componentIndex)}});else for(var r=(0,C.isString)(t)?i.get(t):(0,C.isObject)(t)?this.findComponents(t):null,o=0;r&&o<r.length;o++){var a=r[o];a&&e.call(n,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=O.vS(t,null);return(0,C.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(0,C.filter)(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return(0,C.filter)(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){r(this),(0,C.each)(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)},this)},e.prototype.eachRawSeries=function(t,e){(0,C.each)(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){r(this),(0,C.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(0,C.each)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return r(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){r(this);var n=[];(0,C.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=(0,C.createHashMap)(n)},e.prototype.restoreData=function(t){i(this);var e=this._componentsMap,n=[];e.each(function(t,e){L.A.hasClass(e)&&n.push(e)}),L.A.topologicalTravel(n,L.A.getAllClassMainTypes(),function(n){(0,C.each)(e.get(n),function(e){e&&("series"!==n||!function(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}}(e,t))&&e.restoreData()})})},e.internalField=void(i=function(t){var e=t._seriesIndices=[];(0,C.each)(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=(0,C.createHashMap)(e)},r=function(t){},o=function(t,e){t.option={},t.option[H]=1,t._componentsMap=(0,C.createHashMap)({series:[]}),t._componentsCount=(0,C.createHashMap)();var n,i,r,o=e.aria;(0,C.isObject)(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,(0,C.each)(i,function(t,e){("colorLayer"!==e||!r)&&(L.A.hasClass(e)||("object"==typeof t?n[e]=n[e]?(0,C.merge)(n[e],t,!1):(0,C.clone)(t):null==n[e]&&(n[e]=t)))}),(0,C.merge)(e,E,!1),t._mergeOption(e,null)}),e}(P.A);function W(t,e,n){if((0,C.isArray)(e)){var i=(0,C.createHashMap)();return(0,C.each)(e,function(t){null!=t&&null!=O.vS(t,null)&&i.set(t,!0)}),(0,C.filter)(n,function(e){return e&&i.get(e[t])})}var r=O.vS(e,null);return(0,C.filter)(n,function(e){return e&&null!=r&&e[t]===r})}function G(t,e){return e.hasOwnProperty("subType")?(0,C.filter)(t,function(t){return t&&t.subType===e.subType}):t}function U(t){var e=(0,C.createHashMap)();return t&&(0,C.each)(O.qB(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}(0,C.mixin)(V,F.X);var Y=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let X=function(t){C.each(Y,function(e){this[e]=C.bind(t[e],t)},this)};var j=n(51907),q=/^(min|max)?(.+)$/,Z=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,C.each)((0,O.qB)(t.series),function(t){t&&t.data&&(0,C.isTypedArray)(t.data)&&(0,C.setAsPrimitive)(t.data)}),(0,C.each)((0,O.qB)(t.dataset),function(t){t&&t.source&&(0,C.isTypedArray)(t.source)&&(0,C.setAsPrimitive)(t.source)})),t=(0,C.clone)(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);function p(t){(0,C.each)(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((c||h)&&(t.options=t.media=null),r=t),h&&(0,C.isArray)(u)&&(0,C.each)(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),p(r),(0,C.each)(l,function(t){return p(t)}),(0,C.each)(o,function(t){return p(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(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=[],(0,C.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=(0,C.clone)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,h=o.length;u<h;u++)(function(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return(0,C.each)(t,function(t,e){var n=e.match(q);if(n&&n[1]&&n[2]){var o,a,s,l=n[1];o=i[n[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[u].query,i,r)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=(0,C.map)(s,function(t){return(0,C.clone)(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),K=C.each,$=C.isObject,Q=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function J(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Q.length;n<i;n++){var r=Q[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?C.merge(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?C.merge(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function tt(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,C.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 te(t){tt(t,"itemStyle"),tt(t,"lineStyle"),tt(t,"areaStyle"),tt(t,"label"),tt(t,"labelLine"),tt(t,"upperLabel"),tt(t,"edgeLabel")}function tn(t,e){var n=$(t)&&t[e],i=$(n)&&n.textStyle;if(i)for(var r=0,o=O.JS.length;r<o;r++){var a=O.JS[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function ti(t){t&&(te(t),tn(t,"label"),t.emphasis&&tn(t.emphasis,"label"))}function tr(t){return C.isArray(t)?t:t?[t]:[]}function to(t){return(C.isArray(t)?t[0]:t)||{}}function ta(t){t&&(0,C.each)(ts,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var ts=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],tl=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],tu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function th(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<tu.length;n++){var i=tu[n][1],r=tu[n][0];null!=e[i]&&(e[r]=e[i])}}function tc(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function tp(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function tf(t,e){var n;K(tr(t.series),function(t){$(t)&&function(t){if($(t)){J(t),te(t),tn(t,"label"),tn(t,"upperLabel"),tn(t,"edgeLabel"),t.emphasis&&(tn(t.emphasis,"label"),tn(t.emphasis,"upperLabel"),tn(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(J(e),ti(e));var n=t.markLine;n&&(J(n),ti(n));var i=t.markArea;i&&ti(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!C.isTypedArray(o))for(var a=0;a<o.length;a++)ti(o[a]);C.each(t.categories,function(t){te(t)})}if(r&&!C.isTypedArray(r))for(var a=0;a<r.length;a++)ti(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)ti(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)C.isArray(l[a])?(ti(l[a][0]),ti(l[a][1])):ti(l[a]);"gauge"===t.type?(tn(t,"axisLabel"),tn(t,"title"),tn(t,"detail")):"treemap"===t.type?(tt(t.breadcrumb,"itemStyle"),C.each(t.levels,function(t){te(t)})):"tree"===t.type&&te(t.leaves)}}(t)}),n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),K(n,function(e){K(tr(t[e]),function(t){t&&(tn(t,"axisLabel"),tn(t.axisPointer,"label"))})}),K(tr(t.parallel),function(t){var e=t&&t.parallelAxisDefault;tn(e,"axisLabel"),tn(e&&e.axisPointer,"label")}),K(tr(t.calendar),function(t){tt(t,"itemStyle"),tn(t,"dayLabel"),tn(t,"monthLabel"),tn(t,"yearLabel")}),K(tr(t.radar),function(t){tn(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)}),K(tr(t.geo),function(t){$(t)&&(ti(t),K(tr(t.regions),function(t){ti(t)}))}),K(tr(t.timeline),function(t){ti(t),tt(t,"label"),tt(t,"itemStyle"),tt(t,"controlStyle",!0);var e=t.data;C.isArray(e)&&C.each(e,function(t){C.isObject(t)&&(tt(t,"label"),tt(t,"itemStyle"))})}),K(tr(t.toolbox),function(t){tt(t,"iconStyle"),K(t.feature,function(t){tt(t,"iconStyle")})}),tn(to(t.axisPointer),"label"),tn(to(t.tooltip).axisPointer,"label"),t.series=(0,O.qB)(t.series),(0,C.each)(t.series,function(t){if((0,C.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),tc(t.label);var n=t.data;if(n&&!(0,C.isTypedArray)(n))for(var i=0;i<n.length;i++)tc(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=r&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];null==a[o[s]]&&(a[o[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===e){th(t),th(t.backgroundStyle),th(t.emphasis);var n=t.data;if(n&&!(0,C.isTypedArray)(n))for(var i=0;i<n.length;i++)"object"==typeof n[i]&&(th(n[i]),th(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),tp(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,tp)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&(0,C.defaults)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),ta(t)}}),t.dataRange&&(t.visualMap=t.dataRange),(0,C.each)(tl,function(e){var n=t[e];n&&((0,C.isArray)(n)||(n=[n]),(0,C.each)(n,function(t){ta(t)}))})}var td=n(21916);function tg(t){(0,C.each)(t,function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,u,h){var c,p,f=a.get(e.stackedDimension,h);if(isNaN(f))return r;s?p=a.getRawIndex(h):c=a.get(e.stackedByDimension,h);for(var d=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var v=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=(0,td.Tr)(f,v),d=v;break}}}return i[0]=f,i[1]=d,i})})}var ty=n(55785),tv=n(43583),tm=n(31440),t_=n(63811),tx=n(64586),tw=n(68532),tb=n(30070),tS=n(35032),tA=n(72059),tM=n(89425),tT=n(80266),tC=n(52228),tk=n(81275),tI=(0,O.$r)(),tD={itemStyle:(0,tT.A)(tC.L,!0),lineStyle:(0,tT.A)(tk.m,!0)},tO={lineStyle:"stroke",itemStyle:"fill"};function tP(t,e){var n=t.visualStyleMapper||tD[e];return n||(console.warn("Unknown style type '"+e+"'."),tD.itemStyle)}function tL(t,e){var n=t.visualDrawType||tO[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var tR=new P.A,tN=n(79620),tE=n(52384),tz=n(76265),tB=Math.PI,tF=n(87189),tH=n(3818),tV=function(){function t(t,e,n,i){this._stageTaskMap=(0,C.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?n.step:null,o=i&&i.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,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.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,C.createHashMap)();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,C.each)(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});(0,C.assert)(!(i.reset&&i.overallReset),""),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,o=r.context;o.model=e,o.ecModel=n,o.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,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,C.each)(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,p=h.agentStubMap;p.each(function(t){a(i,t)&&(t.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var f=o.getPerformArgs(h,i.block);p.each(function(t){t.perform(f)}),h.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.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,o=e.seriesTaskMap,a=e.seriesTaskMap=(0,C.createHashMap)(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||(0,tF.U)({plan:tX,reset:tj,count:tK}));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,o=e.overallTask=e.overallTask||(0,tF.U)({reset:tW});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=(0,C.createHashMap)(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,(0,tF.U)({reset:tG,onDirty:tY})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}(0,C.assert)(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,(0,C.each)(n.getSeries(),p)),c&&o.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(0,C.isFunction)(t)&&(t={overallReset:t,seriesType:function(t){a=null;try{t(t$,tQ)}catch(t){}return a}(t)}),t.uid=(0,tH.$Q)("stageHandler"),e&&(t.visualType=e),t},t}();function tW(t){t.overallReset(t.ecModel,t.api,t.payload)}function tG(t){return t.overallProgress&&tU}function tU(){this.agent.dirty(),this.getDownstream().dirty()}function tY(){this.agent&&this.agent.dirty()}function tX(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function tj(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,O.qB)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,C.map)(e,function(t,e){return tZ(e)}):tq}var tq=tZ(0);function tZ(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function tK(t){return t.data.count()}var t$={},tQ={};function tJ(t,e){for(var n in e.prototype)t[n]=C.noop}tJ(t$,V),tJ(tQ,X),t$.eachSeriesByType=t$.eachRawSeriesByType=function(t){a=t},t$.eachComponent=function(t){"series"===t.mainType&&t.subType&&(a=t.subType)};var t0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],t1="#B9B8CE",t2="#100C2A",t5=function(){return{axisLine:{lineStyle:{color:t1}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},t3=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],t4={darkMode:!0,color:t3,backgroundColor:t2,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:t1}},textStyle:{color:t1},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:t1}},dataZoom:{borderColor:"#71708A",textStyle:{color:t1},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:t1}},timeline:{lineStyle:{color:t1},label:{color:t1},controlStyle:{color:t1,borderColor:t1}},calendar:{itemStyle:{color:t2},dayLabel:{color:t1},monthLabel:{color:t1},yearLabel:{color:t1}},timeAxis:t5(),logAxis:t5(),valueAxis:t5(),categoryAxis:t5(),line:{symbol:"circle"},graph:{color:t3},gauge:{title:{color:t1},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:t1},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};t4.categoryAxis.splitLine.show=!1;var t8=n(18191),t6=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(C.isString(t)){var r=(0,t8.CC)(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};C.each(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],h=r.lastIndexOf(u);if(h>0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.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,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.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}(),t9=["symbol","symbolSize","symbolRotate","symbolOffset"],t7=t9.concat(["symbolKeepAspect"]),et=n(80153),ee=n(58391),en=n(1514),ei=n(41194),er=n(35396),eo=n(26889),ea=n(34780),es=new D.A,el=n(46979),eu=n(2158),eh="5.5.0",ec={zrender:"5.5.0"},ep={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},ef="__flagInMainProcess",ed="__pendingUpdate",eg="__needsUpdateStatus",ey=/^[a-zA-Z0-9_]+$/,ev="__connectUpdateStatus";function em(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.isDisposed()?void this.id:ex(this,t,e)}}function e_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return ex(this,t,e)}}function ex(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),D.A.prototype[e].apply(t,n)}var ew=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,M.C6)(e,t),e}(D.A),eb=ew.prototype;eb.on=e_("on"),eb.off=e_("off");var eS=function(t){function e(e,n,i){var r=t.call(this,new t6)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},(0,C.isString)(n)&&(n=eO[n]),r._dom=e,i.ssr&&T.registerSSRDataGetter(function(t){var e=(0,tS.z)(t),n=e.dataIndex;if(null!=n){var i=(0,C.createHashMap)();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}});var o=r._zr=T.init(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,C.retrieve2)(i.useDirtyRect,!1),useCoarsePointer:(0,C.retrieve2)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=(0,tM.nF)((0,C.bind)(o.flush,o),17),(n=(0,C.clone)(n))&&tf(n,!0),r._theme=n,r._locale=(0,er.A$)(i.locale||er.Lv),r._coordSysMgr=new j.A;var a=r._api=w(r);function s(t,e){return t.__prio-e.__prio}return(0,I.A)(eD,s),(0,I.A)(ek,s),r._scheduler=new tV(r,a,ek,eD),r._messageCenter=new ew,r._initEvents(),r.resize=(0,C.bind)(r.resize,r),o.animation.on("frame",r._onframe,r),y(o,r),v(o,r),(0,C.setAsPrimitive)(r),r}return(0,M.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){A(this);var t=this._scheduler;if(this[ed]){var e=this[ed].silent;this[ef]=!0;try{s(this),h.update.call(this,null,this[ed].updateParams)}catch(t){throw this[ef]=!1,this[ed]=null,t}this._zr.flush(),this[ef]=!1,this[ed]=null,d.call(this,e),g.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),p(this,i),t.performVisualTasks(i),x(this,this._model,r,"remain",{}),n-=new Date-o}while(n>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[ef]){if(this._disposed)return void this.id;if((0,C.isObject)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[ef]=!0,!this._model||e){var i,r,o,a=new Z(this._api),l=this._theme,u=this._model=new V;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,a)}this._model.setOption(t,{replaceMerge:r},eI);var c={seriesTransition:o,optionChanged:!0};if(n)this[ed]={silent:i,updateParams:c},this[ef]=!1,this.getZr().wakeUp();else{try{s(this),h.update.call(this,null,c)}catch(t){throw this[ed]=null,this[ef]=!1,t}this._ssr||this._zr.flush(),this[ed]=null,this[ef]=!1,d.call(this,i),g.call(this,i)}}},e.prototype.setTheme=function(){(0,ee.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||k.A.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(k.A.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,C.each)(e,function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;(0,C.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 o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,C.each)(i,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(!eR[n])return this.getDataURL(t);var a=o,s=o,l=-o,u=-o,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();(0,C.each)(eL,function(o,c){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas((0,C.clone)(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),h.push({dom:p,left:f.left,top:f.top})}}),a*=c,s*=c,l*=c,u*=c;var p=l-a,f=u-s,d=el.yh.createCanvas(),g=T.init(d,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:f}),!e)return t.connectedBackgroundColor&&g.add(new t_.A({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),(0,C.each)(h,function(t){var e=new tx.Ay({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"));var y="";return(0,C.each)(h,function(t){var e=t.left-a,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()},e.prototype.convertToPixel=function(t,e){return c(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return c(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(this._disposed)return void this.id;var n,i=this._model,r=O._e(i,t);return(0,C.each)(r,function(t,i){i.indexOf("Models")>=0&&(0,C.each)(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n},e.prototype.getVisual=function(t,e){var n=this._model,i=O._e(n,t,{defaultMainType:"series"}),r=i.seriesModel.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=o?(0,et.Ez)(r,o,e):(0,et.rI)(r,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;(0,C.each)(eM,function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&(0,eo.R)(o,function(t){var e=(0,tS.z)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=(0,C.extend)({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&t["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}),(0,C.each)(eC,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),(0,C.each)(["selectchanged"],function(e){t._messageCenter.on(e,function(t){this.trigger(e,t)},t)}),(0,en.l)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&O.Bq(this.getDom(),ez,"");var t=this._api,e=this._model;(0,C.each)(this._componentsViews,function(n){n.dispose(e,t)}),(0,C.each)(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete eL[this.id]},e.prototype.resize=function(t){if(!this[ef]){if(this._disposed)return void this.id;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[ed]&&(null==i&&(i=this[ed].silent),n=!0,this[ed]=null),this[ef]=!0;try{n&&s(this),h.update.call(this,{type:"resize",animation:(0,C.extend)({duration:0},t&&t.animation)})}catch(t){throw this[ef]=!1,t}this[ef]=!1,d.call(this,i),g.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if((0,C.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),eP[t]){var n=eP[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,C.extend)({},t);return e.type=eC[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if(((0,C.isObject)(e)||(e={silent:!!e}),eT[t.type])&&this._model){if(this[ef])return void this._pendingActions.push(t);var n=e.silent;f.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&k.A.browser.weChat&&this._throttledZrFlush(),d.call(this,n),g.call(this,n)}},e.prototype.updateLabelLayout=function(){es.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function e(t){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===tA.e3&&t.states.emphasis?e.push("emphasis"):t.hoverState===tA.zX&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered(function(t){return function t(e,n,i,r){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(t(s[l],n,i,r),r);else e.z=n,e.zlevel=i,r=Math.max(e.z2,r);if(o&&(o.z=n,o.zlevel=i,isFinite(r)&&(o.z2=r+2)),a){var u=e.textGuideLineConfig;a.z=n,a.zlevel=i,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}(t,n,i,-1/0),!0})}}function i(t,e){e.eachRendered(function(t){if(!tw.LR(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 r(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered(function(t){if(t.states&&t.states.emphasis&&!tw.LR(t)){if(t instanceof tb.Ay&&(0,tA.fz)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}})}s=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),l(t,!0),l(t,!1),e.plan()},l=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=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,h=!l&&o[u];if(!h){var c=(0,t8.CC)(t.type);(h=new(e?tv.A.getClass(c.main,c.sub):tm.A.getClass(c.sub))).init(n,s),o[u]=h,r.push(h),a.add(h.group)}t.__viewId=h.__id=u,h.__alive=!0,h.__model=t,h.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||i.prepareView(h,t,n,s)}e?n.eachComponent(function(t,e){"series"!==t&&u(e)}):n.eachSeries(u);for(var l=0;l<r.length;){var h=r[l];h.__alive?l++:(e||h.renderTask.dispose(),a.remove(h.group),h.dispose(n,s),r.splice(l,1),o[h.__id]===h&&delete o[h.__id],h.__id=h.group.__ecComponentInfo=null)}},u=function(t,e,n,i,r){var o,a=t._model;if(a.setUpdatePayload(n),!i)return void(0,C.each)([].concat(t._componentsViews).concat(t._chartsViews),h);var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var u=n.excludeSeriesId;function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}null!=u&&(o=(0,C.createHashMap)(),(0,C.each)(O.qB(u),function(t){var e=O.vS(t,null);null!=e&&o.set(e,!0)})),a&&a.eachComponent(l,function(e){if(!(o&&null!=o.get(e.id)))if((0,tA.T$)(n))if(e instanceof ty.A)n.type!==tA.h5||n.notBlur||e.get(["emphasis","disabled"])||(0,tA.lV)(e,n,t._api);else{var i=(0,tA.Tl)(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,a=i.dispatchers;n.type===tA.h5&&r&&!n.notBlur&&(0,tA.Du)(e.mainType,e.componentIndex,t._api),a&&(0,C.each)(a,function(t){n.type===tA.h5?(0,tA.HY)(t):(0,tA.SD)(t)})}else(0,tA.Lx)(n)&&e instanceof ty.A&&((0,tA.t6)(e,n,t._api),(0,tA.jA)(e),S(t))},t),a&&a.eachComponent(l,function(e){o&&null!=o.get(e.id)||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])},t)},h={prepareAndUpdate:function(t){s(this),h.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),p(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),m(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",u=i.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),es.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent(function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}});var a=(0,C.createHashMap)();i.eachSeries(function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)}),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),x(this,i,r,e,{},a),es.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),tm.A.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),m(this,n,this._api,e,{}),es.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries(function(t){t.getData().clearAllVisual()}),tm.A.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent(function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}}),i.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)}),es.trigger("afterupdate",i,this._api))},updateLayout:function(t){h.update.call(this,t)}},c=function(t,e,n,i){if(t._disposed)return void t.id;for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=O._e(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(r=u[e](o,s,i)))return r}},p=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},f=function(t,e){var n,i=this,r=this.getModel(),o=t.type,a=t.escapeConnect,l=eT[o],c=l.actionInfo,p=(c.update||"update").split(":"),f=p.pop(),d=null!=p[0]&&(0,t8.CC)(p[0]);this[ef]=!0;var g=[t],y=!1;t.batch&&(y=!0,g=(0,C.map)(t.batch,function(e){return(e=(0,C.defaults)((0,C.extend)({},e),t)).batch=null,e}));var v=[],m=(0,tA.Lx)(t),_=(0,tA.T$)(t);if(_&&(0,tA.qR)(this._api),(0,C.each)(g,function(e){if((n=(n=l.action(e,i._model,i._api))||(0,C.extend)({},e)).type=c.event||n.type,v.push(n),_){var r=O.HB(t),o=r.queryOptionMap;u(i,f,e,r.mainTypeSpecified?o.keys()[0]:"series"),S(i)}else m?(u(i,f,e,"series"),S(i)):d&&u(i,f,e,d.main,d.sub)}),"none"!==f&&!_&&!m&&!d)try{this[ed]?(s(this),h.update.call(this,t),this[ed]=null):h[f].call(this,t)}catch(t){throw this[ef]=!1,t}if(n=y?{type:c.event||o,escapeConnect:a,batch:v}:v[0],this[ef]=!1,!e){var x=this._messageCenter;if(x.trigger(n.type,n),m){var w={type:"selectchanged",escapeConnect:a,selected:(0,tA.mc)(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};x.trigger(w.type,w)}}},d=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();f.call(this,n,t)}},g=function(t){t||this.trigger("updated")},y=function(t,e){t.on("rendered",function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[ed]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")})},v=function(t,e){t.on("mouseover",function(t){var n=t.target,i=(0,eo.R)(n,tA.u6);i&&((0,tA._m)(i,t,e._api),S(e))}).on("mouseout",function(t){var n=t.target,i=(0,eo.R)(n,tA.u6);i&&((0,tA.Iz)(i,t,e._api),S(e))}).on("click",function(t){var n=t.target,i=(0,eo.R)(n,function(t){return null!=(0,tS.z)(t).dataIndex},!0);if(i){var r=i.selected?"unselect":"select",o=(0,tS.z)(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},m=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),i){var r,o,a=e.concat(n);(0,I.A)(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),(0,C.each)(a,function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)})}}(e),_(t,e,n,i,r),(0,C.each)(t._chartsViews,function(t){t.__alive=!1}),x(t,e,n,i,r),(0,C.each)(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},_=function(t,e,o,a,s,l){(0,C.each)(l||t._componentsViews,function(t){var s=t.__model;i(s,t),t.render(s,e,o,a),n(s,t),r(s,t)})},x=function(t,e,o,a,s,l){var u,h,c,p,f=t._scheduler;s=(0,C.extend)(s||{},{updatedSeries:e.getSeries()}),es.trigger("series:beforeupdate",e,o,s);var d=!1;e.eachSeries(function(e){var n,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var u=s.renderTask;f.updatePayload(u,a),i(e,s),l&&l.get(e.uid)&&u.dirty(),u.perform(f.getPerformArgs(u))&&(d=!0),s.group.silent=!!e.get("silent"),n=e,r=s,o=n.get("blendMode")||null,r.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),(0,tA.jA)(e)}),f.unfinished=d||f.unfinished,es.trigger("series:layoutlabels",e,o,s),es.trigger("series:transition",e,o,s),e.eachSeries(function(e){var i=t._chartsMap[e.__viewId];n(e,i),r(e,i)}),u=t,h=e,c=u._zr.storage,p=0,c.traverse(function(t){!t.isGroup&&p++}),!(p>h.get("hoverLayerThreshold"))||k.A.node||k.A.worker||h.eachSeries(function(t){if(!t.preventUsingHoverLayer){var e=u._chartsMap[t.__viewId];e.__alive&&e.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}}),es.trigger("series:afterupdate",e,o,s)},S=function(t){t[eg]=!0,t.getZr().wakeUp()},A=function(t){t[eg]&&(t.getZr().storage.traverse(function(t){tw.LR(t)||e(t)}),t[eg]=!1)},w=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,M.C6)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;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){(0,tA.HY)(e,n),S(t)},n.prototype.leaveEmphasis=function(e,n){(0,tA.SD)(e,n),S(t)},n.prototype.enterBlur=function(e){(0,tA.QX)(e),S(t)},n.prototype.leaveBlur=function(e){(0,tA.JC)(e),S(t)},n.prototype.enterSelect=function(e){(0,tA.JI)(e),S(t)},n.prototype.leaveSelect=function(e){(0,tA.gd)(e),S(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}(X))(t)},b=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][ev]=e}(0,C.each)(eC,function(n,i){t._messageCenter.on(i,function(n){if(eR[t.group]&&0!==t[ev]&&(!n||!n.escapeConnect)){var i=t.makeActionFromEvent(n),r=[];(0,C.each)(eL,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),(0,C.each)(r,function(t){1!==t[ev]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(D.A),eA=eS.prototype;eA.on=em("on"),eA.off=em("off"),eA.one=function(t,e,n){var i=this;(0,ee.aT)("ECharts#one is deprecated."),this.on.call(this,t,function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)},n)};var eM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],eT={},eC={},ek=[],eI=[],eD=[],eO={},eP={},eL={},eR={},eN=new Date-0,eE=new Date-0,ez="_echarts_instance_";function eB(t,e,n){var i=!(n&&n.ssr);if(i){var r=eG(t);if(r)return r}var o=new eS(t,e,n);return o.id="ec_"+eN++,eL[o.id]=o,i&&O.Bq(t,ez,o.id),b(o),es.trigger("afterinit",o),o}function eF(t){if((0,C.isArray)(t)){var e=t;t=null,(0,C.each)(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+eE++,(0,C.each)(e,function(e){e.group=t})}return eR[t]=!0,t}function eH(t){eR[t]=!1}var eV=eH;function eW(t){(0,C.isString)(t)?t=eL[t]:t instanceof eS||(t=eG(t)),t instanceof eS&&!t.isDisposed()&&t.dispose()}function eG(t){return eL[O.D$(t,ez)]}function eU(t){return eL[t]}function eY(t,e){eO[t]=e}function eX(t){0>(0,C.indexOf)(eI,t)&&eI.push(t)}function ej(t,e){e5(ek,t,e,2e3)}function eq(t){eK("afterinit",t)}function eZ(t){eK("afterupdate",t)}function eK(t,e){es.on(t,e)}function e$(t,e,n){(0,C.isFunction)(e)&&(n=e,e="");var i=(0,C.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),eC[e=t.event]||((0,C.assert)(ey.test(i)&&ey.test(e)),eT[i]||(eT[i]={action:n,actionInfo:t}),eC[e]=i)}function eQ(t,e){j.A.register(t,e)}function eJ(t){var e=j.A.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function e0(t,e){e5(eD,t,e,1e3,"layout")}function e1(t,e){e5(eD,t,e,3e3,"visual")}var e2=[];function e5(t,e,n,i,r){if(((0,C.isFunction)(e)||(0,C.isObject)(e))&&(n=e,e=i),!((0,C.indexOf)(e2,n)>=0)){e2.push(n);var o=tV.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function e3(t,e){eP[t]=e}function e4(t){(0,el.Gs)({createCanvas:t})}function e8(t,e,n){var i=(0,eu.v)("registerMap");i&&i(t,e,n)}function e6(t){var e=(0,eu.v)("getMap");return e&&e(t)}var e9=ei.v5;e1(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=tP(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=tL(t,i),l=o[s],u=(0,C.isFunction)(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||(0,C.isFunction)(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||(0,C.isFunction)(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=(0,C.extend)({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}}),e1(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=tP(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){tR.option=n[i];var a=r(tR),s=t.ensureUniqueItemVisual(e,"style");(0,C.extend)(s,a),tR.option.decal&&(t.setItemVisual(e,"decal",tR.option.decal),tR.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),e1(4500,{performRawSeries:!0,overallReset:function(t){var e=(0,C.createHashMap)();t.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),tI(t).scope=r}}),t.eachSeries(function(e){if(!(e.isColorBySeries()||t.isSeriesFiltered(e))){var n=e.getRawData(),i={},r=e.getData(),o=tI(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=tL(e,a);r.each(function(t){i[r.getRawIndex(t)]=t}),n.each(function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}})}})}}),e1(2e3,{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={},o=!1,a=0;a<t9.length;a++){var s=t9[a],l=t.get(s);(0,C.isFunction)(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual((0,C.extend)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=(0,C.keys)(r);return{dataEach:o?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}}),e1(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<t7.length;i++){var r=t7[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}}),e1(7e3,function(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");n&&(i.ensureUniqueItemVisual(t,"style").decal=(0,ea.w)(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=(0,ea.w)(r,e))}})}),eX(tf),ej(900,function(t){var e=(0,C.createHashMap)();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={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(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(tg)}),eP.default=function(t,e){e=e||{},C.defaults(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n,i=new tN.A,r=new t_.A({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});i.add(r);var o=new tE.Ay({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new t_.A({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return i.add(a),e.showSpinner&&((n=new tz.A({shape:{startAngle:-tB/2,endAngle:-tB/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*tB/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*tB/2}).delay(300).start("circularInOut"),i.add(n)),i.resize=function(){var i=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&i?10:0)-i)/2-(e.showSpinner&&i?0:5+i/2)+(e.showSpinner?0:i/2)+(i?0:s),u=t.getHeight()/2;e.showSpinner&&n.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},i.resize(),i},e$({type:tA.h5,event:tA.h5,update:tA.h5},C.noop),e$({type:tA.PW,event:tA.PW,update:tA.PW},C.noop),e$({type:tA.Lv,event:tA.Lv,update:tA.Lv},C.noop),e$({type:tA.U2,event:tA.U2,update:tA.U2},C.noop),e$({type:tA.Q6,event:tA.Q6,update:tA.Q6},C.noop),eO.light={color:t0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],t0]},eO.dark=t4;var e7={}},2158:function(t,e,n){n.d(e,{m:()=>r,v:()=>o});var i={};function r(t,e){i[t]=e}function o(t){return i[t]}},35396:function(t,e,n){n.d(e,{A4:()=>c,pr:()=>p,E:()=>u,Lv:()=>l,A$:()=>h});var i=n(25744),r=n(35209),o=n(4884),a={},s={},l=r.A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function u(t,e){s[t=t.toUpperCase()]=new i.A(e),a[t]=e}function h(t){if(!(0,o.isString)(t))return(0,o.merge)((0,o.clone)(t),(0,o.clone)(a.EN),!1);var e=a[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?(0,o.clone)(e):(0,o.merge)((0,o.clone)(e),(0,o.clone)(a.EN),!1)}function c(t){return s[t]}function p(){return s.EN}u("EN",{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:". "}}}}),u("ZH",{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:""}}}})},87189:function(t,e,n){n.d(e,{U:()=>r});var i=n(4884);function r(t){return new o(t)}var o=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,r,o,a=this._upstream,s=t&&t.skip;if(this._dirty&&a){var l=this.context;l.data=l.outputData=a.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!s&&(r=this._plan(this.context));var u=((e=this._modBy)>=1||(e=1),e),h=this._modDataCount||0,c=((n=t&&t.modBy)>=1||(n=1),n),p=t&&t.modDataCount||0;(u!==c||h!==p)&&(r="reset"),(this._dirty||"reset"===r)&&(this._dirty=!1,o=this._doReset(s)),this._modBy=c,this._modDataCount=p;var f=t&&t.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!s&&(o||d<g)){var y=this._progress;if((0,i.isArray)(y))for(var v=0;v<y.length;v++)this._doProgress(y[v],d,g,c,p);else this._doProgress(y,d,g,c,p)}this._dueIndex=g;var m=null!=this._settedOutputEnd?this._settedOutputEnd:g;this._outputDueEnd=m}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){a.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,i.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,n,r=this._downstream;return r&&r.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}(),a=function(){var t,e,n,i,r,o={reset:function(l,u,h,c){e=l,t=u,n=h,r=Math.ceil((i=c)/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}()},31393:function(t,e,n){function i(t){return null==t?0:t.length||1}function r(t){return t}n.d(e,{A:()=>o});let o=function(){function t(t,e,n,i,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=o,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={},r=Array(t.length),o=Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=n[s],u=i(l);if(u>1){var h=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(h,a)}else 1===u?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=n[l],h=r[l],c=i(u),p=i(h);if(c>1&&1===p)this._updateManyToOne&&this._updateManyToOne(h,u),r[l]=null;else if(1===c&&p>1)this._updateOneToMany&&this._updateOneToMany(h,u),r[l]=null;else if(1===c&&1===p)this._update&&this._update(h,u),r[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(h,u),r[l]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(a,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e[r],a=i(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(n[a]=s),e){var l=e[s],u=i(l);0===u?(e[s]=a,o&&n.push(s)):1===u?e[s]=[l,a]:l.push(a)}}},t}()},50020:function(t,e,n){n.d(e,{A_:()=>h,Ay:()=>y});var i,r=n(4884),o=n(47163),a=n(79576),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,u=typeof Uint16Array===s?Array:Uint16Array,h=typeof Int32Array===s?Array:Int32Array,c=typeof Float64Array===s?Array:Float64Array,p={float:c,int:h,ordinal:Array,number:Array,time:c};function f(t){return t>65535?l:u}function d(){return[1/0,-1/0]}function g(t,e,n,i,r){var o=p[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(i)}let y=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,r.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),s=this.defaultDimValueGetter=i[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[],(0,a.O0)(o),this._dimensions=(0,r.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 p[e||"float"](this._rawCount),this._rawExtent[r]=d(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=d());for(var s=r[t],l=o;l<a;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=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},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,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<o;u++){var h=r[u];g(n,u,h.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var f=p-s,d=0;d<o;d++){var h=r[d],y=i.arrayRows.call(this,t[f]||c,h.property,f,d);n[d][p]=y;var v=a[d];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=(0,r.map)(a,function(t){return t.property}),h=0;h<s;h++){var c=a[h];l[h]||(l[h]=d()),g(o,h,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,l);else for(var p=[],f=t;f<e;f++){p=i.getItem(f,p);for(var y=0;y<s;y++){var v=o[y],m=this._dimValueGetter(p,u[y],f,y);v[f]=m;var _=l[y];m<_[0]&&(_[0]=m),m>_[1]&&(_[1]=m)}}!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;for(var r=0,o=i.length;r<o;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 o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/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;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return -1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<o||c===o&&h>=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},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{var n=f(this._rawCount);t=new n(this.count());for(var 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=new(f(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=(0,r.keys)(t),o=i.length;if(!o)return this;var a=e.count(),s=new(f(e._rawCount))(a),l=0,u=i[0],h=t[u][0],c=t[u][1],p=e._chunks,d=!1;if(!e._indices){var g=0;if(1===o){for(var y=p[i[0]],v=0;v<n;v++){var m=y[v];(m>=h&&m<=c||isNaN(m))&&(s[l++]=g),g++}d=!0}else if(2===o){for(var y=p[i[0]],_=p[i[1]],x=t[i[1]][0],w=t[i[1]][1],v=0;v<n;v++){var m=y[v],b=_[v];(m>=h&&m<=c||isNaN(m))&&(b>=x&&b<=w||isNaN(b))&&(s[l++]=g),g++}d=!0}}if(!d)if(1===o)for(var v=0;v<a;v++){var S=e.getRawIndex(v),m=p[i[0]][S];(m>=h&&m<=c||isNaN(m))&&(s[l++]=S)}else for(var v=0;v<a;v++){for(var A=!0,S=e.getRawIndex(v),M=0;M<o;M++){var T=i[M],m=p[T][S];(m<t[T][0]||m>t[T][1])&&(A=!1)}A&&(s[l++]=e.getRawIndex(v))}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=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=d();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var f=n&&n.apply(null,s);if(null!=f){"object"!=typeof f&&(r[0]=f,f=r);for(var u=0;u<f.length;u++){var g=e[u],y=f[u],v=l[g],m=i[g];m&&(m[c]=y),y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(f(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));c[l++]=h;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),g=Math.min(p+2*u,s),y=(g+d)/2,v=0,m=d;m<g;m++){var _=this.getRawIndex(m),x=a[_];isNaN(x)||(v+=x)}v/=g-d;var w=p,b=Math.min(p+u,s),S=p-1,A=a[h];n=-1,r=w;for(var M=-1,T=0,m=w;m<b;m++){var _=this.getRawIndex(m),x=a[_];if(isNaN(x)){T++,M<0&&(M=_);continue}(i=Math.abs((S-y)*(x-A)-(S-m)*(v-A)))>n&&(n=i,r=_)}T>0&&T<b-w&&(c[l++]=Math.min(M,r),r=Math.max(M,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=d(),c=new(f(this._rawCount))(Math.ceil(u/s)),p=0,g=0;g<u;g+=s){s>u-g&&(a.length=s=u-g);for(var y=0;y<s;y++){var v=this.getRawIndex(g+y);a[y]=l[v]}var m=n(a),_=this.getRawIndex(Math.min(g+i(a,m)||0,u-1));l[_]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),c[p++]=_}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e,n=this._chunks[t],i=d();if(!n)return i;var r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(e=this._extent[t])return e.slice();for(var o=(e=i)[0],a=e[1],s=0;s<r;s++){var l=n[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return e=[o,a],this._extent[t]=e,e},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,o=this._chunks,a=e&&(0,r.reduce)(e,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)i._chunks[s]=a[s]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(o[s]):o[s];else i._chunks=o;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=(0,r.clone)(this._extent),t._rawExtent=(0,r.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(0,o.Pn)(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return(0,o.Pn)(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return(0,o.Pn)(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}()},44513:function(t,e,n){n.d(e,{A:()=>a});var i=n(4884),r=0;function o(t){return(0,i.isObject)(t)&&null!=t.value?t.value:t+""}let a=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&(0,i.map)(r,o);return new t({categories:a,needCollect:!a,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(!(0,i.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,i.createHashMap)(this.categories))},t}()},15764:function(t,e,n){n.d(e,{A:()=>C});var i,r,o,a,s,l,u,h=n(4884),c=n(25744),p=n(31393),f=n(98609),d=n(1122),g=n(75017),y=n(95056),v=n(84124),m=n(35032),_=n(79576),x=n(50020),w=n(2442),b=h.isObject,S=h.map,A="undefined"==typeof Int32Array?Array:Int32Array,M=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],T=["_approximateExtent"];let C=function(){function t(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;(0,w.fg)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],p=h.isString(c)?new g.A({name:c}):c instanceof g.A?c:new g.A(c),f=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=f,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};o.push(f),r[f]=p,null!=l[f]&&(s=!0),p.createInvertedIndices&&(a[f]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),i&&(p.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var y=this._dimIdxToName=h.createHashMap();h.each(o,function(t){y.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);if(i)return i.name},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(h.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},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){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof x.Ay&&(i=t),!i){var o=this.dimensions,a=(0,_.tP)(t)||h.isArrayLike(t)?new f.d1(t,o.length):t;i=new x.Ay;var s=S(o,function(t){return{type:r._dimInfos[t].type,property:t}});i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=(0,d.l)(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.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&u(this,a)}},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!==y.XO&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===y.mK&&!n.pure)for(var a=[],s=t;s<e;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&(0,v.zu)(l)&&(this.hasItemOption=!0),l){var h=l.name;null==r[s]&&null!=h&&(r[s]=(0,v.vS)(h,null));var c=l.id;null==o[s]&&null!=c&&(o[s]=(0,v.vS)(c,null))}}if(this._shouldMakeIdFromName())for(var s=t;s<e;s++)u(this,s);i(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},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){b(t)?h.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=o(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 r(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))},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 h.isArray(t)?i.getValues(S(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])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=S(a(t),this._getStoreDimIndex,this);this._store.each(r,i?h.bind(e,i):e)},t.prototype.filterSelf=function(t,e,n){h.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=S(a(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?h.bind(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=h.keys(t),r=[];return h.each(i,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){h.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,o=S(a(t),this._getStoreDimIndex,this),s=l(this);return s._store=this._store.map(o,r?h.bind(e,r):e),s},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=S(a(t),this._getStoreDimIndex,this);this._store.modify(o,r?h.bind(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=l(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=l(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 c.A(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new p.A(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return r(t,e)},function(t){return r(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||{},b(t)?h.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),h.isArray(r)?r=r.slice():b(r)&&(r=h.extend({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,b(e)?h.extend(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){b(t)?h.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?h.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;(0,m.a)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){h.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:S(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];h.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(h.slice(arguments)))})},t.internalField=void(i=function(t){var e=t._invertedIndicesMap;h.each(e,function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new A(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(var s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}})},o=function(t,e,n){return(0,v.vS)(t._getCategory(e,n),null)},r=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=o(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},a=function(t){return h.isArray(t)||(t=null!=t?[t]:[]),t},l=function(e){var n=new t(e._schema?e._schema:S(e.dimensions,e._getDimInfo,e),e.hostModel);return s(n,e),n},s=function(t,e){h.each(M.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,h.each(T,function(n){t[n]=h.clone(e[n])}),t._calculationInfo=h.extend({},e._calculationInfo)},u=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,a=t._idDimIdx,s=n[e],l=i[e];if(null==s&&null!=r&&(n[e]=s=o(t,r,e)),null==l&&null!=a&&(i[e]=l=o(t,a,e)),null==l&&null!=s){var u=t._nameRepeatCount,h=u[s]=(u[s]||0)+1;l=s,h>1&&(l+="__ec__"+h),i[e]=l}}),t}()},75017:function(t,e,n){n.d(e,{A:()=>r});var i=n(4884);let r=function(t){this.otherDims={},null!=t&&i.extend(this,t)}},79576:function(t,e,n){n.d(e,{AF:()=>h,BE:()=>c,O0:()=>g,gV:()=>u,tP:()=>l,wZ:()=>p});var i=n(4884),r=n(95056),o=n(84124),a=n(88569),s=function(t){this.data=t.data||(t.sourceFormat===r.t1?{}:[]),this.sourceFormat=t.sourceFormat||r.vm,this.seriesLayoutBy=t.seriesLayoutBy||r.i_,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&&(0,a.PU)(this,n)===a.sc.Must&&(i.type="ordinal")}};function l(t){return t instanceof s}function u(t,e,n){n=n||p(t);var a=e.seriesLayoutBy,l=function(t,e,n,a,s){if(!t)return{dimensionsDefine:f(s),startIndex:u,dimensionsDetectedCount:l};if(e===r.Km){var l,u;"auto"===a||null==a?d(function(t){null!=t&&"-"!==t&&((0,i.isString)(t)?null==u&&(u=1):u=0)},n,t,10):u=(0,i.isNumber)(a)?a:+!!a,s||1!==u||(s=[],d(function(t,e){s[e]=null!=t?t+"":""},n,t,1/0)),l=s?s.length:n===r.oC?t.length:t[0]?t[0].length:null}else if(e===r.Wk)s||(s=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return(0,i.keys)(e)}(t));else if(e===r.t1)s||(s=[],(0,i.each)(t,function(t,e){s.push(e)}));else if(e===r.mK){var h=(0,o.vj)(t[0]);l=(0,i.isArray)(h)&&h.length||1}else r.XO;return{startIndex:u,dimensionsDefine:f(s),dimensionsDetectedCount:l}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:(0,i.clone)(e)})}function h(t){return new s({data:t,sourceFormat:(0,i.isTypedArray)(t)?r.XO:r.mK})}function c(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,i.clone)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function p(t){var e=r.vm;if((0,i.isTypedArray)(t))e=r.XO;else if((0,i.isArray)(t)){0===t.length&&(e=r.Km);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if((0,i.isArray)(a)||(0,i.isTypedArray)(a)){e=r.Km;break}else if((0,i.isObject)(a)){e=r.Wk;break}}}}else if((0,i.isObject)(t)){for(var s in t)if((0,i.hasOwn)(t,s)&&(0,i.isArrayLike)(t[s])){e=r.t1;break}}return e}function f(t){if(t){var e=(0,i.createHashMap)();return(0,i.map)(t,function(t,n){var r={name:(t=(0,i.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=e.get(r.name);return o?r.name+="-"+o.count++:e.set(r.name,{count:1}),r})}}function d(t,e,n,i){if(e===r.oC)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var a=n[0]||[],o=0;o<a.length&&o<i;o++)t(a[o],o)}function g(t){var e=t.sourceFormat;return e===r.Wk||e===r.t1}},2442:function(t,e,n){n.d(e,{Tc:()=>l,eS:()=>p,fg:()=>u,io:()=>h,j_:()=>c});var i=n(4884),r=n(84124),o=n(79576),a=(0,r.$r)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=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=c(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,i.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=(0,o.O0)(this.source),n=!p(t),i="",r=[],a=0,l=0;a<t;a++){var u=void 0,h=void 0,c=void 0,f=this.dimensions[l];if(f&&f.storeDimIndex===a)u=e?f.name:null,h=f.type,c=f.ordinalMeta,l++;else{var d=this.getSourceDimension(a);d&&(u=e?d.name:null,h=d.type)}r.push({property:u,type:h,ordinalMeta:c}),!e||null==u||f&&f.isCalculationCoord||(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=s[h]||"f",c&&(i+=c.uid),i+="$"}var g=this.source;return{dimensions:r,hash:[g.seriesLayoutBy,g.startIndex,i].join("$$")}},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 o=this.getSourceDimension(e);o&&(i=o.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 u(t){return t instanceof l}function h(t){for(var e=(0,i.createHashMap)(),n=0;n<(t||[]).length;n++){var r=t[n],o=(0,i.isObject)(r)?r.name:r;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function c(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=h(t.dimensionsDefine))}function p(t){return t>30}},85337:function(t,e,n){n.d(e,{A:()=>p,M:()=>c});var i=n(95056),r=n(75017),o=n(4884),a=n(79576),s=n(50020),l=n(84124),u=n(88569),h=n(2442);function c(t,e){return p(t,e).dimensions}function p(t,e){(0,a.tP)(t)||(t=(0,a.AF)(t));var n,c,p,f,d,g=(e=e||{}).coordDimensions||[],y=e.dimensionsDefine||t.dimensionsDefine||[],v=(0,o.createHashMap)(),m=[],_=(n=t,c=g,p=y,f=e.dimensionsCount,d=Math.max(n.dimensionsDetectedCount||1,c.length,p.length,f||0),(0,o.each)(c,function(t){var e;(0,o.isObject)(t)&&(e=t.dimsDef)&&(d=Math.max(d,e.length))}),d),x=e.canOmitUnusedDimensions&&(0,h.eS)(_),w=y===t.dimensionsDefine,b=w?(0,h.j_)(t):(0,h.io)(y),S=e.encodeDefine;!S&&e.encodeDefaulter&&(S=e.encodeDefaulter(t,_));for(var A=(0,o.createHashMap)(S),M=new s.A_(_),T=0;T<M.length;T++)M[T]=-1;function C(t){var e=M[t];if(e<0){var n=y[t],i=(0,o.isObject)(n)?n:{name:n},a=new r.A,s=i.name;null!=s&&null!=b.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=m.length;return M[t]=l,a.storeDimIndex=t,m.push(a),a}return m[e]}if(!x)for(var T=0;T<_;T++)C(T);A.each(function(t,e){var n=(0,l.qB)(t).slice();if(1===n.length&&!(0,o.isString)(n[0])&&n[0]<0)return void A.set(e,!1);var i=A.set(e,[]);(0,o.each)(n,function(t,n){var r=(0,o.isString)(t)?b.get(t):t;null!=r&&r<_&&(i[n]=r,I(C(r),e,n))})});var k=0;function I(t,e,n){null!=i.Pe.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,v.set(e,!0))}(0,o.each)(g,function(t){if((0,o.isString)(t))r=t,i={};else{var e,n,i,r=(i=t).name,a=i.ordinalMeta;i.ordinalMeta=null,(i=(0,o.extend)({},i)).ordinalMeta=a,e=i.dimsDef,n=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=A.get(r);if(!1!==s){if(!(s=(0,l.qB)(s)).length)for(var u=0;u<(e&&e.length||1);u++){for(;k<_&&null!=C(k).coordDim;)k++;k<_&&s.push(k++)}(0,o.each)(s,function(t,a){var s=C(t);if(w&&null!=i.type&&(s.type=i.type),I((0,o.defaults)(s,i),r,a),null==s.name&&e){var l=e[a];(0,o.isObject)(l)||(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}n&&(0,o.defaults)(s.otherDims,n)})}});var D=e.generateCoord,O=e.generateCoordCount,P=null!=O;O=D?O||1:0;var L=D||"value";function R(t){null==t.name&&(t.name=t.coordDim)}if(x)(0,o.each)(m,function(t){R(t)}),m.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var N=0;N<_;N++){var E=C(N);null==E.coordDim&&(E.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(L,v,P),E.coordDimIndex=0,(!D||O<=0)&&(E.isExtraCoord=!0),O--),R(E),null==E.type&&((0,u.PU)(t,N)===u.sc.Must||E.isExtraCoord&&(null!=E.otherDims.itemName||null!=E.otherDims.seriesName))&&(E.type="ordinal")}return function(t){for(var e=(0,o.createHashMap)(),n=0;n<t.length;n++){var i=t[n],r=i.name,a=e.get(r)||0;a>0&&(i.name=r+(a-1)),a++,e.set(r,a)}}(m),new h.Tc({source:t,dimensions:m,fullDimensionCount:_,dimensionOmitted:x})}},98609:function(t,e,n){n.d(e,{Kd:()=>m,QE:()=>S,d1:()=>p,sC:()=>g,uQ:()=>w});var i,r,o,a,s,l=n(4884),u=n(84124),h=n(79576),c=n(95056),p=function(){var t;function e(t,e){var n=(0,h.tP)(t)?t:(0,h.AF)(t);this._source=n;var i=this._data=n.data;n.sourceFormat===c.XO&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){s=function(t,r,o){var s=o.sourceFormat,u=o.seriesLayoutBy,h=o.startIndex,p=o.dimensionsDefine,f=a[b(s,u)];if((0,l.extend)(t,f),s===c.XO)t.getItem=e,t.count=i,t.fillStorage=n;else{var d=g(s,u);t.getItem=(0,l.bind)(d,null,r,h,p);var y=m(s,u);t.count=(0,l.bind)(y,null,r,h,p)}};var t,e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var f=r[p*o+a];c[t+p]=f,f<l&&(l=f),f>u&&(u=f)}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={})[c.Km+"_"+c.i_]={pure:!0,appendData:r},t[c.Km+"_"+c.oC]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[c.Wk]={pure:!0,appendData:r},t[c.t1]={pure:!0,appendData:function(t){var e=this._data;(0,l.each)(t,function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])})}},t[c.mK]={appendData:r},t[c.XO]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),e}(),f=function(t,e,n,i){return t[i]},d=((i={})[c.Km+"_"+c.i_]=function(t,e,n,i){return t[i+e]},i[c.Km+"_"+c.oC]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[i]:null}return o},i[c.Wk]=f,i[c.t1]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=t[n[a].name];o[a]=s?s[i]:null}return o},i[c.mK]=f,i);function g(t,e){return d[b(t,e)]}var y=function(t,e,n){return t.length},v=((r={})[c.Km+"_"+c.i_]=function(t,e,n){return Math.max(0,t.length-e)},r[c.Km+"_"+c.oC]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},r[c.Wk]=y,r[c.t1]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},r[c.mK]=y,r);function m(t,e){return v[b(t,e)]}var _=function(t,e,n){return t[e]},x=((o={})[c.Km]=_,o[c.Wk]=function(t,e,n){return t[n]},o[c.t1]=_,o[c.mK]=function(t,e,n){var i=(0,u.vj)(t);return i instanceof Array?i[e]:i},o[c.XO]=_,o);function w(t){return x[t]}function b(t,e){return t===c.Km?t+"_"+e:t}function S(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return x[o](i,a,s)}var l=i;return o===c.mK&&(l=(0,u.vj)(i)),l}}}},41402:function(t,e,n){n.d(e,{iJ:()=>o,me:()=>s,sJ:()=>a});var i=n(4884),r=n(2442);function o(t,e,n){var o,a,s,l,u,h,c,p,f=(n=n||{}).byIndex,d=n.stackedCoordDimension;(o=e,(0,r.fg)(o.schema))?(a=(s=e.schema).dimensions,l=e.store):a=e;var g=!!(t&&t.get("stack"));if((0,i.each)(a,function(t,e){(0,i.isString)(t)&&(a[e]=t={name:t}),g&&!t.isExtraCoord&&(f||u||!t.ordinalMeta||(u=t),h||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(h=t))}),!h||f||u||(f=!0),h){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var y=h.coordDim,v=h.type,m=0;(0,i.each)(a,function(t){t.coordDim===y&&m++});var _={name:c,coordDim:y,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:p,coordDim:p,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(_.storeDimIndex=l.ensureCalculationDimension(p,v),x.storeDimIndex=l.ensureCalculationDimension(c,v)),s.appendCalculationDimension(_),s.appendCalculationDimension(x)):(a.push(_),a.push(x))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:f,stackedOverDimension:p,stackResultDimension:c}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},47163:function(t,e,n){n.d(e,{Fl:()=>c,Pn:()=>a,zC:()=>l,zs:()=>f});var i=n(21916),r=n(4884),o=n(58391);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,r.isNumber)(t)||null==t||"-"===t||(t=+(0,i._U)(t)),null==t||""===t?NaN:+t)}var s=(0,r.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+(0,i._U)(t)},trim:function(t){return(0,r.isString)(t)?(0,r.trim)(t):t}});function l(t){return s.get(t)}var u={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}},h=function(){function t(t,e){(0,r.isNumber)(e)||(0,o.$8)(""),this._opFn=u[t],this._rvalFloat=(0,i.Sm)(e)}return t.prototype.evaluate=function(t){return(0,r.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn((0,i.Sm)(t),this._rvalFloat)},t}(),c=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=(0,r.isNumber)(t)?t:(0,i.Sm)(t),o=(0,r.isNumber)(e)?e:(0,i.Sm)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=(0,r.isString)(t),u=(0,r.isString)(e);l&&(n=u?t:0),u&&(o=l?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}(),p=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=(0,i.Sm)(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=(0,i.Sm)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function f(t,e){return"eq"===t||"ne"===t?new p("eq"===t,e):(0,r.hasOwn)(u,t)?new h(t,e):null}},1122:function(t,e,n){n.d(e,{B:()=>l,l:()=>a});var i=n(4884),r=n(95056),o=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 a(t,e){var n={},a=n.encode={},l=(0,i.createHashMap)(),u=[],h=[],c={};(0,i.each)(t.dimensions,function(e){var n=t.getDimensionInfo(e),i=n.coordDim;if(i){var o,p=n.coordDimIndex;s(a,i)[p]=e,n.isExtraCoord||(l.set(i,1),"ordinal"!==(o=n.type)&&"time"!==o&&(u[0]=e),s(c,i)[p]=t.getDimensionIndex(n.name)),n.defaultTooltip&&h.push(e)}r.Pe.each(function(t,e){var i=s(a,e),r=n.otherDims[e];null!=r&&!1!==r&&(i[r]=n.name)})});var p=[],f={};l.each(function(t,e){var n=a[e];f[e]=n[0],p=p.concat(n)}),n.dataDimsOnCoord=p,n.dataDimIndicesOnCoord=(0,i.map)(p,function(e){return t.getDimensionInfo(e).storeDimIndex}),n.encodeFirstDimNotExtra=f;var d=a.label;d&&d.length&&(u=d.slice());var g=a.tooltip;return g&&g.length?h=g.slice():h.length||(h=u.slice()),a.defaultedLabel=u,a.defaultedTooltip=h,n.userOutput=new o(c,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},88569:function(t,e,n){n.d(e,{G9:()=>c,Gt:()=>p,OC:()=>u,PU:()=>f,ln:()=>h,ps:()=>l,sc:()=>a});var i=n(84124),r=n(4884),o=n(95056),a={Must:1,Might:2,Not:3},s=(0,i.$r)();function l(t){s(t).datasetMap=(0,r.createHashMap)()}function u(t,e,n){var i,o,a={},l=c(e);if(!l||!t)return a;var u=[],h=[],p=s(e.ecModel).datasetMap,f=l.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,r.each)(t,function(e,n){var s=(0,r.isObject)(e)?e:t[n]={name:e};"ordinal"===s.type&&null==i&&(i=n,o=y(s)),a[s.name]=[]});var d=p.get(f)||p.set(f,{categoryWayDim:o,valueWayDim:0});function g(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function y(t){var e=t.dimsDef;return e?e.length:1}return(0,r.each)(t,function(t,e){var n=t.name,r=y(t);if(null==i){var o=d.valueWayDim;g(a[n],o,r),g(h,o,r),d.valueWayDim+=r}else if(i===e)g(a[n],0,r),g(u,0,r);else{var o=d.categoryWayDim;g(a[n],o,r),g(h,o,r),d.categoryWayDim+=r}}),u.length&&(a.itemName=u),h.length&&(a.seriesName=h),a}function h(t,e,n){var i,s={};if(!c(t))return s;var l=e.sourceFormat,u=e.dimensionsDefine;(l===o.Wk||l===o.t1)&&(0,r.each)(u,function(t,e){((0,r.isObject)(t)?t.name:t)==="name"&&(i=e)});var h=function(){for(var t={},r={},o=[],s=0,h=Math.min(5,n);s<h;s++){var c=d(e.data,l,e.seriesLayoutBy,u,e.startIndex,s);o.push(c);var p=c===a.Not;if(p&&null==t.v&&s!==i&&(t.v=s),null!=t.n&&t.n!==t.v&&(p||o[t.n]!==a.Not)||(t.n=s),f(t)&&o[t.n]!==a.Not)return t;p||(c===a.Might&&null==r.v&&s!==i&&(r.v=s),(null==r.n||r.n===r.v)&&(r.n=s))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(r)?r:null}();if(h){s.value=[h.v];var p=null!=i?i:h.n;s.itemName=[p],s.seriesName=[p]}return s}function c(t){if(!t.get("data",!0))return(0,i.JO)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i.US).models[0]}function p(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,i.JO)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i.US).models:[]}function f(t,e){return d(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function d(t,e,n,s,l,u){var h,c,p;if((0,r.isTypedArray)(t))return a.Not;if(s){var f=s[u];(0,r.isObject)(f)?(c=f.name,p=f.type):(0,r.isString)(f)&&(c=f)}if(null!=p)return"ordinal"===p?a.Must:a.Not;if(e===o.Km)if(n===o.oC){for(var d=t[u],g=0;g<(d||[]).length&&g<5;g++)if(null!=(h=_(d[l+g])))return h}else for(var g=0;g<t.length&&g<5;g++){var y=t[l+g];if(y&&null!=(h=_(y[u])))return h}else if(e===o.Wk){if(!c)return a.Not;for(var g=0;g<t.length&&g<5;g++){var v=t[g];if(v&&null!=(h=_(v[c])))return h}}else if(e===o.t1){if(!c)return a.Not;var d=t[c];if(!d||(0,r.isTypedArray)(d))return a.Not;for(var g=0;g<d.length&&g<5;g++)if(null!=(h=_(d[g])))return h}else if(e===o.mK)for(var g=0;g<t.length&&g<5;g++){var v=t[g],m=(0,i.vj)(v);if(!(0,r.isArray)(m))return a.Not;if(null!=(h=_(m[u])))return h}function _(t){var e=(0,r.isString)(t);return null!=t&&isFinite(t)&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},66282:function(t,e,n){n.d(e,{A:()=>c,R:()=>h});var i=n(4884),r=n(79576),o=n(95056),a=n(88569),s=n(41194),l=n(50020),u=n(98609),h=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,a=this._getUpstreamSourceManagers(),s=!!a.length;if(p(n)){var l=void 0,u=void 0,h=void 0;if(s){var c=a[0];c.prepareSource(),l=(h=c.getSource()).data,u=h.sourceFormat,e=[c._getVersionSign()]}else l=n.get("data",!0),u=(0,i.isTypedArray)(l)?o.XO:o.mK,e=[];var f=this._getSourceMetaRawOption()||{},d=h&&h.metaRawOption||{},g=(0,i.retrieve2)(f.seriesLayoutBy,d.seriesLayoutBy)||null,y=(0,i.retrieve2)(f.sourceHeader,d.sourceHeader),v=(0,i.retrieve2)(f.dimensions,d.dimensions);t=g!==d.seriesLayoutBy||!!y!=!!d.sourceHeader||v?[(0,r.gV)(l,{seriesLayoutBy:g,sourceHeader:y,dimensions:v},u)]:[]}else if(s){var m=this._applyTransform(a);t=m.sourceList,e=m.upstreamSignList}else{var _=n.get("source",!0);t=[(0,r.gV)(_,this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);null!=a&&1!==t.length&&f("");var l=[],u=[];return(0,i.each)(t,function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||f(""),l.push(e),u.push(t._getVersionSign())}),o?e=(0,s.py)(o,l,{datasetIndex:n.componentIndex}):null!=a&&(e=[(0,r.BE)(l[0])]),{sourceList:e,upstreamSignList:u}},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=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];p(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new l.Ay).initData(new u.d1(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(!p(t))return(0,i.map)((0,a.Gt)(t),function(t){return t.getSourceManager()});var e=(0,a.G9)(t);return e?[e.getSourceManager()]:[]},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return p(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function c(t){t.option.transform&&(0,i.setAsPrimitive)(t.option.transform)}function p(t){return"series"===t.mainType}function f(t){throw Error(t)}},41194:function(t,e,n){n.d(e,{py:()=>v,v5:()=>y});var i=n(95056),r=n(84124),o=n(4884),a=n(98609),s=n(47163),l=n(58391),u=n(79576),h=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw 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(0,s.Pn)(t,e)},t}();function c(t){return m(t.sourceFormat)||(0,l.$8)(""),t.data}function p(t){var e=t.sourceFormat,n=t.data;if(m(e)||(0,l.$8)(""),e===i.Km){for(var r=[],a=0,s=n.length;a<s;a++)r.push(n[a].slice());return r}if(e===i.Wk){for(var r=[],a=0,s=n.length;a<s;a++)r.push((0,o.extend)({},n[a]));return r}}function f(t,e,n){if(null!=n){if((0,o.isNumber)(n)||!isNaN(n)&&!(0,o.hasOwn)(e,n))return t[n];else if((0,o.hasOwn)(e,n))return e[n]}}function d(t){return(0,o.clone)(t)}var g=(0,o.createHashMap)();function y(t){var e=(t=(0,o.clone)(t)).type;e||(0,l.$8)("");var n=e.split(":");2!==n.length&&(0,l.$8)("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,g.set(e,t)}function v(t,e,n){var s=(0,r.qB)(t),y=s.length;y||(0,l.$8)("");for(var v=0;v<y;v++)e=function(t,e,n,s){e.length||(0,l.$8)(""),(0,o.isObject)(t)||(0,l.$8)("");var y=t.type,v=g.get(y);v||(0,l.$8)("");var _=(0,o.map)(e,function(t){return function(t,e){var n=new h,r=t.data,s=n.sourceFormat=t.sourceFormat,u=t.startIndex;t.seriesLayoutBy!==i.i_&&(0,l.$8)("");var g=[],y={},v=t.dimensionsDefine;if(v)(0,o.each)(v,function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};g.push(i),null!=n&&((0,o.hasOwn)(y,n)&&(0,l.$8)(""),y[n]=i)});else for(var m=0;m<t.dimensionsDetectedCount||0;m++)g.push({index:m});var _=(0,a.sC)(s,i.i_);e.__isBuiltIn&&(n.getRawDataItem=function(t){return _(r,u,g,t)},n.getRawData=(0,o.bind)(c,null,t)),n.cloneRawData=(0,o.bind)(p,null,t);var x=(0,a.Kd)(s,i.i_);n.count=(0,o.bind)(x,null,r,u,g);var w=(0,a.uQ)(s);n.retrieveValue=function(t,e){return b(_(r,u,g,t),e)};var b=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=g[e];if(n)return w(t,e,n.name)}};return n.getDimensionInfo=(0,o.bind)(f,null,g,y),n.cloneAllDimensionInfo=(0,o.bind)(d,null,g),n}(t,v)}),x=(0,r.qB)(v.transform({upstream:_[0],upstreamList:_,config:(0,o.clone)(t.config)}));return(0,o.map)(x,function(t,n){(0,o.isObject)(t)||(0,l.$8)(""),t.data||(0,l.$8)(""),m((0,u.wZ)(t.data))||(0,l.$8)("");var r,a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:i.i_,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:i.i_,sourceHeader:0,dimensions:t.dimensions};return(0,u.gV)(t.data,r,null)})}(s[v],e,0,0),v!==y-1&&(e.length=Math.max(e.length,1));return e}function m(t){return t===i.Km||t===i.Wk}},74653:function(t,e,n){n.d(e,{Y:()=>function t(e){(0,l.isArray)(e)?(0,l.each)(e,function(e){t(e)}):(0,l.indexOf)(c,e)>=0||(c.push(e),(0,l.isFunction)(e)&&(e={install:e}),e.install(p))}});var i=n(31950),r=n(43583),o=n(31440),a=n(36805),s=n(55785),l=n(4884),u=n(2158),h=n(66726),c=[],p={registerPreprocessor:i.lP,registerProcessor:i.qg,registerPostInit:i.cf,registerPostUpdate:i.tb,registerUpdateLifecycle:i.xV,registerAction:i.OH,registerCoordinateSystem:i.pX,registerLayout:i.Oh,registerVisual:i.AF,registerTransform:i.iY,registerLoading:i.Ej,registerMap:i.mz,registerImpl:u.m,PRIORITY:i.FQ,ComponentModel:a.A,ComponentView:r.A,SeriesModel:s.A,ChartView:o.A,registerComponentModel:function(t){a.A.registerClass(t)},registerComponentView:function(t){r.A.registerClass(t)},registerSeriesModel:function(t){s.A.registerClass(t)},registerChartView:function(t){o.A.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.A.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,h.registerPainter)(t,e)}}},6417:function(t,e,n){n.d(e,{If:()=>u,QX:()=>s,Xe:()=>l,os:()=>o});var i=n(14230),r=n(51690);function o(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var o=r.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,u=o.style.margin||0,h=s.clone();h.applyTransform(a),h.x-=u/2,h.y-=u/2,h.width+=u,h.height+=u;var c=l?new i.A(s,a):null;e.push({label:o,labelLine:r.labelLine,rect:h,localRect:s,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:a})}}return e}function a(t,e,n,i,r,o){var a,s,l,u=t.length;if(!(u<2)){t.sort(function(t,n){return t.rect[e]-n.rect[e]});for(var h=0,c=!1,p=[],f=0,d=0;d<u;d++){var g=t[d],y=g.rect;(a=y[e]-h)<0&&(y[e]-=a,g.label[e]-=a,c=!0);var v=Math.max(-a,0);p.push(v),f+=v,h=y[e]+y[n]}f>0&&o&&b(-f/u,0,u);var m=t[0],_=t[u-1];return x(),s<0&&S(-s,.8),l<0&&S(l,.8),x(),w(s,l,1),w(l,s,-1),x(),s<0&&A(-s),l<0&&A(l),c}function x(){s=m.rect[e]-i,l=r-_.rect[e]-_.rect[n]}function w(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){b(i*n,0,u);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function b(n,i,r){0!==n&&(c=!0);for(var o=i;o<r;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(i,r){for(var o=[],a=0,s=1;s<u;s++){var l=t[s-1].rect,h=Math.max(t[s].rect[e]-l[e]-l[n],0);o.push(h),a+=h}if(a){var c=Math.min(Math.abs(i)/a,r);if(i>0)for(var s=0;s<u-1;s++){var p=o[s]*c;b(p,0,s+1)}else for(var s=u-1;s>0;s--){var p=o[s-1]*c;b(-p,s,u)}}}function A(t){for(var e=t<0?-1:1,n=Math.ceil((t=Math.abs(t))/(u-1)),i=0;i<u-1;i++)if(e>0?b(n,0,i+1):b(-n,u-i-1,u),(t-=n)<=0)return}}function s(t,e,n,i){return a(t,"x","width",e,n,i)}function l(t,e,n,i){return a(t,"y","height",e,n,i)}function u(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new r.A(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],l=s.axisAligned,u=s.localRect,h=s.transform,c=s.label,p=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=s.obb,d=!1,g=0;g<e.length;g++){var y=e[g];if(n.intersect(y.rect)&&(l&&y.axisAligned||(y.obb||(y.obb=new i.A(y.localRect,y.transform)),f||(f=new i.A(u,h)),f.intersect(y.obb)))){d=!0;break}}d?(o(c),p&&o(p)):(c.attr("ignore",s.defaultAttr.ignore),p&&p.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},73394:function(t,e,n){n.d(e,{Lu:()=>x,Oh:()=>w,VB:()=>f,c8:()=>_,lx:()=>p,qM:()=>c,sD:()=>d,xb:()=>b});var i=n(52384),r=n(4884),o=n(72059),a=n(84124),s=n(68532),l={};function u(t,e){for(var n=0;n<o.BV.length;n++){var i=o.BV[n],r=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=r}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function h(t,e,n){var i,a=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,u=e.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,u&&u.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,r.isFunction)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var h={normal:i},c=0;c<o.BV.length;c++){var p=o.BV[c],f=e[p];h[p]=(0,r.retrieve2)(a?a.getFormattedLabel(s,p,null,l,f&&f.get("formatter")):null,i)}return h}function c(t,e,n,a){n=n||l;for(var s=t instanceof i.Ay,c=!1,p=0;p<o.wV.length;p++){var g=e[o.wV[p]];if(g&&g.getShallow("show")){c=!0;break}}var y=s?t:t.getTextContent();if(c){!s&&(y||(y=new i.Ay,t.setTextContent(y)),t.stateProxy&&(y.stateProxy=t.stateProxy));var v=h(n,e),m=e.normal,_=!!m.getShallow("show"),w=f(m,a&&a.normal,n,!1,!s);w.text=v.normal,s||t.setTextConfig(d(m,n,!1));for(var p=0;p<o.BV.length;p++){var b=o.BV[p],g=e[b];if(g){var S=y.ensureState(b),A=!!(0,r.retrieve2)(g.getShallow("show"),_);A!==_&&(S.ignore=!A),S.style=f(g,a&&a[b],n,!0,!s),S.style.text=v[b],s||(t.ensureState(b).textConfig=d(g,n,!0))}}y.silent=!!m.getShallow("silent"),null!=y.style.x&&(w.x=y.style.x),null!=y.style.y&&(w.y=y.style.y),y.ignore=!_,y.useStyle(w),y.dirty(),n.enableTextSetter&&(x(y).setLabelText=function(t){var i=h(n,e,t);u(y,i)})}else y&&(y.ignore=!0);t.dirty()}function p(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<o.BV.length;i++){var r=o.BV[i];n[r]=t.getModel([r,e])}return n}function f(t,e,n,i,o){var a={};return function(t,e,n,i,o){n=n||l;var a,s=e.ecModel,u=s&&s.option.textStyle,h=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||l).rich;if(n){e=e||{};for(var i=(0,r.keys)(n),o=0;o<i.length;o++)e[i[o]]=1}t=t.parentModel}return e}(e);if(h){for(var c in a={},h)if(h.hasOwnProperty(c)){var p=e.getModel(["rich",c]);m(a[c]={},p,u,n,i,o,!1,!0)}}a&&(t.rich=a);var f=e.get("overflow");f&&(t.overflow=f);var d=e.get("minMargin");null!=d&&(t.margin=d),m(t,e,u,n,i,o,!0,!1)}(a,t,n,i,o),e&&(0,r.extend)(a,e),a}function d(t,e,n){e=e||{};var i,o={},a=t.getShallow("rotate"),s=(0,r.retrieve2)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=a&&(o.rotation=a*=Math.PI/180),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],y=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function m(t,e,n,i,o,a,s,u){n=!o&&n||l;var h=i&&i.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),f=(0,r.retrieve2)(e.getShallow("opacity"),n.opacity);("inherit"===c||"auto"===c)&&(c=h||null),("inherit"===p||"auto"===p)&&(p=h||null),a||(c=c||n.color,p=p||n.textBorderColor),null!=c&&(t.fill=c),null!=p&&(t.stroke=p);var d=(0,r.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(t.lineWidth=d);var m=(0,r.retrieve2)(e.getShallow("textBorderType"),n.textBorderType);null!=m&&(t.lineDash=m);var _=(0,r.retrieve2)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=_&&(t.lineDashOffset=_),o||null!=f||u||(f=i&&i.defaultOpacity),null!=f&&(t.opacity=f),o||a||null!=t.fill||!i.inheritColor||(t.fill=i.inheritColor);for(var x=0;x<g.length;x++){var w=g[x],b=(0,r.retrieve2)(e.getShallow(w),n[w]);null!=b&&(t[w]=b)}for(var x=0;x<y.length;x++){var w=y[x],b=e.getShallow(w);null!=b&&(t[w]=b)}if(null==t.verticalAlign){var S=e.getShallow("baseline");null!=S&&(t.verticalAlign=S)}if(!s||!i.disableBox){for(var x=0;x<v.length;x++){var w=v[x],b=e.getShallow(w);null!=b&&(t[w]=b)}var A=e.getShallow("borderType");null!=A&&(t.borderDash=A),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&h&&(t.backgroundColor=h),("auto"===t.borderColor||"inherit"===t.borderColor)&&h&&(t.borderColor=h)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,r.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 x=(0,a.$r)();function w(t,e,n,i){if(t){var r=x(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function b(t,e,n,i,o){var l=x(t);if(l.valueAnimation&&l.prevValue!==l.value){var c=l.defaultInterpolatedText,p=(0,r.retrieve2)(l.interpolatedValue,l.prevValue),f=l.value;t.percent=0,(null==l.prevValue?s.LW:s.oi)(t,{percent:1},i,e,null,function(i){var r=(0,a.Il)(n,l.precision,p,f,i);l.interpolatedValue=1===i?null:r,u(t,h({labelDataIndex:e,labelFetcher:o,defaultText:c?c(r):r+""},l.statesModels,r))})}}},30730:function(t,e,n){n.d(e,{DL:()=>c,GL:()=>p,KF:()=>v,VA:()=>g,Zp:()=>y,vq:()=>f});var i=n(4884),r=n(21916),o=n(41402),a=n(65132),s=n(30095),l="__ec_stack_";function u(t){return t.get("stack")||l+t.seriesIndex}function h(t){return t.dim+t.index}function c(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<t.count||0;a++)e.push((0,i.defaults)({bandWidth:o,axisKey:r,stackId:l+a},t));for(var s=d(e),u=[],a=0;a<t.count;a++){var h=s[r][l+a];h.offsetCenter=h.offset+h.width/2,u.push(h)}return u}}function p(t,e){var n=[];return e.eachSeriesByType(t,function(t){m(t)&&n.push(t)}),n}function f(t){var e=function(t){var e={};(0,i.each)(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);e[r]?e[r].push(u):e[r]=[u]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(o){o.sort(function(t,e){return t-e});for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}(t),n=[];return(0,i.each)(t,function(t){var i,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=e[o.dim+"_"+o.index],l=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),p=Math.abs(c[1]-c[0]);i=s?l/p*s:l}else{var f=t.getData();i=Math.abs(a[1]-a[0])/f.count()}var d=(0,r.lo)(t.get("barWidth"),i),g=(0,r.lo)(t.get("barMaxWidth"),i),y=(0,r.lo)(t.get("barMinWidth")||(_(t)?.5:1),i),v=t.get("barGap"),m=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:g,barMinWidth:y,barGap:v,barCategoryGap:m,axisKey:h(o),stackId:u(t)})}),d(n)}function d(t){var e={};(0,i.each)(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;!a[s]&&o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var p=t.barCategoryGap;null!=p&&(o.categoryGap=p)});var n={};return(0,i.each)(e,function(t,e){n[e]={};var o,a=t.stacks,s=t.bandWidth,l=t.categoryGap;null==l&&(l=Math.max(35-4*(0,i.keys)(a).length,15)+"%");var u=(0,r.lo)(l,s),h=(0,r.lo)(t.gap,1),c=t.remainedWidth,p=t.autoWidthCount,f=(c-u)/(p+(p-1)*h);f=Math.max(f,0),(0,i.each)(a,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){var i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,c-=i+h*i,p--}else{var i=f;e&&e<i&&(i=Math.min(e,c)),n&&n>i&&(i=n),i!==f&&(t.width=i,c-=i+h*i,p--)}}),f=Math.max(f=(c-u)/(p+(p-1)*h),0);var d=0;(0,i.each)(a,function(t,e){t.width||(t.width=f),o=t,d+=t.width*(1+h)}),o&&(d-=o.width*h);var g=-d/2;(0,i.each)(a,function(t,i){n[e][i]=n[e][i]||{bandWidth:s,offset:g,width:t.width},g+=t.width*(1+h)})}),n}function g(t,e,n){if(t&&e){var i=t[h(e)];return null!=i&&null!=n?i[u(n)]:i}}function y(t,e){var n=p(t,e),r=f(n);(0,i.each)(n,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=u(t),o=r[h(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})})}function v(t){return{seriesType:t,plan:(0,a.A)(),reset:function(t){if(m(t)){var e,n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),a=i.getOtherAxis(r),l=n.getDimensionIndex(n.mapDimension(a.dim)),u=n.getDimensionIndex(n.mapDimension(r.dim)),h=t.get("showBackground",!0),c=n.mapDimension(a.dim),p=n.getCalculationInfo("stackResultDimension"),f=(0,o.sJ)(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),g=(e=a).toGlobalCoord(e.dataToCoord(+("log"===e.type))),y=_(t),v=t.get("barMinHeight")||0,x=p&&n.getDimensionIndex(p),w=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(t,e){for(var n,r=t.count,o=y&&(0,s.J)(3*r),a=y&&h&&(0,s.J)(3*r),c=y&&(0,s.J)(r),p=i.master.getRect(),m=d?p.width:p.height,_=e.getStore(),S=0;null!=(n=t.next());){var A=_.get(f?x:l,n),M=_.get(u,n),T=g,C=void 0;f&&(C=A-_.get(l,n));var k=void 0,I=void 0,D=void 0,O=void 0;if(d){var P=i.dataToPoint([A,M]);if(f){var L=i.dataToPoint([C,M]);T=L[0]}k=T,I=P[1]+b,D=P[0]-T,O=w,Math.abs(D)<v&&(D=(D<0?-1:1)*v)}else{var P=i.dataToPoint([M,A]);if(f){var L=i.dataToPoint([M,C]);T=L[1]}k=P[0]+b,I=T,D=w,Math.abs(O=P[1]-T)<v&&(O=(O<=0?-1:1)*v)}y?(o[S]=k,o[S+1]=I,o[S+2]=d?D:O,a&&(a[S]=d?p.x:k,a[S+1]=d?I:p.y,a[S+2]=m),c[n]=n):e.setItemLayout(n,{x:k,y:I,width:D,height:O}),S+=3}y&&e.setLayout({largePoints:o,largeDataIndices:c,largeBackgroundPoints:a,valueAxisHorizontal:d})}}}}}}function m(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function _(t){return t.pipelineContext&&t.pipelineContext.large}},97548:function(t,e,n){n.d(e,{A:()=>s});var i=n(4884),r=n(65132),o=n(41402),a=n(30095);function s(t,e){return{seriesType:t,plan:(0,r.A)(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,s=t.pipelineContext,l=e||s.large;if(r){var u=(0,i.map)(r.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=u.length,c=n.getCalculationInfo("stackResultDimension");(0,o.sJ)(n,u[0])&&(u[0]=c),(0,o.sJ)(n,u[1])&&(u[1]=c);var p=n.getStore(),f=n.getDimensionIndex(u[0]),d=n.getDimensionIndex(u[1]);return h&&{progress:function(t,e){for(var n=t.end-t.start,i=l&&(0,a.J)(n*h),o=[],s=[],u=t.start,c=0;u<t.end;u++){var g=void 0;if(1===h){var y=p.get(f,u);g=r.dataToPoint(y,null,s)}else o[0]=p.get(f,u),o[1]=p.get(d,u),g=r.dataToPoint(o,null,s);l?(i[c++]=g[0],i[c++]=g[1]):e.setItemLayout(u,g.slice())}l&&e.setLayout("points",i)}}}}}}},1514:function(t,e,n){n.d(e,{I:()=>o,l:()=>s});var i=n(4884),r=n(84124);function o(t,e){(0,i.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(e,r,o){var a,s;e=(0,i.extend)({},e),o.dispatchAction((0,i.extend)(e,{type:n[1],seriesIndex:(a=e,s=[],r.eachComponent({mainType:"series",subType:t,query:a},function(t){s.push(t.seriesIndex)}),s)}))})})}function a(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,l=a.selected,u=0;u<l.length;u++)if(l[u].seriesIndex===e){var h=t.getData(),c=(0,r.le)(h,a.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:(0,i.isArray)(c)?h.getName(c[0]):h.getName(c),selected:(0,i.isString)(o)?o:(0,i.extend)({},o)})}})}function s(t,e,n){t.on("selectchanged",function(t){var i=n.getModel();t.isFromClick?(a("map","selectchanged",e,i,t),a("pie","selectchanged",e,i,t)):"select"===t.fromAction?(a("map","selected",e,i,t),a("pie","selected",e,i,t)):"unselect"===t.fromAction&&(a("map","unselected",e,i,t),a("pie","unselected",e,i,t))})}},36805:function(t,e,n){n.d(e,{A:()=>p});var i=n(31831),r=n(4884),o=n(25744),a=n(3818),s=n(18191),l=n(84124),u=n(10675),h=(0,l.$r)(),c=function(t){var e;function n(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=a.$Q("ec_cpt_model"),r}return(0,i.C6)(n,t),n.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=u.ad(this),i=n?u.vs(t):{},o=e.getTheme();r.merge(t,o.get(this.mainType)),r.merge(t,this.getDefaultOption()),n&&u.YA(t,i,n)},n.prototype.mergeOption=function(t,e){r.merge(this.option,t,!0);var n=u.ad(this);n&&u.YA(this.option,t,n)},n.prototype.optionUpdated=function(t,e){},n.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,s._E)(t))return t.defaultOption;var e=h(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r.merge(a,n[l],!0);e.defaultOption=a}return e.defaultOption},n.prototype.getReferringComponents=function(t,e){return(0,l.JO)(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},n.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},n.prototype.getZLevelKey=function(){return""},n.prototype.setZLevel=function(t){this.option.zlevel=t},n.protoInitialize=void((e=n.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),n}(o.A);(0,s.q7)(c,o.A),(0,s.tQ)(c),a.A6(c),a.vf(c,function(t){var e=[];return r.each(c.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=r.map(e,function(t){return(0,s.CC)(t).main}),"dataset"!==t&&0>=r.indexOf(e,"dataset")&&e.unshift("dataset"),e});let p=c},25744:function(t,e,n){n.d(e,{A:()=>v});var i=n(35209),r=n(18191),o=(0,n(80266).A)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return o(this,t,e)},t}(),s=n(73394),l=n(52384),u=["textStyle","color"],h=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],c=new l.Ay,p=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(u):null)},t.prototype.getFont=function(){return(0,s.c8)({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<h.length;n++)e[h[n]]=this.getShallow(h[n]);return c.useStyle(e),c.update(),c.getBoundingRect()},t}(),f=n(81275),d=n(52228),g=n(4884),y=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){(0,g.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;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor((0,g.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(!i.A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else 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&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();(0,r.gq)(y),(0,r.Od)(y),(0,g.mixin)(y,f.J),(0,g.mixin)(y,d.s),(0,g.mixin)(y,a),(0,g.mixin)(y,p);let v=y},55785:function(t,e,n){n.d(e,{A:()=>T,U:()=>v});var i=n(31831),r=n(4884),o=n(35209),a=n(84124),s=n(36805),l=n(57699),u=n(42345),h=n(10675),c=n(87189),p=n(18191),f=n(66282),d=n(6941),g=a.$r();function y(t,e){return t.getName(e)||t.getId(e)}var v="__universalTransitionEnabled",m=function(t){var e;function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return(0,i.C6)(n,t),n.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,c.U)({count:x,reset:w}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(g(this).sourceManager=new f.R(this)).prepareSource();var i=this.getInitialData(t,n);S(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,_(this),this._initSelectedMapFromData(i)},n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,h.ad)(this),i=n?(0,h.vs)(t):{},o=this.subType;s.A.hasClass(o)&&(o+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),a.M5(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,h.YA)(t,i,n)},n.prototype.mergeOption=function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,h.ad)(this);n&&(0,h.YA)(this.option,t,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,e);S(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,_(this),this._initSelectedMapFromData(o)},n.prototype.fillDataTextStyle=function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a.M5(t[n],"label",e)},n.prototype.getInitialData=function(t,e){},n.prototype.appendData=function(t){this.getRawData().appendData(t.data)},n.prototype.getData=function(t){var e=M(this);if(!e)return g(this).data;var n=e.context.data;return null==t?n:n.getLinkedData(t)},n.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},n.prototype.setData=function(t){var e=M(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}g(this).data=t},n.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return r.createHashMap(t)},n.prototype.getSourceManager=function(){return g(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return g(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get("colorBy")||"series"},n.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},n.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},n.prototype.formatTooltip=function(t,e,n){return(0,d.J)({series:this,dataIndex:t,multipleSeries:e})},n.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o.A.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=l.X.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},n.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},n.prototype.getProgressive=function(){return this.get("progressive")},n.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},n.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},n.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){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=y(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},n.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)},n.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=r.keys(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];o>=0&&n.push(o)}return n},n.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[y(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},n.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},n.prototype._innerSelect=function(t,e){var n,i,o=this.option,a=o.selectedMode,s=e.length;if(a&&s){if("series"===a)o.selectedMap="all";else if("multiple"===a){r.isObject(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u<s;u++){var h=e[u],c=y(t,h);l[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(h)}}else if("single"===a||!0===a){var p=e[s-1],c=y(t,p);(n={})[c]=!0,o.selectedMap=n,this._selectedDataIndicesMap=((i={})[c]=t.getRawIndex(p),i)}}},n.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)}},n.registerClass=function(t){return s.A.registerClass(t)},n.protoInitialize=void((e=n.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),n}(s.A);function _(t){var e,n,i,o=t.name;a.O0(t)||(t.name=(n=(e=t.getRawData()).mapDimensionsAll("seriesName"),i=[],r.each(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")||o))}function x(t){return t.model.getRawData().count()}function w(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),b}function b(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S(t,e){r.each(r.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,r.curry(A,e))})}function A(t,e){var n=M(t);return n&&n.setOutputEnd((e||this).count()),e}function M(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}}r.mixin(m,u.J),r.mixin(m,l.X),(0,p.q7)(m,s.A);let T=m},20020:function(t,e,n){n.d(e,{S:()=>o,a:()=>a});var i=n(4884),r=(0,i.createHashMap)();function o(t,e){(0,i.assert)(null==r.get(t)&&e),r.set(t,e)}function a(t,e,n){var i=r.get(e);if(!i)return n;var o=i(t);return o?n.concat(o):n}},42345:function(t,e,n){n.d(e,{J:()=>s,L:()=>l});var i=n(4884),r=n(98609),o=n(3306),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,h=this.mainType,c="series"===h,p=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,u){e=e||"normal";var h=this.getData(n),c=this.getDataParams(t,n);return(u&&(c.value=u.interpolatedValue),null!=s&&i.isArray(c.value)&&(c.value=c.value[s]),l||(l=h.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),i.isFunction(l))?(c.status=e,c.dimensionIndex=s,l(c)):i.isString(l)?(0,o.YK)(l,c).replace(a,function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,r.QE)(h,t,a);if(u&&i.isArray(u.interpolatedValue)){var l=h.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return(0,r.QE)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},52228:function(t,e,n){n.d(e,{L:()=>r,s:()=>a});var i=n(80266),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},81275:function(t,e,n){n.d(e,{J:()=>a,m:()=>r});var i=n(80266),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},80266:function(t,e,n){n.d(e,{A:()=>r});var i=n(4884);function r(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,r,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(r&&i.indexOf(r,l)>=0||o&&0>i.indexOf(o,l))){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}},57699:function(t,e,n){n.d(e,{X:()=>a,x:()=>s});var i=n(84124),r=(0,i.$r)(),o=(0,i.$r)(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){return l(this,r,(0,i.qB)(this.get("color",!0)),this.get("colorLayer",!0),t,e,n)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=r)(t).paletteIdx=0,e(t).paletteNameMap={}},t}();function s(t,e,n,r){var a=(0,i.qB)(t.get(["aria","decal","decals"]));return l(t,o,a,null,e,n,r)}function l(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}},50821:function(t,e,n){n.d(e,{A:()=>a});var i=n(4884),r={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},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var r=t[i],o=Math.abs(r);o>e&&(e=o,n=r)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},o=function(t){return Math.round(t.length/2)};function a(t){return{seriesType:t,reset:function(t,e,n){var a=t.getData(),s=t.get("sampling"),l=t.coordinateSystem,u=a.count();if(u>10&&"cartesian2d"===l.type&&s){var h=l.getBaseAxis(),c=l.getOtherAxis(h),p=h.getExtent(),f=n.getDevicePixelRatio(),d=Math.round(u/(Math.abs(p[1]-p[0])*(f||1)));if(isFinite(d)&&d>1){"lttb"===s&&t.setData(a.lttbDownSample(a.mapDimension(c.dim),1/d));var g=void 0;(0,i.isString)(s)?g=r[s]:(0,i.isFunction)(s)&&(g=s),g&&t.setData(a.downSample(a.mapDimension(c.dim),1/d,g,o))}}}}}},37573:function(t,e,n){n.d(e,{a:()=>v});var i=n(72076),r=n(4884),o=n(74915),a=n(16419),s=n(47865),l=n(22489),u=n(51690),h=n(63154),c=n(46979);function p(t,e,n){var i=c.yh.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var f=function(t){function e(e,n,o){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||i.Y5,"string"==typeof e?a=p(e,n,o):r.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var l=a.style;return l&&(r.disableUserSelect(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=p("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,o=[],a=this.maxRepaintRectCount,s=!1,l=new u.A(0,0,0,0);function c(t){if(!(!t.isFinite()||t.isZero()))if(0===o.length){var e=new u.A(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,h=0;h<o.length;++h){var c=o[h];if(c.intersect(t)){var p=new u.A(0,0,0,0);p.copy(c),p.union(t),o[h]=p,n=!0;break}if(s){l.copy(t),l.union(c);var f=t.width*t.height,d=c.width*c.height,g=l.width*l.height-f-d;g<i&&(i=g,r=h)}}if(s&&(o[r].union(t),n=!0),!n){var e=new u.A(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var f=t[p];if(f){var d=f.shouldBePainted(n,i,!0,!0),g=f.__isRendered&&(f.__dirty&h.M||!d)?f.getPrevPaintRect():null;g&&c(g);var y=d&&(f.__dirty&h.M||!f.__isRendered)?f.getPaintRect():null;y&&c(y)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var f=e[p],d=f&&f.shouldBePainted(n,i,!0,!0);if(f&&(!d||!f.__zr)&&f.__isRendered){var g=f.getPrevPaintRect();g&&c(g)}}do{r=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var v=p+1;v<o.length;)o[p].intersect(o[v])?(r=!0,o[p].union(o[v]),o.splice(v,1)):v++;p++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,o=this.ctx,a=i.width,u=i.height;e=e||this.clearColor;var h=this.motionBlur&&!t,c=this.lastFrameAlpha,p=this.dpr,f=this;h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/p,u/p));var d=this.domBack;function g(t,n,i,a){if(o.clearRect(t,n,i,a),e&&"transparent"!==e){var u=void 0;r.isGradientObject(e)?(u=(e.global||e.__width===i&&e.__height===a)&&e.__canvasGradient||(0,s.Ff)(o,e,{x:0,y:0,width:i,height:a}),e.__canvasGradient=u,e.__width=i,e.__height=a):r.isImagePatternObject(e)&&(e.scaleX=e.scaleX||p,e.scaleY=e.scaleY||p,u=(0,l.ZQ)(o,e,{dirty:function(){f.setUnpainted(),f.painter.refresh()}})),o.save(),o.fillStyle=u||e,o.fillRect(t,n,i,a),o.restore()}h&&(o.save(),o.globalAlpha=c,o.drawImage(d,t,n,i,a),o.restore())}!n||h?g(0,0,a,u):n.length&&r.each(n,function(t){g(t.x*p,t.y*p,t.width*p,t.height*p)})},e}(a.A),d=n(94263),g=n(35209),y=function(){function t(t,e,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||i.Y5,this._singleCanvas=a,this.root=t,t.style&&(r.disableUserSelect(t),t.innerHTML=""),this.storage=e;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var h=t.width,c=t.height;null!=n.width&&(h=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,t.width=h*this.dpr,t.height=c*this.dpr,this._width=h,this._height=c;var p=new f(t,this,this.dpr);p.__builtin__=!0,p.initContext(),u[314159]=p,p.zlevel=314159,l.push(314159),this._domRoot=t}else{this._width=(0,s.YC)(t,0,n),this._height=(0,s.YC)(t,1,n);var d,g,y,v=this._domRoot=(d=this._width,g=this._height,(y=document.createElement("div")).style.cssText=["position:relative","width:"+d+"px","height:"+g+"px","padding:0;margin:0;border-width:0"].join(";")+";",y);t.appendChild(v)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e,n=t.length,i=this._hoverlayer;if(i&&i.clear(),n){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<n;o++){var a=t[o];a.__inHover&&(i||(i=this._hoverlayer=this.getLayer(1e5)),e||(e=i.ctx).save(),(0,l.V$)(e,a,r,o===n-1))}e&&e.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(1e5)},t.prototype.paintOne=function(t,e){(0,l.Xi)(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer(function(t){t.afterBrush&&t.afterBrush()});else{var s=this;(0,d.A)(function(){s._paintList(t,e,n,i)})}}},t.prototype._compositeManually=function(){var t=this.getLayer(314159).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},t.prototype._doPaintList=function(t,e,n){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&o.push(u)}for(var h=!0,c=!1,p=this,f=0;f<o.length;f++)!function(r){var s,l=o[r],u=l.ctx,f=a&&l.createRepaintRects(t,e,p._width,p._height),d=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,y=g&&Date.now(),v=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,f);else if(d===l.__startIndex){var m=t[d];m.incremental&&m.notClear&&!n||l.clear(!1,v,f)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=d;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(c=!0),i._doPaintEl(r,l,a,e,n,s===l.__endIndex-1),g&&Date.now()-y>15)break}n.prevElClipPaths&&u.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var x=p.dpr,w=0;w<f.length;++w){var b=f[w];u.save(),u.beginPath(),u.rect(b.x*x,b.y*x,b.width*x,b.height*x),u.clip(),_(b),u.restore()}else u.save(),_(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)}(f);return g.A.wxa&&r.each(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:h,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&((0,l.V$)(a,t,r,o),t.setPrevPaintRect(s))}else(0,l.V$)(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=314159);var n=this._layers[t];return n||((n=new f("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?r.merge(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&r.merge(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]){if(e&&(e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh&&1)){if(r>0&&t>i[0]){for(s=0;s<r-1&&(!(i[s]<t)||!(i[s+1]>t));s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){s&&(s.__endIndex!==t&&(s.__dirty=!0),s.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n,i,o=1;o<t.length;o++){var a=t[o];if(a.zlevel!==t[o-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var s=null,l=0;for(i=0;i<t.length;i++){var a=t[i],u=a.zlevel,c=void 0;n!==u&&(n=u,l=0),a.incremental?((c=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,l=1):c=this.getLayer(u+.01*(l>0),this._needsManuallyCompositing),c.__builtin__||r.logError("ZLevel "+u+" has been used by unkown layer "+c.id),c!==s&&(c.__used=!0,c.__startIndex!==i&&(c.__dirty=!0),c.__startIndex=i,c.incremental?c.__drawIndex=-1:c.__drawIndex=i,e(i),s=c),a.__dirty&h.M&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=i))}e(i),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,r.each(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?r.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+.01){var a=this._layers[o];r.merge(a,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r.indexOf(n,t),1))},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;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=(0,s.YC)(r,0,i),e=(0,s.YC)(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(314159).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new f("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;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,u=a.length;s<u;s++){var h=a[s];(0,l.V$)(n,h,o,s===u-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function v(t){t.registerPainter("canvas",y)}},37396:function(t,e,n){n.d(e,{A:()=>h});var i=n(31831),r=n(21916),o=n(3306),a=n(47799),s=n(48497),l=r.LI,u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return(0,i.C6)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.lP(t,this._extent)},e.prototype.normalize=function(t){return s.S8(t,this._extent)},e.prototype.scale=function(t){return s.hs(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.u$(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:l(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=l(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:l(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,u=[],h=(o.value-a.value)/t;s<t-1;){var c=l(a.value+(s+1)*h);c>i[0]&&c<i[1]&&u.push(c),s++}n.push(u)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=r.XV(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(t.value,n,!0);return o.ob(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=s.xh(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=l(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=l(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(a.A);a.A.registerClass(u);let h=u},55724:function(t,e,n){n.d(e,{A:()=>u});var i=n(31831),r=n(47799),o=n(44513),a=n(48497),s=n(4884),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new o.A({})),(0,s.isArray)(i)&&(i=new o.A({categories:(0,s.map)(i,function(t){return(0,s.isObject)(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,i.C6)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,s.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a.lP(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a.S8(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a.hs(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}},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(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r.A);r.A.registerClass(l);let u=l},47799:function(t,e,n){n.d(e,{A:()=>o});var i=n(18191),r=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i.tQ(r);let o=r},16264:function(t,e,n){n.d(e,{A:()=>d});var i=n(31831),r=n(21916),o=n(29456),a=n(48497),s=n(37396),l=n(47799),u=n(4884),h=function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},c=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,i.C6)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,o.GP)(t.value,o.Lm[(0,o.$9)((0,o.ym)(this._minLevelUnit))]||o.Lm.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,o.X_)(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),a=function(t,e,n,i){for(var a=o.F7,s=0,l=[],h=[],c=0,p=0,d=0;d<a.length&&s++<1e4;++d){var g=(0,o.ym)(a[d]);if((0,o.ce)(a[d])&&(!function(t,a,s){var l=[],u=!a.length;if(!function(t,e,n,i){var a=r._U(e),s=r._U(n),l=function(t){return(0,o.g0)(a,t,i)===(0,o.g0)(s,t,i)},u=function(){return l("year")},h=function(){return u()&&l("month")},c=function(){return h()&&l("day")},p=function(){return c()&&l("hour")},f=function(){return p()&&l("minute")},d=function(){return f()&&l("second")};switch(t){case"year":return u();case"month":return h();case"day":return c();case"hour":return p();case"minute":return f();case"second":return d();case"millisecond":return d()&&l("millisecond")}}((0,o.ym)(t),i[0],i[1],n)){u&&(a=[{value:function(t,e,n){var i=new Date(t);switch((0,o.ym)(e)){case"year":case"month":i[(0,o.xu)(n)](0);case"day":i[(0,o.ti)(n)](1);case"hour":i[(0,o.Yd)(n)](0);case"minute":i[(0,o.KF)(n)](0);case"second":i[(0,o.ww)(n)](0),i[(0,o.FP)(n)](0)}return i.getTime()}(new Date(i[0]),t,n)},{value:i[1]}]);for(var h=0;h<a.length-1;h++){var c=a[h].value,p=a[h+1].value;if(c!==p){var d,g,y,v=void 0,m=void 0,_=void 0;switch(t){case"year":v=Math.max(1,Math.round(e/o.CZ/365)),m=(0,o.hY)(n),_=(0,o.tM)(n);break;case"half-year":case"quarter":case"month":v=(d=e/(30*o.CZ))>6?6:d>3?3:d>2?2:1,m=(0,o.jJ)(n),_=(0,o.xu)(n);break;case"week":case"half-week":case"day":v=(g=e/o.CZ)>16?16:g>7.5?7:g>3.5?4:g>1.5?2:1,m=(0,o.bP)(n),_=(0,o.ti)(n);break;case"half-day":case"quarter-day":case"hour":v=(y=e/o.MA)>12?12:y>6?6:y>3.5?4:y>2?2:1,m=(0,o.iC)(n),_=(0,o.Yd)(n);break;case"minute":v=f(e,!0),m=(0,o.yB)(n),_=(0,o.KF)(n);break;case"second":v=f(e,!1),m=(0,o.Wf)(n),_=(0,o.ww)(n);break;case"millisecond":v=r.Cm(e,!0),m=(0,o.Zz)(n),_=(0,o.FP)(n)}!function(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u<n&&u<=i[1];)s.push({value:u}),h+=t,l[o](h),u=l.getTime();s.push({value:u,notAdd:!0})}(v,c,p,m,_,0,l),"year"===t&&s.length>1&&0===h&&s.unshift({value:s[0].value-v})}}for(var h=0;h<l.length;h++)s.push(l[h])}}(a[d],l[l.length-1]||[],h),g!==(a[d+1]?(0,o.ym)(a[d+1]):null))){if(h.length){p=c,h.sort(function(t,e){return t.value-e.value});for(var y=[],v=0;v<h.length;++v){var m=h[v].value;(0===v||h[v-1].value!==m)&&(y.push(h[v]),m>=i[0]&&m<=i[1]&&c++)}var _=(i[1]-i[0])/e;if(c>1.5*_&&p>_/1.5||(l.push(y),c>_||t===a[d]))break}h=[]}}for(var x=(0,u.filter)((0,u.map)(l,function(t){return(0,u.filter)(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),w=[],b=x.length-1,d=0;d<x.length;++d)for(var S=x[d],A=0;A<S.length;++A)w.push({value:S[A].value,level:b-d});w.sort(function(t,e){return t.value-e.value});for(var M=[],d=0;d<w.length;++d)(0===d||w[d].value!==w[d-1].value)&&M.push(w[d]);return M}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(a)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=o.CZ,e[1]+=o.CZ),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-o.CZ}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=p.length,a=Math.min(h(p,this._approxInterval,0,o),o-1);this._interval=p[a][1],this._minLevelUnit=p[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return(0,u.isNumber)(t)?t:+r._U(t)},e.prototype.contain=function(t){return a.lP(this.parse(t),this._extent)},e.prototype.normalize=function(t){return a.S8(this.parse(t),this._extent)},e.prototype.scale=function(t){return a.hs(t,this._extent)},e.type="time",e}(s.A),p=[["second",o.OY],["minute",o.iW],["hour",o.MA],["quarter-day",6*o.MA],["half-day",12*o.MA],["day",1.2*o.CZ],["half-week",3.5*o.CZ],["week",7*o.CZ],["month",31*o.CZ],["quarter",95*o.CZ],["half-year",o.$H/2],["year",o.$H]];function f(t,e){return(t/=e?o.iW:o.OY)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}l.A.registerClass(c);let d=c},48497:function(t,e,n){n.d(e,{S8:()=>h,hs:()=>c,kH:()=>a,lP:()=>u,rf:()=>r,u$:()=>s,xh:()=>o});var i=n(21916);function r(t){return"interval"===t.type||"log"===t.type}function o(t,e,n,r){var o,a,u={},h=t[1]-t[0],c=u.interval=(0,i.Cm)(h/e,!0);null!=n&&c<n&&(c=u.interval=n),null!=r&&c>r&&(c=u.interval=r);var p=u.intervalPrecision=s(c);return o=u.niceTickExtent=[(0,i.LI)(Math.ceil(t[0]/c)*c,p),(0,i.LI)(Math.floor(t[1]/c)*c,p)],a=t,isFinite(o[0])||(o[0]=a[0]),isFinite(o[1])||(o[1]=a[1]),l(o,0,a),l(o,1,a),o[0]>o[1]&&(o[0]=o[1]),u}function a(t){var e=Math.pow(10,(0,i.NX)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.LI)(n*e)}function s(t){return(0,i.XV)(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function u(t,e){return t>=e[0]&&t<=e[1]}function h(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function c(t,e){return t*(e[1]-e[0])+e[0]}},18191:function(t,e,n){n.d(e,{CC:()=>s,Od:()=>p,_E:()=>l,gq:()=>u,q7:()=>h,tQ:()=>g});var i=n(31831),r=n(4884),o="___EC__COMPONENT__CONTAINER___",a="___EC__EXTENDED_CLASS___";function s(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function l(t){return!!(t&&t[a])}function u(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return(e=o,r.isFunction(e)&&/^class\s/.test(Function.prototype.toString.call(e)))?n=function(t){function e(){return t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(o):(n=function(){(t.$constructor||o).apply(this,arguments)},r.inherits(n,this)),r.extend(n.prototype,t),n[a]=!0,n.extend=this.extend,n.superCall=f,n.superApply=d,n.superClass=o,n}}function h(t,e){t.extend=e.extend}var c=Math.round(10*Math.random());function p(t){var e=["__\0is_clz",c++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!!(t&&t[e])}}function f(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 d(t,e,n){return this.superClass.prototype[e].apply(t,n)}function g(t){var e={};t.registerClass=function(t){var n=t.type||t.prototype.type;if(n){r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=n;var i,a,l=s(n);l.sub?l.sub!==o&&(((a=e[(i=l).main])&&a[o]||((a=e[i.main]={})[o]=!0),a)[l.sub]=t):e[l.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[o]&&(r=n?r[n]:null),i&&!r)throw Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=s(t),i=[],a=e[n.main];return a&&a[o]?r.each(a,function(t,e){e!==o&&i.push(t)}):i.push(a),i},t.hasClass=function(t){return!!e[s(t).main]},t.getAllClassMainTypes=function(){var t=[];return r.each(e,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){var n=e[s(t).main];return n&&n[o]}}},3818:function(t,e,n){n.d(e,{$Q:()=>a,A6:()=>s,G_:()=>u,vf:()=>l});var i=n(4884),r=n(18191),o=Math.round(10*Math.random());function a(t){return[t||"",o++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){e[(0,r.CC)(t).main]=n},t.determineSubType=function(n,i){var o=i.type;if(!o){var a=(0,r.CC)(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](i))}return o}}function l(t,e){t.topologicalTravel=function(t,r,o,a){if(t.length){var s,l,u,h=(s=r,l={},u=[],i.each(s,function(t){var r,o,a,h=n(l,t),c=(r=h.originalDeps=e(t),o=s,a=[],i.each(r,function(t){i.indexOf(o,t)>=0&&a.push(t)}),a);h.entryCount=c.length,0===h.entryCount&&u.push(t),i.each(c,function(e){0>i.indexOf(h.predecessor,e)&&h.predecessor.push(e);var r=n(l,e);0>i.indexOf(r.successor,e)&&r.successor.push(t)})}),{graph:l,noEntryList:u}),c=h.graph,p=h.noEntryList,f={};for(i.each(t,function(t){f[t]=!0});p.length;){var d=p.pop(),g=c[d],y=!!f[d];y&&(o.call(a,d,g.originalDeps.slice()),delete f[d]),i.each(g.successor,y?m:v)}i.each(f,function(){throw Error("")})}function v(t){c[t].entryCount--,0===c[t].entryCount&&p.push(t)}function m(t){f[t]=!0,v(t)}};function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}}function u(t,e){return i.merge(i.merge({},t,!0),e,!0)}},34780:function(t,e,n){n.d(e,{w:()=>g});var i=Math.round(9*Math.random()),r="function"==typeof Object.defineProperty,o=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return r?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}(),a=n(14407),s=n(4884),l=n(21916),u=n(60253),h=n(22489),c=n(46979),p=new o,f=new a.Ay(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function g(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&p.delete(t);var o=p.get(t);if(o)return o;var a=(0,s.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"===a.backgroundColor&&(a.backgroundColor=null);var g={repeat:"repeat"};return function(t){for(var e,o,p,g=[n],v=!0,m=0;m<d.length;++m){var _=a[d[m]];if(null!=_&&!(0,s.isArray)(_)&&!(0,s.isString)(_)&&!(0,s.isNumber)(_)&&"boolean"!=typeof _){v=!1;break}g.push(_)}if(v){o=g.join(",")+(r?"-svg":"");var x=f.get(o);x&&(r?t.svgElement=x:t.image=x)}var w=function t(e){if(!e||0===e.length)return[[0,0]];if((0,s.isNumber)(e)){var n=Math.ceil(e);return[[n,n]]}for(var i=!0,r=0;r<e.length;++r)if(!(0,s.isNumber)(e[r])){i=!1;break}if(i)return t([e]);for(var o=[],r=0;r<e.length;++r)if((0,s.isNumber)(e[r])){var n=Math.ceil(e[r]);o.push([n,n])}else{var n=(0,s.map)(e[r],function(t){return Math.ceil(t)});n.length%2==1?o.push(n.concat(n)):o.push(n)}return o}(a.dashArrayX),b=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if((0,s.isNumber)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,s.map)(t,function(t){return Math.ceil(t)});return t.length%2?n.concat(n):n}(a.dashArrayY),S=function t(e){if(!e||0===e.length)return[["rect"]];if((0,s.isString)(e))return[[e]];for(var n=!0,i=0;i<e.length;++i)if(!(0,s.isString)(e[i])){n=!1;break}if(n)return t([e]);for(var r=[],i=0;i<e.length;++i)(0,s.isString)(e[i])?r.push([e[i]]):r.push(e[i]);return r}(a.symbol),A=(e=w,(0,s.map)(e,function(t){return y(t)})),M=y(b),T=!r&&c.yh.createCanvas(),C=r&&{tag:"g",attrs:{},key:"dcl",children:[]},k=function(){for(var t=1,e=0,n=A.length;e<n;++e)t=(0,l.lQ)(t,A[e]);for(var i=1,e=0,n=S.length;e<n;++e)i=(0,l.lQ)(i,S[e].length);t*=i;var r=M*A.length*S.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();T&&(T.width=k.width*n,T.height=k.height*n,p=T.getContext("2d")),function(){p&&(p.clearRect(0,0,T.width,T.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,T.width,T.height)));for(var t=0,e=0;e<b.length;++e)t+=b[e];if(!(t<=0))for(var o=-M,s=0,l=0,c=0;o<k.height;){if(s%2==0){for(var f=l/2%S.length,d=0,g=0,y=0;d<2*k.width;){for(var v=0,e=0;e<w[c].length;++e)v+=w[c][e];if(v<=0)break;if(g%2==0){var m=(1-a.symbolSize)*.5,_=d+w[c][g]*m,x=o+b[s]*m,A=w[c][g]*a.symbolSize,I=b[s]*a.symbolSize,D=y/2%S[f].length;!function(t,e,o,s,l){var c=r?1:n,f=(0,u.v5)(l,t*c,e*c,o*c,s*c,a.color,a.symbolKeepAspect);if(r){var d=i.painter.renderOneToVNode(f);d&&C.children.push(d)}else(0,h.Xi)(p,f)}(_,x,A,I,S[f][D])}d+=w[c][g],++y,++g===w[c].length&&(g=0)}++c===w.length&&(c=0)}o+=b[s],++l,++s===b.length&&(s=0)}}(),v&&f.put(o,T||C),t.image=T,t.svgElement=C,t.svgWidth=k.width,t.svgHeight=k.height}(g),g.rotation=a.rotation,g.scaleX=g.scaleY=r?1:1/n,p.set(t,g),t.dirty=!1,g}function y(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}},26889:function(t,e,n){n.d(e,{R:()=>i});function i(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}},3306:function(t,e,n){n.d(e,{Cb:()=>l,JW:()=>_,QX:()=>u,YK:()=>f,fU:()=>y,he:()=>m,io:()=>d,ob:()=>s,qg:()=>g,x5:()=>v,yC:()=>h});var i=n(4884),r=n(26776),o=n(21916),a=n(29456);function s(t){if(!(0,o.kf)(t))return i.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 l(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 u=i.normalizeCssArray;function h(t,e,n){function r(t){return t&&i.trim(t)?t:"-"}function l(t){return!!(null!=t&&!isNaN(t)&&isFinite(t))}var u="time"===e,h=t instanceof Date;if(u||h){var c=u?(0,o._U)(t):t;if(!isNaN(+c))return(0,a.GP)(c,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(h)return"-"}if("ordinal"===e)return i.isStringSafe(t)?r(t):i.isNumber(t)&&l(t)?t+"":"-";var p=(0,o.Sm)(t);return l(p)?s(p):i.isStringSafe(t)?r(t):"boolean"==typeof t?t+"":"-"}var c=["a","b","c","d","e","f","g"],p=function(t,e){return"{"+t+(null==e?"":e)+"}"};function f(t,e,n){i.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var l=c[s];t=t.replace(p(l),p(l,0))}for(var u=0;u<o;u++)for(var h=0;h<a.length;h++){var f=e[u][a[h]];t=t.replace(p(c[h],u),n?(0,r.Me)(f):f)}return t}function d(t,e,n){return i.each(e,function(e,i){t=t.replace("{"+i+"}",n?(0,r.Me)(e):e)}),t}function g(t,e){var n=i.isString(t)?{color:t,extraCssText:e}:t||{},o=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";return o?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function y(t,e,n){("week"===t||"month"===t||"quarter"===t||"half-year"===t||"year"===t)&&(t="MM-dd\nyyyy");var i=(0,o._U)(e),r=n?"getUTC":"get",s=i[r+"FullYear"](),l=i[r+"Month"]()+1,u=i[r+"Date"](),h=i[r+"Hours"](),c=i[r+"Minutes"](),p=i[r+"Seconds"](),f=i[r+"Milliseconds"]();return t.replace("MM",(0,a.eV)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",(0,a.eV)(s%100+"",2)).replace("dd",(0,a.eV)(u,2)).replace("d",u).replace("hh",(0,a.eV)(h,2)).replace("h",h).replace("mm",(0,a.eV)(c,2)).replace("m",c).replace("ss",(0,a.eV)(p,2)).replace("s",p).replace("SSS",(0,a.eV)(f,3))}function v(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function m(t,e){return e=e||"transparent",i.isString(t)?t:i.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function _(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},59033:function(t,e,n){n.r(e),n.d(e,{Arc:()=>x.A,BezierCurve:()=>_.A,BoundingRect:()=>A.A,Circle:()=>c.A,CompoundPath:()=>w.A,Ellipse:()=>p.A,Group:()=>u.A,Image:()=>l.Ay,IncrementalDisplayable:()=>C.A,Line:()=>m.A,LinearGradient:()=>b.A,OrientedBoundingRect:()=>M.A,Path:()=>a.Ay,Point:()=>T.A,Polygon:()=>g.A,Polyline:()=>y.A,RadialGradient:()=>S.A,Rect:()=>v.A,Ring:()=>d.A,Sector:()=>f.A,Text:()=>h.Ay,applyTransform:()=>Z,clipPointsByRect:()=>Q,clipRectByRect:()=>J,createIcon:()=>tt,extendPath:()=>z,extendShape:()=>N,getShapeClass:()=>F,getTransform:()=>q,groupTransition:()=>$,initProps:()=>O.LW,isElementRemoved:()=>O.LR,lineLineIntersect:()=>tn,linePolygonIntersect:()=>te,makeImage:()=>V,makePath:()=>H,mergePath:()=>G,registerShape:()=>B,removeElement:()=>O.Nz,removeElementWithFadeOut:()=>O.t5,resizePath:()=>U,setTooltipConfig:()=>ti,subPixelOptimize:()=>j,subPixelOptimizeLine:()=>Y,subPixelOptimizeRect:()=>X,transformDirection:()=>K,traverseElements:()=>to,updateProps:()=>O.oi});var i=n(85038),r=n(37817),o=n(28535),a=n(30070),s=n(5486),l=n(64586),u=n(79620),h=n(52384),c=n(2989),p=n(19327),f=n(23917),d=n(26839),g=n(97451),y=n(88297),v=n(63811),m=n(28887),_=n(95163),x=n(76265),w=n(58933),b=n(87142),S=n(12152),A=n(51690),M=n(14230),T=n(45400),C=n(83081),k=n(33915),I=n(4884),D=n(35032),O=n(68532),P=Math.max,L=Math.min,R={};function N(t){return a.Ay.extend(t)}var E=i.Qh;function z(t,e){return E(t,e)}function B(t,e){R[t]=e}function F(t){if(R.hasOwnProperty(t))return R[t]}function H(t,e,n,r){var o=i.UJ(t,e);return n&&("center"===r&&(n=W(n,o.getBoundingRect())),U(o,n)),o}function V(t,e,n){var i=new l.Ay({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(W(e,r))}}});return i}function W(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var G=i.uc;function U(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Y(t,e){return k.eB(t,t,{lineWidth:e}),t}function X(t){return k.Op(t.shape,t.shape,t.style),t}var j=k.M7;function q(t,e){for(var n=r.identity([]);t&&t!==e;)r.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function Z(t,e,n){return e&&!(0,I.isArrayLike)(e)&&(e=s.Ay.getLocalTransform(e)),n&&(e=r.invert([],e)),o.applyTransform([],t,e)}function K(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return Math.abs((o=Z(o,e,n))[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function $(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){!t.isGroup&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),(0,O.oi)(t,i,n,(0,D.z)(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=(0,I.extend)({},t.shape)),e}}function Q(t,e){return(0,I.map)(t,function(t){var n=t[0];n=L(n=P(n,e.x),e.x+e.width);var i=t[1];return[n,i=L(i=P(i,e.y),e.y+e.height)]})}function J(t,e){var n=P(t.x,e.x),i=L(t.x+t.width,e.x+e.width),r=P(t.y,e.y),o=L(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function tt(t,e,n){var i=(0,I.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),(0,I.defaults)(r,n),new l.Ay(i)):H(t.replace("path://",""),i,n,"center")}function te(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(tn(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function tn(t,e,n,i,r,o,a,s){var l,u=n-t,h=i-e,c=a-r,p=s-o,f=c*h-u*p;if((l=f)<=1e-6&&l>=-1e-6)return!1;var d=t-r,g=e-o,y=(d*h-u*g)/f;if(y<0||y>1)return!1;var v=(d*p-c*g)/f;return!(v<0)&&!(v>1)}function ti(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=(0,I.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&(0,I.each)((0,I.keys)(l),function(t){(0,I.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=(0,D.z)(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:(0,I.defaults)({content:i,formatterParams:s},r)}}function tr(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function to(t,e){if(t)if((0,I.isArray)(t))for(var n=0;n<t.length;n++)tr(t[n],e);else tr(t,e)}R.circle=c.A,R.ellipse=p.A,R.sector=f.A,R.ring=d.A,R.polygon=g.A,R.polyline=y.A,R.rect=v.A,R.line=m.A,R.bezierCurve=_.A,R.arc=x.A},35032:function(t,e,n){n.d(e,{a:()=>r,z:()=>i});var i=(0,n(84124).$r)(),r=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,o.ssrType="chart","group"===r.type&&r.traverse(function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"})}}},10675:function(t,e,n){n.d(e,{HU:()=>p,Ir:()=>_,Qf:()=>g,Tj:()=>l,YA:()=>v,aP:()=>c,ad:()=>y,dV:()=>f,m$:()=>d,vs:()=>m});var i=n(4884),r=n(51690),o=n(21916),a=n(3306),s=i.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function h(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect();if("horizontal"===t){var g=p.width+(d?-d.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(d?-d.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+n,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)})}var c=h;function p(t,e,n){var i=e.width,r=e.height,s=(0,o.lo)(t.left,i),l=(0,o.lo)(t.top,r),u=(0,o.lo)(t.right,i),h=(0,o.lo)(t.bottom,r);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.right)))&&(u=i),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(h)||isNaN(parseFloat(t.bottom)))&&(h=r),{width:Math.max(u-s-(n=a.QX(n||0))[1]-n[3],0),height:Math.max(h-l-n[0]-n[2],0)}}function f(t,e,n){n=a.QX(n||0);var i=e.width,s=e.height,l=(0,o.lo)(t.left,i),u=(0,o.lo)(t.top,s),h=(0,o.lo)(t.right,i),c=(0,o.lo)(t.bottom,s),p=(0,o.lo)(t.width,i),f=(0,o.lo)(t.height,s),d=n[2]+n[0],g=n[1]+n[3],y=t.aspect;switch(isNaN(p)&&(p=i-h-g-l),isNaN(f)&&(f=s-c-d-u),null!=y&&(isNaN(p)&&isNaN(f)&&(y>i/s?p=.8*i:f=.8*s),isNaN(p)&&(p=y*f),isNaN(f)&&(f=p/y)),isNaN(l)&&(l=i-h-p-g),isNaN(u)&&(u=s-c-f-d),t.left||t.right){case"center":l=i/2-p/2-n[3];break;case"right":l=i-p-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-d}l=l||0,u=u||0,isNaN(p)&&(p=i-g-l-(h||0)),isNaN(f)&&(f=s-d-u-(c||0));var v=new r.A(l+n[3],u+n[0],p,f);return v.margin=n,v}function d(t,e,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],h=!a||!a.hv||a.hv[1],c=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!u&&!h)return!1;if("raw"===c)l="group"===t.type?new r.A(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var p=t.getLocalTransform();(l=l.clone()).applyTransform(p)}var d=f(i.defaults({width:l.width,height:l.height},e),n,o),g=u?d.x-l.x:0,y=h?d.y-l.y:0;return"raw"===c?(s.x=g,s.y=y):(s.x+=g,s.y+=y),s===t&&t.markRedraw(),!0}function g(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]}function y(t){var e=t.layoutMode||t.constructor.layoutMode;return i.isObject(e)?e:e?{type:e}:null}function v(t,e,n){var r=n&&n.ignoreSize;i.isArray(r)||(r=[r,r]);var o=l(u[0],0),a=l(u[1],1);function l(n,i){var o={},a=0,l={},u=0;if(s(n,function(e){l[e]=t[e]}),s(n,function(t){h(e,t)&&(o[t]=l[t]=e[t]),c(o,t)&&a++,c(l,t)&&u++}),r[i])return c(e,n[1])?l[n[2]]=null:c(e,n[2])&&(l[n[1]]=null),l;if(2===u||!a)return l;if(a>=2)return o;for(var p=0;p<n.length;p++){var f=n[p];if(!h(o,f)&&h(t,f)){o[f]=t[f];break}}return o}function h(t,e){return t.hasOwnProperty(e)}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function p(t,e,n){s(t,function(t){e[t]=n[t]})}p(u[0],t,o),p(u[1],t,a)}function m(t){return _({},t)}function _(t,e){return e&&t&&s(l,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}i.curry(h,"vertical"),i.curry(h,"horizontal")},58391:function(t,e,n){n.d(e,{$8:()=>s,R8:()=>o,aT:()=>a});var i={},r="undefined"!=typeof console&&console.warn&&console.log;function o(t,e){!function(t,e,n){if(r){if(n){if(i[e])return;i[e]=!0}console[t]("[ECharts] "+e)}}("warn",t,e)}function a(t){}function s(t){throw Error(t)}},84124:function(t,e,n){n.d(e,{$r:()=>S,Bq:()=>D,D$:()=>O,D6:()=>w,GX:()=>x,HB:()=>T,Il:()=>R,JO:()=>I,JS:()=>h,M5:()=>u,O0:()=>v,O2:()=>f,S_:()=>_,Sq:()=>L,US:()=>C,UW:()=>k,XJ:()=>P,_e:()=>M,le:()=>b,oh:()=>m,qB:()=>l,vS:()=>y,vj:()=>c,zu:()=>p});var i=n(4884),r=n(35209),o=n(21916),a="series\0",s="\0_ec_\0";function l(t){return t instanceof Array?t:null==t?[]:[t]}function u(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 o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var h=["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 c(t){return!(0,i.isObject)(t)||(0,i.isArray)(t)||t instanceof Date?t:t.value}function p(t){return(0,i.isObject)(t)&&!(t instanceof Array)}function f(t,e,n){var r,o,s,l,u,h,c,p,f,y,v,_,x,w="normalMerge"===n,b="replaceMerge"===n,S="replaceAll"===n;t=t||[],e=(e||[]).slice();var A=(0,i.createHashMap)();(0,i.each)(e,function(t,n){if(!(0,i.isObject)(t)){e[n]=null;return}});var M=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||m(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,A,n);return(w||b)&&(r=M,o=t,s=A,l=e,(0,i.each)(l,function(t,e){if(t&&null!=t.id){var n=g(t.id),a=s.get(n);if(null!=a){var u=r[a];(0,i.assert)(!u.newOption,'Duplicated option on id "'+n+'".'),u.newOption=t,u.existing=o[a],l[e]=null}}})),w&&(u=M,h=e,(0,i.each)(h,function(t,e){if(t&&null!=t.name)for(var n=0;n<u.length;n++){var i=u[n].existing;if(!u[n].newOption&&i&&(null==i.id||null==t.id)&&!m(t)&&!m(i)&&d("name",i,t)){u[n].newOption=t,h[e]=null;return}}})),w||b?(c=M,p=e,f=b,(0,i.each)(p,function(t){if(t){for(var e,n=0;(e=c[n])&&(e.newOption||m(e.existing)||e.existing&&null!=t.id&&!d("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=f):c.push({newOption:t,brandNew:f,existing:null,keyInfo:null}),n++}})):S&&(y=M,v=e,(0,i.each)(v,function(t){y.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),_=M,x=(0,i.createHashMap)(),(0,i.each)(_,function(t){var e=t.existing;e&&x.set(e.id,t)}),(0,i.each)(_,function(t){var e=t.newOption;(0,i.assert)(!e||null==e.id||!x.get(e.id)||x.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&x.set(e.id,t),t.keyInfo||(t.keyInfo={})}),(0,i.each)(_,function(t,e){var n=t.existing,r=t.newOption,o=t.keyInfo;if((0,i.isObject)(r)){if(o.name=null!=r.name?g(r.name):n?n.name:a+e,n)o.id=g(n.id);else if(null!=r.id)o.id=g(r.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(x.get(o.id))}x.set(o.id,t)}}),M}function d(t,e,n){var i=y(e[t],null),r=y(n[t],null);return null!=i&&null!=r&&i===r}function g(t){return y(t,"")}function y(t,e){return null==t?e:(0,i.isString)(t)?t:(0,i.isNumber)(t)||(0,i.isStringSafe)(t)?t+"":e}function v(t){var e=t.name;return!!(e&&e.indexOf(a))}function m(t){return t&&null!=t.id&&0===g(t.id).indexOf(s)}function _(t){return s+t}function x(t,e,n){(0,i.each)(t,function(t){var r,o,a,s,l=t.newOption;(0,i.isObject)(l)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(r=e,o=l,a=t.existing,s=n,o.type?o.type:a?a.subType:s.determineSubType(r,o)))})}function w(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=y(t[i].seriesId,null);if(null==o)return;for(var a=l(t[i].dataIndex),s=n&&n[o],u=0,h=a.length;u<h;u++){var c=a[u];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function b(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,i.isArray)(e.dataIndex)?(0,i.map)(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,i.isArray)(e.name)?(0,i.map)(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function S(){var t="__ec_inner_"+A++;return function(e){return e[t]||(e[t]={})}}var A=(0,o.IH)();function M(t,e,n){var i=T(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,i){var r=I(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]}),a}function T(t,e){if((0,i.isString)(t)){var n,r={};r[t+"Index"]=0,n=r}else n=t;var o=(0,i.createHashMap)(),a={},s=!1;return(0,i.each)(n,function(t,n){if("dataIndex"===n||"dataIndexInside"===n){a[n]=t;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],u=(r[2]||"").toLowerCase();!l||!u||e&&e.includeMainTypes&&0>(0,i.indexOf)(e.includeMainTypes,l)||(s=s||!!l,(o.get(l)||o.set(l,{}))[u]=t)}),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var C={useDefault:!0,enableAll:!1,enableNone:!1},k={useDefault:!1,enableAll:!0,enableNone:!0};function I(t,e,n,r){r=r||C;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var u=void 0;return l.models=r.useDefault&&(u=t.getComponent(e))?[u]:[],l}return"none"===o||!1===o?((0,i.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[]):("all"===o&&((0,i.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=t.queryComponents({mainType:e,index:o,id:a,name:s})),l}function D(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function O(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function P(t){return"auto"===t?r.A.domSupported?"html":"richText":t||"html"}function L(t,e){var n=(0,i.createHashMap)(),r=[];return(0,i.each)(t,function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)}),{keys:r,buckets:n}}function R(t,e,n,r,a){var s=null==e||"auto"===e;if(null==r)return r;if((0,i.isNumber)(r)){var l,u=(r-(l=n||0))*a+l;return(0,o.LI)(u,s?Math.max((0,o.XV)(n||0),(0,o.XV)(r)):e)}if((0,i.isString)(r))return a<1?n:r;for(var h=[],c=Math.max(n?n.length:0,r.length),p=0;p<c;++p){var f=t.getDimensionInfo(p);if(f&&"ordinal"===f.type)h[p]=(a<1&&n?n:r)[p];else{var d=n&&n[p]?n[p]:0,g=r[p],u=(g-d)*a+d;h[p]=(0,o.LI)(u,s?Math.max((0,o.XV)(d),(0,o.XV)(g)):e)}}return h}},21916:function(t,e,n){n.d(e,{Cb:()=>r,Cm:()=>w,IH:()=>T,Is:()=>d,LI:()=>a,NX:()=>x,Sm:()=>A,Tr:()=>f,XV:()=>l,Y6:()=>s,YV:()=>b,_7:()=>g,_U:()=>m,au:()=>_,dh:()=>y,hb:()=>h,kM:()=>p,kf:()=>M,lQ:()=>C,lo:()=>o,sL:()=>S,wp:()=>c,y6:()=>u});var i=n(4884);function r(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(i){if(l>0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function o(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return i.isString(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function a(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function s(t){return t.sort(function(t,e){return t-e}),t}function l(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return u(t)}function u(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf(".");return Math.max(0,(o<0?0:r-1-o)-i)}function h(t,e){var n=Math.log,i=Math.LN10,r=Math.min(Math.max(-Math.floor(n(t[1]-t[0])/i)+Math.round(n(Math.abs(e[1]-e[0]))/i),0),20);return isFinite(r)?r:20}function c(t,e,n){return t[e]&&p(t,n)[e]||0}function p(t,e){var n=i.reduce(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var r=Math.pow(10,e),o=i.map(t,function(t){return(isNaN(t)?0:t)/n*r*100}),a=100*r,s=i.map(o,function(t){return Math.floor(t)}),l=i.reduce(s,function(t,e){return t+e},0),u=i.map(o,function(t,e){return t-s[e]});l<a;){for(var h=-1/0,c=null,p=0,f=u.length;p<f;++p)u[p]>h&&(h=u[p],c=p);++s[c],u[c]=0,++l}return i.map(s,function(t){return t/r})}function f(t,e){var n=Math.max(l(t),l(e)),i=t+e;return n>20?i:a(i,n)}var d=0x1fffffffffffff;function g(t){var e=2*Math.PI;return(t%e+e)%e}function y(t){return t>-1e-4&&t<1e-4}var v=/^(?:(\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 m(t){if(t instanceof Date)return t;if(i.isString(t)){var e=v.exec(t);if(!e)return new Date(NaN);if(!e[8])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);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 null==t?new Date(NaN):new Date(Math.round(t))}function _(t){return Math.pow(10,x(t))}function x(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function w(t,e){var n=x(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function b(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function S(t){t.sort(function(t,e){return!function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?1:-1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t}function A(t){var e=parseFloat(t);return e==t&&(0!==e||!i.isString(t)||0>=t.indexOf("x"))?e:NaN}function M(t){return!isNaN(A(t))}function T(){return Math.round(9*Math.random())}function C(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}},72059:function(t,e,n){n.d(e,{BV:()=>d,CA:()=>y,DW:()=>L,Du:()=>Y,HY:()=>E,Iz:()=>Z,JC:()=>F,JI:()=>H,Lm:()=>tt,Lv:()=>_,Lx:()=>tu,Mx:()=>tr,PW:()=>m,Pk:()=>O,Q6:()=>w,QX:()=>B,SD:()=>z,T$:()=>th,Tl:()=>j,U2:()=>x,_m:()=>q,_n:()=>tl,e3:()=>f,fz:()=>tc,gR:()=>te,gd:()=>V,h5:()=>v,iJ:()=>J,ix:()=>to,jA:()=>$,lV:()=>X,mc:()=>Q,ml:()=>ts,qR:()=>G,t6:()=>K,u6:()=>ta,wV:()=>g,zX:()=>p});var i=n(4884),r=n(35032),o=n(34196),a=n(84124),s=n(30070),l=1,u={},h=(0,a.$r)(),c=(0,a.$r)(),p=1,f=2,d=["emphasis","blur","select"],g=["normal","emphasis","blur","select"],y=10,v="highlight",m="downplay",_="select",x="unselect",w="toggleSelect";function b(t){return null!=t&&"none"!==t}function S(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function A(t){S(t,"emphasis",f)}function M(t){t.hoverState===f&&S(t,"normal",0)}function T(t){S(t,"blur",p)}function C(t){t.hoverState===p&&S(t,"normal",0)}function k(t){t.selected=!0}function I(t){t.selected=!1}function D(t,e,n){e(t,n),t.isGroup&&t.traverse(function(t){e(t,n)})}function O(t,e){switch(e){case"emphasis":t.hoverState=f;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function P(t,e){var n,r,a,l,u,c=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var a=n&&(0,i.indexOf)(n,"select")>=0,l=!1;if(t instanceof s.Ay){var u=h(t),c=a&&u.selectFill||u.normalFill,p=a&&u.selectStroke||u.normalStroke;if(b(c)||b(p)){var f=(r=r||{}).style||{};"inherit"===f.fill?(l=!0,r=(0,i.extend)({},r),(f=(0,i.extend)({},f)).fill=c):!b(f.fill)&&b(c)?(l=!0,r=(0,i.extend)({},r),(f=(0,i.extend)({},f)).fill=(0,o.liftColor)(c)):!b(f.stroke)&&b(p)&&(l||(r=(0,i.extend)({},r),f=(0,i.extend)({},f)),f.stroke=(0,o.liftColor)(p)),r.style=f}}if(r&&null==r.z2){l||(r=(0,i.extend)({},r));var d=t.z2EmphasisLift;r.z2=t.z2+(null!=d?d:y)}return r}(this,0,e,c);else if("blur"===t)return n=c,r=(0,i.indexOf)(this.currentStates,t)>=0,a=this.style.opacity,l=r?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&0>u.__fromStateTransition.indexOf(n)&&"style"===u.targetName&&u.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(u=(n=n||{}).style||{}).opacity&&(n=(0,i.extend)({},n),u=(0,i.extend)({opacity:r?a:.1*l.opacity},u),n.style=u),n;else if("select"===t){var p=c;if(p&&null==p.z2){p=(0,i.extend)({},p);var f=this.z2SelectLift;p.z2=this.z2+(null!=f?f:9)}return p}}return c}function L(t){t.stateProxy=P;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=P),n&&(n.stateProxy=P)}function R(t,e){W(t,e)||t.__highByOuter||D(t,A)}function N(t,e){W(t,e)||t.__highByOuter||D(t,M)}function E(t,e){t.__highByOuter|=1<<(e||0),D(t,A)}function z(t,e){(t.__highByOuter&=~(1<<(e||0)))||D(t,M)}function B(t){D(t,T)}function F(t){D(t,C)}function H(t){D(t,k)}function V(t){D(t,I)}function W(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function G(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(e,i){var o=c(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);a||r.push(s),o.isBlured&&(s.group.traverse(function(t){C(t)}),a&&n.push(i)),o.isBlured=!1}),(0,i.each)(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function U(t,e,n,r){var o=r.getModel();function a(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&F(i)}}if((n=n||"coordinateSystem",null!=t)&&e&&"none"!==e){var s=o.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];o.eachSeries(function(t){var o=s===t,h=t.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&l?h===l:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!p||"series"===e&&o)){if(r.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&o&&"self"===e||T(t)}),(0,i.isArrayLike)(e))a(t.getData(),e);else if((0,i.isObject)(e))for(var f=(0,i.keys)(e),d=0;d<f.length;d++)a(t.getData(f[d]),e[f[d]]);u.push(t),c(t).isBlured=!0}}),o.eachComponent(function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,o)}})}}function Y(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){c(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(t){T(t)})}}}function X(t,e,n){var o=t.seriesIndex,s=t.getData(e.dataType);if(s){var l=(0,a.le)(s,e);l=((0,i.isArray)(l)?l[0]:l)||0;var u=s.getItemGraphicEl(l);if(!u)for(var h=s.count(),c=0;!u&&c<h;)u=s.getItemGraphicEl(c++);if(u){var p=(0,r.z)(u);U(o,p.focus,p.blurScope,n)}else{var f=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=f&&U(o,f,d,n)}}}function j(t,e,n,i){var o,a={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return a;var s=i.getModel().getComponent(t,e);if(!s)return a;var l=i.getViewOfComponentModel(s);if(!l||!l.findHighDownDispatchers)return a;for(var u=l.findHighDownDispatchers(n),h=0;h<u.length;h++)if("self"===(0,r.z)(u[h]).focus){o=!0;break}return{focusSelf:o,dispatchers:u}}function q(t,e,n){var o=(0,r.z)(t),a=j(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&Y(o.componentMainType,o.componentIndex,n),(0,i.each)(s,function(t){return R(t,e)})):(U(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&Y(o.componentMainType,o.componentIndex,n),R(t,e))}function Z(t,e,n){G(n);var o=(0,r.z)(t),a=j(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?(0,i.each)(a,function(t){return N(t,e)}):N(t,e)}function K(t,e,n){if(tu(e)){var r=e.dataType,o=t.getData(r),s=(0,a.le)(o,e);(0,i.isArray)(s)||(s=[s]),t[e.type===w?"toggleSelect":e.type===_?"select":"unselect"](s,r)}}function $(t){var e=t.getAllData();(0,i.each)(e,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(e,n){t.isSelected(n,i)?H(e):V(e)})})}function Q(t){var e=[];return t.eachSeries(function(t){var n=t.getAllData();(0,i.each)(n,function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function J(t,e,n){to(t,!0),D(t,L),te(t,e,n)}function tt(t,e,n,i){i?to(t,!1):J(t,e,n)}function te(t,e,n){var i=(0,r.z)(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var tn=["emphasis","blur","select"],ti={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function tr(t,e,n,i){n=n||"itemStyle";for(var r=0;r<tn.length;r++){var o=tn[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[ti[n]]()}}function to(t,e){var n=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!n)}function ta(t){return!!(t&&t.__highDownDispatcher)}function ts(t,e,n){var i=(0,r.z)(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function tl(t){var e=u[t];return null==e&&l<=32&&(e=u[t]=l++),e}function tu(t){var e=t.type;return e===_||e===x||e===w}function th(t){var e=t.type;return e===v||e===m}function tc(t){var e=h(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}},60253:function(t,e,n){n.d(e,{$V:()=>m,hV:()=>S,v5:()=>w,xU:()=>b});var i=n(4884),r=n(30070),o=n(28887),a=n(63811),s=n(2989),l=n(59033),u=n(51690),h=n(23960),c=n(21916),p=r.Ay.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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),f=r.Ay.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,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),d=r.Ay.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,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),f=.6*a,d=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*f,l+s+p*f,n,i-d,n,i),t.bezierCurveTo(n,i-d,n-h+c*f,l+s+p*f,n-h,l+s),t.closePath()}}),g=r.Ay.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,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),y={line:o.A,rect:a.A,roundRect:a.A,square:a.A,circle:s.A,diamond:f,pin:d,arrow:g,triangle:p},v={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 o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},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}},m={};(0,i.each)(y,function(t,e){m[e]=new t});var _=r.Ay.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=(0,h.X4)(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=m[i];r||(r=m[i="rect"]),v[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function x(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function w(t,e,n,i,r,o,a){var s,h=0===t.indexOf("empty");return h&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?l.makeImage(t.slice(8),new u.A(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new u.A(e,n,i,r),a?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=h,s.setColor=x,o&&s.setColor(o),s}function b(t){return(0,i.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function S(t,e){if(null!=t)return(0,i.isArray)(t)||(t=[t,t]),[(0,c.lo)(t[0],e[0])||0,(0,c.lo)((0,i.retrieve2)(t[1],t[0]),e[1])||0]}},89425:function(t,e,n){n.d(e,{IU:()=>l,N:()=>s,nF:()=>a});var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function a(t,e,n){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,t.apply(o,a||[])}e=e||0;var p=function(){for(var t=[],p=0;p<arguments.length;p++)t[p]=arguments[p];i=new Date().getTime(),o=this,a=t;var f=s||e,d=s||n;s=null,r=i-(d?l:u)-f,clearTimeout(h),d?h=setTimeout(c,f):r>=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(t){s=t},p}function s(t,e,n,s){var l=t[e];if(l){var u=l[i]||l,h=l[o];if(l[r]!==n||h!==s){if(null==n||!s)return t[e]=u;(l=t[e]=a(u,n,"debounce"===s))[i]=u,l[o]=s,l[r]=n}return l}}function l(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},29456:function(t,e,n){n.d(e,{$9:()=>x,$H:()=>c,CZ:()=>h,F7:()=>y,FP:()=>B,GP:()=>w,KF:()=>E,Lm:()=>d,MA:()=>u,OY:()=>s,Wf:()=>D,X_:()=>b,Yd:()=>N,Zz:()=>O,bP:()=>C,ce:()=>_,eV:()=>v,g0:()=>A,hY:()=>M,iC:()=>k,iW:()=>l,jJ:()=>T,tM:()=>P,ti:()=>R,ww:()=>z,xu:()=>L,yB:()=>I,ym:()=>m});var i=n(4884),r=n(21916),o=n(35396),a=n(25744),s=1e3,l=6e4,u=36e5,h=864e5,c=31536e6,p={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},f="{yyyy}-{MM}-{dd}",d={year:"{yyyy}",month:"{yyyy}-{MM}",day:f,hour:f+" "+p.hour,minute:f+" "+p.minute,second:f+" "+p.second,millisecond:p.none},g=["year","month","day","hour","minute","second","millisecond"],y=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return t+="","0000".substr(0,e-t.length)+t}function m(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 _(t){return t===m(t)}function x(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function w(t,e,n,i){var s=r._U(t),l=s[M(n)](),u=s[T(n)]()+1,h=Math.floor((u-1)/3)+1,c=s[C(n)](),p=s["get"+(n?"UTC":"")+"Day"](),f=s[k(n)](),d=(f-1)%12+1,g=s[I(n)](),y=s[D(n)](),m=s[O(n)](),_=(i instanceof a.A?i:(0,o.A4)(i||o.Lv)||(0,o.pr)()).getModel("time"),x=_.get("month"),w=_.get("monthAbbr"),b=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,v(l%100+"",2)).replace(/{Q}/g,h+"").replace(/{MMMM}/g,x[u-1]).replace(/{MMM}/g,w[u-1]).replace(/{MM}/g,v(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,v(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,b[p]).replace(/{ee}/g,S[p]).replace(/{e}/g,p+"").replace(/{HH}/g,v(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,v(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(y,2)).replace(/{s}/g,y+"").replace(/{SSS}/g,v(m,3)).replace(/{S}/g,m+"")}function b(t,e,n,r,o){var a=null;if(i.isString(n))a=n;else if(i.isFunction(n))a=n(t.value,e,{level:t.level});else{var s=i.extend({},p);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var u=n?!1===n.inherit?n:i.defaults(n,s):s,h=S(t.value,o);if(u[h])a=u[h];else if(u.inherit){for(var c=y.indexOf(h),l=c-1;l>=0;--l)if(u[h]){a=u[h];break}a=a||s.none}if(i.isArray(a)){var f=null==t.level?0:t.level>=0?t.level:a.length+t.level;f=Math.min(f,a.length-1),a=a[f]}}return w(new Date(t.value),a,o,r)}function S(t,e){var n=r._U(t),i=n[T(e)]()+1,o=n[C(e)](),a=n[k(e)](),s=n[I(e)](),l=n[D(e)](),u=0===n[O(e)](),h=u&&0===l,c=h&&0===s,p=c&&0===a,f=p&&1===o;if(f&&1===i)return"year";if(f)return"month";if(p)return"day";if(c)return"hour";if(h)return"minute";else if(u)return"second";else return"millisecond"}function A(t,e,n){var o=i.isNumber(t)?r._U(t):t;switch(e=e||S(t,n)){case"year":return o[M(n)]();case"half-year":return+(o[T(n)]()>=6);case"quarter":return Math.floor((o[T(n)]()+1)/4);case"month":return o[T(n)]();case"day":return o[C(n)]();case"half-day":return o[k(n)]()/24;case"hour":return o[k(n)]();case"minute":return o[I(n)]();case"second":return o[D(n)]();case"millisecond":return o[O(n)]()}}function M(t){return t?"getUTCFullYear":"getFullYear"}function T(t){return t?"getUTCMonth":"getMonth"}function C(t){return t?"getUTCDate":"getDate"}function k(t){return t?"getUTCHours":"getHours"}function I(t){return t?"getUTCMinutes":"getMinutes"}function D(t){return t?"getUTCSeconds":"getSeconds"}function O(t){return t?"getUTCMilliseconds":"getMilliseconds"}function P(t){return t?"setUTCFullYear":"setFullYear"}function L(t){return t?"setUTCMonth":"setMonth"}function R(t){return t?"setUTCDate":"setDate"}function N(t){return t?"setUTCHours":"setHours"}function E(t){return t?"setUTCMinutes":"setMinutes"}function z(t){return t?"setUTCSeconds":"setSeconds"}function B(t){return t?"setUTCMilliseconds":"setMilliseconds"}},95056:function(t,e,n){n.d(e,{Km:()=>o,Pe:()=>i,Wk:()=>a,XO:()=>l,i_:()=>h,mK:()=>r,oC:()=>c,t1:()=>s,vm:()=>u});var i=(0,n(4884).createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),r="original",o="arrayRows",a="objectRows",s="keyedColumns",l="typedArray",u="unknown",h="column",c="row"},30095:function(t,e,n){n.d(e,{J:()=>a});var i=n(4884),r="undefined"!=typeof Float32Array,o=r?Float32Array:Array;function a(t){return(0,i.isArray)(t)?r?new Float32Array(t):t:new o(t)}},31440:function(t,e,n){n.d(e,{A:()=>x});var i=n(4884),r=n(79620),o=n(3818),a=n(18191),s=n(84124),l=n(72059),u=n(87189),h=n(65132),c=n(59033),p=s.$r(),f=(0,h.A)(),d=function(){function t(){this.group=new r.A,this.uid=o.$Q("viewChart"),this.renderTask=(0,u.U)({plan:v,reset:m}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&y(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&y(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.updateLayout=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){(0,c.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){p(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function g(t,e,n){t&&(0,l.u6)(t)&&("emphasis"===e?l.HY:l.SD)(t,n)}function y(t,e,n){var r=s.le(t,e),o=e&&null!=e.highlightKey?(0,l._n)(e.highlightKey):null;null!=r?(0,i.each)(s.qB(r),function(e){g(t.getItemGraphicEl(e),n,o)}):t.eachItemGraphicEl(function(t){g(t,n,o)})}function v(t){return f(t.model)}function m(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&p(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),_[l]}a.gq(d,["dispose"]),a.tQ(d);var _={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)}}};let x=d},43583:function(t,e,n){n.d(e,{A:()=>s});var i=n(79620),r=n(3818),o=n(18191),a=function(){function t(){this.group=new i.A,this.uid=r.$Q("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}();o.gq(a),o.tQ(a);let s=a},80153:function(t,e,n){function i(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function r(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function o(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[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)}}n.d(e,{Ez:()=>i,oZ:()=>o,rI:()=>r})},16476:function(t,e,n){n.d(e,{A:()=>x});var i=n(5486),r=n(83390),o=n(51690),a=n(16419),s=n(23960),l=n(4884),u=n(72076),h=n(34196),c=n(63154),p="__zr_normal__",f=i.Wx.concat(["ignore"]),d=(0,l.reduce)(i.Wx,function(t,e){return t[e]=!0,t},{ignore:!1}),g={},y=new o.A(0,0,0,0),v=function(){function t(t){this.id=(0,l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,l=!1;r.parent=i?this:null;var u=!1;if(r.copyTransform(e),null!=n.position){n.layoutRect?y.copy(n.layoutRect):y.copy(this.getBoundingRect()),i||y.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,y):(0,s.X4)(g,n,y),r.x=g.x,r.y=g.y,o=g.align,a=g.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var p=void 0,f=void 0;"center"===h?(p=.5*y.width,f=.5*y.height):(p=(0,s.lo)(h[0],y.width),f=(0,s.lo)(h[1],y.height)),u=!0,r.originX=-r.x+p+(i?0:y.x),r.originY=-r.y+f+(i?0:y.y)}}null!=n.rotation&&(r.rotation=n.rotation);var d=n.offset;d&&(r.x+=d[0],r.y+=d[1],u||(r.originX=-d[0],r.originY=-d[1]));var v=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,x=void 0,w=void 0;v&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,(null==_||"auto"===_)&&(_=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(_),w=!0)):(_=n.outsideFill,x=n.outsideStroke,(null==_||"auto"===_)&&(_=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(_),w=!0)),((_=_||"#000")!==m.fill||x!==m.stroke||w!==m.autoStroke||o!==m.align||a!==m.verticalAlign)&&(l=!0,m.fill=_,m.stroke=x,m.autoStroke=w,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=c.M,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.el:u._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,h.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+255*!r*(1-i);return n[3]=1,(0,h.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.isObject)(t))for(var n=(0,l.keys)(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!i.getLoop()&&(!r||r===p)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,f)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(p,!1,t)},t.prototype.useState=function(t,e,n,i){var r,o=t===p;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!((0,l.indexOf)(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void(0,l.logError)("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var u=!!(r&&r.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,f=this._textGuide;return h&&h.useState(t,e,n,u),f&&f.useState(t,e,n,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.M),r}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&i.push(u)}var h=i[o-1],p=!!(h&&h.hoverLayer||n);p&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,e,p),y&&y.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~c.M)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=(0,l.indexOf)(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,l.indexOf)(i,t),o=(0,l.indexOf)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];(0,l.extend)(n,r),r.textConfig&&(e=e||{},(0,l.extend)(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=(0,l.extend)({},i?this.textConfig:n.textConfig),(0,l.extend)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,h=0;h<f.length;h++){var c=f[h],p=r&&d[c];e&&null!=e[c]?p?(u=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(p?(u=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(var h=0;h<this.animators.length;h++){var g=this.animators[h],y=g.targetName;g.getLoop()||g.__changeFinalValue(y?(e||n)[y]:e||n)}u&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new i.Ay,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,l.extend)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=c.M;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this,o=new r.A(i,e,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var e=i.animators,n=(0,l.indexOf)(e,t);n>=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){m(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){m(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=m(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function n(t,n,i,r){Object.defineProperty(e,t,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=c.M,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function m(t,e,n,i,o){var a=[];!function t(e,n,i,o,a,s,u,h){for(var c=(0,l.keys)(o),p=a.duration,f=a.delay,d=a.additive,g=a.setToFinal,y=!(0,l.isObject)(s),v=e.animators,m=[],x=0;x<c.length;x++){var w=c[x],b=o[w];if(null!=b&&null!=i[w]&&(y||s[w]))if(!(0,l.isObject)(b)||(0,l.isArrayLike)(b)||(0,l.isGradientObject)(b))m.push(w);else{if(n){h||(i[w]=b,e.updateDuringAnimation(n));continue}t(e,w,i[w],b,a,s&&s[w],u,h)}else h||(i[w]=b,e.updateDuringAnimation(n),m.push(w))}var S=m.length;if(!d&&S)for(var A=0;A<v.length;A++){var M=v[A];if(M.targetName===n&&M.stopTracks(m)){var T=(0,l.indexOf)(v,M);v.splice(T,1)}}if(a.force||(S=(m=(0,l.filter)(m,function(t){var e,n;return!((e=o[t])===(n=i[t])||(0,l.isArrayLike)(e)&&(0,l.isArrayLike)(n)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,n))})).length),S>0||a.force&&!u.length){var C=void 0,k=void 0,I=void 0;if(h){k={},g&&(C={});for(var A=0;A<S;A++){var w=m[A];k[w]=i[w],g?C[w]=o[w]:i[w]=o[w]}}else if(g){I={};for(var A=0;A<S;A++){var w=m[A];I[w]=(0,r.F)(i[w]),function(t,e,n){if((0,l.isArrayLike)(e[n]))if((0,l.isArrayLike)(t[n])||(t[n]=[]),(0,l.isTypedArray)(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),_(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if((0,l.isArrayLike)(r[0]))for(var s=r[0].length,u=0;u<a;u++)o[u]?_(o[u],r[u],s):o[u]=Array.prototype.slice.call(r[u]);else _(o,r,a);o.length=r.length}else t[n]=e[n]}(i,o,w)}}var M=new r.A(i,!1,!1,d?(0,l.filter)(v,function(t){return t.targetName===n}):null);M.targetName=n,a.scope&&(M.scope=a.scope),g&&C&&M.whenWithKeys(0,C,m),I&&M.whenWithKeys(0,I,m),M.whenWithKeys(null==p?500:p,h?k:o,m).delay(f||0),e.addAnimator(M,n),u.push(M)}}(t,"",t,e,n=n||{},i,a,o);var s=a.length,u=!1,h=n.done,c=n.aborted,p=function(){u=!0,--s<=0&&(u?h&&h():c&&c())},f=function(){--s<=0&&(u?h&&h():c&&c())};!s&&h&&h(),a.length>0&&n.during&&a[0].during(function(t,e){n.during(e)});for(var d=0;d<a.length;d++){var g=a[d];p&&g.done(p),f&&g.aborted(f),n.force&&g.duration(n.duration),g.start(n.easing)}return a}function _(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}(0,l.mixin)(v,a.A),(0,l.mixin)(v,i.Ay);let x=v},83390:function(t,e,n){n.d(e,{F:()=>f,A:()=>_});var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}},r=n(4884),o=n(65978),a=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||r.noop,this.ondestroy=t.ondestroy||r.noop,this.onrestart=t.onrestart||r.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-i%n,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,r.isFunction)(t)?t:i[t]||(0,o.w)(t)},t}(),s=n(34196),l=n(33553),u=Array.prototype.slice;function h(t,e,n,i){for(var r,o=e.length,a=0;a<o;a++)t[a]=(r=e[a],(n[a]-r)*i+r);return t}function c(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function p(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function f(t){if((0,r.isArrayLike)(t)){var e=t.length;if((0,r.isArrayLike)(t[0])){for(var n=[],i=0;i<e;i++)n.push(u.call(t[i]));return n}return u.call(t)}return t}function d(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function g(t){return 4===t||5===t}function y(t){return 1===t||2===t}var v=[0,0,0,0],m=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,u=a.length,h=!1,c=6,p=e;if((0,r.isArrayLike)(e)){var f=(0,r.isArrayLike)(e&&e[0])?2:1;c=f,(1!==f||(0,r.isNumber)(e[0]))&&(2!==f||(0,r.isNumber)(e[0][0]))||(h=!0)}else if((0,r.isNumber)(e)&&!(0,r.eqNaN)(e))c=0;else if((0,r.isString)(e))if(isNaN(+e)){var d=s.parse(e);d&&(p=d,c=3)}else c=0;else if((0,r.isGradientObject)(e)){var g=(0,r.extend)({},p);g.colorStops=(0,r.map)(e.colorStops,function(t){return{offset:t.offset,color:s.parse(t.color)}}),(0,l.OS)(e)?c=4:(0,l.OH)(e)&&(c=5),p=g}0===u?this.valType=c:(c!==this.valType||6===c)&&(h=!0),this.discrete=this.discrete||h;var y={time:t,value:p,rawValue:e,percent:0};return n&&(y.easing=n,y.easingFunc=(0,r.isFunction)(n)?n:i[n]||(0,o.w)(n)),a.push(y),y},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=y(i),l=g(i),h=0;h<r;h++){var f=n[h],d=f.value,v=o.value;f.percent=f.time/t,!a&&(s&&h!==r-1?function(t,e,n){if(t.push&&e.push){var i=t.length,r=e.length;if(i!==r)if(i>r)t.length=r;else for(var o=i;o<r;o++)t.push(1===n?e[o]:u.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===n)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(d,v,i):l&&function(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}(d.colorStops,v.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var m=n[0].value,h=0;h<r;h++)0===i?n[h].additiveValue=n[h].value-m:3===i?n[h].additiveValue=c([],n[h].value,m,-1):y(i)&&(n[h].additiveValue=1===i?c([],n[h].value,m,-1):p([],n[h].value,m,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,c=u.length,p=this.propName,f=3===l,m=this._lastFr,_=Math.min;if(1===c)i=o=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=_(m+1,c-1);n>=0&&!(u[n].percent<=e);n--);n=_(n,c-2)}else{for(n=m;n<c&&!(u[n].percent>e);n++);n=_(n-1,c-2)}o=u[n+1],i=u[n]}if(i&&o){this._lastFr=n,this._lastFrP=e;var x=o.percent-i.percent,w=0===x?1:_((e-i.percent)/x,1);o.easingFunc&&(w=o.easingFunc(w));var b=a?this._additiveValue:f?v:t[p];if((y(l)||f)&&!b&&(b=this._additiveValue=[]),this.discrete)t[p]=w<1?i.rawValue:o.rawValue;else if(y(l))1===l?h(b,i[s],o[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(n[a][l]-s)*i+s)}}(b,i[s],o[s],w);else if(g(l)){var S,A,M,T,C,k=i[s],I=o[s],D=4===l;(t[p]={type:D?"linear":"radial",x:(S=k.x,(I.x-S)*w+S),y:(A=k.y,(I.y-A)*w+A),colorStops:(0,r.map)(k.colorStops,function(t,e){var n,i=I.colorStops[e];return{offset:(n=t.offset,(i.offset-n)*w+n),color:d(h([],t.color,i.color,w))}}),global:I.global},D)?(t[p].x2=(M=k.x2,(I.x2-M)*w+M),t[p].y2=(T=k.y2,(I.y2-T)*w+T)):t[p].r=(C=k.r,(I.r-C)*w+C)}else if(f)h(b,i[s],o[s],w),a||(t[p]=d(b));else{var O,P=(O=i[s],(o[s]-O)*w+O);a?this._additiveValue=P:t[p]=P}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(s.parse(t[n],v),c(v,v,i,1),t[n]=d(v)):1===e?c(t[n],t[n],i,1):2===e&&p(t[n],t[n],i,1)},t}();let _=function(){function t(t,e,n,i){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i)?(0,r.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,(0,r.keys)(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new m(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var h=u.keyframes,c=h[h.length-1];l=c&&c.value,3===u.valType&&l&&(l=d(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,f(l),i),this._trackKeys.push(a)}s.addKeyframe(t,f(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,h=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[h-1];c&&(e._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var p=new a({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return(0,r.map)(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=f(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,r.keys)(t);for(var n=0;n<e.length;n++){var i=e[n],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}()},65978:function(t,e,n){n.d(e,{w:()=>a});var i=n(26989),r=n(4884),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),u=+(0,r.trim)(n[3]);if(isNaN(a+s+l+u))return;var h=[];return function(t){return t<=0?0:t>=1?1:(0,i._E)(0,a,l,1,t,h)&&(0,i.Yb)(0,s,u,1,h[0])}}}},94263:function(t,e,n){n.d(e,{A:()=>i});let i=n(35209).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},49020:function(t,e,n){n.d(e,{V:()=>r});var i=n(4884);function r(t){var e,n,r=t.style,o=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.map)(o,function(t){return t/s}),a/=s)}return[o,a]}},22489:function(t,e,n){n.d(e,{V$:()=>I,Xi:()=>k,ZQ:()=>x});var i=n(38513),r=n(40843),o=n(6945),a=n(47865),s=n(30070),l=n(64586),u=n(27575),h=n(4884),c=n(49020),p=n(63154),f=n(46979),d=new r.A(!0);function g(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function y(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function m(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 _(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 x(t,e,n){var i=(0,o.OD)(e.image,e.__image,n);if((0,o.xA)(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)*h.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var w=["shadowBlur","shadowOffsetX","shadowOffsetY"],b=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){T(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.oN.opacity:s}(r||e.blend!==n.blend)&&(a||(T(t,o),a=!0),t.globalCompositeOperation=e.blend||i.oN.blend);for(var l=0;l<w.length;l++){var u=w[l];(r||e[u]!==n[u])&&(a||(T(t,o),a=!0),t[u]=t.dpr*(e[u]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(T(t,o),a=!0),t.shadowColor=e.shadowColor||i.oN.shadowColor),a}function A(t,e,n,i,r){var o=C(e,r.inHover),a=i?null:n&&C(n,r.inHover)||{};if(o===a)return!1;var s=S(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(T(t,r),s=!0),y(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(T(t,r),s=!0),y(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(T(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(T(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<b.length;u++){var h=b[u],c=h[0];(i||o[c]!==a[c])&&(s||(T(t,r),s=!0),t[c]=o[c]||h[1])}return s}function M(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 T(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function C(t,e){return e&&t.__hoverStyle||t.style}function k(t,e){I(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function I(t,e,n,i){var r,h=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~p.M,e.__isRendered=!1;return}var y=e.__clipPaths,w=n.prevElClipPaths,b=!1,k=!1;if(!w||(0,a.KU)(y,w)){if(w&&w.length&&(T(t,n),t.restore(),k=b=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),y&&y.length){T(t,n),t.save();for(var D=!1,O=0;O<y.length;O++){var P=y[O];D=D||P.isZeroArea(),M(t,P),t.beginPath(),P.buildPath(t,P.shape),t.clip()}n.allClipped=D,b=!0}n.prevElClipPaths=y}if(n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var L=n.prevEl;L||(k=b=!0);var R=e instanceof s.Ay&&e.autoBatch&&(z=v(E=e.style),B=g(E),!(E.lineDash||!(z^B)||z&&"string"!=typeof E.fill||B&&"string"!=typeof E.stroke||E.strokePercent<1||E.strokeOpacity<1||E.fillOpacity<1));!b&&(F=L.transform,h&&F?h[0]===F[0]&&h[1]===F[1]&&h[2]===F[2]&&h[3]===F[3]&&h[4]===F[4]&&h[5]===F[5]:+(!h&&!F))?R||T(t,n):(T(t,n),M(t,e));var N=C(e,n.inHover);if(e instanceof s.Ay)1!==n.lastDrawType&&(k=!0,n.lastDrawType=1),A(t,e,L,k,n),R&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o,s,l=g(n),u=v(n),h=n.strokePercent,f=h<1,y=!e.path;(!e.silent||f)&&y&&e.createPathProxy();var w=e.path||d,b=e.__dirty;if(!i){var S=n.fill,A=n.stroke,M=u&&!!S.colorStops,T=l&&!!A.colorStops,C=u&&!!S.image,k=l&&!!A.image,I=void 0,D=void 0,O=void 0,P=void 0,L=void 0;(M||T)&&(L=e.getBoundingRect()),M&&(I=b?(0,a.Ff)(t,S,L):e.__canvasFillGradient,e.__canvasFillGradient=I),T&&(D=b?(0,a.Ff)(t,A,L):e.__canvasStrokeGradient,e.__canvasStrokeGradient=D),C&&(O=b||!e.__canvasFillPattern?x(t,S,e):e.__canvasFillPattern,e.__canvasFillPattern=O),k&&(P=b||!e.__canvasStrokePattern?x(t,A,e):e.__canvasStrokePattern,e.__canvasStrokePattern=O),M?t.fillStyle=I:C&&(O?t.fillStyle=O:u=!1),T?t.strokeStyle=D:k&&(P?t.strokeStyle=P:l=!1)}var R=e.getGlobalScale();w.setScale(R[0],R[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(o=(r=(0,c.V)(e))[0],s=r[1]);var N=!0;(y||b&p.Dl)&&(w.setDPR(t.dpr),f?w.setContext(null):(w.setContext(t),N=!1),w.reset(),e.buildPath(w,e.shape,i),w.toStatic(),e.pathUpdated()),N&&w.rebuildPath(t,f?h:1),o&&(t.setLineDash(o),t.lineDashOffset=s),!i&&(n.strokeFirst?(l&&_(t,n),u&&m(t,n)):(u&&m(t,n),l&&_(t,n))),o&&t.setLineDash([])}(t,e,N,R),R&&(n.batchFill=N.fill||"",n.batchStroke=N.stroke||"");else if(e instanceof u.A){3!==n.lastDrawType&&(k=!0,n.lastDrawType=3),A(t,e,L,k,n);var E,z,B,F,H,V=N.text;if(null!=V&&(V+=""),V){t.font=N.font||f.OH,t.textAlign=N.textAlign,t.textBaseline=N.textBaseline;var W=void 0,G=void 0;t.setLineDash&&N.lineDash&&(W=(H=(0,c.V)(e))[0],G=H[1]),W&&(t.setLineDash(W),t.lineDashOffset=G),N.strokeFirst?(g(N)&&t.strokeText(V,N.x,N.y),v(N)&&t.fillText(V,N.x,N.y)):(v(N)&&t.fillText(V,N.x,N.y),g(N)&&t.strokeText(V,N.x,N.y)),W&&t.setLineDash([])}}else e instanceof l.Ay?(2!==n.lastDrawType&&(k=!0,n.lastDrawType=2),r=k,S(t,C(e,n.inHover),L&&C(L,n.inHover),r,n),function(t,e,n){var i=e.__image=(0,o.OD)(n.image,e.__image,e,e.onload);if(i&&(0,o.xA)(i)){var r=n.x||0,a=n.y||0,s=e.getWidth(),l=e.getHeight(),u=i.width/i.height;if(null==s&&null!=l?s=l*u:null==l&&null!=s?l=s/u:null==s&&null==l&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var h=n.sx||0,c=n.sy||0;t.drawImage(i,h,c,n.sWidth,n.sHeight,r,a,s,l)}else if(n.sx&&n.sy){var h=n.sx,c=n.sy,p=s-h,f=l-c;t.drawImage(i,h,c,p,f,r,a,s,l)}else t.drawImage(i,r,a,s,l)}}(t,e,N)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(k=!0,n.lastDrawType=4),function(t,e,n){var i,r,o=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(i=e.getCursor(),r=o.length;i<r;i++){var l=o[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),I(t,l,s,i===r-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,h=a.length;u<h;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),I(t,l,s,u===h-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n));R&&i&&T(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}},47865:function(t,e,n){function i(t){return isFinite(t)}function r(t,e,n){for(var r,o,a,s,l,u,h,c,p,f,d="radial"===e.type?(a=Math.min(r=n.width,o=n.height),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,u=null==e.r?.5:e.r,e.global||(s=s*r+n.x,l=l*o+n.y,u*=a),s=i(s)?s:.5,l=i(l)?l:.5,u=u>=0&&i(u)?u:.5,t.createRadialGradient(s,l,0,s,l,u)):(h=null==e.x?0:e.x,c=null==e.x2?1:e.x2,p=null==e.y?0:e.y,f=null==e.y2?0:e.y2,e.global||(h=h*n.width+n.x,c=c*n.width+n.x,p=p*n.height+n.y,f=f*n.height+n.y),h=i(h)?h:0,c=i(c)?c:1,p=i(p)?p:0,f=i(f)?f:0,t.createLinearGradient(h,p,c,f)),g=e.colorStops,y=0;y<g.length;y++)d.addColorStop(g[y].offset,g[y].color);return d}function o(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 a(t){return parseInt(t,10)}function s(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(t);return(t[r]||a(l[i])||a(t.style[i]))-(a(l[o])||0)-(a(l[s])||0)|0}n.d(e,{Ff:()=>r,KU:()=>o,YC:()=>s})},72076:function(t,e,n){n.d(e,{Y5:()=>o,_S:()=>s,el:()=>l,ps:()=>a,tY:()=>u});var i=n(35209),r=1;i.A.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=r,a=.4,s="#333",l="#ccc",u="#eee"},37793:function(t,e,n){n.d(e,{l:()=>i});function i(t,e,n,i,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>i+r||a<e-r&&a<i-r||o>t+r&&o>n+r||o<t-r&&o<n-r)return!1;if(t===n)return Math.abs(o-t)<=r/2;s=(e-i)/(t-n);var u=s*o-a+(l=(t*i-n*e)/(t-n));return u*u/(s*s+1)<=r/2*r/2}},90493:function(t,e,n){n.d(e,{l:()=>r});var i=n(26989);function r(t,e,n,r,o,a,s,l,u){return 0!==s&&(!(u>e+s)||!(u>r+s)||!(u>a+s))&&(!(u<e-s)||!(u<r-s)||!(u<a-s))&&(!(l>t+s)||!(l>n+s)||!(l>o+s))&&(!(l<t-s)||!(l<n-s)||!(l<o-s))&&(0,i.kh)(t,e,n,r,o,a,l,u,null)<=s/2}},23960:function(t,e,n){n.d(e,{NO:()=>u,RG:()=>s,X4:()=>d,ks:()=>p,ll:()=>h,lo:()=>f,sZ:()=>c});var i=n(51690),r=n(14407),o=n(46979),a={};function s(t,e){var n=a[e=e||o.OH];n||(n=a[e]=new r.Ay(500));var i=n.get(t);return null==i&&(i=o.yh.measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var o=s(t,e),a=p(e),l=h(0,o,n),u=c(0,a,r);return new i.A(l,u,o,a)}function u(t,e,n,r){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,r);for(var a=new i.A(0,0,0,0),s=0;s<o.length;s++){var u=l(o[s],e,n,r);0===s?a.copy(u):a.union(u)}return a}function h(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function c(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function p(t){return s("国",t)}function f(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function d(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=f(i[0],n.width),u+=f(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}},50391:function(t,e,n){n.d(e,{n:()=>r});var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}},8163:function(t,e,n){n.d(e,{A:()=>i});function i(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i||i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;(1===a||0===a)&&(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}},51690:function(t,e,n){n.d(e,{A:()=>f});var i=n(37817),r=n(45400),o=Math.min,a=Math.max,s=new r.A,l=new r.A,u=new r.A,h=new r.A,c=new r.A,p=new r.A;let f=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,r=i.create();return i.translate(r,r,[-this.x,-this.y]),i.scale(r,r,[e,n]),i.translate(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this.x,o=this.x+this.width,a=this.y,s=this.y+this.height,l=e.x,u=e.x+e.width,h=e.y,f=e.y+e.height,d=!(o<l||u<i||s<h||f<a);if(n){var g=1/0,y=0,v=Math.abs(o-l),m=Math.abs(u-i),_=Math.abs(s-h),x=Math.abs(f-a),w=Math.min(v,m),b=Math.min(_,x);o<l||u<i?w>y&&(y=w,v<m?r.A.set(p,-v,0):r.A.set(p,m,0)):w<g&&(g=w,v<m?r.A.set(c,v,0):r.A.set(c,-m,0)),s<h||f<a?b>y&&(y=b,_<x?r.A.set(p,0,-_):r.A.set(p,0,x)):w<g&&(g=w,_<x?r.A.set(c,0,_):r.A.set(c,0,-x))}return n&&r.A.copy(n,d?c:p),d},t.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(!i){e!==n&&t.copy(e,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],c=i[3],p=i[4],f=i[5];e.x=n.x*r+p,e.y=n.y*c+f,e.width=n.width*r,e.height=n.height*c,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}s.x=u.x=n.x,s.y=h.y=n.y,l.x=h.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(i),h.transform(i),l.transform(i),u.transform(i),e.x=o(s.x,l.x,u.x,h.x),e.y=o(s.y,l.y,u.y,h.y);var d=a(s.x,l.x,u.x,h.x),g=a(s.y,l.y,u.y,h.y);e.width=d-e.x,e.height=g-e.y},t}()},16419:function(t,e,n){n.d(e,{A:()=>i});let i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}()},14407:function(t,e,n){n.d(e,{Ay:()=>o});var i=function(t){this.value=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}();let o=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,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},14230:function(t,e,n){n.d(e,{A:()=>l});var i=n(45400),r=[0,0],o=[0,0],a=new i.A,s=new i.A;let l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.A;for(var n=0;n<2;n++)this._axes[n]=new i.A;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);i.A.sub(r[0],n[1],n[0]),i.A.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return(a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,a,s,r,-1)&&(n=!1,r))?n:(r||i.A.copy(e,n?a:s),n)},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var u=!0,h=0;h<2;h++){var c=this._axes[h];if(this._getProjMinMaxOnAxis(h,t._corners,r),this._getProjMinMaxOnAxis(h,e._corners,o),r[1]<o[0]||r[0]>o[1]){if(u=!1,s)return u;var p=Math.abs(o[0]-r[1]),f=Math.abs(r[0]-o[1]);Math.min(p,f)>a.len()&&(p<f?i.A.scale(a,c,-p*l):i.A.scale(a,c,f*l))}else if(n){var p=Math.abs(o[0]-r[1]),f=Math.abs(r[0]-o[1]);Math.min(p,f)<n.len()&&(p<f?i.A.scale(n,c,p*l):i.A.scale(n,c,-f*l))}}return u},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(i)+r[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}()},40843:function(t,e,n){n.d(e,{A:()=>T,q:()=>M});var i=n(28535),r=n(51690),o=n(72076),a=n(6091),s=n(26989),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],h=[],c=[],p=[],f=[],d=[],g=Math.min,y=Math.max,v=Math.cos,m=Math.sin,_=Math.abs,x=Math.PI,w=2*x,b="undefined"!=typeof Float32Array,S=[];function A(t){return Math.round(t/x*1e8)/1e8%2*x}function M(t,e){var n=A(t[0]);n<0&&(n+=w);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=w?r=n+w:e&&n-r>=w?r=n-w:!e&&n>r?r=n+(w-A(n-r)):e&&n<r&&(r=n-(w-A(r-n))),t[0]=n,t[1]=r}let T=function(){var t;function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=_(n/o.Y5/t)||0,this._uy=_(n/o.Y5/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,M(S,o),i=S[0];var a=(r=S[1])-i;return this.addData(l.A,t,e,n,n,i,a,0,+!o),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=v(r)*n+t,this._yi=m(r)*n+e,this},e.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},e.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&b&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();b&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},e.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.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}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,b&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){c[0]=c[1]=f[0]=f[1]=Number.MAX_VALUE,p[0]=p[1]=d[0]=d[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,u=0;for(t=0;t<this._len;){var h=e[t++],g=1===t;switch(g&&(n=e[t],o=e[t+1],s=n,u=o),h){case l.M:n=s=e[t++],o=u=e[t++],f[0]=s,f[1]=u,d[0]=s,d[1]=u;break;case l.L:(0,a.j6)(n,o,e[t],e[t+1],f,d),n=e[t++],o=e[t++];break;case l.C:(0,a.BM)(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],f,d),n=e[t++],o=e[t++];break;case l.Q:(0,a.tW)(n,o,e[t++],e[t++],e[t],e[t+1],f,d),n=e[t++],o=e[t++];break;case l.A:var y=e[t++],_=e[t++],x=e[t++],w=e[t++],b=e[t++],S=e[t++]+b;t+=1;var A=!e[t++];g&&(s=v(b)*x+y,u=m(b)*w+_),(0,a.$s)(y,_,x,w,b,S,A,f,d),n=v(S)*x+y,o=m(S)*w+_;break;case l.R:s=n=e[t++],u=o=e[t++];var M=e[t++],T=e[t++];(0,a.j6)(s,u,s+M,u+T,f,d);break;case l.Z:n=s,o=u}i.min(c,c,f),i.max(p,p,d)}return 0===t&&(c[0]=c[1]=p[0]=p[1]=0),new r.A(c[0],c[1],p[0]-c[0],p[1]-c[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var h=this._pathSegLen,c=0,p=0,f=0;f<e;){var d=t[f++],x=1===f;x&&(r=t[f],o=t[f+1],a=r,u=o);var b=-1;switch(d){case l.M:r=a=t[f++],o=u=t[f++];break;case l.L:var S=t[f++],A=t[f++],M=S-r,T=A-o;(_(M)>n||_(T)>i||f===e-1)&&(b=Math.sqrt(M*M+T*T),r=S,o=A);break;case l.C:var C=t[f++],k=t[f++],S=t[f++],A=t[f++],I=t[f++],D=t[f++];b=(0,s.h0)(r,o,C,k,S,A,I,D,10),r=I,o=D;break;case l.Q:var C=t[f++],k=t[f++],S=t[f++],A=t[f++];b=(0,s.d8)(r,o,C,k,S,A,10),r=S,o=A;break;case l.A:var O=t[f++],P=t[f++],L=t[f++],R=t[f++],N=t[f++],E=t[f++],z=E+N;f+=1,x&&(a=v(N)*L+O,u=m(N)*R+P),b=y(L,R)*g(w,Math.abs(E)),r=v(z)*L+O,o=m(z)*R+P;break;case l.R:a=r=t[f++],u=o=t[f++],b=2*t[f++]+2*t[f++];break;case l.Z:var M=a-r,T=u-o;b=Math.sqrt(M*M+T*T),r=a,o=u}b>=0&&(h[p++]=b,c+=b)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,e){var n,i,r,o,a,c,p,f,d,x,w=this.data,b=this._ux,S=this._uy,A=this._len,M=e<1,T=0,C=0,k=0;if(!M||(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,f=e*this._pathLen))t:for(var I=0;I<A;){var D=w[I++],O=1===I;switch(O&&(r=w[I],o=w[I+1],n=r,i=o),D!==l.L&&k>0&&(t.lineTo(d,x),k=0),D){case l.M:n=r=w[I++],i=o=w[I++],t.moveTo(r,o);break;case l.L:a=w[I++],c=w[I++];var P=_(a-r),L=_(c-o);if(P>b||L>S){if(M){var R=p[C++];if(T+R>f){var N=(f-T)/R;t.lineTo(r*(1-N)+a*N,o*(1-N)+c*N);break t}T+=R}t.lineTo(a,c),r=a,o=c,k=0}else{var E=P*P+L*L;E>k&&(d=a,x=c,k=E)}break;case l.C:var z=w[I++],B=w[I++],F=w[I++],H=w[I++],V=w[I++],W=w[I++];if(M){var R=p[C++];if(T+R>f){var N=(f-T)/R;(0,s.YT)(r,z,F,V,N,u),(0,s.YT)(o,B,H,W,N,h),t.bezierCurveTo(u[1],h[1],u[2],h[2],u[3],h[3]);break t}T+=R}t.bezierCurveTo(z,B,F,H,V,W),r=V,o=W;break;case l.Q:var z=w[I++],B=w[I++],F=w[I++],H=w[I++];if(M){var R=p[C++];if(T+R>f){var N=(f-T)/R;(0,s.kx)(r,z,F,N,u),(0,s.kx)(o,B,H,N,h),t.quadraticCurveTo(u[1],h[1],u[2],h[2]);break t}T+=R}t.quadraticCurveTo(z,B,F,H),r=F,o=H;break;case l.A:var G=w[I++],U=w[I++],Y=w[I++],X=w[I++],j=w[I++],q=w[I++],Z=w[I++],K=!w[I++],$=Y>X?Y:X,Q=_(Y-X)>.001,J=j+q,tt=!1;if(M){var R=p[C++];T+R>f&&(J=j+q*(f-T)/R,tt=!0),T+=R}if(Q&&t.ellipse?t.ellipse(G,U,Y,X,Z,j,J,K):t.arc(G,U,$,j,J,K),tt)break t;O&&(n=v(j)*Y+G,i=m(j)*X+U),r=v(J)*Y+G,o=m(J)*X+U;break;case l.R:n=r=w[I],i=o=w[I+1],a=w[I++],c=w[I++];var te=w[I++],tn=w[I++];if(M){var R=p[C++];if(T+R>f){var ti=f-T;t.moveTo(a,c),t.lineTo(a+g(ti,te),c),(ti-=te)>0&&t.lineTo(a+te,c+g(ti,tn)),(ti-=tn)>0&&t.lineTo(a+y(te-ti,0),c+tn),(ti-=te)>0&&t.lineTo(a,c+y(tn-ti,0));break t}T+=R}t.rect(a,c,te,tn);break;case l.Z:if(M){var R=p[C++];if(T+R>f){var N=(f-T)/R;t.lineTo(r*(1-N)+n*N,o*(1-N)+i*N);break t}T+=R}t.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=l,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}()},45400:function(t,e,n){n.d(e,{A:()=>i});let i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},5486:function(t,e,n){n.d(e,{Ay:()=>d,IT:()=>f,Wx:()=>p});var i=n(37817),r=n(28535),o=i.identity;function a(t){return t>5e-5||t<-5e-5}var s=[],l=[],u=i.create(),h=Math.abs,c=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return a(this.rotation)||a(this.x)||a(this.y)||a(this.scaleX-1)||a(this.scaleY-1)||a(this.skewX)||a(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(o(n),this.invTransform=null);return}n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(s);var n=s[0]<0?-1:1,r=s[1]<0?-1:1,o=((s[0]-n)*e+n)/s[0]||0,a=((s[1]-r)*e+r)/s[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||i.create(),i.mul(l,t.invTransform,e),e=l);var n=this.originX,r=this.originY;(n||r)&&(u[4]=n,u[5]=r,i.mul(l,e,u),l[4]-=n,l[5]-=r,e=l),this.setLocalTransform(e)}},e.prototype.getGlobalScale=function(t){var e=this.transform;return(t=t||[],e)?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1])):(t[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&h(t[0]-1)>1e-10&&h(t[3]-1)>1e-10?Math.sqrt(h(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){f(this,t)},e.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,c=t.y,p=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var d=n+s,g=r+l;e[4]=-d*o-p*g*a,e[5]=-g*a-f*d*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=f*o,e[2]=p*a,u&&i.rotate(e,e,u),e[4]+=n+h,e[5]+=r+c,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),p=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n<p.length;n++){var i=p[n];t[i]=e[i]}}let d=c},6091:function(t,e,n){n.d(e,{$s:()=>_,BM:()=>v,Cr:()=>f,j6:()=>d,tW:()=>m});var i=n(28535),r=n(26989),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,h=i.create(),c=i.create(),p=i.create();function f(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],u=i[1],h=1;h<t.length;h++)r=o(r,(i=t[h])[0]),s=a(s,i[0]),l=o(l,i[1]),u=a(u,i[1]);e[0]=r,e[1]=l,n[0]=s,n[1]=u}}function d(t,e,n,i,r,s){r[0]=o(t,n),r[1]=o(e,i),s[0]=a(t,n),s[1]=a(e,i)}var g=[],y=[];function v(t,e,n,i,s,l,u,h,c,p){var f=r.lX,d=r.Yb,v=f(t,n,s,u,g);c[0]=1/0,c[1]=1/0,p[0]=-1/0,p[1]=-1/0;for(var m=0;m<v;m++){var _=d(t,n,s,u,g[m]);c[0]=o(_,c[0]),p[0]=a(_,p[0])}v=f(e,i,l,h,y);for(var m=0;m<v;m++){var x=d(e,i,l,h,y[m]);c[1]=o(x,c[1]),p[1]=a(x,p[1])}c[0]=o(t,c[0]),p[0]=a(t,p[0]),c[0]=o(u,c[0]),p[0]=a(u,p[0]),c[1]=o(e,c[1]),p[1]=a(e,p[1]),c[1]=o(h,c[1]),p[1]=a(h,p[1])}function m(t,e,n,i,s,l,u,h){var c=r.gC,p=r.k3,f=a(o(c(t,n,s),1),0),d=a(o(c(e,i,l),1),0),g=p(t,n,s,f),y=p(e,i,l,d);u[0]=o(t,s,g),u[1]=o(e,l,y),h[0]=a(t,s,g),h[1]=a(e,l,y)}function _(t,e,n,r,o,a,f,d,g){var y=i.min,v=i.max,m=Math.abs(o-a);if(m%u<1e-4&&m>1e-4){d[0]=t-n,d[1]=e-r,g[0]=t+n,g[1]=e+r;return}if(h[0]=l(o)*n+t,h[1]=s(o)*r+e,c[0]=l(a)*n+t,c[1]=s(a)*r+e,y(d,h,c),v(g,h,c),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!f?a+=u:o<a&&f&&(o+=u),f){var _=a;a=o,o=_}for(var x=0;x<a;x+=Math.PI/2)x>o&&(p[0]=l(x)*n+t,p[1]=s(x)*r+e,y(d,p,d),v(g,p,g))}},26989:function(t,e,n){n.d(e,{Et:()=>m,YT:()=>v,Yb:()=>f,_E:()=>g,d8:()=>T,gC:()=>S,h0:()=>_,k3:()=>x,kh:()=>M,kx:()=>A,lX:()=>y,qY:()=>b,rD:()=>d,z7:()=>w});var i=n(28535),r=Math.pow,o=Math.sqrt,a=o(3),s=1/3,l=(0,i.create)(),u=(0,i.create)(),h=(0,i.create)();function c(t){return t>-1e-8&&t<1e-8}function p(t){return t>1e-8||t<-1e-8}function f(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function d(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function g(t,e,n,i,l,u){var h=i+3*(e-n)-t,p=3*(n-2*e+t),f=3*(e-t),d=t-l,g=p*p-3*h*f,y=p*f-9*h*d,v=f*f-3*p*d,m=0;if(c(g)&&c(y))if(c(p))u[0]=0;else{var _=-f/p;_>=0&&_<=1&&(u[m++]=_)}else{var x=y*y-4*g*v;if(c(x)){var w=y/g,_=-p/h+w,b=-w/2;_>=0&&_<=1&&(u[m++]=_),b>=0&&b<=1&&(u[m++]=b)}else if(x>0){var S=o(x),A=g*p+1.5*h*(-y+S),M=g*p+1.5*h*(-y-S),_=(-p-((A=A<0?-r(-A,s):r(A,s))+(M=M<0?-r(-M,s):r(M,s))))/(3*h);_>=0&&_<=1&&(u[m++]=_)}else{var T=Math.acos((2*g*p-3*h*y)/(2*o(g*g*g)))/3,C=o(g),k=Math.cos(T),_=(-p-2*C*k)/(3*h),b=(-p+C*(k+a*Math.sin(T)))/(3*h),I=(-p+C*(k-a*Math.sin(T)))/(3*h);_>=0&&_<=1&&(u[m++]=_),b>=0&&b<=1&&(u[m++]=b),I>=0&&I<=1&&(u[m++]=I)}}return m}function y(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,u=0;if(c(s)){if(p(a)){var h=-l/a;h>=0&&h<=1&&(r[u++]=h)}}else{var f=a*a-4*s*l;if(c(f))r[0]=-a/(2*s);else if(f>0){var d=o(f),h=(-a+d)/(2*s),g=(-a-d)/(2*s);h>=0&&h<=1&&(r[u++]=h),g>=0&&g<=1&&(r[u++]=g)}}return u}function v(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function m(t,e,n,r,a,s,c,p,d,g,y){var v,m,_,x,w,b=.005,S=1/0;l[0]=d,l[1]=g;for(var A=0;A<1;A+=.05)u[0]=f(t,n,a,c,A),u[1]=f(e,r,s,p,A),(x=(0,i.distSquare)(l,u))<S&&(v=A,S=x);S=1/0;for(var M=0;M<32&&!(b<1e-4);M++)m=v-b,_=v+b,u[0]=f(t,n,a,c,m),u[1]=f(e,r,s,p,m),x=(0,i.distSquare)(u,l),m>=0&&x<S?(v=m,S=x):(h[0]=f(t,n,a,c,_),h[1]=f(e,r,s,p,_),w=(0,i.distSquare)(h,l),_<=1&&w<S?(v=_,S=w):b*=.5);return y&&(y[0]=f(t,n,a,c,v),y[1]=f(e,r,s,p,v)),o(S)}function _(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var g=d*p,y=f(t,n,r,a,g),v=f(e,i,o,s,g),m=y-u,_=v-h;c+=Math.sqrt(m*m+_*_),u=y,h=v}return c}function x(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function w(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function b(t,e,n,i,r){var a=t-2*e+n,s=2*(e-t),l=t-i,u=0;if(c(a)){if(p(s)){var h=-l/s;h>=0&&h<=1&&(r[u++]=h)}}else{var f=s*s-4*a*l;if(c(f)){var h=-s/(2*a);h>=0&&h<=1&&(r[u++]=h)}else if(f>0){var d=o(f),h=(-s+d)/(2*a),g=(-s-d)/(2*a);h>=0&&h<=1&&(r[u++]=h),g>=0&&g<=1&&(r[u++]=g)}}return u}function S(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function A(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function M(t,e,n,r,a,s,c,p,f){var d,g=.005,y=1/0;l[0]=c,l[1]=p;for(var v=0;v<1;v+=.05){u[0]=x(t,n,a,v),u[1]=x(e,r,s,v);var m=(0,i.distSquare)(l,u);m<y&&(d=v,y=m)}y=1/0;for(var _=0;_<32&&!(g<1e-4);_++){var w=d-g,b=d+g;u[0]=x(t,n,a,w),u[1]=x(e,r,s,w);var m=(0,i.distSquare)(u,l);if(w>=0&&m<y)d=w,y=m;else{h[0]=x(t,n,a,b),h[1]=x(e,r,s,b);var S=(0,i.distSquare)(h,l);b<=1&&S<y?(d=b,y=S):g*=.5}}return f&&(f[0]=x(t,n,a,d),f[1]=x(e,r,s,d)),o(y)}function T(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,f=x(t,n,r,p),d=x(e,i,o,p),g=f-s,y=d-l;u+=Math.sqrt(g*g+y*y),s=f,l=d}return u}},26776:function(t,e,n){n.d(e,{lJ:()=>u,Me:()=>d,ot:()=>c,oq:()=>h});var i=n(35209),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,u=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var h=Math.round(Math.log((1<<u)-1&~a)/r);return t[n][h]}for(var c=i|1<<n,p=n+1;i&1<<p;)p++;for(var f=0,d=0,g=0;d<u;d++){var y=1<<d;!(y&a)&&(f+=(g%2?-1:1)*t[n][d]*o(t,e-1,p,c,a|y,s),g++)}return s[l]=f,f}function a(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=o(n,8,0,0,0,i);if(0!==r){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*o(n,7,+(0===s),1<<s,1<<l,i)/r*e[s];return function(t,e,n){var i=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/i,t[1]=(e*a[3]+n*a[4]+a[5])/i}}}var s="___zrEVENTSAVED",l=[];function u(t,e,n,i,r){return h(l,e,i,r,!0)&&h(t,n,l[0],l[1])}function h(t,e,n,r,o){if(e.getBoundingClientRect&&i.A.domSupported&&!c(e)){var l=e[s]||(e[s]={}),u=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],u=!0,h=0;h<4;h++){var c=t[h].getBoundingClientRect(),p=2*h,f=c.left,d=c.top;s.push(f,d),u=u&&o&&f===o[p]&&d===o[p+1],l.push(t[h].offsetLeft,t[h].offsetTop)}return u&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,l),l,o);if(u)return u(t,n,r),!0}return!1}function c(t){return"CANVAS"===t.nodeName.toUpperCase()}var p=/([&<>"'])/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(t){return null==t?"":(t+"").replace(p,function(t,e){return f[e]})}},35209:function(t,e,n){n.d(e,{A:()=>f});var i,r,o,a,s,l,u,h,c=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},p=new function(){this.browser=new c,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(p.wxa=!0,p.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?p.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(p.node=!0,p.svgSupported=!0):(i=navigator.userAgent,o=(r=p).browser,a=i.match(/Firefox\/([\d.]+)/),s=i.match(/MSIE\s([\d.]+)/)||i.match(/Trident\/.+?rv:(([\d.]+))/),l=i.match(/Edge?\/([\d.]+)/),u=/micromessenger/i.test(i),a&&(o.firefox=!0,o.version=a[1]),s&&(o.ie=!0,o.version=s[1]),l&&(o.edge=!0,o.version=l[1],o.newEdge=+l[1].split(".")[0]>18),u&&(o.weChat=!0),r.svgSupported="undefined"!=typeof SVGRect,r.touchEventsSupported="ontouchstart"in window&&!o.ie&&!o.edge,r.pointerEventsSupported="onpointerdown"in window&&(o.edge||o.ie&&+o.version>=11),r.domSupported="undefined"!=typeof document,h=document.documentElement.style,r.transform3dSupported=(o.ie&&"transition"in h||o.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in h)&&!("OTransition"in h),r.transformSupported=r.transform3dSupported||o.ie&&+o.version>=9);let f=p},77250:function(t,e,n){n.d(e,{W5:()=>g,Yo:()=>l,ds:()=>d,e0:()=>c,f:()=>f,mK:()=>h,q2:()=>p});var i=n(35209),r=n(26776),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.A.browser.firefox&&39>+i.A.browser.version.split(".")[0];function l(t,e,n,i){return n=n||{},i?u(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):u(t,e,n),n}function u(t,e,n){if(i.A.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.ot)(t)){var l=t.getBoundingClientRect();n.zrX=o-l.left,n.zrY=s-l.top;return}if((0,r.oq)(a,t,o,s)){n.zrX=a[0],n.zrY=a[1];return}}n.zrX=n.zrY=0}function h(t){return t||window.event}function c(t,e,n){if(null!=(e=h(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function p(t,e,n,i){t.addEventListener(e,n,i)}function f(t,e,n,i){t.removeEventListener(e,n,i)}var d=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},37817:function(t,e,n){function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=r*c+s*h,t[1]=-r*h+s*c,t[2]=o*c+l*h,t[3]=-o*h+c*l,t[4]=c*(a-i[0])+h*(u-i[1])+i[0],t[5]=c*(u-i[1])-h*(a-i[0])+i[1],t}function u(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function h(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function c(t){var e=i();return o(e,t),e}n.r(e),n.d(e,{clone:()=>c,copy:()=>o,create:()=>i,identity:()=>r,invert:()=>h,mul:()=>a,rotate:()=>l,scale:()=>u,translate:()=>s})},46979:function(t,e,n){n.d(e,{Gs:()=>h,OH:()=>s,gI:()=>o,yh:()=>u,zs:()=>a});var i,r,o=12,a="sans-serif",s="12px "+a,l=function(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)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),u={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!i){var n=u.createCanvas();i=n&&n.getContext("2d")}if(i)return r!==e&&(r=i.font=e||s),i.measureText(t);t=t||"",e=e||s;var a=/(\d+)px/.exec(e),h=a&&+a[1]||o,c=0;if(e.indexOf("mono")>=0)c=h*t.length;else for(var p=0;p<t.length;p++){var f=l[t[p]];c+=null==f?h:f*h}return{width:c}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function h(t){for(var e in u)t[e]&&(u[e]=t[e])}},24952:function(t,e,n){function i(t,e,n,i){var r=e+1;if(r===n)return 1;if(0>i(t[r++],t[e])){for(;r<n&&0>i(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function r(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)0>r(a,t[o=s+l>>>1])?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function o(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&0>=o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function a(t,e,n,i,r,o){var a=0,s=0,l=1;if(0>o(t,e[n+r])){for(s=r+1;l<s&&0>o(t,e[n+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);0>o(t,e[n+h])?l=h:a=h+1}return l}function s(t,e,n,s){n||(n=0),s||(s=t.length);var l=s-n;if(!(l<2)){var u=0;if(l<32){u=i(t,n,s,e),r(t,n,s,n+u,e);return}var h=function(t,e){var n,i,r=7,s=0,l=[];function u(u){var h=n[u],c=i[u],p=n[u+1],f=i[u+1];i[u]=c+f,u===s-3&&(n[u+1]=n[u+2],i[u+1]=i[u+2]),s--;var d=a(t[p],t,h,c,0,e);h+=d,0==(c-=d)||0!==(f=o(t[h+c-1],t,p,f,f-1,e))&&(c<=f?function(n,i,s,u){var h,c,p,f=0;for(f=0;f<i;f++)l[f]=t[n+f];var d=0,g=s,y=n;if(t[y++]=t[g++],0==--u){for(f=0;f<i;f++)t[y+f]=l[d+f];return}if(1===i){for(f=0;f<u;f++)t[y+f]=t[g+f];t[y+u]=l[d];return}for(var v=r;;){h=0,c=0,p=!1;do if(0>e(t[g],l[d])){if(t[y++]=t[g++],c++,h=0,0==--u){p=!0;break}}else if(t[y++]=l[d++],h++,c=0,1==--i){p=!0;break}while((h|c)<v);if(p)break;do{if(0!==(h=a(t[g],l,d,i,0,e))){for(f=0;f<h;f++)t[y+f]=l[d+f];if(y+=h,d+=h,(i-=h)<=1){p=!0;break}}if(t[y++]=t[g++],0==--u){p=!0;break}if(0!==(c=o(l[d],t,g,u,0,e))){for(f=0;f<c;f++)t[y+f]=t[g+f];if(y+=c,g+=c,0==(u-=c)){p=!0;break}}if(t[y++]=l[d++],1==--i){p=!0;break}v--}while(h>=7||c>=7);if(p)break;v<0&&(v=0),v+=2}if((r=v)<1&&(r=1),1===i){for(f=0;f<u;f++)t[y+f]=t[g+f];t[y+u]=l[d]}else if(0===i)throw Error();else for(f=0;f<i;f++)t[y+f]=l[d+f]}(h,c,p,f):function(n,i,s,u){var h=0;for(h=0;h<u;h++)l[h]=t[s+h];var c=n+i-1,p=u-1,f=s+u-1,d=0,g=0;if(t[f--]=t[c--],0==--i){for(h=0,d=f-(u-1);h<u;h++)t[d+h]=l[h];return}if(1===u){for(f-=i,c-=i,g=f+1,d=c+1,h=i-1;h>=0;h--)t[g+h]=t[d+h];t[f]=l[p];return}for(var y=r;;){var v=0,m=0,_=!1;do if(0>e(l[p],t[c])){if(t[f--]=t[c--],v++,m=0,0==--i){_=!0;break}}else if(t[f--]=l[p--],m++,v=0,1==--u){_=!0;break}while((v|m)<y);if(_)break;do{if(0!=(v=i-a(l[p],t,n,i,i-1,e))){for(f-=v,c-=v,i-=v,g=f+1,d=c+1,h=v-1;h>=0;h--)t[g+h]=t[d+h];if(0===i){_=!0;break}}if(t[f--]=l[p--],1==--u){_=!0;break}if(0!=(m=u-o(t[c],l,0,u,u-1,e))){for(f-=m,p-=m,u-=m,g=f+1,d=p+1,h=0;h<m;h++)t[g+h]=l[d+h];if(u<=1){_=!0;break}}if(t[f--]=t[c--],0==--i){_=!0;break}y--}while(v>=7||m>=7);if(_)break;y<0&&(y=0),y+=2}if((r=y)<1&&(r=1),1===u){for(f-=i,c-=i,g=f+1,d=c+1,h=i-1;h>=0;h--)t[g+h]=t[d+h];t[f]=l[p]}else if(0===u)throw Error();else for(h=0,d=f-(u-1);h<u;h++)t[d+h]=l[h]}(h,c,p,f))}return n=[],i=[],{mergeRuns:function(){for(;s>1;){var t=s-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;u(t)}},forceMergeRuns:function(){for(;s>1;){var t=s-2;t>0&&i[t-1]<i[t+1]&&t--,u(t)}},pushRun:function(t,e){n[s]=t,i[s]=e,s+=1}}}(t,e),c=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(l);do{if((u=i(t,n,s,e))<c){var p=l;p>c&&(p=c),r(t,n,n+p,n+u,e),u=p}h.pushRun(n,u),h.mergeRuns(),l-=u,n+=u}while(0!==l);h.forceMergeRuns()}}n.d(e,{A:()=>s})},4884:function(t,e,n){n.r(e),n.d(e,{HashMap:()=>ts,RADIAN_TO_DEGREE:()=>td,assert:()=>tt,bind:()=>R,clone:()=>m,concatArray:()=>tu,createCanvas:()=>S,createHashMap:()=>tl,createObject:()=>th,curry:()=>N,defaults:()=>b,disableUserSelect:()=>tc,each:()=>k,eqNaN:()=>q,extend:()=>w,filter:()=>O,find:()=>P,guid:()=>y,hasOwn:()=>tp,indexOf:()=>A,inherits:()=>M,isArray:()=>E,isArrayLike:()=>C,isBuiltInObject:()=>W,isDom:()=>U,isFunction:()=>z,isGradientObject:()=>Y,isImagePatternObject:()=>X,isNumber:()=>H,isObject:()=>V,isPrimitive:()=>tr,isRegExp:()=>j,isString:()=>B,isStringSafe:()=>F,isTypedArray:()=>G,keys:()=>L,logError:()=>v,map:()=>I,merge:()=>_,mergeAll:()=>x,mixin:()=>T,noop:()=>tf,normalizeCssArray:()=>J,reduce:()=>D,retrieve:()=>Z,retrieve2:()=>K,retrieve3:()=>$,setAsPrimitive:()=>ti,slice:()=>Q,trim:()=>te});var i=n(46979),r=D(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),o=D(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,h=s.slice,c=s.map,p=(function(){}).constructor,f=p?p.prototype:null,d="__proto__",g=2311;function y(){return g++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function m(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!t[tn]){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=m(t[i])}}else if(o[n]){if(!t[tn]){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(var i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!t[tn]&&!U(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==d&&(e[u]=m(t[u]));return e}function _(t,e,n){if(!V(e)||!V(t))return n?m(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==d){var r=t[i],o=e[i];!(V(o)&&V(r))||E(o)||E(r)||U(o)||U(r)||W(o)||W(r)||o[tn]||r[tn]?!n&&i in t||(t[i]=m(e[i])):_(r,o,n)}return t}function x(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=_(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!==d&&(t[n]=e[n]);return t}function b(t,e,n){for(var i=L(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var S=i.yh.createCanvas;function A(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 M(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 T(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 o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else b(t,e,n)}function C(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 o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function I(t,e,n){if(!t)return[];if(!e)return Q(t);if(t.map&&t.map===c)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function D(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function O(t,e,n){if(!t)return[];if(!e)return Q(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function P(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 L(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}var R=f&&z(f.bind)?f.call.bind(f.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(h.call(arguments)))}};function N(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(h.call(arguments)))}}function E(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function z(t){return"function"==typeof t}function B(t){return"string"==typeof t}function F(t){return"[object String]"===a.call(t)}function H(t){return"number"==typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function W(t){return!!r[a.call(t)]}function G(t){return!!o[a.call(t)]}function U(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function Y(t){return null!=t.colorStops}function X(t){return null!=t.image}function j(t){return"[object RegExp]"===a.call(t)}function q(t){return t!=t}function Z(){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 K(t,e){return null!=t?t:e}function $(t,e,n){return null!=t?t:null!=e?e:n}function Q(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return h.apply(t,e)}function J(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 tt(t,e){if(!t)throw Error(e)}function te(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tn="__ec_primitive__";function ti(t){t[tn]=!0}function tr(t){return t[tn]}var to=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 L(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),ta="function"==typeof Map,ts=function(){function t(e){var n=E(e);this.data=ta?new Map:new to;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 ta?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function tl(t){return new ts(t)}function tu(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function th(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 tc(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function tp(t,e){return t.hasOwnProperty(e)}function tf(){}var td=180/Math.PI},28535:function(t,e,n){function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t){return Math.sqrt(p(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>M,clone:()=>o,copy:()=>r,create:()=>i,dist:()=>x,distSquare:()=>b,distance:()=>_,distanceSquare:()=>w,div:()=>g,dot:()=>y,len:()=>h,lenSquare:()=>p,length:()=>c,lengthSquare:()=>f,lerp:()=>A,max:()=>C,min:()=>T,mul:()=>d,negate:()=>S,normalize:()=>m,scale:()=>v,scaleAndAdd:()=>l,set:()=>a,sub:()=>u});var c=h;function p(t){return t[0]*t[0]+t[1]*t[1]}var f=p;function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function y(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function m(t,e){var n=h(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function w(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var b=w;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function A(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function T(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function C(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},58933:function(t,e,n){n.d(e,{A:()=>o});var i=n(74915),r=n(30070);let o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.C6)(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),r.Ay.prototype.getBoundingRect.call(this)},e}(r.Ay)},38513:function(t,e,n){n.d(e,{Ay:()=>y,oN:()=>u,sW:()=>h});var i=n(74915),r=n(16476),o=n(51690),a=n(4884),s=n(63154),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},h={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var c=["z","z2","invisible"],p=["invisible"],f=function(t){var e;function n(e){return t.call(this,e)||this}return(0,i.C6)(n,t),n.prototype._init=function(e){for(var n=(0,a.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({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,d.copy(r.getBoundingRect()),r.transform&&d.applyTransform(r.transform),g.width=o,g.height=a,!d.intersect(g))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(i&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},n.prototype.contain=function(t,e){return this.rectContain(t,e)},n.prototype.traverse=function(t,e){t.call(e,this)},n.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},n.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,s=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new o.A(0,0,0,0)),e?o.A.applyTransform(t,n,e):t.copy(n),(r||a||s)&&(t.width+=2*r+Math.abs(a),t.height+=2*r+Math.abs(s),t.x=Math.min(t.x,t.x+a-r),t.y=Math.min(t.y,t.y+s-r));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},n.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new o.A(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(t){return this.animate("style",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},n.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:(0,a.extend)(this.style,t),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=s.pO,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(this.__dirty&s.pO)},n.prototype.styleUpdated=function(){this.__dirty&=~s.pO},n.prototype.createStyle=function(t){return(0,a.createObject)(u,t)},n.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},n.prototype.isStyleObject=function(t){return t[l]},n.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,c)},n.prototype._applyStateObj=function(e,n,i,r,o,s){t.prototype._applyStateObj.call(this,e,n,i,r,o,s);var l,u=!(n&&r);if(n&&n.style?o?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var h=this.style;if(this.style=this.createStyle(u?{}:h),u)for(var f=(0,a.keys)(h),d=0;d<f.length;d++){var g=f[d];g in l&&(l[g]=l[g],this.style[g]=h[g])}for(var y=(0,a.keys)(l),d=0;d<y.length;d++){var g=y[d];this.style[g]=this.style[g]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var v=this.__inHover?p:c,d=0;d<v.length;d++){var g=v[d];n&&null!=n[g]?this[g]=n[g]:u&&null!=i[g]&&(this[g]=i[g])}},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},n.prototype._mergeStyle=function(t,e){return(0,a.extend)(t,e),t},n.prototype.getAnimationStyleProps=function(){return h},n.initDefaultProps=void((e=n.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=s.M|s.pO),n}(r.A),d=new o.A(0,0,0,0),g=new o.A(0,0,0,0);let y=f},22251:function(t,e,n){n.d(e,{A:()=>i});let i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},79620:function(t,e,n){n.d(e,{A:()=>l});var i=n(74915),r=n(4884),o=n(16476),a=n(51690),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new a.A(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(a.A.applyTransform(e,l,u),(r=r||e.clone()).union(e)):(r=r||l.clone()).union(l)}}return r||e},e}(o.A);s.prototype.type="group";let l=s},64586:function(t,e,n){n.d(e,{Ay:()=>h});var i=n(74915),r=n(38513),o=n(51690),a=n(4884),s=(0,a.defaults)({x:0,y:0},r.oN),l={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.sW.style)},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e,n=this.style,i=n[t];if(null!=i)return i;var r=(e=n.image)&&"string"!=typeof e&&e.width&&e.height?n.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=n[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.A(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.Ay);u.prototype.type="image";let h=u},83081:function(t,e,n){n.d(e,{A:()=>s});var i=n(74915),r=n(38513),o=n(51690),a=[];let s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.C6)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},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(var 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(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new o.A(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(a)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1])){for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0}return!1},e}(r.Ay)},87142:function(t,e,n){n.d(e,{A:()=>r});var i=n(74915);let r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||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=a||!1,s}return(0,i.C6)(e,t),e}(n(22251).A)},30070:function(t,e,n){n.d(e,{MW:()=>b,Ay:()=>M});var i=n(74915),r=n(38513),o=n(40843),a=n(37793),s=n(26989),l=n(90493),u=n(50391),h=2*Math.PI,c=n(8163),p=o.A.CMD,f=2*Math.PI,d=[-1,-1,-1],g=[-1,-1];function y(t,e,n,i,r){for(var o,y,v=t.data,m=t.len(),_=0,x=0,w=0,b=0,S=0,A=0;A<m;){var M,T,C,k,I,D,O,P,L=v[A++],R=1===A;switch(L===p.M&&A>1&&!n&&(_+=(0,c.A)(x,w,b,S,i,r)),R&&(x=v[A],w=v[A+1],b=x,S=w),L){case p.M:b=v[A++],S=v[A++],x=b,w=S;break;case p.L:if(n){if(a.l(x,w,v[A],v[A+1],e,i,r))return!0}else _+=(0,c.A)(x,w,v[A],v[A+1],i,r)||0;x=v[A++],w=v[A++];break;case p.C:if(n){if(M=x,T=w,C=v[A++],k=v[A++],I=v[A++],D=v[A++],O=v[A],P=v[A+1],0!==e&&(!(r>T+e)||!(r>k+e)||!(r>D+e)||!(r>P+e))&&(!(r<T-e)||!(r<k-e)||!(r<D-e)||!(r<P-e))&&(!(i>M+e)||!(i>C+e)||!(i>I+e)||!(i>O+e))&&(!(i<M-e)||!(i<C-e)||!(i<I-e)||!(i<O-e))&&s.Et(M,T,C,k,I,D,O,P,i,r,null)<=e/2)return!0}else _+=function(t,e,n,i,r,o,a,l,u,h){if(h>e&&h>i&&h>o&&h>l||h<e&&h<i&&h<o&&h<l)return 0;var c=s._E(e,i,o,l,h,d);if(0===c)return 0;for(var p=0,f=-1,y=void 0,v=void 0,m=0;m<c;m++){var _=d[m],x=0===_||1===_?.5:1;s.Yb(t,n,r,a,_)<u||(f<0&&(f=s.lX(e,i,o,l,g),g[1]<g[0]&&f>1&&function(){var t=g[0];g[0]=g[1],g[1]=t}(),y=s.Yb(e,i,o,l,g[0]),f>1&&(v=s.Yb(e,i,o,l,g[1]))),2===f?_<g[0]?p+=y<e?x:-x:_<g[1]?p+=v<y?x:-x:p+=l<v?x:-x:_<g[0]?p+=y<e?x:-x:p+=l<y?x:-x)}return p}(x,w,v[A++],v[A++],v[A++],v[A++],v[A],v[A+1],i,r)||0;x=v[A++],w=v[A++];break;case p.Q:if(n){if(l.l(x,w,v[A++],v[A++],v[A],v[A+1],e,i,r))return!0}else _+=function(t,e,n,i,r,o,a,l){if(l>e&&l>i&&l>o||l<e&&l<i&&l<o)return 0;var u=s.qY(e,i,o,l,d);if(0===u)return 0;var h=s.gC(e,i,o);if(h>=0&&h<=1){for(var c=0,p=s.k3(e,i,o,h),f=0;f<u;f++){var g=0===d[f]||1===d[f]?.5:1,y=s.k3(t,n,r,d[f]);y<a||(d[f]<h?c+=p<e?g:-g:c+=o<p?g:-g)}return c}var g=0===d[0]||1===d[0]?.5:1,y=s.k3(t,n,r,d[0]);return y<a?0:o<e?g:-g}(x,w,v[A++],v[A++],v[A],v[A+1],i,r)||0;x=v[A++],w=v[A++];break;case p.A:var N=v[A++],E=v[A++],z=v[A++],B=v[A++],F=v[A++],H=v[A++];A+=1;var V=!!(1-v[A++]);o=Math.cos(F)*z+N,y=Math.sin(F)*B+E,R?(b=o,S=y):_+=(0,c.A)(x,w,o,y,i,r);var W=(i-N)*B/z+N;if(n){if(function(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var c=Math.sqrt((s-=t)*s+(l-=e)*l);if(c-a>n||c+a<n)return!1;if(Math.abs(i-r)%h<1e-4)return!0;if(o){var p=i;i=(0,u.n)(r),r=(0,u.n)(p)}else i=(0,u.n)(i),r=(0,u.n)(r);i>r&&(r+=h);var f=Math.atan2(l,s);return f<0&&(f+=h),f>=i&&f<=r||f+h>=i&&f+h<=r}(N,E,B,F,F+H,V,e,W,r))return!0}else _+=function(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);d[0]=-l,d[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=f-1e-4){i=0,r=f;var h=o?1:-1;return a>=d[0]+t&&a<=d[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=f,r+=f);for(var p=0,g=0;g<2;g++){var y=d[g];if(y+t>a){var v=Math.atan2(s,y),h=o?1:-1;v<0&&(v=f+v),(v>=i&&v<=r||v+f>=i&&v+f<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),p+=h)}}return p}(N,E,B,F,F+H,V,W,r);x=Math.cos(F+H)*z+N,w=Math.sin(F+H)*B+E;break;case p.R:b=x=v[A++],S=w=v[A++];var G=v[A++],U=v[A++];if(o=b+G,y=S+U,n){if(a.l(b,S,o,S,e,i,r)||a.l(o,S,o,y,e,i,r)||a.l(o,y,b,y,e,i,r)||a.l(b,y,b,S,e,i,r))return!0}else _+=(0,c.A)(o,S,o,y,i,r),_+=(0,c.A)(b,y,b,S,i,r);break;case p.Z:if(n){if(a.l(x,w,b,S,e,i,r))return!0}else _+=(0,c.A)(x,w,b,S,i,r);x=b,w=S}}return n||1e-4>Math.abs(w-S)||(_+=(0,c.A)(x,w,b,S,i,r)||0),0!==_}var v=n(4884),m=n(34196),_=n(72076),x=n(63154),w=n(5486),b=(0,v.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.oN),S={style:(0,v.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.sW.style)},A=w.Wx.concat(["invisible","culling","z","z2","zlevel","parent"]);let M=function(t){var e;function n(e){return t.call(this,e)||this}return(0,i.C6)(n,t),n.prototype.update=function(){var e=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new n;r.buildPath===n.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<A.length;++s)r[A[s]]=this[A[s]];r.__dirty|=x.M}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(e){var n=(0,v.keys)(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?(0,v.extend)(this.style,a):this.useStyle(a):"shape"===o?(0,v.extend)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if((0,v.isString)(t)){var e=(0,m.lum)(t,0);return e>.5?_._S:e>.2?_.tY:_.el}else if(t)return _.el}return _._S},n.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,v.isString)(e)){var n=this.__zr;if(!!(n&&n.isDarkMode())==(0,m.lum)(t,0)<_.ps)return e}},n.prototype.buildPath=function(t,e,n){},n.prototype.pathUpdated=function(){this.__dirty&=~x.Dl},n.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},n.prototype.createPathProxy=function(){this.path=new o.A(!1)},n.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},n.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},n.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&x.Dl)&&(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 o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},n.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 o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),y(o,a/s,!0,t,e)))return!0}if(this.hasFill())return y(o,0,!1,t,e)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=x.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(t){return this.animate("shape",t)},n.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},n.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,v.extend)(n,t),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&x.Dl)},n.prototype.createStyle=function(t){return(0,v.createObject)(b,t)},n.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,v.extend)({},this.shape))},n.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,v.extend)({},i.shape),(0,v.extend)(s,n.shape)):(s=(0,v.extend)({},r?this.shape:i.shape),(0,v.extend)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,v.extend)({},this.shape);for(var u={},h=(0,v.keys)(s),c=0;c<h.length;c++){var p=h[c];"object"==typeof s[p]?this.shape[p]=s[p]:u[p]=s[p]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},n.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},n.prototype.getAnimationStyleProps=function(){return S},n.prototype.isZeroArea=function(){return!1},n.extend=function(t){var e=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return(0,i.C6)(n,e),n.prototype.getDefaultStyle=function(){return(0,v.clone)(t.style)},n.prototype.getDefaultShape=function(){return(0,v.clone)(t.shape)},n}(n);for(var r in t)"function"==typeof t[r]&&(e.prototype[r]=t[r]);return e},n.initDefaultProps=void((e=n.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=x.M|x.pO|x.Dl),n}(r.Ay)},12152:function(t,e,n){n.d(e,{A:()=>r});var i=n(74915);let r=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return(0,i.C6)(e,t),e}(n(22251).A)},27575:function(t,e,n){n.d(e,{A:()=>c});var i=n(74915),r=n(38513),o=n(23960),a=n(30070),s=n(4884),l=n(46979),u=(0,s.defaults)({strokeFirst:!0,font:l.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),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.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.NO)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.Ay);h.prototype.type="tspan";let c=h},52384:function(t,e,n){n.d(e,{Ay:()=>k,I5:()=>_,XE:()=>w});var i=n(74915),r=n(7988),o=n(27575),a=n(4884),s=n(23960),l=n(64586),u=n(63811),h=n(51690),c=n(38513),p=n(46979),f={fill:"#000"},d={style:(0,a.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},c.sW.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(e),n}return(0,i.C6)(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(){var t;this._childCursor=0,b(t=this.style),(0,a.each)(t.rich,b),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 h.A(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||f},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return(0,a.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=(0,a.keys)(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},(0,a.extend)(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return d},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||p.OH,n=t.padding,i=T(t),a=(0,r.j_)(i,t),l=C(t),u=!!t.backgroundColor,c=a.outerHeight,f=a.outerWidth,d=a.contentWidth,g=a.lines,y=a.lineHeight,v=this._defaultStyle,m=t.x||0,_=t.y||0,w=t.align||v.align||"left",b=t.verticalAlign||v.verticalAlign||"top",k=m,I=(0,s.sZ)(_,a.contentHeight,b);if(l||n){var D=(0,s.ll)(m,f,w),O=(0,s.sZ)(_,c,b);l&&this._renderBackground(t,t,D,O,f,c)}I+=y/2,n&&(k=M(m,w,n),"top"===b?I+=n[0]:"bottom"===b&&(I-=n[2]));for(var P=0,L=!1,R=A("fill"in t?t.fill:(L=!0,v.fill)),N=S("stroke"in t?t.stroke:u||v.autoStroke&&!L?null:(P=2,v.stroke)),E=t.textShadowBlur>0,z=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,F=0;F<g.length;F++){var H=this._getOrCreateChild(o.A),V=H.createStyle();H.useStyle(V),V.text=g[F],V.x=k,V.y=I,w&&(V.textAlign=w),V.textBaseline="middle",V.opacity=t.opacity,V.strokeFirst=!0,E&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=N,V.fill=R,N&&(V.lineWidth=t.lineWidth||P,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,x(V,t),I+=y,z&&H.setBoundingRect(new h.A((0,s.ll)(V.x,t.width,V.textAlign),(0,s.sZ)(V.y,B,V.textBaseline),d,B))}},e.prototype._updateRichTexts=function(){var t=this.style,e=T(t),n=(0,r.FQ)(e,t),i=n.width,o=n.outerWidth,a=n.outerHeight,l=t.padding,u=t.x||0,h=t.y||0,c=this._defaultStyle,p=t.align||c.align,f=t.verticalAlign||c.verticalAlign,d=(0,s.ll)(u,o,p),g=(0,s.sZ)(h,a,f),y=d,v=g;l&&(y+=l[3],v+=l[0]);var m=y+i;C(t)&&this._renderBackground(t,t,d,g,o,a);for(var _=!!t.backgroundColor,x=0;x<n.lines.length;x++){for(var w=n.lines[x],b=w.tokens,S=b.length,A=w.lineHeight,M=w.width,k=0,I=y,D=m,O=S-1,P=void 0;k<S&&(!(P=b[k]).align||"left"===P.align);)this._placeToken(P,t,A,v,I,"left",_),M-=P.width,I+=P.width,k++;for(;O>=0&&"right"===(P=b[O]).align;)this._placeToken(P,t,A,v,D,"right",_),M-=P.width,D-=P.width,O--;for(I+=(i-(I-y)-(m-D)-M)/2;k<=O;)P=b[k],this._placeToken(P,t,A,v,I+P.width/2,"center",_),I+=P.width,k++;v+=A}},e.prototype._placeToken=function(t,e,n,i,r,l,u){var c=e.rich[t.styleName]||{};c.text=t.text;var f=t.verticalAlign,d=i+n/2;"top"===f?d=i+t.height/2:"bottom"===f&&(d=i+n-t.height/2),!t.isLineHolder&&C(c)&&this._renderBackground(c,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,d-t.height/2,t.width,t.height);var g=!!c.backgroundColor,y=t.textPadding;y&&(r=M(r,l,y),d-=t.height/2-y[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.A),m=v.createStyle();v.useStyle(m);var _=this._defaultStyle,w=!1,b=0,T=A("fill"in c?c.fill:"fill"in e?e.fill:(w=!0,_.fill)),k=S("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||_.autoStroke&&!w?null:(b=2,_.stroke)),I=c.textShadowBlur>0||e.textShadowBlur>0;m.text=t.text,m.x=r,m.y=d,I&&(m.shadowBlur=c.textShadowBlur||e.textShadowBlur||0,m.shadowColor=c.textShadowColor||e.textShadowColor||"transparent",m.shadowOffsetX=c.textShadowOffsetX||e.textShadowOffsetX||0,m.shadowOffsetY=c.textShadowOffsetY||e.textShadowOffsetY||0),m.textAlign=l,m.textBaseline="middle",m.font=t.font||p.OH,m.opacity=(0,a.retrieve3)(c.opacity,e.opacity,1),x(m,c),k&&(m.lineWidth=(0,a.retrieve3)(c.lineWidth,e.lineWidth,b),m.lineDash=(0,a.retrieve2)(c.lineDash,e.lineDash),m.lineDashOffset=e.lineDashOffset||0,m.stroke=k),T&&(m.fill=T);var D=t.contentWidth,O=t.contentHeight;v.setBoundingRect(new h.A((0,s.ll)(m.x,D,m.textAlign),(0,s.sZ)(m.y,O,m.textBaseline),D,O))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,h,c=t.backgroundColor,p=t.borderWidth,f=t.borderColor,d=c&&c.image,g=c&&!d,y=t.borderRadius,v=this;if(g||t.lineHeight||p&&f){(s=this._getOrCreateChild(u.A)).useStyle(s.createStyle()),s.style.fill=null;var m=s.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=y,s.dirtyShape()}if(g){var _=s.style;_.fill=c||null,_.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1)}else if(d){(h=this._getOrCreateChild(l.Ay)).onload=function(){v.dirtyStyle()};var x=h.style;x.image=c.image,x.x=n,x.y=i,x.width=r,x.height=o}if(p&&f){var _=s.style;_.lineWidth=p,_.stroke=f,_.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),_.lineDash=t.borderDash,_.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var w=(s||h).style;w.shadowBlur=t.shadowBlur||0,w.shadowColor=t.shadowColor||"transparent",w.shadowOffsetX=t.shadowOffsetX||0,w.shadowOffsetY=t.shadowOffsetY||0,w.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return w(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(c.Ay),y={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},m=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"==typeof t&&(-1!==t.indexOf("px")||-1!==t.indexOf("rem")||-1!==t.indexOf("em"))?t:isNaN(+t)?p.gI+"px":t+"px"}function x(t,e){for(var n=0;n<m.length;n++){var i=m[n],r=e[i];null!=r&&(t[i]=r)}}function w(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function b(t){if(t){t.font=g.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||y[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||v[n]?n:"top",t.padding&&(t.padding=(0,a.normalizeCssArray)(t.padding))}}function S(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function A(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function M(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function T(t){var e=t.text;return null!=e&&(e+=""),e}function C(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}let k=g},63154:function(t,e,n){n.d(e,{Dl:()=>o,M:()=>i,pO:()=>r});var i=1,r=2,o=4},6945:function(t,e,n){n.d(e,{OD:()=>s,SR:()=>a,xA:()=>u});var i=n(14407),r=n(46979),o=new i.Ay(50);function a(t){if("string"!=typeof t)return t;var e=o.get(t);return e&&e.image}function s(t,e,n,i,a){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),h={hostEl:n,cb:i,cbPayload:a};return s?u(e=s.image)||s.pending.push(h):((e=r.yh.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[h]})),e}function l(){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 u(t){return t&&t.width&&t.height}},7988:function(t,e,n){n.d(e,{EJ:()=>s,FQ:()=>d,j_:()=>h});var i=n(6945),r=n(4884),o=n(23960),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=l(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=u(o[a],r);return o.join("\n")}function l(t,e,n,i){i=i||{};var a=(0,r.extend)({},i);a.font=e,n=(0,r.retrieve2)(n,"..."),a.maxIterations=(0,r.retrieve2)(i.maxIterations,2);var s=a.minChar=(0,r.retrieve2)(i.minChar,0);a.cnCharWidth=(0,o.RG)("国",e);var l=a.ascCharWidth=(0,o.RG)("a",e);a.placeholder=(0,r.retrieve2)(i.placeholder,"");for(var u=t=Math.max(0,t-1),h=0;h<s&&u>=l;h++)u-=l;var c=(0,o.RG)(n,e);return c>u&&(n="",c=0),u=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=u,a.containerWidth=t,a}function u(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.RG)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?function(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.RG)(t,i)}return""===t&&(t=e.placeholder),t}function h(t,e){null!=t&&(t+="");var n,i=e.overflow,a=e.padding,s=e.font,h=(0,o.ks)(s),c=(0,r.retrieve2)(e.lineHeight,h),p=!!e.backgroundColor,f="truncate"===e.lineOverflow,d=e.width,g=(n=null!=d&&("break"===i||"breakAll"===i)?t?v(t,e.font,d,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*c,y=(0,r.retrieve2)(e.height,g);if(g>y&&f){var m=Math.floor(y/c);n=n.slice(0,m)}if(t&&"truncate"===i&&null!=d)for(var _=l(d,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;x<n.length;x++)n[x]=u(n[x],_);for(var w=y,b=0,x=0;x<n.length;x++)b=Math.max((0,o.RG)(n[x],s),b);null==d&&(d=b);var S=b;return a&&(w+=a[0]+a[2],S+=a[1]+a[3],d+=a[1]+a[3]),p&&(S=d),{lines:n,height:y,outerWidth:S,outerHeight:w,lineHeight:c,calculatedLineHeight:h,contentWidth:b,contentHeight:g,width:d}}var c=function(){},p=function(t){this.tokens=[],t&&(this.tokens=t)},f=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function d(t,e){var n,l=new f;if(null!=t&&(t+=""),!t)return l;for(var u=e.width,h=e.height,c=e.overflow,p=("break"===c||"breakAll"===c)&&null!=u?{width:u,accumWidth:0,breakAll:"breakAll"===c}:null,d=a.lastIndex=0;null!=(n=a.exec(t));){var y=n.index;y>d&&g(l,t.substring(d,y),e,p),g(l,n[2],e,p,n[1]),d=a.lastIndex}d<t.length&&g(l,t.substring(d,t.length),e,p);var v=[],m=0,_=0,x=e.padding,w="truncate"===c,b="truncate"===e.lineOverflow;function S(t,e,n){t.width=e,t.lineHeight=n,m+=n,_=Math.max(_,e)}e:for(var A=0;A<l.lines.length;A++){for(var M=l.lines[A],T=0,C=0,k=0;k<M.tokens.length;k++){var I=M.tokens[k],D=I.styleName&&e.rich[I.styleName]||{},O=I.textPadding=D.padding,P=O?O[1]+O[3]:0,L=I.font=D.font||e.font;I.contentHeight=(0,o.ks)(L);var R=(0,r.retrieve2)(D.height,I.contentHeight);if(I.innerHeight=R,O&&(R+=O[0]+O[2]),I.height=R,I.lineHeight=(0,r.retrieve3)(D.lineHeight,e.lineHeight,R),I.align=D&&D.align||e.align,I.verticalAlign=D&&D.verticalAlign||"middle",b&&null!=h&&m+I.lineHeight>h){k>0?(M.tokens=M.tokens.slice(0,k),S(M,C,T),l.lines=l.lines.slice(0,A+1)):l.lines=l.lines.slice(0,A);break e}var N=D.width,E=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))I.percentWidth=N,v.push(I),I.contentWidth=(0,o.RG)(I.text,L);else{if(E){var z=D.backgroundColor,B=z&&z.image;B&&(B=i.SR(B),i.xA(B)&&(I.width=Math.max(I.width,B.width*R/B.height)))}var F=w&&null!=u?u-C:null;null!=F&&F<I.width?!E||F<P?(I.text="",I.width=I.contentWidth=0):(I.text=s(I.text,F-P,L,e.ellipsis,{minChar:e.truncateMinChar}),I.width=I.contentWidth=(0,o.RG)(I.text,L)):I.contentWidth=(0,o.RG)(I.text,L)}I.width+=P,C+=I.width,D&&(T=Math.max(T,I.lineHeight))}S(M,C,T)}l.outerWidth=l.width=(0,r.retrieve2)(u,_),l.outerHeight=l.height=(0,r.retrieve2)(h,m),l.contentHeight=m,l.contentWidth=_,x&&(l.outerWidth+=x[1]+x[3],l.outerHeight+=x[0]+x[2]);for(var A=0;A<v.length;A++){var I=v[A],H=I.percentWidth;I.width=parseInt(H,10)/100*l.width}return l}function g(t,e,n,i,r){var a,s,l=""===e,u=r&&n.rich[r]||{},h=t.lines,f=u.font||n.font,d=!1;if(i){var g=u.padding,y=g?g[1]+g[3]:0;if(null!=u.width&&"auto"!==u.width){var m=(0,o.lo)(u.width,i.width)+y;h.length>0&&m+i.accumWidth>i.width&&(a=e.split("\n"),d=!0),i.accumWidth=m}else{var _=v(e,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=_.accumWidth+y,s=_.linesWidths,a=_.lines}}else a=e.split("\n");for(var x=0;x<a.length;x++){var w=a[x],b=new c;if(b.styleName=r,b.text=w,b.isLineHolder=!w&&!l,"number"==typeof u.width?b.width=u.width:b.width=s?s[x]:(0,o.RG)(w,f),x||d)h.push(new p([b]));else{var S=(h[h.length-1]||(h[0]=new p)).tokens,A=S.length;1===A&&S[0].isLineHolder?S[0]=b:(w||!A||l)&&S.push(b)}}}var y=(0,r.reduce)(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function v(t,e,n,i,r){for(var a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var f=t.charAt(p);if("\n"===f){u&&(l+=u,c+=h),a.push(l),s.push(c),l="",u="",h=0,c=0;continue}var d=(0,o.RG)(f,e),g=!i&&!function(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!y[t]}(f);if(a.length?c+d>n:r+c+d>n){c?(l||u)&&(g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=f,h+=d,l="",c=h):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=f,c=d)):g?(a.push(u),s.push(h),u=f,h=d):(a.push(f),s.push(d));continue}c+=d,g?(u+=f,h+=d):(u&&(l+=u,u="",h=0),l+=f)}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}},59838:function(t,e,n){n.d(e,{U:()=>r});var i=n(28535);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,u=[],h=[],c=[],p=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var f=0,d=t.length;f<d;f++)(0,i.min)(s,s,t[f]),(0,i.max)(l,l,t[f]);(0,i.min)(s,s,r[0]),(0,i.max)(l,l,r[1])}for(var f=0,d=t.length;f<d;f++){var g=t[f];if(n)o=t[f?f-1:d-1],a=t[(f+1)%d];else if(0===f||f===d-1){u.push((0,i.clone)(t[f]));continue}else o=t[f-1],a=t[f+1];(0,i.sub)(h,a,o),(0,i.scale)(h,h,e);var y=(0,i.distance)(g,o),v=(0,i.distance)(g,a),m=y+v;0!==m&&(y/=m,v/=m),(0,i.scale)(c,h,-y),(0,i.scale)(p,h,v);var _=(0,i.add)([],g,c),x=(0,i.add)([],g,p);r&&((0,i.max)(_,_,s),(0,i.min)(_,_,l),(0,i.max)(x,x,s),(0,i.min)(x,x,l)),u.push(_),u.push(x)}return n&&u.push(u.shift()),u}(o,r,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var u=a[2*l],h=a[2*l+1],c=o[(l+1)%s];t.bezierCurveTo(u[0],u[1],h[0],h[1],c[0],c[1])}}else{t.moveTo(o[0][0],o[0][1]);for(var l=1,p=o.length;l<p;l++)t.lineTo(o[l][0],o[l][1])}n&&t.closePath()}}},33915:function(t,e,n){n.d(e,{M7:()=>a,Op:()=>o,eB:()=>r});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u&&(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,u,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,u,!0))),t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l&&(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,+(0!==o)),t.height=Math.max(a(r+s,l,!1)-t.y,+(0!==s))),t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},76265:function(t,e,n){n.d(e,{A:()=>s});var i=n(74915),r=n(30070),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)},e}(r.Ay);a.prototype.type="arc";let s=a},95163:function(t,e,n){n.d(e,{A:()=>c});var i=n(74915),r=n(30070),o=n(28535),a=n(26989),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function u(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?a.rD:a.Yb)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.rD:a.Yb)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.z7:a.k3)(t.x1,t.cpx1,t.x2,e),(n?a.z7:a.k3)(t.y1,t.cpy1,t.y2,e)]}var h=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,h=e.cpx2,c=e.cpy2,p=e.percent;0!==p&&(t.moveTo(n,i),null==h||null==c?(p<1&&((0,a.kx)(n,l,r,p,s),l=s[1],r=s[2],(0,a.kx)(i,u,o,p,s),u=s[1],o=s[2]),t.quadraticCurveTo(l,u,r,o)):(p<1&&((0,a.YT)(n,l,h,r,p,s),l=s[1],h=s[2],r=s[3],(0,a.YT)(i,u,c,o,p,s),u=s[1],c=s[2],o=s[3]),t.bezierCurveTo(l,u,h,c,r,o)))},e.prototype.pointAt=function(t){return u(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=u(this.shape,t,!0);return o.normalize(e,e)},e}(r.Ay);h.prototype.type="bezier-curve";let c=h},2989:function(t,e,n){n.d(e,{A:()=>s});var i=n(74915),r=n(30070),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},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}(r.Ay);a.prototype.type="circle";let s=a},19327:function(t,e,n){n.d(e,{A:()=>s});var i=n(74915),r=n(30070),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,o=e.ry,a=.5522848*r,s=.5522848*o;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-s,n-a,i-o,n,i-o),t.bezierCurveTo(n+a,i-o,n+r,i-s,n+r,i),t.bezierCurveTo(n+r,i+s,n+a,i+o,n,i+o),t.bezierCurveTo(n-a,i+o,n-r,i+s,n-r,i),t.closePath()},e}(r.Ay);a.prototype.type="ellipse";let s=a},28887:function(t,e,n){n.d(e,{A:()=>u});var i=n(74915),r=n(30070),o=n(33915),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,s,l=(0,o.eB)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,i),u<1&&(r=n*(1-u)+r*u,s=i*(1-u)+s*u),t.lineTo(r,s))},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}(r.Ay);l.prototype.type="line";let u=l},97451:function(t,e,n){n.d(e,{A:()=>l});var i=n(74915),r=n(30070),o=n(59838),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!0)},e}(r.Ay);s.prototype.type="polygon";let l=s},88297:function(t,e,n){n.d(e,{A:()=>l});var i=n(74915),r=n(30070),o=n(59838),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!1)},e}(r.Ay);s.prototype.type="polyline";let l=s},63811:function(t,e,n){n.d(e,{A:()=>u});var i=n(74915),r=n(30070),o=n(33915),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var n,i,r,a,l,u,h,c,p,f,d,g,y,v,m,_=(0,o.Op)(s,e,this.style);g=_.x,y=_.y,v=_.width,m=_.height,_.r=e.r,e=_}else g=e.x,y=e.y,v=e.width,m=e.height;e.r?(h=(n=e).x,c=n.y,p=n.width,f=n.height,d=n.r,p<0&&(h+=p,p=-p),f<0&&(c+=f,f=-f),"number"==typeof d?i=r=a=l=d:d instanceof Array?1===d.length?i=r=a=l=d[0]:2===d.length?(i=a=d[0],r=l=d[1]):3===d.length?(i=d[0],r=l=d[1],a=d[2]):(i=d[0],r=d[1],a=d[2],l=d[3]):i=r=a=l=0,i+r>p&&(u=i+r,i*=p/u,r*=p/u),a+l>p&&(u=a+l,a*=p/u,l*=p/u),r+a>f&&(u=r+a,r*=f/u,a*=f/u),i+l>f&&(u=i+l,i*=f/u,l*=f/u),t.moveTo(h+i,c),t.lineTo(h+p-r,c),0!==r&&t.arc(h+p-r,c+r,r,-Math.PI/2,0),t.lineTo(h+p,c+f-a),0!==a&&t.arc(h+p-a,c+f-a,a,0,Math.PI/2),t.lineTo(h+l,c+f),0!==l&&t.arc(h+l,c+f-l,l,Math.PI/2,Math.PI),t.lineTo(h,c+i),0!==i&&t.arc(h+i,c+i,i,Math.PI,1.5*Math.PI)):t.rect(g,y,v,m)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.Ay);l.prototype.type="rect";let u=l},26839:function(t,e,n){n.d(e,{A:()=>s});var i=n(74915),r=n(30070),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},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}(r.Ay);a.prototype.type="ring";let s=a},23917:function(t,e,n){n.d(e,{A:()=>_});var i=n(74915),r=n(30070),o=n(4884),a=Math.PI,s=2*a,l=Math.sin,u=Math.cos,h=Math.acos,c=Math.atan2,p=Math.abs,f=Math.sqrt,d=Math.max,g=Math.min;function y(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/f(s*s+l*l),h=u*l,c=-u*s,p=t+h,g=e+c,y=n+h,v=i+c,m=(p+y)/2,_=(g+v)/2,x=y-p,w=v-g,b=x*x+w*w,S=r-o,A=p*v-y*g,M=(w<0?-1:1)*f(d(0,S*S*b-A*A)),T=(A*w-x*M)/b,C=(-A*x-w*M)/b,k=(A*w+x*M)/b,I=(-A*x+w*M)/b,D=T-m,O=C-_,P=k-m,L=I-_;return D*D+O*O>P*P+L*L&&(T=k,C=I),{cx:T,cy:C,x0:-h,y0:-c,x1:T*(r/S-1),y1:C*(r/S-1)}}var v=function(){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},m=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new v},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=d(e.r,0),r=d(e.r0||0,0),v=i>0,m=r>0;if(v||m){if(v||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,w=e.endAngle;if(!(isNaN(x)||isNaN(w))){var b=e.cx,S=e.cy,A=!!e.clockwise,M=p(w-x),T=M>s&&M%s;if(T>1e-4&&(M=T),i>1e-4)if(M>s-1e-4)t.moveTo(b+i*u(x),S+i*l(x)),t.arc(b,S,i,x,w,!A),r>1e-4&&(t.moveTo(b+r*u(w),S+r*l(w)),t.arc(b,S,r,w,x,A));else{var C=void 0,k=void 0,I=void 0,D=void 0,O=void 0,P=void 0,L=void 0,R=void 0,N=void 0,E=void 0,z=void 0,B=void 0,F=void 0,H=void 0,V=void 0,W=void 0,G=i*u(x),U=i*l(x),Y=r*u(w),X=r*l(w),j=M>1e-4;if(j){var q=e.cornerRadius;q&&(C=(n=function(t){var e;if((0,o.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}(q))[0],k=n[1],I=n[2],D=n[3]);var Z=p(i-r)/2;if(O=g(Z,I),P=g(Z,D),L=g(Z,C),R=g(Z,k),z=N=d(O,P),B=E=d(L,R),(N>1e-4||E>1e-4)&&(F=i*u(w),H=i*l(w),V=r*u(x),W=r*l(x),M<a)){var K=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=a-r,c=s-o,p=c*l-h*u;if(!(p*p<1e-4))return p=(h*(e-o)-c*(t-r))/p,[t+p*l,e+p*u]}(G,U,V,W,F,H,Y,X);if(K){var $=G-K[0],Q=U-K[1],J=F-K[0],tt=H-K[1],te=1/l(h(($*J+Q*tt)/(f($*$+Q*Q)*f(J*J+tt*tt)))/2),tn=f(K[0]*K[0]+K[1]*K[1]);z=g(N,(i-tn)/(te+1)),B=g(E,(r-tn)/(te-1))}}}if(j)if(z>1e-4){var ti=g(I,z),tr=g(D,z),to=y(V,W,G,U,i,ti,A),ta=y(F,H,Y,X,i,tr,A);t.moveTo(b+to.cx+to.x0,S+to.cy+to.y0),z<N&&ti===tr?t.arc(b+to.cx,S+to.cy,z,c(to.y0,to.x0),c(ta.y0,ta.x0),!A):(ti>0&&t.arc(b+to.cx,S+to.cy,ti,c(to.y0,to.x0),c(to.y1,to.x1),!A),t.arc(b,S,i,c(to.cy+to.y1,to.cx+to.x1),c(ta.cy+ta.y1,ta.cx+ta.x1),!A),tr>0&&t.arc(b+ta.cx,S+ta.cy,tr,c(ta.y1,ta.x1),c(ta.y0,ta.x0),!A))}else t.moveTo(b+G,S+U),t.arc(b,S,i,x,w,!A);else t.moveTo(b+G,S+U);if(r>1e-4&&j)if(B>1e-4){var ti=g(C,B),tr=g(k,B),to=y(Y,X,F,H,r,-tr,A),ta=y(G,U,V,W,r,-ti,A);t.lineTo(b+to.cx+to.x0,S+to.cy+to.y0),B<E&&ti===tr?t.arc(b+to.cx,S+to.cy,B,c(to.y0,to.x0),c(ta.y0,ta.x0),!A):(tr>0&&t.arc(b+to.cx,S+to.cy,tr,c(to.y0,to.x0),c(to.y1,to.x1),!A),t.arc(b,S,r,c(to.cy+to.y1,to.cx+to.x1),c(ta.cy+ta.y1,ta.cx+ta.x1),A),ti>0&&t.arc(b+ta.cx,S+ta.cy,ti,c(ta.y1,ta.x1),c(ta.y0,ta.x0),!A))}else t.lineTo(b+Y,S+X),t.arc(b,S,r,w,x,A);else t.lineTo(b+Y,S+X)}else t.moveTo(b,S);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.Ay);m.prototype.type="sector";let _=m},33553:function(t,e,n){n.d(e,{$2:()=>s,Cv:()=>l,MD:()=>b,OH:()=>_,OS:()=>m,Pt:()=>v,WG:()=>A,XP:()=>h,Xu:()=>w,Z1:()=>S,bn:()=>x,dX:()=>d,eQ:()=>p,nV:()=>c,sL:()=>y,sZ:()=>f,si:()=>g});var i=n(4884),r=n(34196),o=n(35209),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,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}}function l(t){return t<1e-4&&t>-1e-4}function u(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function c(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+h(t[4])+","+h(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function d(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 y(t)||t&&!!t.svgElement}function m(t){return"linear"===t.type}function _(t){return"radial"===t.type}function x(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function b(t){var e=t.getGlobalScale();return Math.max(Math.ceil(Math.log(Math.max(e[0],e[1]))/Math.log(10)),1)}function S(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,o=(0,i.retrieve2)(t.scaleX,1),s=(0,i.retrieve2)(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,h=[];return(e||n)&&h.push("translate("+e+"px,"+n+"px)"),r&&h.push("rotate("+r+")"),(1!==o||1!==s)&&h.push("scale("+o+","+s+")"),(l||u)&&h.push("skew("+a(l*i.RADIAN_TO_DEGREE)+"deg, "+a(u*i.RADIAN_TO_DEGREE)+"deg)"),h.join(" ")}var A=o.A.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}},34196:function(t,e,n){n.r(e),n.d(e,{fastLerp:()=>x,fastMapToColor:()=>w,lerp:()=>b,lift:()=>m,liftColor:()=>D,lum:()=>C,mapToColor:()=>S,modifyAlpha:()=>M,modifyHSL:()=>A,parse:()=>y,random:()=>k,stringify:()=>T,toHex:()=>_});var i=n(14407),r=n(4884),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function u(t){return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}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 c(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i.Ay(20),d=null;function g(t,e){d&&p(d,e),d=f.put(t,d||e.slice())}function y(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in o)return p(e,o[i]),g(t,e),e;var r=i.length;if("#"===i.charAt(0)){if(4===r||5===r){var a=parseInt(i.slice(1,4),16);return a>=0&&a<=4095?(c(e,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===r?parseInt(i.slice(4),16)/15:1),g(t,e),e):void c(e,0,0,0,1)}if(7===r||9===r){var a=parseInt(i.slice(1,7),16);return a>=0&&a<=0xffffff?(c(e,(0xff0000&a)>>16,(65280&a)>>8,255&a,9===r?parseInt(i.slice(7),16)/255:1),g(t,e),e):void c(e,0,0,0,1)}return}var s=i.indexOf("("),h=i.indexOf(")");if(-1!==s&&h+1===r){var d=i.substr(0,s),y=i.substr(s+1,h-(s+1)).split(","),m=1;switch(d){case"rgba":if(4!==y.length)return 3===y.length?c(e,+y[0],+y[1],+y[2],1):c(e,0,0,0,1);m=u(y.pop());case"rgb":if(y.length>=3)return c(e,l(y[0]),l(y[1]),l(y[2]),3===y.length?m:u(y[3])),g(t,e),e;return void c(e,0,0,0,1);case"hsla":if(4!==y.length)return void c(e,0,0,0,1);return y[3]=u(y[3]),v(y,e),g(t,e),e;case"hsl":if(3!==y.length)return void c(e,0,0,0,1);return v(y,e),g(t,e),e;default:return}}c(e,0,0,0,1)}}function v(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=u(t[1]),r=u(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return c(e=e||[],a(255*h(s,o,n+1/3)),a(255*h(s,o,n)),a(255*h(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function m(t,e){var n=y(t);if(n){for(var i=0;i<3;i++)e<0?n[i]=n[i]*(1-e)|0:n[i]=(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return T(n,4===n.length?"rgba":"rgb")}}function _(t){var e=y(t);if(e)return(0x1000000+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function x(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i,r,o,l,u=t*(e.length-1),h=Math.floor(u),c=Math.ceil(u),p=e[h],f=e[c],d=u-h;return n[0]=a((i=p[0],i+(f[0]-i)*d)),n[1]=a((r=p[1],r+(f[1]-r)*d)),n[2]=a((o=p[2],o+(f[2]-o)*d)),n[3]=s((l=p[3],l+(f[3]-l)*d)),n}}var w=x;function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i,r,o,l,u=t*(e.length-1),h=Math.floor(u),c=Math.ceil(u),p=y(e[h]),f=y(e[c]),d=u-h,g=T([a((i=p[0],i+(f[0]-i)*d)),a((r=p[1],r+(f[1]-r)*d)),a((o=p[2],o+(f[2]-o)*d)),s((l=p[3],l+(f[3]-l)*d))],"rgba");return n?{color:g,leftIndex:h,rightIndex:c,value:u}:g}}var S=b;function A(t,e,n,i){var r,o=y(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-c:r===s?e=1/3+h-p:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(r=Math.round(r=e))<0?0:r>360?360:r),null!=n&&(o[1]=u(n)),null!=i&&(o[2]=u(i)),T(v(o),"rgba")}function M(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),T(n,"rgba")}function T(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 C(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function k(){return T([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var I=new i.Ay(100);function D(t){if((0,r.isString)(t)){var e=I.get(t);return e||(e=m(t,-.1),I.put(t,e)),e}if((0,r.isGradientObject)(t)){var n=(0,r.extend)({},t);return n.colorStops=(0,r.map)(t.colorStops,function(t){return{offset:t.offset,color:m(t.color,-.1)}}),n}return t}},85038:function(t,e,n){n.d(e,{UJ:()=>T,rR:()=>I,Qh:()=>C,uc:()=>k});var i=n(74915),r=n(30070),o=n(40843),a=n(28535),s=o.A.CMD,l=[[],[],[]],u=Math.sqrt,h=Math.atan2;function c(t,e){if(e){var n,i,r,o,c,p,f=t.data,d=t.len(),g=s.M,y=s.C,v=s.L,m=s.R,_=s.A,x=s.Q;for(r=0,o=0;r<d;){switch(n=f[r++],o=r,i=0,n){case g:case v:i=1;break;case y:i=3;break;case x:i=2;break;case _:var w=e[4],b=e[5],S=u(e[0]*e[0]+e[1]*e[1]),A=u(e[2]*e[2]+e[3]*e[3]),M=h(-e[1]/A,e[0]/S);f[r]*=S,f[r++]+=w,f[r]*=A,f[r++]+=b,f[r++]*=S,f[r++]*=A,f[r++]+=M,f[r++]+=M,r+=2,o=r;break;case m:p[0]=f[r++],p[1]=f[r++],(0,a.applyTransform)(p,p,e),f[o++]=p[0],f[o++]=p[1],p[0]+=f[r++],p[1]+=f[r++],(0,a.applyTransform)(p,p,e),f[o++]=p[0],f[o++]=p[1]}for(c=0;c<i;c++){var T=l[c];T[0]=f[r++],T[1]=f[r++],(0,a.applyTransform)(T,T,e),f[o++]=T[0],f[o++]=T[1]}}t.increaseVersion()}}var p=n(4884),f=Math.sqrt,d=Math.sin,g=Math.cos,y=Math.PI;function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function m(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))}function _(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))}function x(t,e,n,i,r,o,a,s,l,u,h){var c=y/180*l,p=g(c)*(t-n)/2+d(c)*(e-i)/2,v=-1*d(c)*(t-n)/2+g(c)*(e-i)/2,x=p*p/(a*a)+v*v/(s*s);x>1&&(a*=f(x),s*=f(x));var w=(r===o?-1:1)*f((a*a*(s*s)-a*a*(v*v)-s*s*(p*p))/(a*a*(v*v)+s*s*(p*p)))||0,b=w*a*v/s,S=-(w*s)*p/a,A=(t+n)/2+g(c)*b-d(c)*S,M=(e+i)/2+d(c)*b+g(c)*S,T=_([1,0],[(p-b)/a,(v-S)/s]),C=[(p-b)/a,(v-S)/s],k=[(-1*p-b)/a,(-1*v-S)/s],I=_(C,k);if(-1>=m(C,k)&&(I=y),m(C,k)>=1&&(I=0),I<0){var D=Math.round(I/y*1e6)/1e6;I=2*y+D%2*y}h.addData(u,A,M,a,s,T,I,c,o)}var w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,b=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.applyTransform=function(t){},e}(r.Ay);function A(t){return null!=t.setData}function M(t,e){var n=function(t){var e,n=new o.A;if(!t)return n;var i=0,r=0,a=0,s=0,l=o.A.CMD,u=t.match(w);if(!u)return n;for(var h=0;h<u.length;h++){for(var c=u[h],p=c.charAt(0),f=void 0,d=c.match(b)||[],g=d.length,y=0;y<g;y++)d[y]=parseFloat(d[y]);for(var v=0;v<g;){var m=void 0,_=void 0,S=void 0,A=void 0,M=void 0,T=void 0,C=void 0,k=i,I=r,D=void 0,O=void 0;switch(p){case"l":i+=d[v++],r+=d[v++],f=l.L,n.addData(f,i,r);break;case"L":i=d[v++],r=d[v++],f=l.L,n.addData(f,i,r);break;case"m":i+=d[v++],r+=d[v++],f=l.M,n.addData(f,i,r),a=i,s=r,p="l";break;case"M":i=d[v++],r=d[v++],f=l.M,n.addData(f,i,r),a=i,s=r,p="L";break;case"h":i+=d[v++],f=l.L,n.addData(f,i,r);break;case"H":i=d[v++],f=l.L,n.addData(f,i,r);break;case"v":r+=d[v++],f=l.L,n.addData(f,i,r);break;case"V":r=d[v++],f=l.L,n.addData(f,i,r);break;case"C":f=l.C,n.addData(f,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),i=d[v-2],r=d[v-1];break;case"c":f=l.C,n.addData(f,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r),i+=d[v-2],r+=d[v-1];break;case"S":m=i,_=r,D=n.len(),O=n.data,e===l.C&&(m+=i-O[D-4],_+=r-O[D-3]),f=l.C,k=d[v++],I=d[v++],i=d[v++],r=d[v++],n.addData(f,m,_,k,I,i,r);break;case"s":m=i,_=r,D=n.len(),O=n.data,e===l.C&&(m+=i-O[D-4],_+=r-O[D-3]),f=l.C,k=i+d[v++],I=r+d[v++],i+=d[v++],r+=d[v++],n.addData(f,m,_,k,I,i,r);break;case"Q":k=d[v++],I=d[v++],i=d[v++],r=d[v++],f=l.Q,n.addData(f,k,I,i,r);break;case"q":k=d[v++]+i,I=d[v++]+r,i+=d[v++],r+=d[v++],f=l.Q,n.addData(f,k,I,i,r);break;case"T":m=i,_=r,D=n.len(),O=n.data,e===l.Q&&(m+=i-O[D-4],_+=r-O[D-3]),i=d[v++],r=d[v++],f=l.Q,n.addData(f,m,_,i,r);break;case"t":m=i,_=r,D=n.len(),O=n.data,e===l.Q&&(m+=i-O[D-4],_+=r-O[D-3]),i+=d[v++],r+=d[v++],f=l.Q,n.addData(f,m,_,i,r);break;case"A":S=d[v++],A=d[v++],M=d[v++],T=d[v++],C=d[v++],k=i,I=r,i=d[v++],x(k,I,i,r=d[v++],T,C,S,A,M,f=l.A,n);break;case"a":S=d[v++],A=d[v++],M=d[v++],T=d[v++],C=d[v++],k=i,I=r,i+=d[v++],x(k,I,i,r+=d[v++],T,C,S,A,M,f=l.A,n)}}("z"===p||"Z"===p)&&(f=l.Z,n.addData(f),i=a,r=s),e=f}return n.toStatic(),n}(t),i=(0,p.extend)({},e);return i.buildPath=function(t){if(A(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){c(n,t),this.dirtyShape()},i}function T(t,e){return new S(M(t,e))}function C(t,e){var n=M(t,e),r=S;function o(t){var e=r.call(this,t)||this;return e.applyTransform=n.applyTransform,e.buildPath=n.buildPath,e}return(0,i.C6)(o,r),o}function k(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var a=t[o];n.push(a.getUpdatedPathProxy(!0))}var s=new r.Ay(e);return s.createPathProxy(),s.buildPath=function(t){if(A(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function I(t,e){e=e||{};var n=new r.Ay;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?c(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}},66726:function(t,e,n){n.r(e),n.d(e,{disposeAll:()=>ts,registerSSRDataGetter:()=>tc,dispose:()=>ta,registerPainter:()=>tu,init:()=>to,getElementSSRData:()=>th,getInstance:()=>tl,version:()=>tp});var i,r,o,a,s=n(35209),l=n(4884),u=n(74915),h=n(28535),c=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},p=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new c(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new c(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new c(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new c(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new c(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new c(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),f=n(16419),d=n(77250),g=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=d.Yo(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in v)if(v.hasOwnProperty(e)){var n=v[e](this._track,t);if(n)return n}},t}();function y(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var v={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=y(i)/y(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},m=n(51690),_="silent";function x(){d.ds(this.event)}var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,u.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(f.A),b=function(t,e){this.x=t,this.y=e},S=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],A=new m.A(0,0,0,0),M=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new b(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new w,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new p(a),a}return(0,u.C6)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(l.each(S,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=C(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new b(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new b(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r,o="on"+e,a={type:e,event:n,target:(r=t).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:x};i&&(i[o]&&(a.cancelBubble=!!i[o].call(i,a)),i.trigger(e,a),i=i.__hostTarget?i.__hostTarget:i.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new b(t,e);if(T(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new m.A(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(A.copy(h.getBoundingRect()),h.transform&&A.applyTransform(h.transform),A.intersect(l)&&o.push(h))}if(o.length){for(var c=Math.PI/12,p=2*Math.PI,f=0;f<s;f+=4)for(var d=0;d<p;d+=c)if(T(o,r,t+f*Math.cos(d),e+f*Math.sin(d),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new g);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new b;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(f.A);function T(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0),i=i.__hostTarget||i.parent}return!r||_}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==_)){e.target=a;break}}}function C(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}l.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){M.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=C(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||h.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var k=n(24952),I=n(63154),D=!1;function O(){D||(D=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function P(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var L=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=P}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,(0,k.A)(n,P)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=I.M),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else e&&e.length?t.__clipPaths=e:t.__clipPaths&&t.__clipPaths.length>0&&(t.__clipPaths=[]),isNaN(t.z)&&(O(),t.z=0),isNaN(t.z2)&&(O(),t.z2=0),isNaN(t.zlevel)&&(O(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=l.indexOf(this._roots,t);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),R=n(94263),N=n(83390);function E(){return new Date().getTime()}var z=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n}return(0,u.C6)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=E()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),i=r}this._time=e,!t&&(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,R.A)(function e(){t._running&&((0,R.A)(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=E(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=E(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=E()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new N.A(t,e.loop);return this.addAnimator(n),n},e}(f.A),B=s.A.domSupported,F=(i=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},o=l.map(i,function(t){var e=t.replace("mouse","pointer");return r.hasOwnProperty(e)?e:t}),{mouse:i,touch:["touchstart","touchend","touchmove"],pointer:o}),H=["mousemove","mouseup"],V=["pointermove","pointerup"],W=!1;function G(t){var e=t.pointerType;return"pen"===e||"touch"===e}function U(t){t&&(t.zrByTouch=!0)}function Y(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var X=function(t,e){this.stopPropagation=l.noop,this.stopImmediatePropagation=l.noop,this.preventDefault=l.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},j={mousedown:function(t){t=(0,d.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,d.e0)(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,d.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Y(this,(t=(0,d.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){W=!0,t=(0,d.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){W||(t=(0,d.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){U(t=(0,d.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),j.mousemove.call(this,t),j.mousedown.call(this,t)},touchmove:function(t){U(t=(0,d.e0)(this.dom,t)),this.handler.processGesture(t,"change"),j.mousemove.call(this,t)},touchend:function(t){U(t=(0,d.e0)(this.dom,t)),this.handler.processGesture(t,"end"),j.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&j.click.call(this,t)},pointerdown:function(t){j.mousedown.call(this,t)},pointermove:function(t){G(t)||j.mousemove.call(this,t)},pointerup:function(t){j.mouseup.call(this,t)},pointerout:function(t){G(t)||j.mouseout.call(this,t)}};l.each(["click","dblclick","contextmenu"],function(t){j[t]=function(e){e=(0,d.e0)(this.dom,e),this.trigger(t,e)}});var q={pointermove:function(t){G(t)||q.mousemove.call(this,t)},pointerup:function(t){q.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Z(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,d.q2)(t.domTarget,e,n,i)}function K(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,d.f)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var $=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Q=function(t){function e(e,n){var i,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=n,o._localHandlerScope=new $(e,j),B&&(o._globalHandlerScope=new $(document,q)),r=(i=o._localHandlerScope).domHandlers,s.A.pointerEventsSupported?l.each(F.pointer,function(t){Z(i,t,function(e){r[t].call(o,e)})}):(s.A.touchEventsSupported&&l.each(F.touch,function(t){Z(i,t,function(e){r[t].call(o,e),i.touching=!0,null!=i.touchTimer&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)})}),l.each(F.mouse,function(t){Z(i,t,function(e){e=(0,d.mK)(e),i.touching||r[t].call(o,e)})})),o}return(0,u.C6)(e,t),e.prototype.dispose=function(){K(this._localHandlerScope),B&&K(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,B&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){s.A.pointerEventsSupported?l.each(V,n):s.A.touchEventsSupported||l.each(H,n);function n(n){Z(e,n,function(i){if(!Y(t,(i=(0,d.mK)(i)).target)){var r;r=i,i=(0,d.e0)(t.dom,new X(t,r),!0),e.domHandlers[n].call(t,i)}},{capture:!0})}}(this,e):K(e)}},e}(f.A),J=n(34196),tt=n(72076),te=n(79620),tn={},ti={},tr=function(){function t(t,e,n){var i,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new L,a=n.renderer||"canvas";tn[a]||(a=l.keys(tn)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var u=new tn[a](e,o,n,t),h=n.ssr||u.ssrOnly;this.storage=o,this.painter=u;var c=s.A.node||s.A.worker||h?null:new Q(u.getViewportRoot(),u.root),p=n.useCoarsePointer;(null==p||"auto"===p?s.A.touchEventsSupported:!!p)&&(i=l.retrieve2(n.pointerSize,44)),this.handler=new M(o,u,c,u.root,i),this.animation=new z({stage:{update:h?null:function(){return r._flush(!0)}}}),h||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=function(t){if(!t)return!1;if("string"==typeof t)return(0,J.lum)(t,1)<tt.ps;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=(0,J.lum)(e[r].color,1);return(n/=i)<tt.ps}return!1}(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||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=E();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=E();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-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._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof te.A&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;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,t=this.id,delete ti[t]}},t}();function to(t,e){var n=new tr(l.guid(),t,e);return ti[n.id]=n,n}function ta(t){t.dispose()}function ts(){for(var t in ti)ti.hasOwnProperty(t)&&ti[t].dispose();ti={}}function tl(t){return ti[t]}function tu(t,e){tn[t]=e}function th(t){if("function"==typeof a)return a(t)}function tc(t){a=t}var tp="5.5.0"}}]);
|