@perses-dev/trace-table-plugin 0.9.0 → 0.9.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.
Files changed (84) hide show
  1. package/__mf/css/async/442.d3010b86.css +1 -0
  2. package/__mf/css/async/61.d3010b86.css +1 -0
  3. package/__mf/css/async/823.d3010b86.css +1 -0
  4. package/__mf/js/TraceTable.e7502696.js +6 -0
  5. package/__mf/js/async/{964.1165a855.js → 121.c61bbf00.js} +2 -2
  6. package/__mf/js/async/{488.1ae7b913.js → 177.72614532.js} +1 -1
  7. package/__mf/js/async/192.50983042.js +1 -0
  8. package/__mf/js/async/195.caa80edf.js +7 -0
  9. package/__mf/js/async/2.c67f1fea.js +1 -0
  10. package/__mf/js/async/235.d017b2f3.js +1 -0
  11. package/__mf/js/async/252.7de4457b.js +22 -0
  12. package/__mf/js/async/274.23857c48.js +2 -0
  13. package/__mf/js/async/289.c722d41d.js +147 -0
  14. package/__mf/js/async/356.1520b4b9.js +1 -0
  15. package/__mf/js/async/392.ba8c2c55.js +2 -0
  16. package/__mf/js/async/43.15aacd55.js +2 -0
  17. package/__mf/js/async/470.59b55de8.js +2 -0
  18. package/__mf/js/async/48.0daa445f.js +2 -0
  19. package/__mf/js/async/54.ec6d9b92.js +1 -0
  20. package/__mf/js/async/549.fb982abf.js +2 -0
  21. package/__mf/js/async/{214.0bac5b59.js → 587.6b047404.js} +1 -1
  22. package/__mf/js/async/588.81784db9.js +1 -0
  23. package/__mf/js/async/616.07b86461.js +1 -0
  24. package/__mf/js/async/670.41f6b1c0.js +80 -0
  25. package/__mf/js/async/670.41f6b1c0.js.LICENSE.txt +9 -0
  26. package/__mf/js/async/71.c2e1eaf6.js +1 -0
  27. package/__mf/js/async/873.d4f6eb80.js +1 -0
  28. package/__mf/js/async/941.4fe94885.js +2 -0
  29. package/__mf/js/async/{738.4eaf0328.js → 968.0959d664.js} +1 -1
  30. package/__mf/js/async/978.230c12cb.js +1 -0
  31. package/__mf/js/async/__federation_expose_TraceTable.9ca82930.js +1 -0
  32. package/__mf/js/async/lib-router.d2b2e61c.js +2 -0
  33. package/__mf/js/main.c2261f18.js +6 -0
  34. package/lib/DataTable.js +1 -1
  35. package/lib/DataTable.js.map +1 -1
  36. package/lib/bootstrap.js +1 -1
  37. package/lib/bootstrap.js.map +1 -1
  38. package/lib/cjs/index-federation.js +12 -12
  39. package/lib/cjs/test/mock-trace-data.js +5 -5
  40. package/lib/cjs/utils/palette.js +3 -3
  41. package/mf-manifest.json +33 -34
  42. package/mf-stats.json +33 -34
  43. package/package.json +4 -4
  44. package/__mf/css/async/263.3d4493d2.css +0 -1
  45. package/__mf/css/async/341.3d4493d2.css +0 -1
  46. package/__mf/css/async/759.3d4493d2.css +0 -1
  47. package/__mf/js/TraceTable.ee57f491.js +0 -5
  48. package/__mf/js/async/109.92d5db6e.js +0 -22
  49. package/__mf/js/async/173.085e8c1f.js +0 -2
  50. package/__mf/js/async/175.ba9a4640.js +0 -147
  51. package/__mf/js/async/224.51c57ceb.js +0 -1
  52. package/__mf/js/async/235.be067e8a.js +0 -28
  53. package/__mf/js/async/238.ccd6c3b2.js +0 -1
  54. package/__mf/js/async/292.d26d57c4.js +0 -1
  55. package/__mf/js/async/409.d01a441f.js +0 -1
  56. package/__mf/js/async/445.8804dd58.js +0 -7
  57. package/__mf/js/async/62.724a7239.js +0 -1
  58. package/__mf/js/async/651.996aef16.js +0 -1
  59. package/__mf/js/async/69.0b1487b7.js +0 -2
  60. package/__mf/js/async/694.5d60f324.js +0 -1
  61. package/__mf/js/async/740.3195ce93.js +0 -1
  62. package/__mf/js/async/75.8f589ac7.js +0 -1
  63. package/__mf/js/async/770.06030c80.js +0 -1
  64. package/__mf/js/async/812.f87960e5.js +0 -53
  65. package/__mf/js/async/83.16406283.js +0 -1
  66. package/__mf/js/async/863.17535c71.js +0 -2
  67. package/__mf/js/async/960.3373bed4.js +0 -2
  68. package/__mf/js/async/974.4058b9ce.js +0 -2
  69. package/__mf/js/async/981.92685962.js +0 -2
  70. package/__mf/js/async/__federation_expose_TraceTable.09ba5ecf.js +0 -1
  71. package/__mf/js/async/lib-router.5b98a3da.js +0 -2
  72. package/__mf/js/main.ac19386c.js +0 -5
  73. /package/__mf/js/async/{964.1165a855.js.LICENSE.txt → 121.c61bbf00.js.LICENSE.txt} +0 -0
  74. /package/__mf/js/async/{445.8804dd58.js.LICENSE.txt → 195.caa80edf.js.LICENSE.txt} +0 -0
  75. /package/__mf/js/async/{109.92d5db6e.js.LICENSE.txt → 252.7de4457b.js.LICENSE.txt} +0 -0
  76. /package/__mf/js/async/{960.3373bed4.js.LICENSE.txt → 274.23857c48.js.LICENSE.txt} +0 -0
  77. /package/__mf/js/async/{175.ba9a4640.js.LICENSE.txt → 289.c722d41d.js.LICENSE.txt} +0 -0
  78. /package/__mf/js/async/{981.92685962.js.LICENSE.txt → 392.ba8c2c55.js.LICENSE.txt} +0 -0
  79. /package/__mf/js/async/{69.0b1487b7.js.LICENSE.txt → 43.15aacd55.js.LICENSE.txt} +0 -0
  80. /package/__mf/js/async/{173.085e8c1f.js.LICENSE.txt → 470.59b55de8.js.LICENSE.txt} +0 -0
  81. /package/__mf/js/async/{974.4058b9ce.js.LICENSE.txt → 48.0daa445f.js.LICENSE.txt} +0 -0
  82. /package/__mf/js/async/{812.f87960e5.js.LICENSE.txt → 549.fb982abf.js.LICENSE.txt} +0 -0
  83. /package/__mf/js/async/{863.17535c71.js.LICENSE.txt → 941.4fe94885.js.LICENSE.txt} +0 -0
  84. /package/__mf/js/async/{lib-router.5b98a3da.js.LICENSE.txt → lib-router.d2b2e61c.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 43.15aacd55.js.LICENSE.txt */
2
+ "use strict";(self.chunk_TraceTable=self.chunk_TraceTable||[]).push([["43"],{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:()=>f,ap:()=>d,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 d={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,d):e.animateTo(n,d)}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 d(t){r(t).oldStyle=t.style}function f(t){return r(t).oldStyle}},39952:function(t,e,n){n.d(e,{$:()=>l,L:()=>function t(e,n,l){if(l.isAnimationEnabled()&&n){if((0,i.isArray)(n))return void(0,i.each)(n,function(n){t(e,n,l)});var u=n.keyframes,h=n.duration;if(l&&null==h){var c=(0,o.Jw)("enter",l,0);h=c&&c.duration}if(u&&h){var p=a(e);(0,i.each)(r.rd,function(t){var r;t&&!e[t]||(u.sort(function(t,e){return t.percent-e.percent}),(0,i.each)(u,function(o){var a=e.animators,l=t?o[t]:o;if(l){var u=(0,i.keys)(l);if(t||(u=(0,i.filter)(u,function(t){return 0>(0,i.indexOf)(s,t)})),u.length){r||((r=e.animate(t,n.loop,!0)).scope="keyframe");for(var c=0;c<a.length;c++)a[c]!==r&&a[c].targetName===r.targetName&&a[c].stopTracks(u);t&&(p[t]=p[t]||{});var d=t?p[t]:p;(0,i.each)(u,function(n){d[n]=((t?e[t]:e)||{})[n]}),r.whenWithKeys(h*o.percent,l,u,o.easing)}}}),r&&r.delay(n.delay||0).duration(h).start(n.easing))})}}}});var i=n(4884),r=n(24707),o=n(68532),a=(0,n(84124).$r)(),s=["percent","easing","shape","style","extra"];function l(t){t.stopAnimation("keyframe"),t.attr(a(t))}},24707:function(t,e,n){n.d(e,{aB:()=>y,h8:()=>v,ho:()=>m,rd:()=>p,rh:()=>g});var i=n(84124),r=n(4884),o=n(83390),a=n(38513),s=n(68532),l=n(30070),u=n(5486),h={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},c=(0,r.keys)(h);(0,r.reduce)(u.Wx,function(t,e){return t[e]=1,t},{}),u.Wx.join(", ");var p=["","style","shape","extra"],d=(0,i.$r)();function f(t,e,n,i,o){var a=t+"Animation",l=(0,s.Jw)(t,i,o)||{},u=d(e).userDuring;return l.duration>0&&(l.during=u?(0,r.bind)(b,{el:e,userDuring:u}):null,l.setToFinal=!0,l.scope=t),(0,r.extend)(l,n[a]),l}function g(t,e,n,o){var s,g,v=(o=o||{}).dataIndex,_=o.isInit,x=o.clearStyle,b=n.isAnimationEnabled(),A=d(t),M=e.style;A.userDuring=e.during;var C={},I={};if(function(t,e,n){for(var i=0;i<c.length;i++){var r=c[i],o=h[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var i=0;i<u.Wx.length;i++){var s=u.Wx[i];null!=e[s]&&(n[s]=e[s])}}(0,e,I),S("shape",e,I),S("extra",e,I),!_&&b&&(function(t,e,n){for(var r=e.transition,o=m(r)?u.Wx:(0,i.qB)(r||[]),a=0;a<o.length;a++){var s=o[a];if("style"!==s&&"shape"!==s&&"extra"!==s){var l=t[s];n[s]=l}}}(t,e,C),w("shape",t,e,C),w("extra",t,e,C),function(t,e,n,o){if(n){var a,s=t.style;if(s){var l=n.transition,u=e.transition;if(l&&!m(l)){var h=(0,i.qB)(l);a||(a=o.style={});for(var c=0;c<h.length;c++){var p=h[c],d=s[p];a[p]=d}}else if(t.getAnimationStyleProps&&(m(u)||m(l)||(0,r.indexOf)(u,"style")>=0)){var f=t.getAnimationStyleProps(),g=f?f.style:null;if(g){a||(a=o.style={});for(var y=(0,r.keys)(n),c=0;c<y.length;c++){var p=y[c];if(g[p]){var d=s[p];a[p]=d}}}}}}}(t,e,M,C)),I.style=M,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,I,x),s=t,g=e,(0,r.hasOwn)(g,"silent")&&(s.silent=g.silent),(0,r.hasOwn)(g,"ignore")&&(s.ignore=g.ignore),s instanceof a.Ay&&(0,r.hasOwn)(g,"invisible")&&(s.invisible=g.invisible),s instanceof l.Ay&&(0,r.hasOwn)(g,"autoBatch")&&(s.autoBatch=g.autoBatch),b)if(_){var T={};(0,r.each)(p,function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(T[t]=T[t]||{}),(0,r.extend)(t?T[t]:T,n.enterFrom))});var D=f("enter",t,e,n,v);D.duration>0&&t.animateFrom(T,D)}else{var k=t,O=e,L=v||0,P=n,R=C;if(R){var N=f("update",k,O,P,L);N.duration>0&&k.animateFrom(R,N)}}y(t,e),M?t.dirty():t.markRedraw()}function y(t,e){for(var n=d(t).leaveToProps,i=0;i<p.length;i++){var o=p[i],a=o?e[o]:e;a&&a.leaveTo&&(n||(n=d(t).leaveToProps={}),o&&(n[o]=n[o]||{}),(0,r.extend)(o?n[o]:n,a.leaveTo))}}function v(t,e,n,i){if(t){var r=t.parent,o=d(t).leaveToProps;if(o){var a=f("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function m(t){return"all"===t}var _={},x={setTransform:function(t,e){return _.el[t]=e,this},getTransform:function(t){return _.el[t]},setShape:function(t,e){var n=_.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=_.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=_.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=_.el.style;if(e)return e[t]},setExtra:function(t,e){return(_.el.extra||(_.el.extra={}))[t]=e,this},getExtra:function(t){var e=_.el.extra;if(e)return e[t]}};function b(){var t=this.el;if(t){var e=d(t).userDuring,n=this.userDuring;if(e!==n){this.el=this.userDuring=null;return}_.el=t,n(x)}}function w(t,e,n,o){var a,s=n[t];if(s){var l=e[t];if(l){var u=n.transition,h=s.transition;if(h)if(a||(a=o[t]={}),m(h))(0,r.extend)(a,l);else for(var c=(0,i.qB)(h),p=0;p<c.length;p++){var d=c[p],f=l[d];a[d]=f}else if(m(u)||(0,r.indexOf)(u,t)>=0){a||(a=o[t]={});for(var g=(0,r.keys)(l),p=0;p<g.length;p++){var y,v,d=g[p],f=l[d];y=s[d],v=f,((0,r.isArrayLike)(y)?y!==v:null!=y&&isFinite(y))&&(a[d]=f)}}}}}function S(t,e,n){var i=e[t];if(i)for(var a=n[t]={},s=(0,r.keys)(i),l=0;l<s.length;l++){var u=s[l];a[u]=(0,o.F)(i[u])}}},77774:function(t,e,n){n.d(e,{A:()=>l});var i=n(31831),r=n(55785),o=n(43059),a=n(4884),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.getInitialData=function(t,e){return(0,o.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)(0,a.each)(i.getAxes(),function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),!(i.length<2)){if(2===i.length){o[n]=t.toGlobalCoord(t.getExtent()[+!!l]);return}for(var u=void 0,h=void 0,c=1,p=0;p<i.length;p++){var d=i[p].coord,f=p===i.length-1?i[p-1].tickValue+c:i[p].tickValue;if(f===s){h=d;break}if(f<s)u=d;else if(null!=u&&f>s){h=(d+u)/2;break}1===p&&(c=f-i[0].tickValue)}null==h&&(u?u&&(h=i[i.length-1].coord):h=i[0].coord),o[n]=t.toGlobalCoord(h)}}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),h=+!i.getBaseAxis().isHorizontal();o[h]+=l+u/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(r.A);r.A.registerClass(s);let l=s},31373:function(t,e,n){n.d(e,{a:()=>q});var i=n(4884),r=n(30730),o=n(50821),a=n(31831),s=n(77774),l=n(43059),u=n(3818),h=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,a.C6)(e,t),e.prototype.getInitialData=function(){return(0,l.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,u.G_)(s.A.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(s.A),c=n(30070),p=n(79620),d=n(59033),f=n(68532),g=n(63811),y=n(23917),v=n(35032),m=n(72059),_=n(73394),x=n(89425),b=n(55037),w=n(88556),S=n(31440),A=n(43139),M=n(18538),C=n(23960);function I(t,e,n){return e*Math.sin(t)*(n?-1:1)}function T(t,e,n){return e*Math.cos(t)*(n?1:-1)}var D=n(27108),k=Math.max,O=Math.min,L=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,a.C6)(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){(0,d.traverseElements)(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;(null==this._isLargeDraw||e!==this._isLargeDraw)&&(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var h=t.isAnimationEnabled()?t:null,c=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);c&&this._enableRealtimeSort(c,a,n);var d=t.get("clip",!0)||c,v=function(t,e){var n=t.getArea&&t.getArea();if((0,A.g)(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var m=t.get("roundCap",!0),x=t.get("showBackground",!0),b=t.getModel("backgroundStyle"),w=b.get("borderRadius")||0,S=[],M=this._backgroundEls,C=i&&i.isInitSort,I=i&&"changeAxisOrder"===i.type;function T(t){var e,n,i,o=F[l.type](a,t),s=(e=l,n=r,i=o,new("polar"===e.type?y.A:g.A)({shape:Z(n,i,e),silent:!0,z2:0}));return s.useStyle(b.getItemStyle()),"cartesian2d"===l.type?s.setShape("r",w):s.setShape("cornerRadius",w),S[t]=s,s}a.diff(s).add(function(e){var n=a.getItemModel(e),i=F[l.type](a,e,n);if(x&&T(e),a.hasValue(e)&&V[l.type](i)){var s=!1;d&&(s=P[l.type](v,i));var p=R[l.type](t,a,e,i,r,h,u.model,!1,m);c&&(p.forceLabelAnimation=!0),W(p,a,e,n,i,t,r,"polar"===l.type),C?p.attr({shape:i}):c?N(c,h,p,i,e,r,!1,!1):(0,f.LW)(p,{shape:i},t,e),a.setItemGraphicEl(e,p),o.add(p),p.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),p=F[l.type](a,e,i);if(x){var g=void 0;0===M.length?g=T(n):((g=M[n]).useStyle(b.getItemStyle()),"cartesian2d"===l.type?g.setShape("r",w):g.setShape("cornerRadius",w),S[e]=g);var y=F[l.type](a,e),A=Z(r,y,l);(0,f.oi)(g,{shape:A},h,e)}var D=s.getItemGraphicEl(n);if(!a.hasValue(e)||!V[l.type](p))return void o.remove(D);var k=!1;if(d&&(k=P[l.type](v,p))&&o.remove(D),D?(0,f.ap)(D):D=R[l.type](t,a,e,p,r,h,u.model,!!D,m),c&&(D.forceLabelAnimation=!0),I){var O=D.getTextContent();if(O){var L=(0,_.Lu)(O);null!=L.prevValue&&(L.prevValue=L.value)}}else W(D,a,e,i,p,t,r,"polar"===l.type);C?D.attr({shape:p}):c?N(c,h,D,p,e,r,!0,I):(0,f.oi)(D,{shape:p},t,e,null),a.setItemGraphicEl(e,D),D.ignore=k,o.add(D)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&(0,f.t5)(n,t,e)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new p.A);D.removeAll();for(var k=0;k<S.length;++k)D.add(S[k]);o.add(D),this._backgroundEls=S,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),X(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),X(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&(0,b.Ip)(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})}),r.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:(0,i.map)(r,function(t){return t.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),u=l<0?5e-324:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){(0,f.t5)(e,t,(0,v.z)(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(S.A),P={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=k(e.x,t.x),s=O(e.x+e.width,r),l=k(e.y,t.y),u=O(e.y+e.height,o),h=s<a,c=u<l;return e.x=h&&a>r?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=O(e.r,t.r),o=k(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},R={cartesian2d:function(t,e,n,r,o,a,s,l,u){var h=new g.A({shape:(0,i.extend)({},r),z2:1});return h.__dataIndex=n,h.name="item",a&&(h.shape[o?"height":"width"]=0),h},polar:function(t,e,n,i,r,o,a,s,l){var u,h,c=!r&&l?w.A:y.A,p=new c({shape:i,z2:1});if(p.name="item",u=H(r),h=({isRoundCap:c===w.A}).isRoundCap,p.calculateTextPosition=function(t,e,n){var i=e.position;if(!i||i instanceof Array)return(0,C.X4)(t,e,n);var r=u(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,p=a.r0,d=(c+p)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=h?Math.abs(c-p)/2:0,m=Math.cos,_=Math.sin,x=s+c*m(f),b=l+c*_(f),w="left",S="top";switch(r){case"startArc":x=s+(p-o)*m(y),b=l+(p-o)*_(y),w="center",S="top";break;case"insideStartArc":x=s+(p+o)*m(y),b=l+(p+o)*_(y),w="center",S="bottom";break;case"startAngle":x=s+d*m(f)+I(f,o+v,!1),b=l+d*_(f)+T(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":x=s+d*m(f)+I(f,-o+v,!1),b=l+d*_(f)+T(f,-o+v,!1),w="left",S="middle";break;case"middle":x=s+d*m(y),b=l+d*_(y),w="center",S="middle";break;case"endArc":x=s+(c+o)*m(y),b=l+(c+o)*_(y),w="center",S="bottom";break;case"insideEndArc":x=s+(c-o)*m(y),b=l+(c-o)*_(y),w="center",S="top";break;case"endAngle":x=s+d*m(g)+I(g,o+v,!0),b=l+d*_(g)+T(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":x=s+d*m(g)+I(g,-o+v,!0),b=l+d*_(g)+T(g,-o+v,!0),w="right",S="middle";break;default:return(0,C.X4)(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t},o){var d=p.shape,g=r?"r":"endAngle",v={};d[g]=r?i.r0:i.startAngle,v[g]=i[g],(s?f.oi:f.LW)(p,{shape:v},o)}return p}};function N(t,e,n,i,r,o,a,s){o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?f.oi:f.LW)(n,{shape:l},e,r,null);var l,u,h=e?t.baseAxis.model:null;(a?f.oi:f.LW)(n,{shape:u},h,r)}function z(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var E=["x","y","width","height"],B=["cx","cy","r","startAngle","endAngle"],V={cartesian2d:function(t){return!z(t,E)},polar:function(t){return!z(t,B)}},F={cartesian2d:function(t,e,n){var i,r,o,a=t.getItemLayout(e),s=n?(i=n,r=a,(o=i.get(["itemStyle","borderColor"]))&&"none"!==o?Math.min(i.get(["itemStyle","borderWidth"])||0,isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height)):0):0,l=a.width>0?1:-1,u=a.height>0?1:-1;return{x:a.x+l*s/2,y:a.y+u*s/2,width:a.width-l*s,height:a.height-u*s}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function H(t){var e;return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}function W(t,e,n,r,o,a,s,l){var u=e.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var h=t.shape,c=(0,D.i)(r.getModel("itemStyle"),h,!0);(0,i.extend)(h,c),t.setShape(h)}}else{var p=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",p)}t.useStyle(u);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var f=l?s?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":s?o.height>=0?"bottom":"top":o.width>=0?"right":"left",g=(0,_.lx)(r);(0,_.qM)(t,g,{labelFetcher:a,labelDataIndex:n,defaultText:(0,M.i)(a.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var y=t.getTextContent();if(l&&y){var v=r.get(["label","position"]);t.textConfig.inside="middle"===v||null,function(t,e,n,r){if((0,i.isNumber)(r))return t.setTextConfig({rotation:r});if((0,i.isArray)(e))return t.setTextConfig({rotation:0});var o,a=t.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=(s+l)/2;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=l;break;default:t.setTextConfig({rotation:0});return}var h=1.5*Math.PI-o;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}(t,"outside"===v?f:v,H(s),r.get(["label","rotate"]))}(0,_.Oh)(y,g,a.getRawValue(n),function(t){return(0,M.T)(e,t)});var x=r.getModel(["emphasis"]);(0,m.Lm)(t,x.get("focus"),x.get("blurScope"),x.get("disabled")),(0,m.Mx)(t,r),null!=o.startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",(0,i.each)(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var G=function(){},Y=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,a.C6)(e,t),e.prototype.getDefaultShape=function(){return new G},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(c.Ay);function X(t,e,n,i){var r=t.getData(),o=+!!r.getLayout("valueAxisHorizontal"),a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var h=new Y({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var c=new Y({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,e.add(c),c.useStyle(r.getVisual("style")),(0,v.z)(c).seriesIndex=t.seriesIndex,t.get("silent")||(c.on("mousedown",U),c.on("mousemove",U)),n&&n.push(c)}var U=(0,x.nF)(function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;h<c;h++){var p=3*h;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return -1}(this,t.offsetX,t.offsetY);(0,v.z)(this).dataIndex=e>=0?e:null},30,!1);function Z(t,e,n){if((0,A.g)(n,"cartesian2d")){var i=n.getArea();return{x:t?e.x:i.x,y:t?i.y:e.y,width:t?e.width:i.width,height:t?i.height:e.height}}var i=n.getArea();return{cx:i.cx,cy:i.cy,r0:t?i.r0:e.r0,r:t?i.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}function q(t){t.registerChartView(L),t.registerSeriesModel(h),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,i.curry(r.Zp,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,r.KF)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(0,o.A)("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)})})}},23670:function(t,e,n){n.d(e,{a:()=>ts});var i=n(31831),r=n(43059),o=n(84124),a=n(55785),s={color:"fill",borderColor:"stroke"},l={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},u=(0,o.$r)(),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.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return(0,r.A)(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=u(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(a.A),c=n(4884),p=n(30070),d=n(59033),f=n(64586),g=n(52384),y=n(79620),v=n(72059),m=n(73394),_=n(18538),x=n(30730),b=n(31393),w=n(31440),S=n(55037);function A(t,e){return e=e||[0,0],c.map(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function M(t,e){return e=e||[0,0],c.map([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function C(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function I(t,e){return e=e||[0,0],c.map(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}var T=n(38513),D=n(45106),k=n(58391),O=n(34780),L=n(24707),P=n(39952),R="emphasis",N="normal",z="blur",E="select",B=[N,R,z,E],V={normal:["itemStyle"],emphasis:[R,"itemStyle"],blur:[z,"itemStyle"],select:[E,"itemStyle"]},F={normal:["label"],emphasis:[R,"label"],blur:[z,"label"],select:[E,"label"]},H=["x","y"],W={normal:{},emphasis:{},blur:{},select:{}},G={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:c.bind(A,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:c.bind(M,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:(0,c.bind)(C,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:c.bind(I,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Y(t){return t instanceof p.Ay}function X(t){return t instanceof T.Ay}var U=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,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=K(t,o,e,n);r||a.removeAll(),o.diff(r).add(function(e){$(n,null,e,s(e,i),t,a,o)}).remove(function(e){var n=r.getItemGraphicEl(e);n&&(0,L.h8)(n,u(n).option,t)}).update(function(e,l){$(n,r.getItemGraphicEl(l),e,s(e,i),t,a,o)}).execute();var l=t.get("clip",!0)?(0,S.Ip)(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=K(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var h=$(null,null,u,a(u,r),e,this.group,o);h&&(h.traverse(l),s.push(h))}},e.prototype.eachRendered=function(t){d.traverseElements(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(w.A);function Z(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=ta(i);u(e=d.makePath(o,null,r,i.layout||"center")).customPathData=o}else if("image"===n)u(e=new f.Ay({})).customImagePath=t.style.image;else if("text"===n)e=new g.Ay({});else if("group"===n)e=new y.A;else if("compoundPath"===n)throw Error('"compoundPath" is not supported yet.');else{var a=d.getShapeClass(n);a||(0,k.$8)(""),e=new a}return u(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function q(t,e,n,i,r,o,a){(0,P.$)(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=H);var l=i&&i.style;if(l){"text"===e.type&&((0,c.hasOwn)(l,"textFill")&&(l.fill=l.textFill),(0,c.hasOwn)(l,"textStroke")&&(l.stroke=l.textStroke));var u=void 0,h=Y(e)?l.decal:null;t&&h&&(h.dirty=!0,u=(0,O.w)(h,t)),l.__decalPattern=u}if(X(e)&&l){var u=l.__decalPattern;u&&(l.decal=u)}(0,L.rh)(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),(0,P.L)(e,i.keyframeAnimation,o)}function j(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),(0,v.DW)(o)}}function K(t,e,n,i){var r,o,a,u,h=t.get("renderItem"),p=t.coordinateSystem,d={};p&&(d=p.prepareCustoms?p.prepareCustoms(p):G[p.type](p));for(var f=(0,c.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=a),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){null==i&&(i=a);var r=e.getItemVisual(i,"style"),o=r&&r.fill,s=r&&r.opacity,l=C(i,N).getItemStyle();null!=o&&(l.fill=o),null!=s&&(l.opacity=s);var u={inheritColor:(0,c.isString)(o)?o:"#000"},h=I(i,N),p=m.VB(h,null,u,!1,!0);p.text=h.getShallow("show")?(0,c.retrieve2)(t.getFormattedLabel(i,N),(0,_.i)(e,i)):null;var d=m.sD(h,u,!1);return k(n,l),l=(0,D.Fs)(l,p,d),n&&T(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=a),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=a);var r=C(i,R).getItemStyle(),o=I(i,R),s=m.VB(o,null,null,!0,!0);s.text=o.getShallow("show")?(0,c.retrieve3)(t.getFormattedLabel(i,R),t.getFormattedLabel(i,N),(0,_.i)(e,i)):null;var l=m.sD(o,null,!0);return k(n,r),r=(0,D.Fs)(r,s,l),n&&T(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=a),(0,c.hasOwn)(s,t)){var i=e.getItemVisual(n,"style");return i?i[s[t]]:null}if((0,c.hasOwn)(l,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===p.type){var e=p.getBaseAxis();return(0,x.DL)((0,c.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return m.c8(t,n)}},d.api||{}),g={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:d.coordSys,dataInsideLength:e.count(),encode:(r=t.getData(),o={},(0,c.each)(r.dimensions,function(t){var e=r.getDimensionInfo(t);if(!e.isExtraCoord){var n=e.coordDim;(o[n]=o[n]||[])[e.coordDimIndex]=r.getDimensionIndex(t)}}),o)},y={},v={},b={},w={},S=0;S<B.length;S++){var A=B[S];b[A]=t.getModel(V[A]),w[A]=t.getModel(F[A])}function M(t){return t===a?u||(u=e.getItemModel(t)):e.getItemModel(t)}function C(t,n){return e.hasItemOption?t===a?y[n]||(y[n]=M(t).getModel(V[n])):M(t).getModel(V[n]):b[n]}function I(t,n){return e.hasItemOption?t===a?v[n]||(v[n]=M(t).getModel(F[n])):M(t).getModel(F[n]):w[n]}return function(t,n){return a=t,u=null,y={},v={},h&&h((0,c.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},g),f)};function T(t,e){for(var n in e)(0,c.hasOwn)(e,n)&&(t[n]=e[n])}function k(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function $(t,e,n,i,r,o,a){if(!i)return void o.remove(e);var s=Q(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&(0,v.Lm)(s,i.focus,i.blurScope,i.emphasisDisabled),s}function Q(t,e,n,i,r,o){var a,s=-1,l=e;e&&J(e,i,r)&&(s=(0,c.indexOf)(o.childrenRef(),e),e=null);var h=!e,p=e;p?p.clearStates():(p=Z(i),l&&((a=p).copyTransform(l),X(a)&&X(l)&&(a.setStyle(l.style),a.z=l.z,a.z2=l.z2,a.zlevel=l.zlevel,a.invisible=l.invisible,a.ignore=l.ignore,Y(a)&&Y(l)&&a.setShape(l.shape)))),!1===i.morph?p.disableMorphing=!0:p.disableMorphing&&(p.disableMorphing=!1),W.normal.cfg=W.normal.conOpt=W.emphasis.cfg=W.emphasis.conOpt=W.blur.cfg=W.blur.conOpt=W.select.cfg=W.select.conOpt=null,W.isLegacy=!1,function(t,e,n,i,r,o){if(!t.isGroup){tt(n,null,o),tt(n,R,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var h=t.getTextContent();if(!1===a)h&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},h?h.clearStates():(h=Z(a),t.setTextContent(h)),q(null,h,e,a,null,i,r);for(var c=a&&a.style,p=0;p<B.length;p++){var d=B[p];if(d!==N){var f=o[d].conOpt;j(d,h,f,tn(a,f,d),null)}}c?h.dirty():h.markRedraw()}}}}(p,n,i,r,h,W),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&J(a,o,i)&&(a=null),a||(a=Z(o),t.setClipPath(a)),q(null,a,e,o,null,i,r)}}(p,n,i,r,h),q(t,p,n,i,W,r,h),(0,c.hasOwn)(i,"info")&&(u(p).info=i.info);for(var d=0;d<B.length;d++){var f=B[d];if(f!==N){var g=te(i,f),y=tn(i,g,f);j(f,p,g,y,W)}}var v=p;if(!v.isGroup){var m=r.currentZ,_=r.currentZLevel;v.z=m,v.zlevel=_;var x=i.z2;null!=x&&(v.z2=x||0);for(var w=0;w<B.length;w++)!function(t,e,n){var i=n===N,r=i?e:te(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}(v,i,B[w])}return"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,h=!1===s;if(a||l||h){if(l){return g={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e},new b.A(g.oldChildren,g.newChildren,ti,ti,g).add(tr).update(tr).remove(to).execute()}h&&e.removeAll();for(var c=0;c<a;c++){var p=o[c],d=e.childAt(c);p?(null==p.ignore&&(p.ignore=!1),Q(t,d,n,p,r,e)):d.ignore=!0}for(var f=e.childCount()-1;f>=c;f--){var g,y,v,m,_=e.childAt(f);y=e,v=_,m=r,v&&(0,L.h8)(v,u(y).option,m)}}}(t,p,n,i,r),s>=0?o.replaceAt(p,s):o.add(p),p}function J(t,e,n){var i,r=u(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&((0,c.hasOwn)(i,"pathData")||(0,c.hasOwn)(i,"d"))&&ta(a)!==r.customPathData||"image"===o&&(0,c.hasOwn)(s,"image")&&s.image!==r.customImagePath}function tt(t,e,n){var i=e?te(t,e):t,r=e?tn(t,i,R):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?te(s,e):s:null;if(r&&(n.isLegacy||(0,D.ex)(r,o,!!a,!!l))){n.isLegacy=!0;var u=(0,D.lH)(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;h.type||(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function te(t,e){return e?t?t[e]:null:t}function tn(t,e,n){var i=e&&e.style;return null==i&&n===R&&t&&(i=t.styleEmphasis),i}function ti(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function tr(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Q(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function to(t){var e=this.context,n=e.oldChildren[t];n&&(0,L.h8)(n,u(n).option,e.seriesModel)}function ta(t){return t&&(t.pathData||t.d)}function ts(t){t.registerChartView(U),t.registerSeriesModel(h)}},49828:function(t,e,n){n.d(e,{a:()=>C});var i=n(31831),r=n(30070),o=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(r.Ay),s=n(23917),l=n(28887),u=n(52384),h=n(68532),c=n(79620),p=n(72059),d=n(73394),f=n(31440),g=n(21916),y=n(88556),v=n(60253),m=n(64586),_=n(4884),x=n(35032),b=n(40843);function w(t,e){var n=null==t?"":t+"";return e&&((0,_.isString)(e)?n=e.replace("{value}",n):(0,_.isFunction)(e)&&(n=e(t))),n}var 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(t,e,n){this.group.removeAll();var i,r,o=t.get(["axisLine","lineStyle","color"]),a=(i=t.get("center"),r=Math.min(n.getWidth(),n.getHeight()),{cx:(0,g.lo)(i[0],n.getWidth()),cy:(0,g.lo)(i[1],n.getHeight()),r:(0,g.lo)(t.get("radius"),r/2)});this._renderMain(t,e,n,o,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,u=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),c=h.get("roundCap")?y.A:s.A,p=h.get("show"),d=h.getModel("lineStyle"),f=d.get("width"),g=[l,u];(0,b.q)(g,!a),l=g[0];for(var v=(u=g[1])-l,m=l,x=[],w=0;p&&w<i.length;w++){var S=new c({shape:{startAngle:m,endAngle:u=l+v*Math.min(Math.max(i[w][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-f,r:r.r},silent:!0});S.setStyle({fill:i[w][1]}),S.setStyle(d.getLineStyle(["color","width"])),x.push(S),m=u}x.reverse(),(0,_.each)(x,function(t){return o.add(t)});var A=function(t){var e;if(t<=0)return i[0][1];for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,A,r,l,u,a,f),this._renderTitleAndDetail(t,e,n,A,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,A,r,l,u,a,f)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,h){for(var c,p,f=this.group,y=r.cx,v=r.cy,m=r.r,x=+t.get("min"),b=+t.get("max"),S=t.getModel("splitLine"),A=t.getModel("axisTick"),M=t.getModel("axisLabel"),C=t.get("splitNumber"),I=A.get("splitNumber"),T=(0,g.lo)(S.get("length"),m),D=(0,g.lo)(A.get("length"),m),k=o,O=(a-o)/C,L=O/I,P=S.getModel("lineStyle").getLineStyle(),R=A.getModel("lineStyle").getLineStyle(),N=S.get("distance"),z=0;z<=C;z++){if(c=Math.cos(k),p=Math.sin(k),S.get("show")){var E=N?N+h:h,B=new l.A({shape:{x1:c*(m-E)+y,y1:p*(m-E)+v,x2:c*(m-T-E)+y,y2:p*(m-T-E)+v},style:P,silent:!0});"auto"===P.stroke&&B.setStyle({stroke:i(z/C)}),f.add(B)}if(M.get("show")){var E=M.get("distance")+N,V=w((0,g.LI)(z/C*(b-x)+x),M.get("formatter")),F=i(z/C),H=c*(m-T-E)+y,W=p*(m-T-E)+v,G=M.get("rotate"),Y=0;"radial"===G?(Y=-k+2*Math.PI)>Math.PI/2&&(Y+=Math.PI):"tangential"===G?Y=-k-Math.PI/2:(0,_.isNumber)(G)&&(Y=G*Math.PI/180),0===Y?f.add(new u.Ay({style:(0,d.VB)(M,{text:V,x:H,y:W,verticalAlign:p<-.8?"top":p>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:F}),silent:!0})):f.add(new u.Ay({style:(0,d.VB)(M,{text:V,x:H,y:W,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:H,originY:W,rotation:Y}))}if(A.get("show")&&z!==C){var E=A.get("distance");E=E?E+h:h;for(var X=0;X<=I;X++){c=Math.cos(k),p=Math.sin(k);var U=new l.A({shape:{x1:c*(m-E)+y,y1:p*(m-E)+v,x2:c*(m-D-E)+y,y2:p*(m-D-E)+v},silent:!0,style:R});"auto"===R.stroke&&U.setStyle({stroke:i((z+X/I)/C)}),f.add(U),k+=L}k-=L}else k+=O}},e.prototype._renderPointer=function(t,e,n,i,r,o,l,u,c){var d=this.group,f=this._data,b=this._progressEls,w=[],S=t.get(["pointer","show"]),A=t.getModel("progress"),M=A.get("show"),C=t.getData(),I=C.mapDimension("value"),T=+t.get("min"),D=+t.get("max"),k=[T,D],O=[o,l];function L(e,n){var i,o=C.getItemModel(e).getModel("pointer"),s=(0,g.lo)(o.get("width"),r.r),l=(0,g.lo)(o.get("length"),r.r),u=t.get(["pointer","icon"]),h=o.get("offsetCenter"),c=(0,g.lo)(h[0],r.r),p=(0,g.lo)(h[1],r.r),d=o.get("keepAspect");return(i=u?(0,v.v5)(u,c-s/2,p-l,s,l,null,d):new a({shape:{angle:-Math.PI/2,width:s,r:l,x:c,y:p}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function P(t,e){var n=A.get("roundCap")?y.A:s.A,i=A.get("overlap"),a=i?A.get("width"):c/C.count(),l=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,p=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:u,r0:l,r:h}});return i&&(p.z2=D-C.get(I,t)%D),p}(M||S)&&(C.diff(f).add(function(e){var n=C.get(I,e);if(S){var i=L(e,o);h.LW(i,{rotation:-((isNaN(+n)?O[0]:(0,g.Cb)(n,k,O,!0))+Math.PI/2)},t),d.add(i),C.setItemGraphicEl(e,i)}if(M){var r=P(e,o),a=A.get("clip");h.LW(r,{shape:{endAngle:(0,g.Cb)(n,k,O,a)}},t),d.add(r),(0,x.a)(t.seriesIndex,C.dataType,e,r),w[e]=r}}).update(function(e,n){var i=C.get(I,e);if(S){var r=f.getItemGraphicEl(n),a=r?r.rotation:o,s=L(e,a);s.rotation=a,h.oi(s,{rotation:-((isNaN(+i)?O[0]:(0,g.Cb)(i,k,O,!0))+Math.PI/2)},t),d.add(s),C.setItemGraphicEl(e,s)}if(M){var l=b[n],u=P(e,l?l.shape.endAngle:o),c=A.get("clip");h.oi(u,{shape:{endAngle:(0,g.Cb)(i,k,O,c)}},t),d.add(u),(0,x.a)(t.seriesIndex,C.dataType,e,u),w[e]=u}}).execute(),C.each(function(t){var e=C.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(S){var s=C.getItemGraphicEl(t),l=C.getItemVisual(t,"style"),u=l.fill;if(s instanceof m.Ay){var h=s.style;s.useStyle((0,_.extend)({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i((0,g.Cb)(C.get(I,t),k,[0,1],!0))),s.z2EmphasisLift=0,(0,p.Mx)(s,e),(0,p.Lm)(s,r,o,a)}if(M){var c=w[t];c.useStyle(C.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,(0,p.Mx)(c,e),(0,p.Lm)(c,r,o,a)}}),this._progressEls=w)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,v.v5)(r,e.cx-i/2+(0,g.lo)(o[0],e.r),e.cy-i/2+(0,g.lo)(o[1],e.r),i,i,null,a);s.z2=+!!n.get("showAbove"),s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),h=+t.get("max"),p=new c.A,f=[],y=[],v=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);a.diff(this._data).add(function(t){f[t]=new u.Ay({silent:!0}),y[t]=new u.Ay({silent:!0})}).update(function(t,e){f[t]=o._titleEls[e],y[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),u=new c.A,_=i((0,g.Cb)(o,[l,h],[0,1],!0)),x=n.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),S=r.cx+(0,g.lo)(b[0],r.r),A=r.cy+(0,g.lo)(b[1],r.r),M=f[e];M.attr({z2:2*!m,style:(0,d.VB)(x,{x:S,y:A,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:_})}),u.add(M)}var C=n.getModel("detail");if(C.get("show")){var I=C.get("offsetCenter"),T=r.cx+(0,g.lo)(I[0],r.r),D=r.cy+(0,g.lo)(I[1],r.r),k=(0,g.lo)(C.get("width"),r.r),O=(0,g.lo)(C.get("height"),r.r),L=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:_,M=y[e],P=C.get("formatter");M.attr({z2:2*!m,style:(0,d.VB)(C,{x:T,y:D,text:w(o,P),width:isNaN(k)?null:k,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:L})}),(0,d.Oh)(M,{normal:C},o,function(t){return w(t,P)}),v&&(0,d.xb)(M,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return w(a?a.interpolatedValue:o,P)}}),u.add(M)}p.add(u)}),this.group.add(p),this._titleEls=f,this._detailEls=y},e.type="gauge",e}(f.A),A=n(29605),M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,i.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,A.A)(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(n(55785).A);function C(t){t.registerChartView(S),t.registerSeriesModel(M)}},9356:function(t,e,n){n.d(e,{a:()=>x});var i=n(31831),r=n(59033),o=n(63811),a=n(64586),s=n(72059),l=n(46979),u=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=l.yh.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),p=t.length;h.width=e,h.height=n;for(var d=0;d<p;++d){var f=t[d],g=f[0],y=f[1],v=i(f[2]);c.globalAlpha=v,c.drawImage(a,g-u,y-u)}if(!h.width||!h.height)return h;for(var m=c.getImageData(0,0,h.width,h.height),_=m.data,x=0,b=_.length,w=this.minOpacity,S=this.maxOpacity-w;x<b;){var v=_[x+3]/256,A=4*Math.floor(255*v);if(v>0){var M=o(v)?s:l;v>0&&(v=v*S+w),_[x++]=M[A],_[x++]=M[A+1],_[x++]=M[A+2],_[x++]=M[A+3]*v*256}else x+=4}return c.putImageData(m,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=l.yh.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),h=n(4884),c=n(31440),p=n(43139),d=n(73394);function f(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var g=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){e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):f(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(f(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){r.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var a,l,u,h,c=t.coordinateSystem,f=(0,p.g)(c,"cartesian2d");if(f){var g=c.getAxis("x"),y=c.getAxis("y");a=g.getBandWidth()+.5,l=y.getBandWidth()+.5,u=g.scale.getExtent(),h=y.scale.getExtent()}for(var v=this.group,m=t.getData(),_=t.getModel(["emphasis","itemStyle"]).getItemStyle(),x=t.getModel(["blur","itemStyle"]).getItemStyle(),b=t.getModel(["select","itemStyle"]).getItemStyle(),w=t.get(["itemStyle","borderRadius"]),S=(0,d.lx)(t),A=t.getModel("emphasis"),M=A.get("focus"),C=A.get("blurScope"),I=A.get("disabled"),T=f?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],D=n;D<i;D++){var k=void 0,O=m.getItemVisual(D,"style");if(f){var L=m.get(T[0],D),P=m.get(T[1],D);if(isNaN(m.get(T[2],D))||isNaN(L)||isNaN(P)||L<u[0]||L>u[1]||P<h[0]||P>h[1])continue;var R=c.dataToPoint([L,P]);k=new o.A({shape:{x:R[0]-a/2,y:R[1]-l/2,width:a,height:l},style:O})}else{if(isNaN(m.get(T[1],D)))continue;k=new o.A({z2:1,shape:c.dataToRect([m.get(T[0],D)]).contentShape,style:O})}if(m.hasItemOption){var N=m.getItemModel(D),z=N.getModel("emphasis");_=z.getModel("itemStyle").getItemStyle(),x=N.getModel(["blur","itemStyle"]).getItemStyle(),b=N.getModel(["select","itemStyle"]).getItemStyle(),w=N.get(["itemStyle","borderRadius"]),M=z.get("focus"),C=z.get("blurScope"),I=z.get("disabled"),S=(0,d.lx)(N)}k.shape.r=w;var E=t.getRawValue(D),B="-";E&&null!=E[2]&&(B=E[2]+""),(0,d.qM)(k,S,{labelFetcher:t,labelDataIndex:D,defaultOpacity:O.opacity,defaultText:B}),k.ensureState("emphasis").style=_,k.ensureState("blur").style=x,k.ensureState("select").style=b,(0,s.Lm)(k,M,C,I),k.incremental=r,r&&(k.states.emphasis.hoverLayer=!0),v.add(k),m.setItemGraphicEl(D,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,e,n,i){var r,o,s,l,c,p,d,f=n.targetVisuals.inRange,g=n.targetVisuals.outOfRange,y=e.getData(),v=this._hmLayer||this._hmLayer||new u;v.blurSize=e.get("blurSize"),v.pointSize=e.get("pointSize"),v.minOpacity=e.get("minOpacity"),v.maxOpacity=e.get("maxOpacity");var m=t.getViewRect().clone(),_=t.getRoamTransform();m.applyTransform(_);var x=Math.max(m.x,0),b=Math.max(m.y,0),w=Math.min(m.width+m.x,i.getWidth()),S=Math.min(m.height+m.y,i.getHeight()),A=w-x,M=S-b,C=[y.mapDimension("lng"),y.mapDimension("lat"),y.mapDimension("value")],I=y.mapArray(C,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=x,r[1]-=b,r.push(i),r}),T=n.getExtent(),D="visualMap.continuous"===n.type?(r=n.option.range,o=T[1]-T[0],r=[(r[0]-T[0])/o,(r[1]-T[0])/o],function(t){return t>=r[0]&&t<=r[1]}):(s=n.getPieceList(),l=n.option.selected,c=T[1]-T[0],p=(s=h.map(s,function(t){return{interval:[(t.interval[0]-T[0])/c,(t.interval[1]-T[0])/c]}})).length,d=0,function(t){var e;for(e=d;e<p;e++){var n=s[e].interval;if(n[0]<=t&&t<=n[1]){d=e;break}}if(e===p)for(e=d-1;e>=0;e--){var n=s[e].interval;if(n[0]<=t&&t<=n[1]){d=e;break}}return e>=0&&e<p&&l[e]});v.update(I,A,M,f.color.getNormalizer(),{inRange:f.color.getColorMapper(),outOfRange:g.color.getColorMapper()},D);var k=new a.Ay({style:{width:A,height:M,x:x,y:b,image:v.canvas},silent:!0});this.group.add(k)},e.type="heatmap",e}(c.A),y=n(55785),v=n(43059),m=n(51907),_=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.getInitialData=function(t,e){return(0,v.A)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=m.A.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(y.A);function x(t){t.registerChartView(g),t.registerSeriesModel(_)}},25591:function(t,e,n){n.d(e,{A:()=>M});var i=n(31831),r=n(4884),o=n(28535),a=n(60253),s=n(28887),l=n(95163),u=n(30070),h=s.A.prototype,c=l.A.prototype,p=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function d(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}(0,i.C6)(function(){return null!==p&&p.apply(this,arguments)||this},p);var f=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new p},e.prototype.buildPath=function(t,e){d(e)?h.buildPath.call(this,t,e):c.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return d(this.shape)?h.pointAt.call(this,t):c.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=d(e)?[e.x2-e.x1,e.y2-e.y1]:c.tangentAt.call(this,t);return o.normalize(n,n)},e}(u.Ay),g=n(68532),y=n(79620),v=n(72059),m=n(73394),_=n(21916),x=["fromSymbol","toSymbol"];function b(t){return"_"+t+"Type"}function w(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),s=e.getItemVisual(n,t+"Offset"),l=e.getItemVisual(n,t+"KeepAspect"),u=a.xU(r),h=a.hV(s||0,u);return i+u+h+(o||"")+(l||"")}function S(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),s=e.getItemVisual(n,t+"Offset"),l=e.getItemVisual(n,t+"KeepAspect"),u=a.xU(r),h=a.hV(s||0,u),c=a.v5(i,-u[0]/2+h[0],-u[1]/2+h[1],u[0],u[1],null,l);return c.__specifiedRotation=null==o||isNaN(o)?void 0:o*Math.PI/180||0,c.name=t,c}}function A(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}let M=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return(0,i.C6)(e,t),e.prototype._createLine=function(t,e,n){var i,o,a=t.hostModel,s=(i=t.getItemLayout(e),A((o=new f({name:"line",subPixelOptimize:!0})).shape,i),o);s.shape.percent=0,g.LW(s,{shape:{percent:1}},a,e),this.add(s),(0,r.each)(x,function(n){var i=S(n,t,e);this.add(i),this[b(n)]=w(n,t,e)},this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),a=t.getItemLayout(e),s={shape:{}};A(s.shape,a),g.oi(o,s,i,e),(0,r.each)(x,function(n){var i=w(n,t,e),r=b(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=S(n,t,e);this.add(o)}this[r]=i},this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,o=this.childOfName("line"),a=n&&n.emphasisLineStyle,s=n&&n.blurLineStyle,l=n&&n.selectLineStyle,u=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,c=n&&n.focus,p=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),f=d.getModel("emphasis");a=f.getModel("lineStyle").getLineStyle(),s=d.getModel(["blur","lineStyle"]).getLineStyle(),l=d.getModel(["select","lineStyle"]).getLineStyle(),h=f.get("disabled"),c=f.get("focus"),p=f.get("blurScope"),u=(0,m.lx)(d)}var g=t.getItemVisual(e,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=a,o.ensureState("blur").style=s,o.ensureState("select").style=l,(0,r.each)(x,function(t){var e=this.childOfName(t);if(e){e.setColor(y),e.style.opacity=g.opacity;for(var n=0;n<v.BV.length;n++){var i=v.BV[n],r=o.getState(i);if(r){var a=r.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}},this);var b=i.getRawValue(e);(0,m.qM)(this,u,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(null==b?t.getName(e):isFinite(b)?(0,_.LI)(b):b)+""});var w=this.getTextContent();if(w){var S=u.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=S.get("position")||"middle";var A=S.get("distance");(0,r.isArray)(A)||(A=[A,A]),w.__labelDistance=A}this.setTextConfig({position:null,local:!0,inside:!1}),(0,v.Lm)(this,c,p,h)},e.prototype.highlight=function(){(0,v.HY)(this)},e.prototype.downplay=function(){(0,v.SD)(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");A(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,r=this.parent;r;)r.scaleX&&(i/=r.scaleX),r=r.parent;var a=this.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),h=o.sub([],u,l);if(o.normalize(h,h),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),e&&(e.setPosition(u),S(e,1),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var c=void 0,p=void 0,d=n.__labelDistance,f=d[0]*i,g=d[1]*i,y=s/2,v=a.tangentAt(y),m=[v[1],-v[0]],_=a.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=v[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var b=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(b=Math.PI+b),n.rotation=b}var w=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,p="top";break;default:w=0,p="middle"}switch(n.__position){case"end":n.x=h[0]*f+u[0],n.y=h[1]*g+u[1],c=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":n.x=-h[0]*f+l[0],n.y=-h[1]*g+l[1],c=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*x+l[0],n.y=l[1]+w,c=v[0]<0?"right":"left",n.originX=-f*x,n.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=_[0],n.y=_[1]+w,c="center",n.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*x+u[0],n.y=u[1]+w,c=v[0]>=0?"right":"left",n.originX=f*x,n.originY=-w}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||p,align:n.__align||c})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(y.A)},87274:function(t,e,n){n.d(e,{A:()=>h});var i=n(79620),r=n(59033),o=n(25591),a=n(73394);function s(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,a.lx)(e)}}function l(t){return isNaN(t[0])||isNaN(t[1])}function u(t){return t&&!l(t[0])&&!l(t[1])}let h=function(){function t(t){this.group=new i.A,this._LineCtor=t||o.A}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this.group,i=this._lineData;this._lineData=t,i||n.removeAll();var r=s(t);t.diff(i).add(function(n){e._doAdd(t,n,r)}).update(function(n,o){e._doUpdate(i,t,o,n,r)}).remove(function(t){n.remove(i.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=s(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&e.animators.length>0||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++)if(u(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){r.traverseElements(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(u(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);u(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}()},17182:function(t,e,n){n.d(e,{A:()=>f});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 d(t,e){this.parent.drift(t,e)}let f=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=d,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 d={scaleX:l[0]/2,scaleY:l[1]/2};h?p.attr(d):a.oi(p,d,s,n),(0,a.ap)(p)}if(this._updateCommon(t,n,l,i,r),u){var p=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,a.LW(p,d,s,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,o){var a,s,d,f,g,y,v,m,_,x=this.childAt(0),b=t.hostModel;if(i&&(a=i.emphasisItemStyle,s=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,g=i.blurScope,v=i.labelStatesModels,m=i.hoverScale,_=i.cursorStyle,y=i.emphasisDisabled),!i||t.hasItemOption){var w=i&&i.itemModel?i.itemModel:t.getItemModel(e),S=w.getModel("emphasis");a=S.getModel("itemStyle").getItemStyle(),d=w.getModel(["select","itemStyle"]).getItemStyle(),s=w.getModel(["blur","itemStyle"]).getItemStyle(),f=S.get("focus"),g=S.get("blurScope"),y=S.get("disabled"),v=(0,c.lx)(w),m=S.getShallow("scale"),_=w.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 C=t.getItemVisual(e,"style"),I=C.fill;if(x instanceof p.Ay){var T=x.style;x.useStyle((0,h.extend)({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},C))}else x.__isEmptyBrush?x.useStyle((0,h.extend)({},C)):x.useStyle(C),x.style.decal=null,x.setColor(I,o&&o.symbolInnerColor),x.style.strokeNoScale=!0;var D=t.getItemVisual(e,"liftZ"),k=this._z2;null!=D?null==k&&(this._z2=x.z2,x.z2+=D):null!=k&&(x.z2=k,this._z2=null);var O=o&&o.useNameLabel;(0,c.qM)(x,v,{labelFetcher:b,labelDataIndex:e,defaultText:function(e){return O?t.getName(e):(0,u.i)(t,e)},inheritColor:I,defaultOpacity:C.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=x.ensureState("emphasis");L.style=a,x.ensureState("select").style=d,x.ensureState("blur").style=s;var P=null==m||!0===m?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),(0,l.Lm)(this,f,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},d=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add(function(i){var r=d(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 f=o.getItemGraphicEl(c),g=d(h);if(!u(t,g,h,e))return void n.remove(f);var y=t.getItemVisual(h,"symbol")||"circle",v=f&&f.getSymbolType&&f.getSymbolType();if(!f||v&&v!==y)n.remove(f),(f=new a(t,h,l,p)).setPosition(g);else{f.updateData(t,h,l,p);var m={x:g[0],y:g[1]};s?f.attr(m):r.oi(f,m,i)}n.add(f),t.setItemGraphicEl(h,f)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)},i)}).execute(),this._getSymbolPoint=d,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,d=n.get(["lineStyle","width"])||2;u-=d/2,h-=d/2,c+=d,p+=d,c=Math.ceil(c),u!==Math.floor(u)&&(u=Math.floor(u),c++);var f=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&&(f.shape.x+=c),f.shape.width=0):(v||(f.shape.y+=p),f.shape.height=0);var m=(0,s.isFunction)(a)?function(t){a(t,f)}:null;r.LW(f,{shape:{width:c,height:p,x:u,y:h}},n,null,o,m)}return f}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),d=n(41402),f=n(88569),g=n(95056);let y=function(t,e,n){n=n||{};var c,y,v,m,_,x,b,w,S=e.getSourceManager(),A=!1;t?(A=!0,w=(0,p.AF)(t)):A=(w=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),C=(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),I=n.useEncodeDefaulter,T=i.isFunction(I)?I:I?i.curry(f.OC,C,e):null,D={coordDimensions:C,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:T,canOmitUnusedDimensions:!A},k=(0,o.A)(w,D),O=(m=k.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&&(b=!0)}),b||null==x||(m[x].otherDims.itemName=0),x),L=A?null:S.getSharedDataStore(k),P=(0,d.iJ)(e,{schema:k,store:L}),R=new r.A(k,e);R.setCalculationInfo(P);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))}}(w)?function(t,e,n,i){return i===O?n:this.defaultDimValueGetter(t,e,n,i)}:null;return R.hasItemOption=!1,R.initData(A?w:L,null,N),R}},29605:function(t,e,n){n.d(e,{A:()=>a});var i=n(85337),r=n(15764),o=n(4884);function a(t,e,n){e=(0,o.isArray)(e)&&{coordDimensions:e}||(0,o.extend)({encodeDefine:t.getEncode()},e);var a=t.getSource(),s=(0,i.A)(a,e).dimensions,l=new r.A(s,t);return l.initData(a,n),l}},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(" ")}},27108:function(t,e,n){n.d(e,{i:()=>o});var i=n(4884),r=n(23960);function o(t,e,n){var o=t.get("borderRadius");if(null==o)return n?{cornerRadius:0}:null;(0,i.isArray)(o)||(o=[o,o,o,o]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,i.map)(o,function(t){return(0,r.lo)(t,a)})}}},62707:function(t,e,n){n.d(e,{a:()=>H});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 d(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,d=l.dim,f=e.mapDimension(d),g=e.mapDimension(c),y=+("x"===d||"radius"===d),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:d,baseAxisDim:c,stacked:!!m,valueDim:f,baseDim:g,baseDataOffset:y,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function f(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),b=n(31440),w=n(55037),S=n(43139),A=n(72059),M=n(73394),C=n(18538),I=n(35032),T=n(3306),D=n(34196);function k(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 L(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 P(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,d=[];l[o]=d[o]=p,l[1-o]=u[1-o],d[1-o]=h[1-o],a.push(l[0],l[1]),a.push(d[0],d[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 z(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 E(t,e,n,i){if(!(0,S.g)(e,"cartesian2d"))return(0,w.Mi)(e,n,i);var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=z(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),h=(0,w.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,b=this._polyline,w=this._polygon,S=this._lineGroup,M=!e.ssr&&t.get("animation"),C=!h.isEmpty(),O=h.get("origin"),L=d(o,s,O),N=C&&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=f(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(o,s,L),z=t.get("showSymbol"),B=t.get("connectNulls"),V=z&&!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),F=this._data;F&&F.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),F.setItemGraphicEl(e,null))}),z||x.remove(),a.add(S);var H=!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 d=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,D.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()),f=d.length;if(!f&&c)return h[0].coord<0?p[1]?p[1]:h[c-1].color:p[0]?p[0]:h[0].color;var g=d[0].coord-10,v=d[f-1].coord+10,m=v-g;if(m<.001)return"transparent";u.each(d,function(t){t.offset=(t.coord-g)/m}),d.push({offset:f?d[f-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:p[0]||"transparent"});var _=new y.A(0,0,0,0,d,!0);return _[i]=g,_[i+"2"]=v,_}}(s,o,n)||s.getVisual("style")[s.getVisual("drawType")];if(b&&_.type===o.type&&H===this._step){C&&!w?w=this._newPolygon(p,N):w&&!C&&(S.remove(w),w=this._polygon=null),m||this._initOrUpdateEndLabel(t,o,(0,T.he)(W));var G=S.getClipPath();if(G){var Y=E(this,o,!1,t);v.LW(G,{shape:Y.shape},t)}else S.setClipPath(E(this,o,!0,t));z&&x.updateData(s,{isIgnore:V,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),k(this._stackedOnPoints,N)&&k(this._points,p)||(M?this._doUpdateAnimation(s,N,o,n,H,O,B):(H&&(p=R(p,o,H,B),N&&(N=R(N,o,H,B))),b.setShape({points:p}),w&&w.setShape({points:p,stackedOnPoints:N})))}else z&&x.updateData(s,{isIgnore:V,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[p[2*t],p[2*t+1]]}}),M&&this._initSymbolLabelAnimation(s,o,i),H&&(p=R(p,o,H,B),N&&(N=R(N,o,H,B))),b=this._newPolyline(p),C?w=this._newPolygon(p,N):w&&(S.remove(w),w=this._polygon=null),m||this._initOrUpdateEndLabel(t,o,(0,T.he)(W)),S.setClipPath(E(this,o,!0,t));var X=t.getModel("emphasis"),U=X.get("focus"),Z=X.get("blurScope"),q=X.get("disabled");b.useStyle(u.defaults(l.getLineStyle(),{fill:"none",stroke:W,lineJoin:"bevel"})),(0,A.Mx)(b,t,"lineStyle"),b.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(b.getState("emphasis").style.lineWidth=+b.style.lineWidth+1),(0,I.z)(b).seriesIndex=t.seriesIndex,(0,A.Lm)(b,U,Z,q);var j=P(t.get("smooth")),K=t.get("smoothMonotone");if(b.setShape({smooth:j,smoothMonotone:K,connectNulls:B}),w){var $=s.getCalculationInfo("stackedOnSeries"),Q=0;w.useStyle(u.defaults(h.getAreaStyle(),{fill:W,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(Q=P($.get("smooth"))),w.setShape({smooth:j,stackedOnSmooth:Q,smoothMonotone:K,connectNulls:B}),(0,A.Mx)(w,t,"areaStyle"),(0,I.z)(w).seriesIndex=t.seriesIndex,(0,A.Lm)(w,U,Z,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=H,this._valueOrigin=O,t.get("triggerLineEvent")&&(this.packEventData(t,b),w&&this.packEventData(t,w))},e.prototype.packEventData=function(t,e){(0,I.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))b.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 d=s.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=p,d.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 b.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,d=void 0,f=void 0;if(n)if(r){var g=e.pointToCoord(s);i?(p=n.startAngle,d=n.endAngle,f=-g[1]/180*Math.PI):(p=n.r0,d=n.r,f=g[0])}else i?(p=n.x,d=n.x+n.width,f=t.x):(p=n.y+n.height,d=n.y,f=t.y);var y=d===p?0:(f-p)/(d-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(z(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,C.T)(s,n):(0,C.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"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),w=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,w),A=S.range,C=A[1]-A[0],I=void 0;if(C>=1){if(C>1&&!c){var T=N(u,A[0]);s.attr({x:T[0]+x,y:T[1]+b}),r&&(I=h.getRawValue(A[0]))}else{var T=l.getPointOn(m,w);T&&s.attr({x:T[0]+x,y:T[1]+b});var D=h.getRawValue(A[0]),k=h.getRawValue(A[1]);r&&(I=_.Il(n,p,D,k,S.t))}i.lastFrameIndex=A[0]}else{var O=1===t||i.lastFrameIndex>0?A[0]:0,T=N(u,O);r&&(I=h.getRawValue(O)),s.attr({x:T[0]+x,y:T[1]+b})}if(r){var L=(0,M.Lu)(s);"function"==typeof L.setLabelText&&L.setLabelText(I)}}},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=d(r,e,a),b=t.getLayout("points")||[],w=e.getLayout("points")||[],S=0;S<u.length;S++){var A=u[S],M=!0,C=void 0,I=void 0;switch(A.cmd){case"=":C=2*A.idx,I=2*A.idx1;var T=b[C],D=b[C+1],k=w[I],O=w[I+1];(isNaN(T)||isNaN(D))&&(T=k,D=O),h.push(T,D),c.push(k,O),p.push(n[C],n[C+1]),y.push(i[I],i[I+1]),_.push(e.getRawIndex(A.idx1));break;case"+":var L=A.idx,P=x.dataDimsForPoint,R=r.dataToPoint([e.get(P[0],L),e.get(P[1],L)]);I=2*L,h.push(R[0],R[1]),c.push(w[I],w[I+1]);var N=f(x,r,e,L);p.push(N[0],N[1]),y.push(i[I],i[I+1]),_.push(e.getRawIndex(L));break;case"-":M=!1}M&&(v.push(A),m.push(m.length))}m.sort(function(t,e){return _[t]-_[e]});for(var z=h.length,E=(0,g.J)(z),B=(0,g.J)(z),V=(0,g.J)(z),F=(0,g.J)(z),H=[],S=0;S<m.length;S++){var W=m[S],G=2*S,Y=2*W;E[G]=h[Y],E[G+1]=h[Y+1],B[G]=c[Y],B[G+1]=c[Y+1],V[G]=p[Y],V[G+1]=p[Y+1],F[G]=y[Y],F[G+1]=y[Y+1],H[S]=v[W]}return{current:E,next:B,stackedOnCurrent:V,stackedOnNext:F,status:H}}(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)),L(c,y)>3e3||l&&L(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=[],b=h.status,w=0;w<b.length;w++)if("="===b[w].cmd){var S=t.getItemGraphicEl(b[w].idx1);S&&x.push({el:S,ptIdx:w})}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}(b.A),V=n(97548),F=n(50821);function H(t){t.registerChartView(B),t.registerSeriesModel(l),t.registerLayout((0,V.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,F.A)("line"))}},25970:function(t,e,n){n.d(e,{N:()=>p,z:()=>f});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,d,f,g,y,v,m=n,_=0;_<i;_++){var x=e[2*m],b=e[2*m+1];if(m>=r||m<0)break;if(u(x,b)){if(c){m+=o;continue}break}if(m===n)t[o>0?"moveTo":"lineTo"](x,b),f=x,g=b;else{var w=x-p,S=b-d;if(w*w+S*S<.5){m+=o;continue}if(a>0){for(var A=m+o,M=e[2*A],C=e[2*A+1];M===x&&C===b&&_<i;)_++,A+=o,m+=o,M=e[2*A],C=e[2*A+1],x=e[2*m],b=e[2*m+1],w=x-p,S=b-d;var I=_+1;if(c)for(;u(M,C)&&I<i;)I++,A+=o,M=e[2*A],C=e[2*A+1];var T=.5,D=0,k=0,O=void 0,L=void 0;if(I>=i||u(M,C))y=x,v=b;else{D=M-p,k=C-d;var P=x-p,R=M-x,N=b-d,z=C-b,E=void 0,B=void 0;if("x"===h){E=Math.abs(P),B=Math.abs(R);var V=D>0?1:-1;y=x-V*E*a,v=b,O=x+V*B*a,L=b}else if("y"===h){E=Math.abs(N),B=Math.abs(z);var F=k>0?1:-1;y=x,v=b-F*E*a,O=x,L=b+F*B*a}else E=Math.sqrt(P*P+N*N),y=x-D*a*(1-(T=(B=Math.sqrt(R*R+z*z))/(B+E))),v=b-k*a*(1-T),O=x+D*a*T,L=b+k*a*T,O=s(O,l(M,x)),L=s(L,l(C,b)),O=l(O,s(M,x)),L=l(L,s(C,b)),D=O-x,k=L-b,y=x-D*E/B,v=b-k*E/B,y=s(y,l(p,x)),v=s(v,l(d,b)),y=l(y,s(p,x)),v=l(v,s(d,b)),D=x-y,k=b-v,O=x+D*B/E,L=b+k*B/E}t.bezierCurveTo(f,g,y,v,x,b),f=O,g=L}else t.lineTo(x,b)}p=x,d=b,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,d=void 0,f=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++],d=r[h++],(m=l?(t-n)/(p-n):(t-i)/(d-i))<=1&&m>=0){var _=l?(d-i)*m+i:(p-n)*m+n;return l?[t,_]:[_,t]}n=p,i=d;break;case s.C:p=r[h++],d=r[h++],f=r[h++],g=r[h++],y=r[h++],v=r[h++];var x=l?(0,a._E)(n,p,f,y,t,u):(0,a._E)(i,d,g,v,t,u);if(x>0)for(var b=0;b<x;b++){var w=u[b];if(w<=1&&w>=0){var _=l?(0,a.Yb)(i,d,g,v,w):(0,a.Yb)(n,p,f,y,w);return l?[t,_]:[_,t]}}n=y,i=v}}},e}(r.Ay),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(c),f=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 d},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)},76545:function(t,e,n){n.d(e,{a:()=>V});var i=n(1514),r=n(21916),o=n(10675),a=n(4884),s=n(40843),l=2*Math.PI,u=Math.PI/180;function h(t,e){return o.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t,e){var n,i,o=h(t,e),s=t.get("center"),l=t.get("radius");a.isArray(l)||(l=[0,l]);var u=(0,r.lo)(o.width,e.getWidth()),c=(0,r.lo)(o.height,e.getHeight()),p=Math.min(u,c),d=(0,r.lo)(l[0],p/2),f=(0,r.lo)(l[1],p/2),g=t.coordinateSystem;if(g){var y=g.dataToPoint(s);n=y[0]||0,i=y[1]||0}else a.isArray(s)||(s=[s,s]),n=(0,r.lo)(s[0],u)+o.x,i=(0,r.lo)(s[1],c)+o.y;return{cx:n,cy:i,r0:d,r:f}}function p(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),o=h(t,n),a=c(t,n),p=a.cx,d=a.cy,f=a.r,g=a.r0,y=-t.get("startAngle")*u,v=t.get("endAngle"),m=t.get("padAngle")*u;v="auto"===v?y-l:-v*u;var _=t.get("minAngle")*u+m,x=0;e.each(i,function(t){!isNaN(t)&&x++});var b=e.getSum(i),w=Math.PI/(b||x)*2,S=t.get("clockwise"),A=t.get("roseType"),M=t.get("stillShowZeroSum"),C=e.getDataExtent(i);C[0]=0;var I=S?1:-1,T=[y,v],D=I*m/2;(0,s.q)(T,!S),y=T[0];var k=Math.abs((v=T[1])-y),O=k,L=0,P=y;if(e.setLayout({viewRect:o,r:f}),e.each(i,function(t,n){if(isNaN(t))return void e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:p,cy:d,r0:g,r:A?NaN:f});(i="area"!==A?0===b&&M?w:t*w:k/x)<_?(i=_,O-=_):L+=t;var i,o=P+I*i,a=0,s=0;m>i?s=a=P+I*i/2:(a=P+D,s=o-D),e.setItemLayout(n,{angle:i,startAngle:a,endAngle:s,clockwise:S,cx:p,cy:d,r0:g,r:A?(0,r.Cb)(t,C,[g,f]):f}),P=o}),O<l&&x)if(O<=.001){var R=k/x;e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=R;var r=0,o=0;R<m?o=r=y+I*(n+.5)*R:(r=y+I*n*R+D,o=y+I*(n+1)*R-D),i.startAngle=r,i.endAngle=o}})}else w=O/L,P=y,e.each(i,function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===_?_:t*w,o=0,a=0;r<m?a=o=P+I*r/2:(o=P+D,a=P+I*r-D),i.startAngle=o,i.endAngle=a,P+=I*r}})})}var d=n(31069),f=n(31831),g=n(52384),y=n(68532),v=n(88297),m=n(23917),_=n(72059),x=n(31440),b=n(45400),w=n(82883),S=n(6417),A=Math.PI/180;function M(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var h=t.length,c=0;c<h;c++)if("outer"===t[c].position&&"labelLine"===t[c].labelAlignTo){var p=t[c].label.x-u;t[c].linePoints[1][0]+=p,t[c].label.x=u}(0,S.Xe)(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,p=i+l.len;u.rB=Math.abs(c)<p?Math.sqrt(h*h/(1-c*c/p/p)):p,u.maxY=h}u.list.push(l)}d(o),d(a)}(t)}function d(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),h=i+l.len,c=e+(Math.sqrt(h*h*(1-Math.abs(u*u/a)))+l.len2)*r,p=c-l.label.x,d=l.targetTextWidth-p*r;C(l,d,!0),l.label.x=c}}}function C(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,h=o.width+(a?0:l);if(e<h||n){var c=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=e<h?d:n?d>t.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function I(t){return"center"===t.position}var T=n(73394),D=n(27108),k=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new g.Ay;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return(0,f.C6)(e,t),e.prototype.updateData=function(t,e,n,i){var r=t.hostModel,o=t.getItemModel(e),s=o.getModel("emphasis"),l=t.getItemLayout(e),u=(0,a.extend)((0,D.i)(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))return void this.setShape(u);if(i){this.setShape(u);var h=r.getShallow("animationType");r.ecModel.ssr?(y.LW(this,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),this.originX=u.cx,this.originY=u.cy):"scale"===h?(this.shape.r=l.r0,y.LW(this,{shape:{r:l.r}},r,e)):null!=n?(this.setShape({startAngle:n,endAngle:n}),y.LW(this,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(this.shape.endAngle=l.startAngle,y.oi(this,{shape:{endAngle:l.endAngle}},r,e))}else(0,y.ap)(this),y.oi(this,{shape:u},r,e);this.useStyle(t.getItemVisual(e,"style")),(0,_.Mx)(this,o);var c=(l.startAngle+l.endAngle)/2,p=r.get("selectedOffset"),d=Math.cos(c)*p,f=Math.sin(c)*p,g=o.getShallow("cursor");g&&this.attr("cursor",g),this._updateLabel(r,t,e),this.ensureState("emphasis").shape=(0,a.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},(0,D.i)(s.getModel("itemStyle"),l)),(0,a.extend)(this.ensureState("select"),{x:d,y:f,shape:(0,D.i)(o.getModel(["select","itemStyle"]),l)}),(0,a.extend)(this.ensureState("blur"),{shape:(0,D.i)(o.getModel(["blur","itemStyle"]),l)});var v=this.getTextGuideLine(),m=this.getTextContent();v&&(0,a.extend)(v.ensureState("select"),{x:d,y:f}),(0,a.extend)(m.ensureState("select"),{x:d,y:f}),(0,_.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),r=i.getModel("labelLine"),o=e.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;(0,T.qM)(this,(0,T.lx)(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)this.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new v.A,this.setTextGuideLine(c)),(0,w.eR)(this,(0,w.rv)(i),{stroke:s,opacity:(0,a.retrieve3)(r.get(["lineStyle","opacity"]),l,1)})}},e}(m.A),O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,f.C6)(e,t),e.prototype.render=function(t,e,n,i){var o,s=t.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var h=s.getItemLayout(0),p=1;isNaN(h&&h.startAngle)&&p<s.count();++p)h=s.getItemLayout(p);h&&(o=h.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),0===s.count()&&t.get("showEmptyCircle")){var d=new m.A({shape:c(t,n)});d.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,u.add(d)}s.diff(l).add(function(t){var e=new k(s,t,o);s.setItemGraphicEl(t,e),u.add(e)}).update(function(t,e){var n=l.getItemGraphicEl(e);n.updateData(s,t,o),n.off("click"),u.add(n),s.setItemGraphicEl(t,n)}).remove(function(e){var n=l.getItemGraphicEl(e);y.t5(n,t,e)}).execute(),function(t){var e,n,i=t.getData(),o=[],s=!1,l=(t.get("minShowLabelAngle")||0)*A,u=i.getLayout("viewRect"),h=i.getLayout("r"),c=u.width,p=u.x,d=u.y,f=u.height;function g(t){t.ignore=!0}i.each(function(t){var u,d,f,y,v=i.getItemGraphicEl(t),m=v.shape,_=v.getTextContent(),x=v.getTextGuideLine(),w=i.getItemModel(t),S=w.getModel("label"),A=S.get("position")||w.get(["emphasis","label","position"]),M=S.get("distanceToLabelLine"),C=S.get("alignTo"),I=(0,r.lo)(S.get("edgeDistance"),c),T=S.get("bleedMargin"),D=w.getModel("labelLine"),k=D.get("length");k=(0,r.lo)(k,c);var O=D.get("length2");if(O=(0,r.lo)(O,c),Math.abs(m.endAngle-m.startAngle)<l){(0,a.each)(_.states,g),_.ignore=!0,x&&((0,a.each)(x.states,g),x.ignore=!0);return}if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(_)){var L=(m.startAngle+m.endAngle)/2,P=Math.cos(L),R=Math.sin(L);e=m.cx,n=m.cy;var N="inside"===A||"inner"===A;if("center"===A)u=m.cx,d=m.cy,y="center";else{var z=(N?(m.r+m.r0)/2*P:m.r*P)+e,E=(N?(m.r+m.r0)/2*R:m.r*R)+n;if(u=z+3*P,d=E+3*R,!N){var B=z+P*(k+h-m.r),V=E+R*(k+h-m.r),F=B+(P<0?-1:1)*O;u="edge"===C?P<0?p+I:p+c-I:F+(P<0?-M:M),d=V,f=[[z,E],[B,V],[F,V]]}y=N?"center":"edge"===C?P>0?"right":"left":P>0?"left":"right"}var H=Math.PI,W=0,G=S.get("rotate");if((0,a.isNumber)(G))W=H/180*G;else if("center"===A)W=0;else if("radial"===G||!0===G)W=P<0?-L+H:-L;else if("tangential"===G&&"outside"!==A&&"outer"!==A){var Y=Math.atan2(P,R);Y<0&&(Y=2*H+Y),R>0&&(Y=H+Y),W=Y-H}if(s=!!W,_.x=u,_.y=d,_.rotation=W,_.setStyle({verticalAlign:"middle"}),N){_.setStyle({align:y});var X=_.states.select;X&&(X.x+=_.x,X.y+=_.y)}else{var U=_.getBoundingRect().clone();U.applyTransform(_.getComputedTransform());var Z=(_.style.margin||0)+2.1;U.y-=Z/2,U.height+=Z,o.push({label:_,labelLine:x,position:A,len:k,len2:O,minTurnAngle:D.get("minTurnAngle"),maxSurfaceAngle:D.get("maxSurfaceAngle"),surfaceNormal:new b.A(P,R),linePoints:f,textAlign:y,labelDistance:M,labelAlignTo:C,edgeDistance:I,bleedMargin:T,rect:U,unconstrainedWidth:U.width,labelStyleWidth:_.style.width})}v.setTextConfig({inside:N})}}),!s&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;I(t[p])||(d.x<e?(h=Math.min(h,d.x),l.push(t[p])):(c=Math.max(c,d.x),u.push(t[p])))}for(var p=0;p<t.length;p++){var f=t[p];if(!I(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;var d=f.label,g=f.linePoints,y=void 0;y="edge"===f.labelAlignTo?d.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?d.x<e?h-a-f.bleedMargin:a+r-c-f.bleedMargin:d.x<e?d.x-a-f.bleedMargin:a+r-d.x-f.bleedMargin,f.targetTextWidth=y,C(f,y)}}M(u,e,n,i,1,r,o,a,s,c),M(l,e,n,i,-1,r,o,a,s,h);for(var p=0;p<t.length;p++){var f=t[p];if(!I(f)&&f.linePoints){var d=f.label,g=f.linePoints,v="edge"===f.labelAlignTo,m=d.style.padding,_=m?m[1]+m[3]:0,x=d.style.backgroundColor?0:_,b=f.rect.width+x,w=g[1][0]-g[2][0];v?d.x<e?g[2][0]=a+f.edgeDistance+b+f.labelDistance:g[2][0]=a+r-f.edgeDistance-b-f.labelDistance:(d.x<e?g[2][0]=d.x+f.labelDistance:g[2][0]=d.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=d.y}}}(o,e,n,h,c,f,p,d);for(var y=0;y<o.length;y++){var v=o[y],m=v.label,_=v.labelLine,x=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:v.textAlign}),x&&((0,a.each)(m.states,g),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(_){var T=v.linePoints;x||!T?((0,a.each)(_.states,g),_.ignore=!0):((0,w.YI)(T,v.minTurnAngle),(0,w.QK)(T,v.surfaceNormal,v.maxSurfaceAngle),_.setShape({points:T}),m.__hostTarget.textGuideLineConfig={anchor:new b.A(T[0][0],T[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=s)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(x.A),L=n(29605),P=n(84124),R=n(88569),N=n(96457),z=n(55785),E=P.$r(),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,f.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new N.A(a.bind(this.getData,this),a.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return(0,L.A)(this,{coordDimensions:["value"],encodeDefaulter:a.curry(R.ln,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=E(n),o=i.seats;if(!o){var a=[];n.each(n.mapDimension("value"),function(t){a.push(t)}),o=i.seats=(0,r.kM)(a,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,e);return s.percent=o[e]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){P.M5(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(z.A);function V(t){t.registerChartView(O),t.registerSeriesModel(B),(0,i.I)("pie",t.registerAction),t.registerLayout((0,a.curry)(p,"pie")),t.registerProcessor((0,d.A)("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(0,a.isNumber)(i)||!!isNaN(i)||!(i<0)})}})}},32741:function(t,e,n){n.d(e,{a:()=>_});var i=n(74653),r=n(31831),o=n(43059),a=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,r.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,o.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(n(55785).A),s=n(22448),l=n(51690),u=n(30070),h=n(79620),c=n(60253),p=n(35032),d=function(){},f=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,r.C6)(e,t),e.prototype.getDefaultShape=function(){return new d},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l){this._ctx=s;return}for(this._ctx=null,n=this._off;n<i.length;){var h=i[n++],c=i[n++];!(isNaN(h)||isNaN(c))&&(!u||u.contain(h,c))&&(a.x=h-r[0]/2,a.y=c-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];!(isNaN(a)||isNaN(s))&&(!o||o.contain(a,s))&&r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return -1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return(t=n[0],e=n[1],i.contain(t,e))?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,u=-1/0,h=-1/0,c=0;c<n.length;){var p=n[c++],d=n[c++];a=Math.min(p,a),u=Math.max(p,u),s=Math.min(d,s),h=Math.max(d,h)}t=this._rect=new l.A(a-r/2,s-o/2,u-a+r,h-s+o)}return t},e}(u.Ay),g=function(){function t(){this.group=new h.A}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(t){if(null!=t.startIndex){var n=(t.endIndex-t.startIndex)*2,i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()})},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new f({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=(0,c.v5)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=(0,p.z)(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),y=n(97548),v=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=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=(0,y.A)("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new g:new s.A,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(n(31440).A),m=n(50926);function _(t){(0,i.Y)(m.a),t.registerSeriesModel(a),t.registerChartView(v),t.registerLayout((0,y.A)("scatter"))}},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),d=n(37817),f=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],d=h[0]>c[0];u&&((0,f.applyTransform)(h,h,u),(0,f.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],b=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,-b/2,x,b,g.stroke,!0),o=e.r+e.offset,a=d?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(),d=((0,i.retrieve)(r.labelRotate,a.get("rotate"))||0)*v/180,f=m.innerTextLayout(r.rotation,d,r.labelDirection),g=n.getCategories&&n.getCategories(!0),y=[],_=m.isLabelSilent(n),x=n.get("triggerEvent");return(0,i.each)(p,function(d,v){var b="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,w=d.formattedLabel,S=d.rawLabel,A=a;if(g&&g[b]){var M=g[b];(0,i.isObject)(M)&&M.textStyle&&(A=new h.A(M.textStyle,a,n.ecModel))}var C=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),I=o.dataToCoord(b),T=A.getShallow("align",!0)||f.textAlign,D=(0,i.retrieve2)(A.getShallow("alignMinLabel",!0),T),k=(0,i.retrieve2)(A.getShallow("alignMaxLabel",!0),T),O=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||f.textVerticalAlign,L=(0,i.retrieve2)(A.getShallow("verticalAlignMinLabel",!0),O),P=(0,i.retrieve2)(A.getShallow("verticalAlignMaxLabel",!0),O),R=new s.Ay({x:I,y:r.labelOffset+r.labelDirection*c,rotation:f.rotation,silent:_,z2:10+(d.level||0),style:(0,u.VB)(A,{text:w,align:0===v?D:v===p.length-1?k:T,verticalAlign:0===v?L:v===p.length-1?P:O,fill:(0,i.isFunction)(C)?C("category"===o.type?S:"value"===o.type?b+"":b,v):C})});if(R.anid="label_"+b,x){var N=m.makeAxisEventDataBase(n);N.targetType="axisLabel",N.value=S,N.tickIndex=v,"category"===o.type&&(N.dataIndex=b),(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)):b(o,a)&&(i?(x(a),x(h)):(x(o),x(u))),!1===r?(x(s),x(c)):b(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),d=0;d<p.length;d++)t.add(p[d])}}(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 d,f,g,y,_,x,b,S,A,M=e.get("nameLocation"),C=t.nameDirection,I=e.getModel("nameTextStyle"),T=e.get("nameGap")||0,D=e.axis.getExtent(),k=D[0]>D[1]?-1:1,O=["start"===M?D[0]-k*T:"end"===M?D[1]+k*T:(D[0]+D[1])/2,w(M)?t.labelOffset+C*T:0],L=e.get("nameRotate");null!=L&&(L=L*v/180),w(M)?o=m.innerTextLayout(t.rotation,null!=L?L:t.rotation,C):(d=t.rotation,f=M,g=L||0,y=D,b=(0,c._7)(g-d),S=y[0]>y[1],A="start"===f&&!S||"start"!==f&&S,(0,c.dh)(b-v/2)?(x=A?"bottom":"top",_="center"):(0,c.dh)(b-1.5*v)?(x=A?"top":"bottom",_="center"):(x="middle",_=b<1.5*v&&b>v/2?A?"left":"right":A?"right":"left"),o={rotation:b,textAlign:_,textVerticalAlign:x},null!=(h=t.axisNameAvailableWidth)&&(isFinite(h=Math.abs(h/Math.sin(o.rotation)))||(h=null)));var P=I.getFont(),R=e.get("nameTruncate",!0)||{},N=R.ellipsis,z=(0,i.retrieve)(t.nameTruncateMaxWidth,R.maxWidth,h),E=new s.Ay({x:O[0],y:O[1],rotation:o.rotation,silent:m.isLabelSilent(e),style:(0,u.VB)(I,{text:p,font:P,overflow:"truncate",width:z,ellipsis:N,fill:I.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:I.get("align")||o.textAlign,verticalAlign:I.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(a.setTooltipConfig({el:E,componentModel:e,itemName:p}),E.__fullText=p,E.anid="name",e.get("triggerEvent")){var B=m.makeAxisEventDataBase(e);B.targetType="axisName",B.name=p,(0,l.z)(E).eventData=B}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function x(t){t&&(t.ignore=!0)}function b(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=d.identity([]);return d.rotate(r,r,-t.rotation),n.applyTransform(d.mul([],r,t.getLocalTransform())),i.applyTransform(d.mul([],r,e.getLocalTransform())),n.intersect(i)}}function w(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,f.applyTransform)(l,l,e),(0,f.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 d=h.length,f=o(t).splitAreaColors,g=i.createHashMap(),y=0;if(f)for(var v=0;v<p.length;v++){var m=f.get(p[v].tickValue);if(null!=m){y=(m+(d-1)*v)%d;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 b=s.toGlobalCoord(p[v].coord),w=void 0,S=void 0,A=void 0,M=void 0;s.isHorizontal()?(w=_,S=c.y,A=b-w,M=c.height,_=w+A):(w=c.x,S=_,A=c.width,M=b-S,_=S+M);var C=p[v-1].tickValue;null!=C&&g.set(C,y),e.add(new r.A({anid:null!=C?"area_"+C:null,shape:{x:w,y:S,width:A,height:M},style:i.defaults({fill:h[y]},x),autoBatch:!0,silent:!0})),y=(y+1)%d}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,d=i.bind;function f(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 d=i.curry(f,e,p);this.updatePointerEl(l,h,d),this.updateLabelEl(l,h,d,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:d(this._onHandleDragMove,this,0,0),drift:d(this._onHandleDragMove,this),ondragend:d(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){f(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,d=c.dim,f=+("x"===p||"radius"===p),g=s.mapDimension(d),y=[];y[f]=s.get(g,l),y[1-f]=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,d,f=(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,f.dispatchAction)}),u=f.pendings,h=e,p=u.showTip.length,d=u.hideTip.length,p?c=u.showTip[p-1]:d&&(c=u.hideTip[d-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:()=>C});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(),d=o.toGlobalCoord(o.dataToCoord(e,!0));if(c&&"none"!==c){var f=a.bY(i),g=h[c](o,d,p);g.style=f,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),d=n(27462),f=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";d.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){d.h("axisPointer",e)},e.prototype.dispose=function(t,e){d.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,d,f,y,v,x,C=M(r),I=t.axesInfo,T=a.axesInfo,D="leave"===i||M(r),k={},O={},L={list:[],map:{}},P={showPointer:(0,g.curry)(w,O),showTooltip:(0,g.curry)(S,L)};(0,g.each)(a.coordSysMap,function(t,e){var n=C||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}}(I,t);if(!D&&n&&(!I||o)){var a=o&&o.value;null!=a||C||(a=i.pointToData(r)),null!=a&&b(t,a,P,!1,k)}})});var R={};return(0,g.each)(T,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){b(T[e],t,P,!0,k)}),s=O,l=T,u=k.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})}(L,r,t,o),h=T,p=(c=n).getZr(),d="axisPointerLastHighlights",f=_(p)[d]||{},y=_(p)[d]={},(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)(f,function(t,e){y[e]||x.push(t)}),(0,g.each)(y,function(t,e){f[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}),k}}function b(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,d,f=(a=e,u=(l=(s=t).axis).dim,h=a,c=[],p=Number.MAX_VALUE,d=-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,f=Math.abs(s);f<=p&&((f<p||s>=0&&d<0)&&(p=f,d=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=f.payloadBatch,v=f.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,f,v)}}function w(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 C(t){i.A.registerAxisPointerClass("CartesianAxisPointer",l),t.registerComponentModel(p),t.registerComponentView(f),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,d,f,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)||[],d=[],(0,r.each)(s.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=c(t.model),s=n.coordSysAxesInfo[e]={};n.coordSysMap[e]=t;var f=t.model.getModel("tooltip",l);if((0,r.each)(t.getAxes(),(0,r.curry)(m,!1,null)),t.getTooltipAxes&&l&&f.get("show")){var g="axis"===f.get("trigger"),y="cross"===f.get(["axisPointer","type"]),v=t.getTooltipAxes(f.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,f,u,o,e,l):y).get("snap"),_=y.get("triggerEmphasis"),x=c(g.model),b=l||m||"category"===g.type,w=n.axesInfo[x]={key:x,axis:g,coordSys:t,axisPointerModel:y,triggerTooltip:l,triggerEmphasis:_,involveSeries:b,snap:m,useHandle:h(y),seriesModels:[],linkGroup:null};s[x]=w,n.seriesInvolved=n.seriesInvolved||b;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=d[S]||(d[S]={axesInfo:{}});A.axesInfo[x]=w,A.mapper=p[S].mapper,w.linkGroup=A}}}}),g.seriesInvolved&&(f=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)(f.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:()=>f,_F:()=>d,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,f,g=d(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,b=_.width+v[1]+v[3],w=_.height+v[0]+v[2],S=r.align;"right"===S&&(x[0]-=b),"center"===S&&(x[0]-=b/2);var A=r.verticalAlign;"bottom"===A&&(x[1]-=w),"middle"===A&&(x[1]-=w/2),s=x,l=b,u=w,p=(c=i).getWidth(),f=c.getHeight(),s[0]=Math.min(s[0]+l,p)-l,s[1]=Math.min(s[1]+u,f)-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 d(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 f(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:f(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}}},44878:function(t,e,n){n.d(e,{A:()=>h});var i=n(31831),r=n(4884),o=n(36805),a=n(27016),s=n(84124),l=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function u(t){var e={};return(0,r.each)(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}let h=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){var i=u(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=u(t);(0,r.merge)(this.option,t,!0),(0,r.merge)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,r.createHashMap)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return(0,r.each)(a.$5,function(n){var i=this.getReferringComponents((0,a.dX)(n),s.UW);if(i.specified){e=!0;var o=new l;(0,r.each)(i.models,function(t){o.add(t.componentIndex)}),t.set(n,o)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0,o="vertical"===e?"y":"x",u=n.findComponents({mainType:o+"Axis"});if(h(u,o),i){var u=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});h(u,"single")}function h(e,n){var o=e[0];if(o){var a=new l;if(a.add(o.componentIndex),t.set(n,a),i=!1,"x"===n||"y"===n){var u=o.getReferringComponents("grid",s.US).models[0];u&&(0,r.each)(e,function(t){o.componentIndex!==t.componentIndex&&u===t.getReferringComponents("grid",s.US).models[0]&&a.add(t.componentIndex)})}}}i&&(0,r.each)(a.$5,function(e){if(i){var r=n.findComponents({mainType:(0,a.dX)(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new l;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){t||(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");(0,r.each)([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent((0,a.dX)(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){(0,r.each)(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent((0,a.dX)(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,r.each)([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,r.each)(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(o.A)},59730:function(t,e,n){n.d(e,{A:()=>r});var i=n(31831);let r=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,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(n(43583).A)},27016:function(t,e,n){n.d(e,{$5:()=>r,CN:()=>l,_u:()=>a,dX:()=>s,es:()=>u});var i=n(4884),r=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function a(t){var e=t.get("coordinateSystem");return(0,i.indexOf)(o,e)>=0}function s(t){return t+"Axis"}function l(t,e){var n,r=(0,i.createHashMap)(),o=[],a=(0,i.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},function(t){a.get(t.uid)||l(t)});do n=!1,t.eachComponent("dataZoom",s);while(n);function s(t){var e;!a.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)}),e)&&(l(t),n=!0)}function l(t){a.set(t.uid,!0),o.push(t),t.eachTargetAxis(function(t,e){(r.get(t)||r.set(t,[]))[e]=!0})}return o}function u(t){var e=t.ecModel,n={infoList:[],infoMap:(0,i.createHashMap)()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(s(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,l=n.infoMap.get(a);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(a,l)),l.axisModels.push(r)}}}),n}},61305:function(t,e,n){n.d(e,{a:()=>a});var i=n(74653),r=n(49747),o=n(5920);function a(t){(0,i.Y)(r.a),(0,i.Y)(o.a)}},97019:function(t,e,n){n.d(e,{A:()=>g});var i=n(4884),r=n(27016),o=n(21916),a=n(91365),s=n(93530),l=n(89972),u=n(84124),h=i.each,c=o.Y6,p=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if((0,r._u)(e)){var n=(0,r.dX)(this._dimName),i=e.getReferringComponents(n,u.US).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return i.clone(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[];h(["start","end"],function(a,h){var c=t[a],p=t[a+"Value"];"percent"===r[h]?(null==c&&(c=s[h]),p=i.parse(o.Cb(c,s,n))):(e=!0,p=null==p?n[h]:i.parse(p),c=o.Cb(p,n,s)),u[h]=null==p||isNaN(p)?n[h]:p,l[h]=null==c||isNaN(c)?s[h]:c}),c(u),c(l);var p=this._minMaxSpan;function d(t,e,n,r,s){var l=s?"Span":"ValueSpan";(0,a.A)(0,t,n,"all",p["min"+l],p["max"+l]);for(var u=0;u<2;u++)e[u]=o.Cb(t[u],n,r,!0),s&&(e[u]=i.parse(e[u]))}return e?d(u,l,n,s,!1):d(l,u,s,n,!0),{valueWindow:u,percentWindow:l}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e,n,i,r,o,a=this.getTargetSeriesModels();this._dataExtent=(e=this,n=this._dimName,i=[1/0,-1/0],h(a,function(t){(0,s.PN)(i,t.getData(),n)}),r=e.getAxisModel(),[(o=(0,l.Tc)(r.axis.scale,r,i).calculate()).min,o.max]),this._updateMinMaxSpan();var u=this.calculateDataWindow(t.settledOption);this._valueWindow=u.valueWindow,this._percentWindow=u.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;"none"!==o&&h(r,function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===o){var s=e.getStore(),l=i.map(r,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,n,i,o=0;o<r.length;o++){var u=s.get(l[o],t),h=!isNaN(u),c=u<a[0],p=u>a[1];if(h&&!c&&!p)return!0;h&&(i=!0),c&&(e=!0),p&&(n=!0)}return i&&e&&n})}else h(r,function(n){if("empty"===o)t.setData(e=e.map(n,function(t){var e;return(e=t)>=a[0]&&e<=a[1]?t:NaN}));else{var i={};i[n]=a,e.selectRange(i)}});h(r,function(t){e.setApproximateExtent(a,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;h(["min","max"],function(i){var r=e.get(i+"Span"),a=e.get(i+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?r=o.Cb(n[0]+a,n,[0,100],!0):null!=r&&(a=o.Cb(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=a},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=o.hb(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();let d={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,o){var a=t.getComponent((0,r.dX)(i),o);e(i,o,a,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new p(e,i,o,t),n.push(r.__dzAxisProxy))});var o=(0,i.createHashMap)();return(0,i.each)(n,function(t){(0,i.each)(t.getTargetSeriesModels(),function(t){o.set(t.uid,t)})}),o},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};var f=!1;function g(t){f||(f=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,d),t.registerAction("dataZoom",function(t,e){var n=(0,r.CN)(e,t);(0,i.each)(n,function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}},49747:function(t,e,n){n.d(e,{a:()=>S});var i=n(31831),r=n(44878),o=n(3818),a=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="dataZoom.inside",e.defaultOption=(0,o.G_)(r.A.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(r.A),s=n(59730),l=n(91365),u=n(96120),h=n(89425),c=n(84124),p=n(4884),d=n(27016),f=(0,c.$r)();function g(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function y(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function v(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,i.C6)(e,t),e.prototype.render=function(e,n,i){var r;(t.prototype.render.apply(this,arguments),e.noTarget())?this._clear():(this.range=e.getPercentRange(),r={pan:(0,p.bind)(_.pan,this),zoom:(0,p.bind)(_.zoom,this),scrollMove:(0,p.bind)(_.scrollMove,this)},f(i).coordSysRecordMap.each(function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=r)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=f(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||g(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(s.A),_={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=b[e](null,[i.originX,i.originY],a,n,t),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],h=Math.max(1/i.scale,0);o[0]=(o[0]-u)*h+u,o[1]=(o[1]-u)*h+u;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if((0,l.A)(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:x(function(t,e,n,i,r,o){var a=b[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:x(function(t,e,n,i,r,o){return b[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function x(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var u=t(a,s,e,n,i,r);if((0,l.A)(u,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var b={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},w=n(97019);function S(t){(0,w.A)(t),t.registerComponentModel(a),t.registerComponentView(m),t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=f(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,p.createHashMap)());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){var n=(0,d.es)(t);(0,p.each)(n.infoList,function(n){var r,o,a,s=n.model.uid,l=i.get(s)||i.set(s,(a=(o={model:r=n.model,containsPoint:(0,p.curry)(v,r),dispatchAction:(0,p.curry)(y,e),dataZoomInfoMap:null,controller:null}).controller=new u.A(e.getZr()),(0,p.each)(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var n=[];o.dataZoomInfoMap.each(function(i){if(e.isAvailableBehavior(i.model.option)){var r=(i.getRange||{})[t],a=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}}),n.length&&o.dispatchAction(n)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=(0,p.createHashMap)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n,r,o,a,s=t.controller,l=t.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(a=l.get(u))}if(!a)return void g(i,t);var c=(n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,l.each(function(t){var i=t.model,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),o=o&&i.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}});s.enable(c.controlType,c.opt),s.setPointerChecker(t.containsPoint),h.N(t,"dispatchAction",a.model.get("throttle",!0),"fixRate")})})}},5920:function(t,e,n){n.d(e,{a:()=>P});var i=n(31831),r=n(44878),o=n(3818),a=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="dataZoom.slider",e.layoutMode="box",e.defaultOption=(0,o.G_)(r.A.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(r.A),s=n(4884),l=n(77250),u=n(63811),h=n(79620),c=n(97451),p=n(88297),d=n(52384),f=n(59033),g=n(45400),y=n(89425),v=n(59730),m=n(21916),_=n(10675),x=n(91365),b=n(27016),w=n(72059),S=n(60253),A=n(73394),M=u.A,C="horizontal",I="vertical",T=["line","bar","candlestick","scatter"],D={easing:"cubicOut",duration:100,delay:0},k=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,i.C6)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,s.bind)(this._onBrush,this),this._onBrushEnd=(0,s.bind)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),y.N(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){y.IU(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new h.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===C?{right:r.width-i.x-i.width,top:r.height-30-7-7*!!n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=_.vs(t.option);(0,s.each)(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var l=_.dV(a,r);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===I&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==C||r?n===C&&r?{scaleY:a?1:-1,scaleX:-1}:n!==I||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new M({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new M({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,s.bind)(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u,d=r.getDataExtent(a),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var g=[0,e[1]],y=[0,e[0]],v=[[e[0],0],[0,0]],_=[],x=y[1]/(r.count()-1),b=0,w=Math.round(r.count()/e[0]);r.each([a],function(t,e){if(w>0&&e%w){b+=x;return}var n=null==t||isNaN(t)||""===t,i=n?0:(0,m.Cb)(t,d,g,!0);n&&!u&&e?(v.push([v[v.length-1][0],0]),_.push([_[_.length-1][0],0])):!n&&u&&(v.push([b,0]),_.push([b,0])),v.push([b,i]),_.push([b,i]),b+=x,u=n}),s=this._shadowPolygonPts=v,l=this._shadowPolylinePts=_}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var S=this.dataZoomModel,A=0;A<3;A++){var M=function(t){var e=S.getModel(t?"selectedDataBackground":"dataBackground"),n=new h.A,i=new c.A({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new p.A({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}(1===A);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,n=e.get("showDataShadow");if(!1!==n){var i=this.ecModel;return e.eachTargetAxis(function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();(0,s.each)(a,function(e){if(!t&&!(!0!==n&&0>(0,s.indexOf)(T,e.get("type")))){var a,l=i.getComponent((0,b.dX)(r),o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[r],h=e.coordinateSystem;null!=u&&h.getOtherAxis&&(a=h.getOtherAxis(l).inverse),u=e.getData().mapDimension(u),t={thisAxis:l,series:e,thisDim:r,otherDim:u,otherAxisInverse:a}}},this)},this),t}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,l=this.api,h=a.get("borderRadius")||0,c=a.get("brushSelect"),p=e.filler=new M({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(p),r.add(new M({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:h},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,s.each)([0,1],function(e){var o=a.get("handleIcon");!S.$V[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var l=(0,S.v5)(o,-1,0,2,2,null,!0);l.attr({cursor:O(this._orient),draggable:!0,drift:(0,s.bind)(this._onDragMove,this,e),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1),z2:5});var u=l.getBoundingRect(),h=a.get("handleSize");this._handleHeight=(0,m.lo)(h,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,w.iJ)(l);var c=a.get("handleColor");null!=c&&(l.style.fill=c),r.add(n[e]=l);var p=a.getModel("textStyle");t.add(i[e]=new d.Ay({silent:!0,invisible:!0,style:(0,A.VB)(p,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:p.getTextColor(),font:p.getFont()}),z2:10}))},this);var f=p;if(c){var g=(0,m.lo)(a.get("moveHandleSize"),o[1]),y=e.moveHandle=new u.A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:g}}),v=.8*g,_=e.moveHandleIcon=(0,S.v5)(a.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);_.silent=!0,_.y=o[1]+g/2-.5,y.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var x=Math.min(o[1]/2,Math.max(g,10));(f=e.moveZone=new u.A({invisible:!0,shape:{y:o[1]-x,height:g+x}})).on("mouseover",function(){l.enterEmphasis(y)}).on("mouseout",function(){l.leaveEmphasis(y)}),r.add(y),r.add(_),r.add(f)}f.attr({draggable:!0,cursor:O(this._orient),drift:(0,s.bind)(this._onDragMove,this,"all"),ondragstart:(0,s.bind)(this._showDataInfo,this,!0),ondragend:(0,s.bind)(this._onDragEnd,this),onmouseover:(0,s.bind)(this._showDataInfo,this,!0),onmouseout:(0,s.bind)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[(0,m.Cb)(t[0],[0,100],e,!0),(0,m.Cb)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];(0,x.A)(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?(0,m.Cb)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,m.Cb)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,m.Y6)([(0,m.Cb)(i[0],r,a,!0),(0,m.Cb)(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=(0,m.Y6)(n.slice()),r=this._size;(0,s.each)([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,l=[0,i[0],i[1],r[0]],h=0;h<a.length;h++){var c=a[h],p=c.getClipPath();p||(p=new u.A,c.setClipPath(p)),p.setShape({x:l[h],y:0,width:l[h+1]-l[h],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var h=(0,m.Y6)(this._handleEnds.slice());function c(t){var e=f.getTransform(n.handles[t].parent,this.group),a=f.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=f.applyTransform([h[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===C?"middle":a,align:r===C?a:"center",text:o[t]})}c.call(this,0),c.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");(null==r||"auto"===r)&&(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return(0,s.isFunction)(i)?i(t,o):(0,s.isString)(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,l.ds(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=f.applyTransform([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0)&&!(n[0]>e[0])&&!(n[1]<0)&&!(n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new g.A(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(n.width))){var i=this._getViewExtent(),r=[0,100];this._range=(0,m.Y6)([(0,m.Cb)(n.x,i,r,!0),(0,m.Cb)(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(l.ds(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new M({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?D:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=(0,b.es)(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(v.A);function O(t){return"vertical"===t?"ns-resize":"ew-resize"}var L=n(97019);function P(t){t.registerComponentModel(a),t.registerComponentView(k),(0,L.A)(t)}},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:()=>Y});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),d=n(10675),f=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 b=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),w=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),C=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,f.af)(u,s),(0,A.rf)(u)&&(e=a))}r.length&&(e||(e=r.pop(),(0,f.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){T(n,"y",t,r)}),(0,l.each)(n.y,function(t){T(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,d.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,f.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(I(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 w(e,(0,f.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 b(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,f.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(I(r,e)&&I(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 I(t,e){return t.getCoordSysModel()===e}function T(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)D(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&D(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(t){return t.dim+"_"+t.index}}function D(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,f.JJ)(t)}var k=n(79620),O=n(59033),L=n(28887),P=n(79132),R=n(8642),N=n(28767),z=["axisLine","axisTickLabel","axisName"],E=["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 k.A,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=S.Zp(a,e),u=new P.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(z,u.add,u),this._axisGroup.add(u.getGroup()),l.each(E,function(t){e.get([t,"show"])&&V[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),V={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}),d=[],f=[],g=a.getLineStyle(),y=0;y<p.length;y++){var v=r.toGlobalCoord(p[y].coord);h?(d[0]=v,d[1]=u.y,f[0]=v,f[1]=u.y+u.height):(d[0]=u.x,d[1]=v,f[0]=u.x+u.width,f[1]=v);var m=c++%s.length,_=p[y].tickValue,x=new L.A({anid:null!=_?"line_"+p[y].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[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 d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,h[0]=f,h[1]=a.y+a.height):(u[0]=a.x,u[1]=f,h[0]=a.x+a.width,h[1]=f);var g=new L.A({anid:"minor_line_"+l[p][d].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)}},F=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),H=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=F.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 Y(t){t.registerComponentView(W),t.registerComponentModel(a),t.registerCoordinateSystem("cartesian2d",C),(0,p.A)(t,"x",c,G),(0,p.A)(t,"y",c,G),t.registerComponentView(F),t.registerComponentView(H),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}},88593:function(t,e,n){n.d(e,{A:()=>Q});var i=n(31831),r=n(4884),o=n(16419),a=n(79620),s=n(63811),l=n(59033),u=n(88297),h=n(97451),c=n(67614),p=n(31393),d=Math.min,f=Math.max,g=Math.pow,y="globalPan",v={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},_={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},x=0,b=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new a.A,n._uid="brushController_"+x++,(0,r.each)(q,function(t,e){this._handlers[e]=(0,r.bind)(t,this)},n),n}return(0,i.C6)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||c.s(e,y,this._uid),(0,r.each)(this._handlers,function(t,n){e.on(n,t)}),this._brushType=t.brushType,this._brushOption=(0,r.merge)((0,r.clone)(_),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;c._r(t,y,this._uid),(0,r.each)(this._handlers,function(e,n){t.off(n,e)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};(0,r.each)(t,function(t){e[t.panelId]=(0,r.clone)(t)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=(0,r.map)(t,function(t){return(0,r.merge)((0,r.clone)(_),t,!0)});var e=this._covers,n=this._covers=[],i=this,o=this._creatingCover;return new p.A(e,t,function(t,e){return a(t.__brushOption,e)},a).add(s).update(s).remove(function(t){e[t]!==o&&i.group.remove(e[t])}).execute(),this;function a(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function s(r,a){var s=t[r];if(null!=a&&e[a]===o)n[r]=e[a];else{var l=n[r]=null!=a?(e[a].__brushOption=s,e[a]):S(i,w(i,s));C(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),k(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(o.A);function w(t,e){var n=K[e.brushType].createCover(t,e);return n.__brushOption=e,M(n,e),t.group.add(n),n}function S(t,e){var n=I(e);return n.endCreating&&(n.endCreating(t,e),M(e,e.__brushOption)),e}function A(t,e){var n=e.__brushOption;I(e).updateCoverShape(t,e,n.range,n)}function M(t,e){var n=e.z;null==n&&(n=1e4),t.traverse(function(t){t.z=n,t.z2=n})}function C(t,e){I(e).updateCommon(t,e),A(t,e)}function I(t){return K[t.__brushOption.brushType]}function T(t,e,n){var i,o=t._panels;if(!o)return!0;var a=t._transform;return(0,r.each)(o,function(t){t.isTargetByCursor(e,n,a)&&(i=t)}),i}function D(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function k(t){var e=t._covers,n=e.length;return(0,r.each)(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function O(t,e){var n=(0,r.map)(t._covers,function(t){var e=t.__brushOption,n=(0,r.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function L(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function P(t,e,n,i){var o=new a.A;return o.add(new s.A({name:"main",style:E(n),silent:!0,draggable:!0,cursor:"move",drift:(0,r.curry)(F,t,e,o,["n","s","w","e"]),ondragend:(0,r.curry)(O,e,{isEnd:!0})})),(0,r.each)(i,function(n){o.add(new s.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,r.curry)(F,t,e,o,n),ondragend:(0,r.curry)(O,e,{isEnd:!0})}))}),o}function R(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=f(r,6),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,h=n[0][1],c=n[1][1],p=h-o+r/2,d=c-o+r/2,g=h-a,y=c-s,v=g+r,m=y+r;z(t,e,"main",a,s,g,y),i.transformable&&(z(t,e,"w",l,u,o,m),z(t,e,"e",p,u,o,m),z(t,e,"n",l,u,v,o),z(t,e,"s",l,d,v,o),z(t,e,"nw",l,u,o,o),z(t,e,"ne",p,u,o,o),z(t,e,"sw",l,d,o,o),z(t,e,"se",p,d,o,o))}function N(t,e){var n=e.__brushOption,i=n.transformable,o=e.childAt(0);o.useStyle(E(n)),o.attr({silent:!i,cursor:i?"move":"default"}),(0,r.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var r,o,a,s=e.childOfName(n.join("")),l=1===n.length?V(t,n[0]):(("e"===(a=[V(r=t,(o=n)[0]),V(r,o[1])])[0]||"w"===a[0])&&a.reverse(),a.join(""));s&&s.attr({silent:!i,invisible:!i,cursor:i?m[l]+"-resize":null})})}function z(t,e,n,i,r,o,a){var s,l,u,h=e.childOfName(n);h&&h.setShape((l=d((s=G(t,e,[[i,r],[i+o,r+a]]))[0][0],s[1][0]),{x:l,y:u=d(s[0][1],s[1][1]),width:f(s[0][0],s[1][0])-l,height:f(s[0][1],s[1][1])-u}))}function E(t){return(0,r.defaults)({strokeNoScale:!0},t.brushStyle)}function B(t,e,n,i){var r=[d(t,n),d(e,i)],o=[f(t,n),f(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function V(t,e){return({left:"w",right:"e",top:"n",bottom:"s"})[l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],l.getTransform(t.group))]}function F(t,e,n,i,o,a){var s=n.__brushOption,l=t.toRectRange(s.range),u=W(e,o,a);(0,r.each)(i,function(t){var e=v[t];l[e[0]][e[1]]+=u[e[0]]}),s.range=t.fromRectRange(B(l[0][0],l[1][0],l[0][1],l[1][1])),C(e,n),O(e,{isEnd:!1})}function H(t,e,n,i){var o=e.__brushOption.range,a=W(t,n,i);(0,r.each)(o,function(t){t[0]+=a[0],t[1]+=a[1]}),C(t,e),O(t,{isEnd:!1})}function W(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function G(t,e,n){var i=D(t,e);return i&&!0!==i?i.clipPath(n,t._transform):(0,r.clone)(n)}function Y(t){var e=t.event;e.preventDefault&&e.preventDefault()}function X(t,e,n){return t.childOfName("main").contain(e,n)}function U(t,e,n,i){var o,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return g(r*r+o*o,.5)>6}(t)||a){if(s&&!a){"single"===l.brushMode&&k(t);var u=(0,r.clone)(l);u.brushType=Z(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=t._creatingCover=w(t,u),t._covers.push(a)}if(a){var h=K[Z(t._brushType,s)];a.__brushOption.range=h.getCreatingRange(G(t,a,t._track)),i&&(S(t,a),h.updateCommon(t,a)),A(t,a),o={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&T(t,e,n)&&k(t)&&(o={isEnd:i,removeOnClick:!0});return o}function Z(t,e){return"auto"===t?e.defaultBrushType:t}var q={mousedown:function(t){if(this._dragging)j(this,t);else if(!t.target||!t.target.draggable){Y(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(!function(t,e,n){if(!(!t._brushType||(i=t,r=e.offsetX,o=e.offsetY,a=i._zr,r<0||r>a.getWidth()||o<0||o>a.getHeight()))){var i,r,o,a,s=t._zr,l=t._covers,u=T(t,e,n);if(!t._dragging)for(var h=0;h<l.length;h++){var c=l[h].__brushOption;if(u&&(!0===u||c.panelId===u.panelId)&&K[c.brushType].contain(l[h],n[0],n[1]))return}u&&s.setCursorStyle("crosshair")}}(this,t,i),this._dragging){Y(t);var r=U(this,t,i,!1);r&&O(this,r)}},mouseup:function(t){j(this,t)}};function j(t,e){if(t._dragging){Y(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=U(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&O(t,o)}}var K={lineX:$(0),lineY:$(1),rect:{createCover:function(t,e){function n(t){return t}return P({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=L(t);return B(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){R(t,e,n,i)},updateCommon:N,contain:X},polygon:{createCover:function(t,e){var n=new a.A;return n.add(new u.A({name:"main",style:E(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new h.A({name:"main",draggable:!0,drift:(0,r.curry)(H,t,e),ondragend:(0,r.curry)(O,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:G(t,e,n)})},updateCommon:N,contain:X}};function $(t){return{createCover:function(e,n){return P({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=L(e);return[d(n[0][t],n[1][t]),f(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=D(e,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),R(e,n,l,r)},updateCommon:N,contain:X}}let Q=b},63785:function(t,e,n){n.d(e,{A:()=>_});var i=n(4884),r=n(59033),o=n(28709),a=n(84124),s=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],l=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var o=h(e,t);(0,i.each)(c,function(t,e){(!n||!n.include||(0,i.indexOf)(n.include,e)>=0)&&t(o,r._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=f[t.brushType](0,n,e);t.__rangeOffset={offset:y[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){(0,i.each)(t,function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&(0,i.each)(r.coordSyses,function(i){var r=f[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){(0,i.each)(t,function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i,r,o,a,s,l=f[t.brushType](0,n.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?y[t.brushType](l.values,u.offset,(i=l.xyMinMax,r=u.xyMinMax,o=m(i),a=m(r),isNaN((s=[o[0]/a[0],o[1]/a[1]])[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):l.values}},this)},t.prototype.makePanelOpts=function(t,e){return(0,i.map)(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:o.wd(i),isTargetByCursor:o.x$(i,t,n.coordSysModel),getLinearBrushOtherExtent:o.wx(i)}})},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&(0,i.indexOf)(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=h(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<p.length;s++)if(p[s](i,o))return o}return!0},t}();function u(t){return t[0]>t[1]&&t.reverse(),t}function h(t,e){return(0,a._e)(t,e,{includeMainTypes:s})}var c={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,o=t.gridModels,a=(0,i.createHashMap)(),s={},l={};(n||r||o)&&((0,i.each)(n,function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0}),(0,i.each)(r,function(t){var e=t.axis.grid.model;a.set(e.id,e),l[e.id]=!0}),(0,i.each)(o,function(t){a.set(t.id,t),s[t.id]=!0,l[t.id]=!0}),a.each(function(t){var o=t.coordinateSystem,a=[];(0,i.each)(o.getCartesians(),function(t,e){((0,i.indexOf)(n,t.getAxis("x").model)>=0||(0,i.indexOf)(r,t.getAxis("y").model)>=0)&&a.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:d.grid,xAxisDeclared:s[t.id],yAxisDeclared:l[t.id]})}))},geo:function(t,e){(0,i.each)(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:d.geo})})}},p=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],d={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(r.getTransform(t)),e}},f={lineX:(0,i.curry)(g,0),lineY:(0,i.curry)(g,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[u([r[0],o[0]]),u([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,i.map)(n,function(n){var i=t?e.pointToData(n,r):e.dataToPoint(n,r);return o[0][0]=Math.min(o[0][0],i[0]),o[1][0]=Math.min(o[1][0],i[1]),o[0][1]=Math.max(o[0][1],i[0]),o[1][1]=Math.max(o[1][1],i[1]),i}),xyMinMax:o}}};function g(t,e,n,r){var o=n.getAxis(["x","y"][t]),a=u((0,i.map)([0,1],function(t){return e?o.coordToData(o.toLocalCoord(r[t]),!0):o.toGlobalCoord(o.dataToCoord(r[t]))})),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}var y={lineX:(0,i.curry)(v,0),lineY:(0,i.curry)(v,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return(0,i.map)(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function v(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function m(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}let _=l},96120:function(t,e,n){n.d(e,{A:()=>c});var i=n(31831),r=n(16419),o=n(77250),a=n(67614),s=n(4884);function l(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(o.ds(i.event),u(t,e,n,i,r))}function u(t,e,n,i,r){r.isAvailableBehavior=(0,s.bind)(h,null,n,i),t.trigger(e,r)}function h(t,e,n){var i=n[t];return!t||i&&(!(0,s.isString)(i)||e.event[i+"Key"])}let c=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=(0,s.bind)(n._mousedownHandler,n),r=(0,s.bind)(n._mousemoveHandler,n),o=(0,s.bind)(n._mouseupHandler,n),a=(0,s.bind)(n._mousewheelHandler,n),l=(0,s.bind)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,s.defaults)((0,s.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),(!0===t||"move"===t||"pan"===t)&&(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),(!0===t||"scale"===t||"zoom"===t)&&(e.on("mousewheel",a),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",l)},n}return(0,i.C6)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!o.W5(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!h("moveOnMouseMove",t,this._opt)||"pinch"===t.gestureEvent||a.Ck(this._zr,"globalPan"))){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&o.ds(t.event),u(this,"pan","moveOnMouseMove",t,{dx:e-i,dy:n-r,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){o.W5(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=h("zoomOnMouseWheel",t,this._opt),n=h("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;l(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i);l(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!a.Ck(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;l(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(r.A)},28709:function(t,e,n){n.d(e,{wd:()=>a,wx:()=>s,x$:()=>l});var i=n(51690),r=n(10099),o=n(59033);function a(t){return t=u(t),function(e){return o.clipPointsByRect(e,t)}}function s(t,e){return t=u(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function l(t,e,n){var i=u(t);return function(t,o){return i.contain(o[0],o[1])&&!(0,r.I)(t,e,n)}}function u(t){return i.A.create(t)}},10099:function(t,e,n){n.d(e,{I:()=>r});var i={axisPointer:1,tooltip:1,brush:1};function r(t,e,n){var r=e.getComponentByElement(t.topTarget),o=r&&r.coordinateSystem;return r&&r!==n&&!i.hasOwnProperty(r.mainType)&&o&&o.model!==n}},67614:function(t,e,n){n.d(e,{Ck:()=>l,_r:()=>s,s:()=>a});var i=n(31950),r=n(4884),o="\0_ec_interaction_mutex";function a(t,e,n){u(t)[e]=n}function s(t,e,n){var i=u(t);i[e]===n&&(i[e]=null)}function l(t,e){return!!u(t)[e]}function u(t){return t[o]||(t[o]={})}i.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},r.noop)},7474:function(t,e,n){n.d(e,{P:()=>s,Z:()=>a});var i=n(10675),r=n(3306),o=n(63811);function a(t,e,n){var r=e.getBoxLayoutParams(),o=e.get("padding"),a={width:n.getWidth(),height:n.getHeight()},s=(0,i.dV)(r,a,o);(0,i.aP)(e.get("orient"),t,e.get("itemGap"),s.width,s.height),(0,i.m$)(t,r,a,o)}function s(t,e){var n=r.QX(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new o.A({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}},91365:function(t,e,n){function i(t,e,n,i,a,s){t=t||0;var l,u=n[1]-n[0];if(null!=a&&(a=o(a,[0,u])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===i){var h=Math.abs(e[1]-e[0]);h=o(h,[0,u]),a=s=o(h,[a,s]),i=0}e[0]=o(e[0],n),e[1]=o(e[1],n);var c=r(e,i);e[i]+=t;var p=a||0,d=n.slice();return c.sign<0?d[0]+=p:d[1]-=p,e[i]=o(e[i],d),l=r(e,i),null!=a&&(l.sign!==c.sign||l.span<a)&&(e[1-i]=e[i]+c.sign*a),l=r(e,i),null!=s&&l.span>s&&(e[1-i]=e[i]+l.sign*s),e}function r(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function o(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}n.d(e,{A:()=>i})},50944:function(t,e,n){n.d(e,{a:()=>W});var i=n(74653),r=n(31831),o=n(4884),a=n(25744),s=n(84124),l=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,r.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),o.isArray(e)&&o.each(e,function(t,i){var r;o.isString(t)&&(t={type:t}),e[i]=o.merge(t,"all"===(r=t.type)?{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])}:"inverse"===r?{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}:void 0)})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries(function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&(0,s.O0)(i)&&e.push(i.name)}),this._availableNames=n;var i=this.get("data")||e,r=o.createHashMap(),l=o.map(i,function(t){return((o.isString(t)||o.isNumber(t))&&(t={name:t}),r.get(t.name))?null:(r.set(t.name,!0),new a.A(t,this,this.ecModel))},this);this._data=o.filter(l,function(t){return!!t})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;o.each(n,function(t){e[t.get("name")]=!1})}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;o.each(t,function(t){e[t.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;o.each(t,function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]})},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&o.indexOf(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(n(36805).A),u=n(34196),h=n(79620),c=n(52384),p=n(63811),d=n(59033),f=n(72059),g=n(73394),y=n(7474),v=n(10675),m=n(43583),_=n(60253),x=n(34780),b=n(35032),w=o.curry,S=o.each,A=h.A,M=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,r.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new A),this.group.add(this._selectorGroup=new A),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),a=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),l=t.get("selectorPosition",!0);s&&(!l||"auto"===l)&&(l="horizontal"===a?"end":"start"),this.renderInner(r,t,e,n,s,a,l);var u=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),p=v.dV(u,h,c),d=this.layoutInner(t,r,p,i,s,l),f=v.dV(o.defaults({width:d.width,height:d.height},u),h,c);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(0,y.P)(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,a,s){var l=this.getContentGroup(),h=o.createHashMap(),c=e.get("selectedMode"),p=[];n.eachRawSeries(function(t){t.get("legendHoverLink")||p.push(t.id)}),S(e.getData(),function(r,a){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var d=new A;d.newline=!0,l.add(d);return}var f=n.getSeriesByName(s)[0];if(!h.get(s))if(f){var g=f.getData(),y=g.getVisual("legendLineStyle")||{},v=g.getVisual("legendIcon"),m=g.getVisual("style"),_=this._createItem(f,s,a,r,e,t,y,m,v,c,i);_.on("click",w(C,s,null,i,p)).on("mouseover",w(T,f.name,null,i,p)).on("mouseout",w(D,f.name,null,i,p)),n.ssr&&_.eachChild(function(t){var e=(0,b.z)(t);e.seriesIndex=f.seriesIndex,e.dataIndex=a,e.ssrType="legend"}),h.set(s,!0)}else n.eachRawSeries(function(l){if(!h.get(s)&&l.legendVisualProvider){var d=l.legendVisualProvider;if(d.containName(s)){var f=d.indexOfName(s),g=d.getItemVisual(f,"style"),y=d.getItemVisual(f,"legendIcon"),v=(0,u.parse)(g.fill);v&&0===v[3]&&(v[3]=.2,g=o.extend(o.extend({},g),{fill:(0,u.stringify)(v,"rgba")}));var m=this._createItem(l,s,a,r,e,t,{},g,y,c,i);m.on("click",w(C,null,s,i,p)).on("mouseover",w(T,null,s,i,p)).on("mouseout",w(D,null,s,i,p)),n.ssr&&m.eachChild(function(t){var e=(0,b.z)(t);e.seriesIndex=l.seriesIndex,e.dataIndex=a,e.ssrType="legend"}),h.set(s,!0)}}},this)},this),r&&this._createSelector(r,e,i,a,s)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();S(t,function(t){var i=t.type,r=new c.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);(0,g.qM)(r,{normal:a,emphasis:s},{defaultText:t.title}),(0,f.iJ)(r)})},e.prototype._createItem=function(t,e,n,i,r,a,s,l,u,h,y){var v=t.visualDrawType,m=r.get("itemWidth"),b=r.get("itemHeight"),w=r.isSelected(e),M=i.get("symbolRotate"),C=i.get("symbolKeepAspect"),I=i.get("icon"),T=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=2*(e.lineWidth>0)),S(t,function(n,i){"inherit"===t[i]&&(t[i]=e[i])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?(0,x.w)(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===d.stroke&&(d.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}(u=I||u||"roundRect",i,s,l,v,w,y),D=new A,k=i.getModel("textStyle");if(o.isFunction(t.getLegendIcon)&&(!I||"inherit"===I))D.add(t.getLegendIcon({itemWidth:m,itemHeight:b,icon:u,iconRotate:M,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:C}));else{var O,L,P,R="inherit"===I&&t.getData().getVisual("symbol")?"inherit"===M?t.getData().getVisual("symbolRotate"):M:0;D.add((L=(O={itemWidth:m,itemHeight:b,icon:u,iconRotate:R,itemStyle:T.itemStyle,lineStyle:T.lineStyle,symbolKeepAspect:C}).icon||"roundRect",(P=(0,_.v5)(L,0,0,O.itemWidth,O.itemHeight,O.itemStyle.fill,O.symbolKeepAspect)).setStyle(O.itemStyle),P.rotation=(O.iconRotate||0)*Math.PI/180,P.setOrigin([O.itemWidth/2,O.itemHeight/2]),L.indexOf("empty")>-1&&(P.style.stroke=P.style.fill,P.style.fill="#fff",P.style.lineWidth=2),P))}var N=r.get("formatter"),z=e;o.isString(N)&&N?z=N.replace("{name}",null!=e?e:""):o.isFunction(N)&&(z=N(e));var E=w?k.getTextColor():i.get("inactiveColor");D.add(new c.Ay({style:(0,g.VB)(k,{text:z,x:"left"===a?m+5:-5,y:b/2,fill:E,align:a,verticalAlign:"middle"},{inheritColor:E})}));var B=new p.A({shape:D.getBoundingRect(),style:{fill:"transparent"}}),V=i.getModel("tooltip");return V.get("show")&&d.setTooltipConfig({el:B,componentModel:r,itemName:e,itemTooltipOption:V.option}),D.add(B),D.eachChild(function(t){t.silent=!0}),B.silent=!h,this.getContentGroup().add(D),(0,f.iJ)(D),D.__legendDataIndex=n,D},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();v.aP(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),!r)return a.x=u[0],a.y=u[1],this.group.getBoundingRect();v.aP("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",y=0===d?"y":"x";"end"===o?c[d]+=l[f]+p:u[d]+=h[f]+p,c[1-d]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var m={x:0,y:0};return m[f]=l[f]+p+h[f],m[g]=Math.max(l[g],h[g]),m[y]=Math.min(0,h[y]+c[1-d]),m},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(m.A);function C(t,e,n,i){D(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),T(t,e,n,i)}function I(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function T(t,e,n,i){I(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function D(t,e,n,i){I(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function k(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function O(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();(0,o.each)(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}})}),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function L(t){t.registerComponentModel(l),t.registerComponentView(M),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,k),t.registerSubTypeDefaulter("legend",function(){return"plain"}),t.registerAction("legendToggleSelect","legendselectchanged",(0,o.curry)(O,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,o.curry)(O,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,o.curry)(O,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,o.curry)(O,"select")),t.registerAction("legendUnSelect","legendunselected",(0,o.curry)(O,"unSelect"))}var P=n(3818),R=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.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=(0,v.vs)(e);t.prototype.init.call(this,e,n,i),N(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),N(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,P.G_)(l.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(l);function N(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,(0,v.YA)(e,n,{type:"box",ignoreSize:!!r})}var z=n(68532),E=h.A,B=["width","height"],V=["x","y"],F=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,r.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new E),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new E)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,a,s,l){var u=this;t.prototype.renderInner.call(this,e,n,i,r,a,s,l);var h=this._controllerGroup,p=n.get("pageIconSize",!0),f=o.isArray(p)?p:[p,p];y("pagePrev",0);var g=n.getModel("pageTextStyle");function y(t,e){var i=d.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:o.bind(u._pageGo,u,t+"DataIndex",n,r)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});i.name=t,h.add(i)}h.add(new c.Ay({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),y("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,a){var s=this.getSelectorGroup(),l=t.getOrient().index,u=B[l],h=V[l],c=B[1-l],p=V[1-l];r&&v.aP("horizontal",s,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),f=s.getBoundingRect(),g=[-f.x,-f.y],y=o.clone(n);r&&(y[u]=n[u]-f[u]-d);var m=this._layoutContentAndController(t,i,y,l,u,c,p,h);if(r){if("end"===a)g[l]+=m[u]+d;else{var _=f[u]+d;g[l]-=_,m[h]-=_}m[u]+=f[u]+d,g[1-l]+=m[p]+m[c]/2-f[c]/2,m[c]=Math.max(m[c],f[c]),m[p]=Math.min(m[p],f[p]+g[1-l]),s.x=g[0],s.y=g[1],s.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,i,r,a,s,l){var u=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;v.aP(t.get("orient"),u,t.get("itemGap"),i?n.width:null,i?null:n.height),v.aP("horizontal",c,t.get("pageButtonItemGap",!0));var d=u.getBoundingRect(),f=c.getBoundingRect(),g=this._showController=d[r]>n[r],y=[-d.x,-d.y];e||(y[i]=u[l]);var m=[0,0],_=[-f.x,-f.y],x=o.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));g&&("end"===t.get("pageButtonPosition",!0)?_[i]+=n[r]-f[r]:m[i]+=f[r]+x),_[1-i]+=d[a]/2-f[a]/2,u.setPosition(y),h.setPosition(m),c.setPosition(_);var b={x:0,y:0};if(b[r]=g?n[r]:d[r],b[a]=Math.max(d[a],f[a]),b[s]=Math.min(0,f[s]+_[1-i]),h.__rectSize=n[r],g){var w={x:0,y:0};w[r]=Math.max(n[r]-f[r]-x,0),w[a]=b[a],h.setClipPath(new p.A({shape:w})),h.__rectSize=w[r]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return null!=S.pageIndex&&z.oi(u,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),b},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;o.each(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),a=e.pageIndex,s=null!=a?a+1:0,l=e.pageCount;i&&r&&i.setStyle("text",o.isString(r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==l?"":l+""):r({current:s,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=B[r],a=V[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=+!!h,p={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var d=m(u);p.contentPosition[r]=-d.s;for(var f=s+1,g=d,y=d,v=null;f<=h;++f)(!(v=m(l[f]))&&y.e>g.s+i||v&&!_(v,g.s))&&(g=y.i>g.i?y:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),y=v;for(var f=s-1,g=d,y=d,v=null;f>=-1;--f)(!(v=m(l[f]))||!_(y,v.s))&&g.i<y.i&&(y=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=v;return p;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){var e,n;return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0},e.type="legend.scroll",e}(M);function H(t){(0,i.Y)(L),t.registerComponentModel(R),t.registerComponentView(F),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}function W(t){(0,i.Y)(L),(0,i.Y)(H)}},8412:function(t,e,n){n.d(e,{A:()=>d});var i=n(31831),r=n(4884),o=n(35209),a=n(42345),s=n(36805),l=n(84124),u=n(56803);function h(t){(0,l.M5)(t,"label",["show"])}var c=(0,l.$r)(),p=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(o.A.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var o=this.mainType;n||e.eachSeries(function(t){var n=t.get(this.mainType,!0),a=c(t)[o];if(!n||!n.data){c(t)[o]=null;return}a?a._mergeOption(n,e,!0):(i&&h(n),r.each(n.data,function(t){t instanceof Array?(h(t[0]),h(t[1])):h(t)}),a=this.createMarkerModelFromSeries(n,this,e),r.extend(a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),c(t)[o]=a},this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return(0,u.Qx)("section",{header:this.name,blocks:[(0,u.Qx)("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return c(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(s.A);r.mixin(p,a.J.prototype);let d=p},49112:function(t,e,n){n.d(e,{A:()=>h});var i=n(31831),r=n(43583),o=n(4884),a=n(8412),s=n(84124),l=n(72059),u=(0,s.$r)();let 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.prototype.init=function(){this.markerGroupMap=(0,o.createHashMap)()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each(function(t){u(t).keep=!1}),e.eachSeries(function(t){var r=a.A.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)}),r.each(function(t){u(t).keep||i.group.remove(t.group)})},e.prototype.markKeep=function(t){u(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;(0,o.each)(t,function(t){var i=a.A.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl(function(t){t&&(e?(0,l.QX)(t):(0,l.JC)(t))})})},e.type="marker",e}(r.A)},3415:function(t,e,n){n.d(e,{A:()=>r});var i=n(4884);function r(t,e){if(!t)return!1;for(var n=(0,i.isArray)(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}},64404:function(t,e,n){n.d(e,{a:()=>O});var i=n(3415),r=n(31831),o=n(8412),a=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.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(o.A),s=n(34196),l=n(15764),u=n(21916),h=n(79620),c=n(97451),p=n(68532),d=n(72059),f=n(89945),g=n(49112),y=n(4884),v=n(43139),m=n(84124),_=n(80153),x=n(73394),b=n(35032),w=n(47163),S=(0,m.$r)(),A=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=f.xx(t,r),s=f.xx(t,o),l=a.coord,u=s.coord;l[0]=(0,y.retrieve)(l[0],-1/0),l[1]=(0,y.retrieve)(l[1],-1/0),u[0]=(0,y.retrieve)(u[0],1/0),u[1]=(0,y.retrieve)(u[1],1/0);var h=(0,y.mergeAll)([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function M(t){return!isNaN(t)&&!isFinite(t)}function C(t,e,n,i){var r=1-t;return M(e[r])&&M(n[r])}function I(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return(0,v.g)(t,"cartesian2d")?!!(n&&i&&(C(1,n,i,t)||C(0,n,i,t)))||f.PN(t,r,o):f.Lq(t,r)||f.Lq(t,o)}function T(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=u.lo(s.get(n[0]),r.getWidth()),h=u.lo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),p=t.getValues(["x1","y1"],e),d=a.clampData(c),f=a.clampData(p),g=[];"x0"===n[0]?g[0]=d[0]>f[0]?p[0]:c[0]:g[0]=d[0]>f[0]?c[0]:p[0],"y0"===n[1]?g[1]=d[1]>f[1]?p[1]:c[1]:g[1]=d[1]>f[1]?c[1]:p[1],o=i.getMarkerPosition(g,n,!0)}else{var y=t.get(n[0],e),m=t.get(n[1],e),_=[y,m];a.clampData&&a.clampData(_,_),o=a.dataToPoint(_,!0)}if((0,v.g)(a,"cartesian2d")){var x=a.getAxis("x"),b=a.getAxis("y"),y=t.get(n[0],e),m=t.get(n[1],e);M(y)?o[0]=x.toGlobalCoord(x.getExtent()[+("x0"!==n[0])]):M(m)&&(o[1]=b.toGlobalCoord(b.getExtent()[+("y0"!==n[1])]))}isNaN(l)||(o[0]=l),isNaN(h)||(o[1]=h)}else o=[l,h];return o}var D=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],k=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.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=o.A.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=(0,y.map)(D,function(r){return T(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),f=this.markerGroupMap,g=f.get(o)||f.set(o,{group:new h.A});this.group.add(g.group),this.markKeep(g);var v=function(t,e,n){if(t){var i,r,o=(0,y.map)(t&&t.dimensions,function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return(0,y.extend)((0,y.extend)({},i),{name:t,ordinalMeta:null})});r=(0,y.map)(["x0","y0","x1","y1"],function(t,e){return{name:t,type:o[e%2].type}}),i=new l.A(r,n)}else r=[{name:"value",type:"float"}],i=new l.A(r,n);var a=(0,y.map)(n.get("data"),(0,y.curry)(A,e,t,n));t&&(a=(0,y.filter)(a,(0,y.curry)(I,t)));var s=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return(0,w.Pn)(o,r[i])}:function(t,e,n,i){return(0,w.Pn)(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(v),v.each(function(e){var n=(0,y.map)(D,function(n){return T(v,e,n,t,i)}),o=r.getAxis("x").scale,l=r.getAxis("y").scale,h=o.getExtent(),c=l.getExtent(),p=[o.parse(v.get("x0",e)),o.parse(v.get("x1",e))],d=[l.parse(v.get("y0",e)),l.parse(v.get("y1",e))];u.Y6(p),u.Y6(d);var f=!(h[0]>p[1]||h[1]<p[0]||c[0]>d[1]||c[1]<d[0]);v.setItemLayout(e,{points:n,allClipped:!f});var g=v.getItemModel(e).getModel("itemStyle").getItemStyle(),m=(0,_.rI)(a,"color");!g.fill&&(g.fill=m,(0,y.isString)(g.fill)&&(g.fill=s.modifyAlpha(g.fill,.4))),g.stroke||(g.stroke=m),v.setItemVisual(e,"style",g)}),v.diff(S(g).data).add(function(t){var e=v.getItemLayout(t);if(!e.allClipped){var n=new c.A({shape:{points:e.points}});v.setItemGraphicEl(t,n),g.group.add(n)}}).update(function(t,n){var i=S(g).data.getItemGraphicEl(n),r=v.getItemLayout(t);r.allClipped?i&&g.group.remove(i):(i?p.oi(i,{shape:{points:r.points}},e,t):i=new c.A({shape:{points:r.points}}),v.setItemGraphicEl(t,i),g.group.add(i))}).remove(function(t){var e=S(g).data.getItemGraphicEl(t);g.group.remove(e)}).execute(),v.eachItemGraphicEl(function(t,n){var i=v.getItemModel(n),r=v.getItemVisual(n,"style");t.useStyle(v.getItemVisual(n,"style")),(0,x.qM)(t,(0,x.lx)(i),{labelFetcher:e,labelDataIndex:n,defaultText:v.getName(n)||"",inheritColor:(0,y.isString)(r.fill)?s.modifyAlpha(r.fill,1):"#000"}),(0,d.Mx)(t,i),(0,d.Lm)(t,null,null,i.get(["emphasis","disabled"])),(0,b.z)(t).dataModel=e}),S(g).data=v,g.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(g.A);function O(t){t.registerComponentModel(a),t.registerComponentView(k),t.registerPreprocessor(function(t){(0,i.A)(t.series,"markArea")&&(t.markArea=t.markArea||{})})}},28502:function(t,e,n){n.d(e,{a:()=>M});var i=n(3415),r=n(31831),o=n(8412),a=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.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(o.A),s=n(15764),l=n(21916),u=n(89945),h=n(87274),c=n(49112),p=n(41402),d=n(43139),f=n(35032),g=n(4884),y=n(84124),v=n(80153),m=(0,y.$r)(),_=function(t,e,n,i){var r,o=t.getData();if((0,g.isArray)(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=(0,g.retrieve)(i.yAxis,i.xAxis);else{var h=u.Yc(i,o,e,t);s=h.valueAxis;var c=(0,p.me)(o,h.valueDataDim);l=u.vz(o,c,a)}var d=+("x"!==s.dim),f=1-d,y=(0,g.clone)(i),v={coord:[]};y.type=null,y.coord=[],y.coord[f]=-1/0,v.coord[f]=1/0;var m=n.get("precision");m>=0&&(0,g.isNumber)(l)&&(l=+l.toFixed(Math.min(m,20))),y.coord[d]=v.coord[d]=l,r=[y,v,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var _=[u.xx(t,r[0]),u.xx(t,r[1]),(0,g.extend)({},r[2])];return _[2].type=_[2].type||null,(0,g.merge)(_[2],_[0]),(0,g.merge)(_[2],_[1]),_};function x(t){return!isNaN(t)&&!isFinite(t)}function b(t,e,n,i){var r=1-t,o=i.dimensions[t];return x(e[r])&&x(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function w(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(b(1,n,i,t)||b(0,n,i,t)))return!0}return u.Lq(t,e[0])&&u.Lq(t,e[1])}function S(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),u=l.lo(s.get("x"),r.getWidth()),h=l.lo(s.get("y"),r.getHeight());if(isNaN(u)||isNaN(h)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,p=t.get(c[0],e),f=t.get(c[1],e);o=a.dataToPoint([p,f])}if((0,d.g)(a,"cartesian2d")){var g=a.getAxis("x"),y=a.getAxis("y"),c=a.dimensions;x(t.get(c[0],e))?o[0]=g.toGlobalCoord(g.getExtent()[+!n]):x(t.get(c[1],e))&&(o[1]=y.toGlobalCoord(y.getExtent()[+!n]))}isNaN(u)||(o[0]=u),isNaN(h)||(o[1]=h)}else o=[u,h];t.setItemLayout(e,o)}var A=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.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=o.A.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=m(e).from,a=m(e).to;r.each(function(e){S(r,e,!0,t,n),S(a,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),a.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,l,c,p,d,y,x,b=t.coordinateSystem,A=t.id,M=t.getData(),C=this.markerGroupMap,I=C.get(A)||C.set(A,new h.A);this.group.add(I.group);var T=(r=b,o=t,a=e,l=r?(0,g.map)(r&&r.dimensions,function(t){var e=o.getData().getDimensionInfo(o.getData().mapDimension(t))||{};return(0,g.extend)((0,g.extend)({},e),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],c=new s.A(l,a),p=new s.A(l,a),d=new s.A([],a),y=(0,g.map)(a.get("data"),(0,g.curry)(_,o,r,a)),r&&(y=(0,g.filter)(y,(0,g.curry)(w,r))),x=u.fY(!!r,l),c.initData((0,g.map)(y,function(t){return t[0]}),null,x),p.initData((0,g.map)(y,function(t){return t[1]}),null,x),d.initData((0,g.map)(y,function(t){return t[2]})),d.hasItemOption=!0,{from:c,to:p,line:d}),D=T.from,k=T.to,O=T.line;m(e).from=D,m(e).to=k,e.setData(O);var L=e.get("symbol"),P=e.get("symbolSize"),R=e.get("symbolRotate"),N=e.get("symbolOffset");function z(e,n,r){var o=e.getItemModel(n);S(e,n,r,t,i);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=(0,v.rI)(M,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,g.retrieve2)(o.get("symbolOffset",!0),N[+!r]),symbolRotate:(0,g.retrieve2)(o.get("symbolRotate",!0),R[+!r]),symbolSize:(0,g.retrieve2)(o.get("symbolSize"),P[+!r]),symbol:(0,g.retrieve2)(o.get("symbol",!0),L[+!r]),style:a})}(0,g.isArray)(L)||(L=[L,L]),(0,g.isArray)(P)||(P=[P,P]),(0,g.isArray)(R)||(R=[R,R]),(0,g.isArray)(N)||(N=[N,N]),T.from.each(function(t){z(D,t,!0),z(k,t,!1)}),O.each(function(t){var e=O.getItemModel(t).getModel("lineStyle").getLineStyle();O.setItemLayout(t,[D.getItemLayout(t),k.getItemLayout(t)]),null==e.stroke&&(e.stroke=D.getItemVisual(t,"style").fill),O.setItemVisual(t,{fromSymbolKeepAspect:D.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:D.getItemVisual(t,"symbolOffset"),fromSymbolRotate:D.getItemVisual(t,"symbolRotate"),fromSymbolSize:D.getItemVisual(t,"symbolSize"),fromSymbol:D.getItemVisual(t,"symbol"),toSymbolKeepAspect:k.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:k.getItemVisual(t,"symbolOffset"),toSymbolRotate:k.getItemVisual(t,"symbolRotate"),toSymbolSize:k.getItemVisual(t,"symbolSize"),toSymbol:k.getItemVisual(t,"symbol"),style:e})}),I.updateData(O),T.line.eachItemGraphicEl(function(t){(0,f.z)(t).dataModel=e,t.traverse(function(t){(0,f.z)(t).dataModel=e})}),this.markKeep(I),I.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(c.A);function M(t){t.registerComponentModel(a),t.registerComponentView(A),t.registerPreprocessor(function(t){(0,i.A)(t.series,"markLine")&&(t.markLine=t.markLine||{})})}},48683:function(t,e,n){n.d(e,{a:()=>v});var i=n(3415),r=n(31831),o=n(8412),a=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.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(o.A),s=n(22448),l=n(21916),u=n(15764),h=n(89945),c=n(49112),p=n(4884),d=n(35032),f=n(80153);function g(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),s=l.lo(a.get("x"),n.getWidth()),u=l.lo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var h=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([h,c])}}else o=[s,u];isNaN(s)||(o[0]=s),isNaN(u)||(o[1]=u),t.setItemLayout(r,o)})}var y=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.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=o.A.getMarkerModelFromSeries(t,"markPoint");e&&(g(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},e.prototype.renderSeries=function(t,e,n,i){var r,o,a,l,c,y,v,m=t.coordinateSystem,_=t.id,x=t.getData(),b=this.markerGroupMap,w=b.get(_)||b.set(_,new s.A),S=(r=m,o=t,a=e,l=r?(0,p.map)(r&&r.dimensions,function(t){var e=o.getData().getDimensionInfo(o.getData().mapDimension(t))||{};return(0,p.extend)((0,p.extend)({},e),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],c=new u.A(l,a),y=(0,p.map)(a.get("data"),(0,p.curry)(h.xx,o)),r&&(y=(0,p.filter)(y,(0,p.curry)(h.Lq,r))),v=h.fY(!!r,l),c.initData(y,null,v),c);e.setData(S),g(e.getData(),t,i),S.each(function(t){var n=S.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if((0,p.isFunction)(i)||(0,p.isFunction)(r)||(0,p.isFunction)(o)||(0,p.isFunction)(a)){var l=e.getRawValue(t),u=e.getDataParams(t);(0,p.isFunction)(i)&&(i=i(l,u)),(0,p.isFunction)(r)&&(r=r(l,u)),(0,p.isFunction)(o)&&(o=o(l,u)),(0,p.isFunction)(a)&&(a=a(l,u))}var h=n.getModel("itemStyle").getItemStyle(),c=(0,f.rI)(x,"color");h.fill||(h.fill=c),S.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:a,symbolKeepAspect:s,style:h})}),w.updateData(S),this.group.add(w.group),S.eachItemGraphicEl(function(t){t.traverse(function(t){(0,d.z)(t).dataModel=e})}),this.markKeep(w),w.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(c.A);function v(t){t.registerComponentModel(a),t.registerComponentView(y),t.registerPreprocessor(function(t){(0,i.A)(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}},89945:function(t,e,n){n.d(e,{Lq:()=>p,PN:()=>d,Yc:()=>c,fY:()=>f,vz:()=>g,xx:()=>h});var i=n(21916),r=n(41402),o=n(4884),a=n(47163);function s(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function l(t,e,n,o,a,s){var l=[],u=(0,r.sJ)(e,o)?e.getCalculationInfo("stackResultDimension"):o,h=g(e,u,t),c=e.indicesOfNearest(u,h)[0];l[a]=e.get(n,c),l[s]=e.get(u,c);var p=e.get(o,c),d=i.XV(e.get(o,c));return(d=Math.min(d,20))>=0&&(l[s]=+l[s].toFixed(d)),[l,p]}var u={min:(0,o.curry)(l,"min"),max:(0,o.curry)(l,"max"),average:(0,o.curry)(l,"average"),median:(0,o.curry)(l,"median")};function h(t,e){if(e){var n,i=t.getData(),r=t.coordinateSystem,a=r&&r.dimensions;if(!(!isNaN(parseFloat((n=e).x))&&!isNaN(parseFloat(n.y)))&&!(0,o.isArray)(e.coord)&&(0,o.isArray)(a)){var s=c(e,i,r,t);if((e=(0,o.clone)(e)).type&&u[e.type]&&s.baseAxis&&s.valueAxis){var l=(0,o.indexOf)(a,s.baseAxis.dim),h=(0,o.indexOf)(a,s.valueAxis.dim),p=u[e.type](i,s.baseDataDim,s.valueDataDim,l,h);e.coord=p[0],e.value=p[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&(0,o.isArray)(a))for(var d=e.coord,f=0;f<2;f++)u[d[f]]&&(d[f]=g(i,i.mapDimension(a[f]),d[f]));else e.coord=[];return e}}function c(t,e,n,i){var r,o,a,s={};return null!=t.valueIndex||null!=t.valueDim?(s.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,s.valueAxis=n.getAxis((r=i,o=s.valueDataDim,(a=r.getData().getDimensionInfo(o))&&a.coordDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim)):(s.baseAxis=i.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=e.mapDimension(s.baseAxis.dim),s.valueDataDim=e.mapDimension(s.valueAxis.dim)),s}function p(t,e){return!t||!t.containData||!e.coord||!!s(e)||t.containData(e.coord)}function d(t,e,n){return!t||!t.containZone||!e.coord||!n.coord||!!s(e)||!!s(n)||t.containZone(e.coord,n.coord)}function f(t,e){return t?function(t,n,i,r){var o=r<2?t.coord&&t.coord[r]:t.value;return(0,a.Pn)(o,e[r])}:function(t,n,i,r){return(0,a.Pn)(t.value,e[r])}}function g(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){!isNaN(t)&&(i+=t,r++)}),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)[+("max"===n)]}},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),d=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),f=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"),d=t.get("textAlign"),f=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"),b=t.get("triggerEvent",!0);g.silent=!_&&!b,m.silent=!x&&!b,_&&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=b?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(g),v&&i.add(m);var w=i.getBoundingRect(),S=t.getBoxLayoutParams();S.width=w.width,S.height=w.height;var A=(0,u.dV)(S,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));d||("middle"===(d=t.get("left")||t.get("right"))&&(d="center"),"right"===d?A.x+=A.width:"center"===d&&(A.x+=A.width/2)),f||("center"===(f=t.get("top")||t.get("bottom"))&&(f="middle"),"bottom"===f?A.y+=A.height:"middle"===f&&(A.y+=A.height/2),f=f||"top"),i.x=A.x,i.y=A.y,i.markRedraw();var M={align:d,verticalAlign:f};g.setStyle(M),m.setStyle(M),w=i.getBoundingRect();var C=A.margin,I=t.getItemStyle(["color","opacity"]);I.fill=t.get("backgroundColor");var T=new a.A({shape:{x:w.x-C[3],y:w.y-C[0],width:w.width+C[1]+C[3],height:w.height+C[0]+C[2],r:t.get("borderRadius")},style:I,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(c.A);function g(t){t.registerComponentModel(d),t.registerComponentView(f)}},91523:function(t,e,n){n.d(e,{M_:()=>o,Ms:()=>i,x$:()=>a});var i=function(){},r={};function o(t,e){r[t]=e}function a(t){return r[t]}},40988:function(t,e,n){n.d(e,{a:()=>j});var i=n(74653),r=n(31831),o=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="dataZoom.select",e}(n(44878).A),a=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="dataZoom.select",e}(n(59730).A),s=n(97019);function l(t){t.registerComponentModel(o),t.registerComponentView(a),(0,s.A)(t)}var u=n(4884),h=n(91523),c=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.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;u.each(this.option.feature,function(t,n){var i=h.x$(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),u.merge(t,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(n(36805).A),p=n(23960),d=n(59033),f=n(72059),g=n(25744),y=n(31393),v=n(7474),m=n(43583),_=n(3818),x=n(52384),b=n(73394),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];u.each(s,function(t,e){c.push(e)}),new y.A(this._featureNames||[],c).add(m).update(m).remove(u.curry(m,null)).execute(),this._featureNames=c,v.Z(r,t,n),r.add(v.P(r.getBoundingRect(),t)),a||r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!u.isFunction(l)&&e){var h=l.style||(l.style={}),c=p.NO(e,x.Ay.makeFont(h)),d=t.x+r.x,f=t.y+r.y+o,g=!1;f+c.height>n.getHeight()&&(a.position="top",g=!0);var y=g?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",y],h.align="right"):d-c.width/2<0&&(a.position=[0,y],h.align="left")}})}function m(p,y){var v,m,w,S,A,M,C,I,T,D,k,O=c[p],L=c[y],P=s[O],R=new g.A(P,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===O&&(P.title=i.newTitle),O&&!L){if(0===O.indexOf("my"))k={onclick:R.option.onclick,featureName:O};else{var N=(0,h.x$)(O);if(!N)return;k=new N}l[O]=k}else if(!(k=l[L]))return;k.uid=(0,_.$Q)("toolbox-feature"),k.model=R,k.ecModel=e,k.api=n;var z=k instanceof h.Ms;if(!O&&L){z&&k.dispose&&k.dispose(e,n);return}if(!R.get("show")||z&&k.unusable){z&&k.remove&&k.remove(e,n);return}v=R,m=k,w=O,M=v.getModel("iconStyle"),C=v.getModel(["emphasis","iconStyle"]),I=m instanceof h.Ms&&m.getIcons?m.getIcons():v.get("icon"),T=v.get("title")||{},u.isString(I)?(S={})[w]=I:S=I,u.isString(T)?(A={})[w]=T:A=T,D=v.iconPaths={},u.each(S,function(i,s){var l=d.createIcon(i,{},{x:-o/2,y:-o/2,width:o,height:o});l.setStyle(M.getItemStyle()),l.ensureState("emphasis").style=C.getItemStyle();var h=new x.Ay({style:{text:A[s],align:C.get("textAlign"),borderRadius:C.get("textBorderRadius"),padding:C.get("textPadding"),fill:null,font:(0,b.c8)({fontStyle:C.get("textFontStyle"),fontFamily:C.get("textFontFamily"),fontSize:C.get("textFontSize"),fontWeight:C.get("textFontWeight")},e)},ignore:!0});l.setTextContent(h),d.setTooltipConfig({el:l,componentModel:t,itemName:s,formatterParamsExtra:{title:A[s]}}),l.__title=A[s],l.on("mouseover",function(){var e=C.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";h.setStyle({fill:C.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:C.get("textBackgroundColor")}),l.setTextConfig({position:C.get("textPosition")||i}),h.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==v.get(["iconStatus",s])&&n.leaveEmphasis(this),h.hide()}),("emphasis"===v.get(["iconStatus",s])?f.HY:f.SD)(l),r.add(l),l.on("click",u.bind(m.onclick,m,e,n,s)),D[s]=l}),R.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?f.HY:f.SD)(i[t])},k instanceof h.Ms&&k.render&&k.render(R,e,n,i)}},e.prototype.updateView=function(t,e,n,i){u.each(this._features,function(t){t instanceof h.Ms&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){u.each(this._features,function(n){n instanceof h.Ms&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){u.each(this._features,function(n){n instanceof h.Ms&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(m.A),S=n(35209),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=S.A.browser;if((0,u.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||r){var c=a.split(","),p=c[0].indexOf("base64")>-1,d=r?decodeURIComponent(c[1]):c[1];p&&(d=window.atob(d));var f=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var v=new Blob([y]);window.navigator.msSaveOrOpenBlob(v,f)}else{var m=document.createElement("iframe");document.body.appendChild(m);var _=m.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),_.focus(),x.execCommand("SaveAs",!0,f),document.body.removeChild(m)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',A=window.open();A.document.write(w),A.document.title=i}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(h.Ms),M=n(31950),C=n(84124),I="__ec_magicType_stack__",T=[["line","bar"],["stack"]],D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return u.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i,r=this.model,o=r.get(["seriesIndex",n]);if(k[n]){var a={series:[]};u.each(T,function(t){u.indexOf(t,n)>=0&&u.each(t,function(t){r.setIconStatus(t,"normal")})}),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(t){var e=t.subType,i=t.id,o=k[n](e,i,t,r);o&&(u.defaults(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var h=l.dim+"Axis",c=t.getReferringComponents(h,C.US).models[0].componentIndex;a[h]=a[h]||[];for(var p=0;p<=c;p++)a[h][c]=a[h][c]||{};a[h][c].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(i=u.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:i,featureName:"magicType"})}},e}(h.Ms),k={line:function(t,e,n,i){if("bar"===t)return u.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return u.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===I;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),u.merge({id:e,stack:r?"":I},i.get(["option","stack"])||{},!0)}};M.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var O=n(77250),L=Array(60).join("-");function P(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var R=RegExp("[ ]+","g"),N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n,i,r,o,a,s,l,h=e.getDom(),c=this.model;this._dom&&h.removeChild(this._dom);var p=document.createElement("div");p.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",p.style.backgroundColor=c.get("backgroundColor")||"#fff";var d=document.createElement("h4"),f=c.get("lang")||[];d.innerHTML=f[0]||c.get("title"),d.style.cssText="margin:10px 20px",d.style.color=c.get("textColor");var g=document.createElement("div"),y=document.createElement("textarea");g.style.cssText="overflow:auto";var v=c.get("optionToContent"),m=c.get("contentToOption"),_=(l=(n={},i=[],r=[],t.eachRawSeries(function(t){var e=t.coordinateSystem;if(e&&("cartesian2d"===e.type||"polar"===e.type)){var o=e.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;n[a]||(n[a]={categoryAxis:o,valueAxis:e.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),n[a].series.push(t)}else i.push(t)}else i.push(t)}),{seriesGroupByCategoryAxis:n,other:i,meta:r}),{value:u.filter([(o=l.seriesGroupByCategoryAxis,a=[],u.each(o,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,r=[" "].concat(u.map(t.series,function(t){return t.name})),o=[n.model.getCategories()];u.each(t.series,function(t){var e=t.getRawData();o.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var s=[r.join(" ")],l=0;l<o[0].length;l++){for(var h=[],c=0;c<o.length;c++)h.push(o[c][l]);s.push(h.join(" "))}a.push(s.join("\n"))}),a.join("\n\n"+L+"\n\n")),(s=l.other,u.map(s,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+" ":"")+i.join(" "))}),n.join("\n")}).join("\n\n"+L+"\n\n"))],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+L+"\n\n"),meta:l.meta});if(u.isFunction(v)){var x=v(e.getOption());u.isString(x)?g.innerHTML=x:u.isDom(x)&&g.appendChild(x)}else{y.readOnly=c.get("readOnly");var b=y.style;b.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",b.color=c.get("textColor"),b.borderColor=c.get("textareaBorderColor"),b.backgroundColor=c.get("textareaColor"),y.value=_.value,g.appendChild(y)}var w=_.meta,S=document.createElement("div");S.style.cssText="position:absolute;bottom:5px;left:0;right:0";var A="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",M=document.createElement("div"),C=document.createElement("div");A+=";background-color:"+c.get("buttonColor")+";color:"+c.get("buttonTextColor");var I=this;function T(){h.removeChild(p),I._dom=null}(0,O.q2)(M,"click",T),(0,O.q2)(C,"click",function(){var t,n,i,r;if(null==m&&null!=v||null!=m&&null==v)return void T();try{u.isFunction(m)?t=m(g,e.getOption()):(n=y.value,i=n.split(RegExp("\n*"+L+"\n*","g")),r={series:[]},u.each(i,function(t,e){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(" ")>=0)return!0}(t)){var n=function(t){for(var e=t.split(/\n+/g),n=P(e.shift()).split(R),i=[],r=u.map(n,function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var a=P(e[o]).split(R);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(t),i=w[e],o=i.axisDim+"Axis";i&&(r[o]=r[o]||[],r[o][i.axisIndex]={data:n.categories},r.series=r.series.concat(n.series))}else{var n=function(t){for(var e=t.split(/\n+/g),n=P(e.shift()),i=[],r=0;r<e.length;r++){var o=P(e[r]);if(o){var a=o.split(R),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var h=0;h<a.length;h++)l.push(+a[h]);1===l.length&&(u?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t);r.series.push(n)}}),t=r)}catch(t){throw T(),Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),T()}),M.innerHTML=f[1],C.innerHTML=f[2],C.style.cssText=M.style.cssText=A,c.get("readOnly")||S.appendChild(C),S.appendChild(M),p.appendChild(d),p.appendChild(g),p.appendChild(S),g.style.height=h.clientHeight-80+"px",h.appendChild(p),this._dom=p},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(h.Ms);M.OH({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];u.each(t.newOption.series,function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r,o=i.get("data");n.push({name:t.name,data:(r=t.data,u.map(r,function(t,e){var n=o&&o[e];if(!u.isObject(n)||u.isArray(n))return t;u.isObject(t)&&!u.isArray(t)||(t={value:t});var i=null!=n.name&&null==t.name;return t=u.defaults(t,n),i&&delete t.name,t}))})}else n.push(u.extend({type:"scatter"},t))}),e.mergeOption(u.defaults({series:n},t.newOption))});var z=u.each,E=(0,C.$r)();function B(t){var e=E(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.onclick=function(t,e){E(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(h.Ms);M.OH({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var F=n(88593),H=n(63785),W=n(91365),G=n(20020),Y=u.each,X=(0,C.S_)("toolbox-dataZoom_"),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(e,t),e.prototype.render=function(t,e,n,i){var r,o,a,s,l,h,c,p,d;this._brushController||(this._brushController=new F.A(n.getZr()),this._brushController.on("brush",u.bind(this._onBrush,this)).mount()),r=t,o=e,a=this,s=i,l=n,h=a._isZoomActive,s&&"takeGlobalCursor"===s.type&&(h="dataZoomSelect"===s.key&&s.dataZoomSelectActive),a._isZoomActive=h,r.setIconStatus("zoom",h?"emphasis":"normal"),c=new H.A(q(r),o,{include:["grid"]}).makePanelOpts(l,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}),a._brushController.setPanels(c).enableBrush(!!h&&!!c.length&&{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}),p=t,d=e,p.setIconStatus("back",B(d).length>1?"emphasis":"normal")},e.prototype.onclick=function(t,e,n){Z[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n,i,r,o={},a=this.ecModel;this._brushController.updateCovers([]),new H.A(q(this.model),a,{include:["grid"]}).matchOutputRanges(e,a,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(s("x",n,e[0]),s("y",n,e[1])):s({lineX:"x",lineY:"y"}[i],n,e)}}),n=a,i=o,r=B(n),z(i,function(t,e){for(var i=r.length-1;i>=0&&!r[i][e];i--);if(i<0){var o=n.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(o){var a=o.getPercentRange();r[0][e]={dataZoomId:e,start:a[0],end:a[1]}}}}),r.push(i),this._dispatchZoomAction(o)}function s(t,e,n){var i,r,s,l=e.getAxis(t),u=l.model,h=(i=t,r=u,a.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,r.componentIndex)&&(s=t)}),s),c=h.findRepresentativeAxisProxy(u).getMinMaxSpan();(null!=c.minValueSpan||null!=c.maxValueSpan)&&(n=(0,W.A)(0,n.slice(),l.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),h&&(o[h.id]={dataZoomId:h.id,startValue:n[0],endValue:n[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];Y(t,function(t,n){e.push(u.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(h.Ms),Z={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,e,n;this._dispatchZoomAction((e=(t=B(this.ecModel))[t.length-1],t.length>1&&t.pop(),n={},z(e,function(e,i){for(var r=t.length-1;r>=0;r--)if(e=t[r][i]){n[i]=e;break}}),n))}};function q(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function j(t){t.registerComponentModel(c),t.registerComponentView(w),(0,h.M_)("saveAsImage",A),(0,h.M_)("magicType",D),(0,h.M_)("dataView",N),(0,h.M_)("dataZoom",U),(0,h.M_)("restore",V),(0,i.Y)(l)}(0,G.S)("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=q(i),a=(0,C._e)(t,o);return Y(a.xAxisModels,function(t){return s(t,"xAxis","xAxisIndex")}),Y(a.yAxisModels,function(t){return s(t,"yAxis","yAxisIndex")}),r}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:X+e+o};a[n]=o,r.push(a)}})},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 d(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 f=d(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),g=d(["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(f,"transform"),x="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(l.A.transform3dSupported?"will-change:transform;":"");function b(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],[f,a]]}function w(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()));w(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,d,f,g,y,w,S,A,M,C,I,T,D,k,O=this.el,L=O.style,P=this._styleCoord;O.innerHTML?L.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"),d=t.get("shadowOffsetY"),f=t.getModel("textStyle"),g=(0,v.CO)(t,"html"),y=p+"px "+d+"px "+u+"px "+h,r.push("box-shadow:"+y),n&&o&&r.push((S="opacity"+(w=" "+o/2+"s cubic-bezier(0.23,1,0.32,1)")+",visibility"+w,i||(w=" "+o+"s cubic-bezier(0.23,1,0.32,1)",S+=l.A.transformSupported?","+_+w:",left"+w+",top"+w),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=f.get("fontSize"),(C=f.getTextColor())&&A.push("color:"+C),A.push("font:"+f.getFont()),M&&A.push("line-height:"+Math.round(3*M/2)+"px"),I=f.get("textShadowColor"),T=f.get("textShadowBlur")||0,D=f.get("textShadowOffsetX")||0,k=f.get("textShadowOffsetY")||0,I&&T&&A.push("text-shadow:"+D+"px "+k+"px "+T+"px "+I),(0,s.each)(["decoration","align"],function(t){var e=f.get(t);e&&A.push("text-"+t+":"+e)}),A.join(";"))),null!=g&&r.push("padding:"+(0,c.QX)(g).join("px ")+"px"),r.join(";")+";")+b(P[0],P[1],!0)+"border-color:"+(0,c.he)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):L.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 d=r*Math.PI/180,f=u+a,g=f*Math.abs(Math.cos(d))+f*Math.abs(Math.sin(d));h+=";"+l+":-"+Math.round(((g-Math.SQRT2*a)/2+Math.SQRT2*a-(g-f)/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(w(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=b(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),C=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),D(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=T(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;D(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=I(r.borderWidth||0),a=T(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 I(t){return Math.max(0,t)}function T(t){var e=I(t.shadowBlur||0),n=I(t.shadowOffsetX||0),i=I(t.shadowOffsetY||0);return{left:I(e-n),right:I(e+n),top:I(e-i),bottom:I(e+i)}}function D(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var k=n(21916),O=n(63811),L=n(8927),P=n(10675),R=n(25744),N=n(27462),z=n(93530),E=n(49024),B=n(84124),V=n(43583),F=n(29456),H=n(35032),W=n(42345),G=n(26889),Y=n(89425),X=new O.A({shape:{x:-1,y:-1,width:2,height:2}}),U=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 C(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,Y.N)(this,"_updatePosition",50,"fixRate"):(0,Y.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,H.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)X.x=i.x,X.y=i.y,X.update(),(0,H.z)(X).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:X},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,L.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"===Z([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,H.z)(n).ssrType)return;this._lastDataByCoordSys=null,(0,G.R)(n,function(t){return null!=(0,H.z)(t).dataIndex?(i=t,!0):null!=(0,H.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=Z([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=E._F(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=(0,v.Qx)("section",{header:o,noHeader:!(0,s.trim)(o),sortBlocks:!0,blocks:[]});u.blocks.push(d),(0,s.each)(t.seriesDataIndices,function(u){var f=n.getSeriesByIndex(u.seriesIndex),g=u.dataIndexInside,y=f.getDataParams(g);if(!(y.dataIndex<0)){y.axisDim=t.axisDim,y.axisIndex=t.axisIndex,y.axisType=t.axisType,y.axisId=t.axisId,y.axisValue=z.Dt(e.axis,{value:r}),y.axisValueLabel=o,y.marker=p.makeTooltipMarker("item",(0,c.he)(y.color),a);var v=(0,W.L)(f.formatTooltip(g,!0,null)),m=v.frag;if(m){var _=Z([f],i).get("valueFormatter");d.blocks.push(_?(0,s.extend)({valueFormatter:_},m):m)}v.text&&h.push(v.text),l.push(y)}})}})}),u.blocks.reverse(),h.reverse();var d=e.position,f=o.get("order"),g=(0,v.Yu)(u,p,a,f,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,d,r[0],r[1],this._tooltipContent,l):this._showTooltipContent(o,m,l,Math.random()+"",r[0],r[1],d,null,p)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=(0,H.z)(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),l=r.dataModel||a,u=r.dataIndex,h=r.dataType,p=l.getData(h),d=this._renderMode,f=t.positionDefault,g=Z([p.getItemModel(u),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}: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),d);var x=(0,W.L)(l.formatTooltip(u,!1,h)),b=g.get("order"),w=g.get("valueFormatter"),S=x.frag,A=S?(0,v.Yu)(w?(0,s.extend)({valueFormatter:w},S):S,_,d,b,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,H.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=Z(a,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",d=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,d)}),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 d=e,f=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;d=p,v&&(d=(0,F.GP)(y.axisValue,d,g)),d=(0,c.YK)(d,n,!0)}else if((0,s.isFunction)(p)){var m=(0,s.bind)(function(e,i){e===this._ticket&&(h.setContent(i,u,t,f,a),this._updatePosition(t,a,r,o,h,n,l))},this);this._ticket=i,d=p(n,i,m)}else d=p;h.setContent(d,u,t,f,a),h.show(t,f),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"),d=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),(0,s.isFunction)(e)&&(e=e([n,i],o,r.el,f,{viewSize:[l,u],contentSize:h.slice()})),(0,s.isArray)(e))n=(0,k.lo)(e[0],l),i=(0,k.lo)(e[1],u);else if((0,s.isObject)(e)){var g=e;g.width=h[0],g.height=h[1];var y=(0,P.dV)(g,{width:l,height:u});n=y.x,i=y.y,c=null,d=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,f,h,t.get("borderWidth"));n=v[0],i=v[1]}else{var m,_,x,b,w,S,A,M,C,I,v=(m=n,_=i,x=r,b=l,w=u,S=c?null:20,A=d?null:20,C=(M=x.getSize())[0],I=M[1],null!=S&&(m+C+S+2>b?m-=C+S:m+=S),null!=A&&(_+I+A>w?_-=I+A:_+=A),[m,_]);n=v[0],i=v[1]}if(c&&(n-=j(c)?h[0]/2:"right"===c?h[0]:0),d&&(i-=j(d)?h[1]/2:"bottom"===d?h[1]:0),p(t)){var T,D,O,L,R,N,z,E,v=(T=n,D=i,O=r,L=l,R=u,z=(N=O.getSize())[0],E=N[1],T=Math.min(T+z,L)-z,D=Math.min(D+E,R)-E,[T=Math.max(T,0),D=Math.max(D,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,Y.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),N.h("itemTooltip",e))},e.type="tooltip",e}(V.A);function Z(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 j(t){return"center"===t||"middle"===t}function K(t){(0,r.Y)(i.a),t.registerComponentModel(a),t.registerComponentView(U),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(),d=p.mapDimensionsAll("defaultedTooltip"),f=d.length,g=u.getRawValue(h),y=(0,i.isArray)(g),v=(0,r.aw)(u,h);if(f>1||y&&!f){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 d(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){d((0,o.QE)(l,n,t),t)}):(0,i.each)(t,d),{inlineValues:h,inlineValueTypes:c,blocks:p}}(g,u,h,d,v);e=m.inlineValues,n=m.inlineValueTypes,s=m.blocks,l=m.inlineValues[0]}else if(f){var _=p.getDimensionInfo(d[0]);l=e=(0,o.QE)(p,h,d[0]),n=_.type}else l=e=y?g[0]:g;var x=(0,a.O0)(u),b=x&&u.name||"",w=p.getName(h),S=c?b:w;return(0,r.Qx)("section",{header:b,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:()=>b});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 d(t){return"section"===t.type}function f(t,e,n,s){var p,y=e.noHeader,_={html:h[p=function t(e){if(d(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||d(e)&&!e.noHeader)))}),n}return 0}(e)],richText:c[p]},x=[],b=e.blocks||[];(0,o.assert)(!b||(0,o.isArray)(b)),b=b||[];var w=t.orderMode;if(e.sortBlocks&&w){b=b.slice();var S={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(S,w)){var A=new a.Fl(S[w],null);b.sort(function(t,e){return A.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===w&&b.reverse()}(0,o.each)(b,function(n,i){var r=e.valueFormatter,a=(d(n)?f: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 C=(0,r.yC)(e.header,"ordinal",t.useUTC),I=u(s,t.renderMode).nameStyle;return"richText"===t.renderMode?m(t,C,I)+_.richText+M:v('<div style="'+I+";"+l+';">'+(0,i.Me)(C)+"</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,d=t.useUTC,f=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)(D)?D[e]:D,d)})};if(!l||!h){var g,y,_,x,b,w,S,A,M,C,I=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),T=l?"":(0,r.yC)(p,"ordinal",d),D=e.valueType,k=h?[]:f(e.value,e.dataIndex),O=!c||!l,L=!c&&l,P=u(a,s),R=P.nameStyle,N=P.valueStyle;return"richText"===s?(c?"":I)+(l?"":m(t,T,R))+(h?"":(g=t,y=k,_=O,x=L,b=[N],_&&b.push({padding:[0,0,0,x?10:20],align:"right"}),g.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(y)?y.join(" "):y,b))):v((c?"":I)+(l?"":(w=T,'<span style="'+R+";"+(c?"":"margin-left:2px")+'">'+(0,i.Me)(w)+"</span>"))+(h?"":(S=k,A=O,M=L,C=N,S=(0,o.isArray)(S)?S:[S],'<span style="'+(A?"float:right;margin-left:"+(M?"10px":"20px"):"")+";"+C+'">'+(0,o.map)(S,function(t){return(0,i.Me)(t)}).join("&nbsp;&nbsp;")+"</span>")),n)}}function y(t,e,n,i,r,o){if(t)return(d(t)?f: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 b=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}()},882:function(t,e,n){n.d(e,{A:()=>v});var i=n(31831),r=n(4884),o=n(74664),a=n(39111),s=n(88526),l=n(84124),u=n(21916),h=n(36805),c=a.A.mapVisual,p=a.A.eachVisual,d=r.isArray,f=r.each,g=u.Y6,y=u.Cb;let v=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;e||s.St(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=s.u1(this.option.controller,e,t),this.targetVisuals=s.u1(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=l.qB(t),e},e.prototype.eachTargetSeries=function(t,e){r.each(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,o=this.option,a=o.precision,s=this.dataBound,l=o.formatter;n=n||["<",">"],r.isArray(t)&&(t=t.slice(),i=!0);var u=e?t:i?[h(t[0]),h(t[1])]:h(t);if(r.isString(l))return l.replace("{value}",i?u[0]:u).replace("{value2}",i?u[1]:u);if(r.isFunction(l))return i?l(t[0],t[1]):l(t);if(!i)return u;if(t[0]===s[0])return n[0]+" "+u[1];if(t[1]===s[1])return n[1]+" "+u[0];return u[0]+" - "+u[1];function h(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),s=e.controller||(e.controller={});r.merge(i,n),r.merge(s,n);var l=this.isCategory();function u(n){d(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}u.call(this,i),u.call(this,s),(function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},f(i,function(t,e){if(a.A.isValidType(e)){var n=o.A.get(e,"inactive",l);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}).call(this,i,"inRange","outOfRange"),(function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";f(this.stateList,function(a){var s=this.itemSize,u=t[a];u||(u=t[a]={color:l?i:[i]}),null==u.symbol&&(u.symbol=e&&r.clone(e)||(l?o:[o])),null==u.symbolSize&&(u.symbolSize=n&&r.clone(n)||(l?s[0]:[s[0],s[0]])),u.symbol=c(u.symbol,function(t){return"none"===t?o:t});var h=u.symbolSize;if(null!=h){var d=-1/0;p(h,function(t){t>d&&(d=t)}),u.symbolSize=c(h,function(t){return y(t,[0,d],[0,s[0]],!0)})}},this)}).call(this,s)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(h.A)},79006:function(t,e,n){n.d(e,{A:()=>u});var i=n(31831),r=n(4884),o=n(63811),a=n(3306),s=n(10675),l=n(39111);let u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,i.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){(this.visualMapModel=t,!1===t.get("show"))?this.group.removeAll():this.doRender(t,e,n,i)},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=a.QX(e.get("padding")||0),i=t.getBoundingRect();t.add(new o.A({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,o=this.visualMapModel,a={};function s(t){return a[t]}function u(t,e){a[t]=e}"color"===e&&(a.color=o.get("contentColor"));var h=o.controllerVisuals[i||o.getValueState(t)],c=l.A.prepareVisualTypes(h);return r.each(c,function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),l.A.dependsOn(i,e)&&r&&r.applyVisual(t,s,u)}),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;s.m$(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(n(43583).A)},89085:function(t,e,n){n.d(e,{J:()=>a,l:()=>s});var i=n(4884),r=n(10675),o=[["left","right","width"],["top","bottom","height"]];function a(t,e,n){var i=t.option,a=i.align;if(null!=a&&"auto"!==a)return a;for(var s={width:e.getWidth(),height:e.getHeight()},l=+("horizontal"===i.orient),u=o[l],h=[0,null,10],c={},p=0;p<3;p++)c[o[1-l][p]]=h[p],c[u[p]]=2===p?n[0]:i[u[p]];var d=[["x","width",3],["y","height",0]][l],f=(0,r.dV)(c,s,i.padding);return u[(f.margin[d[2]]||0)+f[d[0]]+.5*f[d[1]]<.5*s[d[1]]?0:1]}function s(t,e){return i.each(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}},46182:function(t,e,n){n.d(e,{a:()=>a});var i=n(74653),r=n(97310),o=n(12836);function a(t){(0,i.Y)(r.a),(0,i.Y)(o.a)}},12793:function(t,e,n){n.d(e,{A:()=>g});var i={type:"selectDataRange",event:"dataRangeSelected",update:"update"},r=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(e){e.setSelected(t.selected)})},o=n(4884),a=n(88526),s=n(39111),l=n(80153),u=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(a.dS(e.stateList,e.targetVisuals,o.bind(e.getValueState,e),e.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(o.bind(h,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(r.dimension=a,i.push(r))}}),t.getData().setVisual("visualMeta",i)}}];function h(t,e,n,i){for(var r=e.targetVisuals[i],o=s.A.prepareVisualTypes(r),a={color:(0,l.rI)(t.getData(),"color")},u=0,h=o.length;u<h;u++){var c=o[u],p=r["opacity"===c?"__alphaForOpacity":c];p&&p.applyVisual(n,d,f)}return a.color;function d(t){return a[t]}function f(t,e){a[t]=e}}var c=o.each;function p(t){var e=t&&t.visualMap;o.isArray(e)||(e=e?[e]:[]),c(e,function(t){if(t){d(t,"splitList")&&!d(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&o.isArray(e)&&c(e,function(t){o.isObject(t)&&(d(t,"start")&&!d(t,"min")&&(t.min=t.start),d(t,"end")&&!d(t,"max")&&(t.max=t.end))})}})}function d(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var f=!1;function g(t){f||(f=!0,t.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(i,r),(0,o.each)(u,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(p))}},97310:function(t,e,n){n.d(e,{a:()=>E});var i=n(31831),r=n(4884),o=n(882),a=n(21916),s=n(3818),l=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.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=20),(null==e[1]||isNaN(e[1]))&&(e[1]=140)},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):r.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=a.Y6((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=u(this,"outOfRange",this.getExtent()),n=u(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var h=1;o<s;o++,h=0)h&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(var h=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(h&&(i.length&&r(i[i.length-1].value,"outOfRange"),h=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,s.G_)(o.A.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(o.A);function u(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}var h=n(87142),c=n(77250),p=n(79006),d=n(52384),f=n(79620),g=n(63811),y=n(59033),v=n(97451),m=n(91365),_=n(89085),x=n(84124),b=n(23960),w=n(72059),S=n(60253),A=n(64586),M=n(35032),C=n(73394),I=n(26889),T=a.Cb,D=r.each,k=Math.min,O=Math.max,L=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,i.C6)(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=r.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=r.bind(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),h=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new d.Ay({style:(0,C.VB)(c,{x:l[0],y:l[1],verticalAlign:"horizontal"===h?"middle":u,align:"horizontal"===h?u:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,a=this._useHandle,s=_.J(e,this.api,i),l=n.mainGroup=this._createBarGroup(s),u=new f.A;l.add(u),u.add(n.outOfRange=P()),u.add(n.inRange=P(null,a?N(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new g.A({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=e.textStyleModel.getTextRect("国"),c=O(h.width,h.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,l,0,i,c,o),this._createHandle(e,l,1,i,c,o)),this._createIndicator(e,l,i,c,o),t.add(l)},e.prototype._createHandle=function(t,e,n,i,o,a){var s=r.bind(this._dragHandle,this,n,!1),l=r.bind(this._dragHandle,this,n,!0),u=(0,b.lo)(t.get("handleSize"),i[0]),h=(0,S.v5)(t.get("handleIcon"),-u/2,-u/2,u,u,null,!0),p=N(this._orient);h.attr({cursor:p,draggable:!0,drift:s,ondragend:l,onmousemove:function(t){c.ds(t.event)}}),h.x=i[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,w.ix)(h,!0),e.add(h);var f=this.visualMapModel.textStyleModel,g=new d.Ay({cursor:p,draggable:!0,drift:s,onmousemove:function(t){c.ds(t.event)},ondragend:l,style:(0,C.VB)(f,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var y=[u,0],v=this._shapes;v.handleThumbs[n]=h,v.handleLabelPoints[n]=y,v.handleLabels[n]=g},e.prototype._createIndicator=function(t,e,n,i,o){var a=(0,b.lo)(t.get("indicatorSize"),n[0]),s=(0,S.v5)(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(s instanceof A.Ay){var u=s.style;s.useStyle(r.extend({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l);e.add(s);var h=this.visualMapModel.textStyleModel,c=new d.Ay({silent:!0,invisible:!0,style:(0,C.VB)(h,{x:0,y:0,text:""})});this.group.add(c);var p=[("horizontal"===o?i/2:6)+n[0]/2,0],f=this._shapes;f.indicator=s,f.indicatorLabel=c,f.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}!this.visualMapModel.get("realtime")===e&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():R(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[T(e[0],n,i,!0),T(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];(0,m.A)(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[T(i[0],r,o,!0),T(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new h.A(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new f.A("horizontal"===e&&!n?{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2}:"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"===e&&!n?{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"left"===t?1:-1})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();D([0,1],function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var h=T(t[l],[0,a[1]],s,!0),c=this.getControllerVisual(h,"symbolSize");u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2;var p=y.applyTransform(n.handleLabelPoints[l],y.getTransform(u,this.group));o[l].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),p=T(t,o,s,!0),d=a[0]-c/2,f={x:u.x,y:u.y};u.y=p,u.x=d;var g=y.applyTransform(l.indicatorLabelPoint,y.getTransform(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),_="horizontal"===this._orient;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:_?m:"middle",align:_?"center":m});var x={x:d,y:p,style:{fill:h}},b={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,w),v.animateTo(b,w)}else u.attr(x),v.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var A=0;A<S.length;A++)this.api.enterBlur(S[A])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=k(O(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,t._dragging||t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r,o,a,s,l,u=[0,i[1]],h=n.getExtent();t=k(O(u[0],t),u[1]);var c=(r=n,o=h,a=u,s=6,(l=r.get("hoverLinkDataSize"))&&(s=T(l,o,a,!0)/2),s),p=[t-c,t+c],d=T(t,u,h,!0),f=[T(p[0],u,h,!0),T(p[1],u,h,!0)];p[0]<u[0]&&(f[0]=-1/0),p[1]>u[1]&&(f[1]=1/0),e&&(f[0]===-1/0?this._showIndicator(d,f[1],"< ",c):f[1]===1/0?this._showIndicator(d,f[0],"> ",c):this._showIndicator(d,d,"≈ ",c));var g=this._hoverLinkDataIndices,y=[];(e||R(n))&&(y=this._hoverLinkDataIndices=n.findTargetDataIndices(f));var v=x.D6(g,y);this._dispatchHighDown("downplay",_.l(v[0],n)),this._dispatchHighDown("highlight",_.l(v[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){if((0,I.R)(t.target,function(t){var n=(0,M.z)(t);if(null!=n.dataIndex)return e=n,!0},!0),e){var e,n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",_.l(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var o=y.getTransform(e,i?null:this.group);return r.isArray(t)?y.applyTransform(t,o,n):y.transformDirection(t,o,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(p.A);function P(t,e,n,i){return new v.A({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){c.ds(t.event)},ondragend:i})}function R(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function N(t){return"vertical"===t?"ns-resize":"ew-resize"}var z=n(12793);function E(t){t.registerComponentModel(l),t.registerComponentView(L),(0,z.A)(t)}},12836:function(t,e,n){n.d(e,{a:()=>w});var i=n(31831),r=n(4884),o=n(882),a=n(39111),s=n(74664),l=n(21916),u=n(3818),h=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,i.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],c[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var o=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=r.clone(o)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=r.map(this._pieceList,function(t){return t=r.clone(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=a.A.listVisualTypes(),o=this.isCategory();function l(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}r.each(e.pieces,function(t){r.each(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),r.each(n,function(t,n){var i=!1;r.each(this.stateList,function(t){i=i||l(e,t,n)||l(e.target,t,n)},this),i||r.each(this.stateList,function(t){(e[t]||(e[t]={}))[n]=s.A.get(n,"inRange"===t?"active":"inactive",o)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,o=(e?n:t).selected||{};if(n.selected=o,r.each(i,function(t,e){var n=this.getSelectedMapKey(t);o.hasOwnProperty(n)||(o[n]=!0)},this),"single"===n.selectedMode){var a=!1;r.each(i,function(t,e){var n=this.getSelectedMapKey(t);o[n]&&(a?o[n]=!1:a=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=r.clone(t)},e.prototype.getValueState=function(t){var e=a.A.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(e,i){a.A.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),(a=o[o.length-1].interval[1])!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return r.each(o,function(t){var e=t.interval;e&&(e[0]>s&&l([s,e[0]],"outOfRange"),l(e.slice()),s=e[1])},this),{stops:e,outerColors:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,u.G_)(o.A.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(o.A),c={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;e.splitNumber=o=Math.max(parseInt(o,10),1);for(var a=(i[1]-i[0])/o;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,u=i[0];s<o;u+=a,s++){var h=s===o-1?i[1]:u+a;t.push({interval:[u,h],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),(0,l.sL)(t),r.each(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(t){var e=this.option;r.each(e.categories,function(e){t.push({text:this.formatValueText(e,!0),value:e})},this),p(e,t)},pieces:function(t){var e=this.option;r.each(e.pieces,function(e,n){r.isObject(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var o=i.value=e.value;i.interval=[o,o],i.close=[1,1]}else{for(var s=i.interval=[],l=i.close=[0,0],u=[1,0,1],h=[-1/0,1/0],c=[],p=0;p<2;p++){for(var d=[["gte","gt","min"],["lte","lt","max"]][p],f=0;f<3&&null==s[p];f++)s[p]=e[d[f]],l[p]=u[f],c[p]=2===f;null==s[p]&&(s[p]=h[p])}c[0]&&s[1]===1/0&&(l[0]=0),c[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=a.A.retrieveVisuals(e),t.push(i)},this),p(e,t),(0,l.sL)(t),r.each(t,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};function p(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var d=n(79006),f=n(79620),g=n(52384),y=n(60253),v=n(10675),m=n(89085),_=n(73394),x=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.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,o=i.getFont(),a=i.getTextColor(),s=this._getItemAlign(),l=e.itemSize,u=this._getViewData(),h=u.endsText,c=r.retrieve(e.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],l,c,s),r.each(u.viewPieceList,function(i){var u=i.piece,h=new f.A;h.onclick=r.bind(this._onItemClick,this,u),this._enableHoverLink(h,i.indexInModelPieceList);var p=e.getRepresentValue(u);if(this._createItemSymbol(h,p,[0,0,l[0],l[1]]),c){var d=this.visualMapModel.getValueState(p);h.add(new g.Ay({style:{x:"right"===s?-n:l[0]+n,y:l[1]/2,text:u.text,verticalAlign:"middle",align:s,font:o,fill:a,opacity:"outOfRange"===d?.5:1}}))}t.add(h)},this),h&&this._renderEndsText(t,h[1],l,c,s),v.aP(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:m.l(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return m.J(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new f.A,a=this.visualMapModel.textStyleModel;o.add(new g.Ay({style:(0,_.VB)(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=r.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add((0,y.v5)(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var o=r.clone(n.selected),a=e.getSelectedMapKey(t);"single"===i||!0===i?(o[a]=!0,r.each(o,function(t,e){o[e]=e===a})):o[a]=!o[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(d.A),b=n(12793);function w(t){t.registerComponentModel(h),t.registerComponentView(x),(0,b.A)(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=f(t,g):(a="auto"===g?null!=(r=l(n=t).autoInterval)?r:l(n).autoInterval=n.calculateCategoryInterval():g,o=d(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 d(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),d=a.get("showMinLabel")||p,f=a.get("showMaxLabel")||p;d&&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 f&&g-u!==o[1]&&y(o[1]),l}function f(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=f(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=d(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];d(e[0].coord,u[0])&&(o?e[0].coord=u[0]:e.shift()),o&&d(u[0],e[0].coord)&&e.unshift({coord:u[0]}),d(u[1],a.coord)&&(o?a.coord=u[1]:e.pop()),o&&d(a.coord,u[1])&&e.push({coord:u[1]})}function d(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 d=h[0],f=t.dataToCoord(d+1)-t.dataToCoord(d),g=Math.abs(f*Math.cos(a)),y=Math.abs(f*Math.sin(a)),v=0,m=0;d<=h[1];d+=p){var _=0,x=0,b=o.NO(r({value:d}),i.font,"center","top");_=1.3*b.width,x=1.3*b.height,v=Math.max(v,_,7),m=Math.max(m,x,7)}var w=v/g,S=m/y;isNaN(w)&&(w=1/0),isNaN(S)&&(S=1/0);var A=Math.max(0,Math.floor(Math.min(w,S))),M=l(t.model),C=t.getExtent(),I=M.lastAutoInterval,T=M.lastTickCount;return null!=I&&null!=T&&1>=Math.abs(I-A)&&1>=Math.abs(T-c)&&I>A&&M.axisExtent0===C[0]&&M.axisExtent1===C[1]?A=I:(M.lastTickCount=c,M.lastAutoInterval=A,M.axisExtent0=C[0],M.axisExtent1=C[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),d=(0,o.Rx)(t,e),f=d.extent,g=d.fixMin,y=d.fixMax;if("log"===t.type){var v=s(t.base);f=[s(f[0])/v,s(f[1])/v]}t.setExtent(f[0],f[1]),t.calcNiceExtent({splitNumber:c,fixMin:g,fixMax:y});var m=l.getExtent.call(t);g&&(f[0]=m[0]),y&&(f[1]=m[1]);var _=l.getInterval.call(t),x=f[0],b=f[1];if(g&&y)_=(b-x)/c;else if(g)for(b=f[0]+_*c;b<f[1]&&isFinite(b)&&isFinite(f[1]);)_=(0,a.kH)(_),b=f[0]+_*c;else if(y)for(x=f[1]-_*c;x>f[0]&&isFinite(x)&&isFinite(f[0]);)_=(0,a.kH)(_),x=f[1]-_*c;else{t.getTicks().length-1>c&&(_=(0,a.kH)(_));var w=_*c;b=Math.ceil(f[1]/_)*_,(x=(0,i.LI)(b-w))<0&&f[0]>=0?(x=0,b=(0,i.LI)(w)):b>0&&f[1]<=0&&(b=0,x=-(0,i.LI)(w))}var S=(u[0].value-h[0].value)/p,A=(u[c].value-h[c].value)/p;l.setExtent.call(t,x+_*S,b+_*A),l.setInterval.call(t,_),(S||A)&&l.setNiceExtent.call(t,x+_,b-_)}},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$:()=>I,PN:()=>N,Dt:()=>k,wq:()=>R,Rx:()=>M,ry:()=>D,Og:()=>O,JJ:()=>T,j2:()=>L,af:()=>C,PJ:()=>P});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),d=a.A.prototype,f=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=f.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?w(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?w(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,f.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=d.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]=w(e[0],n[0])),this._fixMax&&(e[1]=w(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),d.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){f.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),b=x.prototype;function w(t,e){return g(t,c.XV(e))}b.getMinorTicks=f.getMinorTicks,b.getLabel=f.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,d=p/(1-(u+h)/a)-p;return e+=h/c*d,{min:t-=u/c*d,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 C(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 I(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 T(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function D(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(k(t,i),r,null!=i.level?{level:i.level}:null)}:function(e){return t.scale.getLabel(e)}}function k(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=D(t),c=1;n>40&&(c=Math.ceil(n/40));for(var p=0;p<n;p+=c){var d=h(e?e[p]:{value:s[0]+p},p),f=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(d),u.get("rotate")||0);i?i.union(f):i=f}return i}}function L(t){var e=t.get("interval");return null==e?"auto":e}function P(t){return"category"===t.type&&0===L(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),d=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(d)}),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],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===h?[p[2]-f,p[3]+f]:[p[0]-f,p[1]+f];if(s){var y=s.toGlobalCoord(s.dataToCoord(0));g[d.onZero]=Math.max(Math.min(y,g[1]),g[0])}a.position=["y"===h?g[d[u]]:p[0],"x"===h?g[d[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[d[l]]-g[d.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,d=this._determinedMax;return null!=p&&(s=p,u=!0),null!=d&&(l=d,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:()=>eY,E:()=>er.E,mz:()=>e8,qg:()=>eZ,ZB:()=>e6,bf:()=>eX,zm:()=>eH,lP:()=>eU,rE:()=>eh,xV:()=>eK,cf:()=>eq,Ej:()=>e3,Ng:()=>eV,Oh:()=>e0,Bo:()=>eJ,AF:()=>e1,Ts:()=>eB,iY:()=>e9,FQ:()=>ep,pX:()=>eQ,vV:()=>e4,p5:()=>e7,tb:()=>ej,FP:()=>eG,Zf:()=>eF});var i,r,o,a,s,l,u,h,c,p,d,f,g,y,v,m,_,x,b,w,S,A,M=n(31831),C=n(66726),I=n(4884),T=n(35209),D=n(24952),k=n(16419),O=n(84124),L=n(25744),P=n(36805),R="";"undefined"!=typeof navigator&&(R=navigator.platform||"");var N="rgba(0, 0, 0, 0.2)";let z={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 E=n(88569),B=n(20020),V=n(57699),F="\0_ec_inner",H=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 L.A(i),this._locale=new L.A(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Y(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Y(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,I.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,I.createHashMap)(),l=e&&e.replaceMergeMainTypeMap;(0,E.ps)(this),(0,I.each)(t,function(t,e){null!=t&&(P.A.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,I.clone)(t):(0,I.merge)(n[e],t,!0))}),l&&l.each(function(t,e){P.A.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))}),P.A.topologicalTravel(a,P.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,P.A),n[e]=null,r.set(e,null),o.set(e,0);var p=[],d=[],f=0;(0,I.each)(c,function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,s=P.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,I.extend)({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),(0,I.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),d.push(i),f++):(p.push(void 0),d.push(void 0))},this),n[e]=p,r.set(e,d),o.set(e,f),"series"===e&&i(this)},this),this._seriesIndices||i(this)},e.prototype.getOption=function(){var t=(0,I.clone)(this.option);return(0,I.each)(t,function(e,n){if(P.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[F],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,I.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,I.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,I.filter)(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?(0,I.filter)(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,I.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,I.isString)(t)?i.get(t):(0,I.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,I.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,I.filter)(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return(0,I.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,I.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,I.each)(this._componentsMap.get("series"),function(n){n&&t.call(e,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,n){r(this),(0,I.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,I.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,I.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,I.createHashMap)(n)},e.prototype.restoreData=function(t){i(this);var e=this._componentsMap,n=[];e.each(function(t,e){P.A.hasClass(e)&&n.push(e)}),P.A.topologicalTravel(n,P.A.getAllClassMainTypes(),function(n){(0,I.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,I.each)(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=(0,I.createHashMap)(e)},r=function(t){},o=function(t,e){t.option={},t.option[F]=1,t._componentsMap=(0,I.createHashMap)({series:[]}),t._componentsCount=(0,I.createHashMap)();var n,i,r,o=e.aria;(0,I.isObject)(o)&&null==o.enabled&&(o.enabled=!0),n=e,i=t._theme.option,r=n.color&&!n.colorLayer,(0,I.each)(i,function(t,e){("colorLayer"!==e||!r)&&(P.A.hasClass(e)||("object"==typeof t?n[e]=n[e]?(0,I.merge)(n[e],t,!1):(0,I.clone)(t):null==n[e]&&(n[e]=t)))}),(0,I.merge)(e,z,!1),t._mergeOption(e,null)}),e}(L.A);function W(t,e,n){if((0,I.isArray)(e)){var i=(0,I.createHashMap)();return(0,I.each)(e,function(t){null!=t&&null!=O.vS(t,null)&&i.set(t,!0)}),(0,I.filter)(n,function(e){return e&&i.get(e[t])})}var r=O.vS(e,null);return(0,I.filter)(n,function(e){return e&&null!=r&&e[t]===r})}function G(t,e){return e.hasOwnProperty("subType")?(0,I.filter)(t,function(t){return t&&t.subType===e.subType}):t}function Y(t){var e=(0,I.createHashMap)();return t&&(0,I.each)(O.qB(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}(0,I.mixin)(H,V.X);var X=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let U=function(t){I.each(X,function(e){this[e]=I.bind(t[e],t)},this)};var Z=n(51907),q=/^(min|max)?(.+)$/,j=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,I.each)((0,O.qB)(t.series),function(t){t&&t.data&&(0,I.isTypedArray)(t.data)&&(0,I.setAsPrimitive)(t.data)}),(0,I.each)((0,O.qB)(t.dataset),function(t){t&&t.source&&(0,I.isTypedArray)(t.source)&&(0,I.setAsPrimitive)(t.source)})),t=(0,I.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,I.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,I.isArray)(u)&&(0,I.each)(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),p(r),(0,I.each)(l,function(t){return p(t)}),(0,I.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,I.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,I.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,I.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,I.map)(s,function(t){return(0,I.clone)(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),K=I.each,$=I.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?I.merge(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?I.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,I.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 I.isArray(t)?t:t?[t]:[]}function to(t){return(I.isArray(t)?t[0]:t)||{}}function ta(t){t&&(0,I.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 td(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&&!I.isTypedArray(o))for(var a=0;a<o.length;a++)ti(o[a]);I.each(t.categories,function(t){te(t)})}if(r&&!I.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++)I.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"),I.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;I.isArray(e)&&I.each(e,function(t){I.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,I.each)(t.series,function(t){if((0,I.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,I.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,I.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,I.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,I.each)(tl,function(e){var n=t[e];n&&((0,I.isArray)(n)||(n=[n]),(0,I.each)(n,function(t){ta(t)}))})}var tf=n(21916);function tg(t){(0,I.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,d=a.get(e.stackedDimension,h);if(isNaN(d))return r;s?p=a.getRawIndex(h):c=a.get(e.stackedByDimension,h);for(var f=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&&d>=0&&v>0||"samesign"===l&&d<=0&&v<0){d=(0,tf.Tr)(d,v),f=v;break}}}return i[0]=d,i[1]=f,i})})}var ty=n(55785),tv=n(43583),tm=n(31440),t_=n(63811),tx=n(64586),tb=n(68532),tw=n(30070),tS=n(35032),tA=n(72059),tM=n(89425),tC=n(80266),tI=n(52228),tT=n(81275),tD=(0,O.$r)(),tk={itemStyle:(0,tC.A)(tI.L,!0),lineStyle:(0,tC.A)(tT.m,!0)},tO={lineStyle:"stroke",itemStyle:"fill"};function tL(t,e){var n=t.visualStyleMapper||tk[e];return n||(console.warn("Unknown style type '"+e+"'."),tk.itemStyle)}function tP(t,e){var n=t.visualDrawType||tO[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var tR=new L.A,tN=n(79620),tz=n(52384),tE=n(76265),tB=Math.PI,tV=n(87189),tF=n(3818),tH=function(){function t(t,e,n,i){this._stageTaskMap=(0,I.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,I.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,I.each)(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});(0,I.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,I.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 d=o.getPerformArgs(h,i.block);p.each(function(t){t.perform(d)}),h.perform(d)&&(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,I.createHashMap)(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||(0,tV.U)({plan:tU,reset:tZ,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,tV.U)({reset:tW});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=(0,I.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,tV.U)({reset:tG,onDirty:tX})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}(0,I.assert)(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(h=!1,(0,I.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,I.isFunction)(t)&&(t={overallReset:t,seriesType:function(t){a=null;try{t(t$,tQ)}catch(t){}return a}(t)}),t.uid=(0,tF.$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&&tY}function tY(){this.agent.dirty(),this.getDownstream().dirty()}function tX(){this.agent&&this.agent.dirty()}function tU(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function tZ(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,I.map)(e,function(t,e){return tj(e)}):tq}var tq=tj(0);function tj(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]=I.noop}tJ(t$,H),tJ(tQ,U),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(I.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};I.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 k.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}},ed="__flagInMainProcess",ef="__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(),k.A.prototype[e].apply(t,n)}var eb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,M.C6)(e,t),e}(k.A),ew=eb.prototype;ew.on=e_("on"),ew.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,I.isString)(n)&&(n=eO[n]),r._dom=e,i.ssr&&C.registerSSRDataGetter(function(t){var e=(0,tS.z)(t),n=e.dataIndex;if(null!=n){var i=(0,I.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=C.init(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,I.retrieve2)(i.useDirtyRect,!1),useCoarsePointer:(0,I.retrieve2)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=(0,tM.nF)((0,I.bind)(o.flush,o),17),(n=(0,I.clone)(n))&&td(n,!0),r._theme=n,r._locale=(0,er.A$)(i.locale||er.Lv),r._coordSysMgr=new Z.A;var a=r._api=b(r);function s(t,e){return t.__prio-e.__prio}return(0,D.A)(ek,s),(0,D.A)(eT,s),r._scheduler=new tH(r,a,eT,ek),r._messageCenter=new eb,r._initEvents(),r.resize=(0,I.bind)(r.resize,r),o.animation.on("frame",r._onframe,r),y(o,r),v(o,r),(0,I.setAsPrimitive)(r),r}return(0,M.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){A(this);var t=this._scheduler;if(this[ef]){var e=this[ef].silent;this[ed]=!0;try{s(this),h.update.call(this,null,this[ef].updateParams)}catch(t){throw this[ed]=!1,this[ef]=null,t}this._zr.flush(),this[ed]=!1,this[ef]=null,f.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[ed]){if(this._disposed)return void this.id;if((0,I.isObject)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[ed]=!0,!this._model||e){var i,r,o,a=new j(this._api),l=this._theme,u=this._model=new H;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,l,this._locale,a)}this._model.setOption(t,{replaceMerge:r},eD);var c={seriesTransition:o,optionChanged:!0};if(n)this[ef]={silent:i,updateParams:c},this[ed]=!1,this.getZr().wakeUp();else{try{s(this),h.update.call(this,null,c)}catch(t){throw this[ef]=null,this[ed]=!1,t}this._ssr||this._zr.flush(),this[ef]=null,this[ed]=!1,f.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||T.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(T.A.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,I.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,I.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,I.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,I.each)(eP,function(o,c){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas((0,I.clone)(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),u=r(d.bottom,u),h.push({dom:p,left:d.left,top:d.top})}}),a*=c,s*=c,l*=c,u*=c;var p=l-a,d=u-s,f=el.yh.createCanvas(),g=C.init(f,{renderer:e?"svg":"canvas"});if(g.resize({width:p,height:d}),!e)return t.connectedBackgroundColor&&g.add(new t_.A({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),(0,I.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(),f.toDataURL("image/"+(t&&t.type||"png"));var y="";return(0,I.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,I.each)(r,function(t,i){i.indexOf("Models")>=0&&(0,I.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,I.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,I.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,I.each)(eI,function(e,n){t._messageCenter.on(n,function(t){this.trigger(n,t)},t)}),(0,I.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(),eE,"");var t=this._api,e=this._model;(0,I.each)(this._componentsViews,function(n){n.dispose(e,t)}),(0,I.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 eP[this.id]},e.prototype.resize=function(t){if(!this[ed]){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[ef]&&(null==i&&(i=this[ef].silent),n=!0,this[ef]=null),this[ed]=!0;try{n&&s(this),h.update.call(this,{type:"resize",animation:(0,I.extend)({duration:0},t&&t.animation)})}catch(t){throw this[ed]=!1,t}this[ed]=!1,f.call(this,i),g.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if((0,I.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),eL[t]){var n=eL[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,I.extend)({},t);return e.type=eI[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if(((0,I.isObject)(e)||(e={silent:!!e}),eC[t.type])&&this._model){if(this[ed])return void this._pendingActions.push(t);var n=e.silent;d.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&T.A.browser.weChat&&this._throttledZrFlush(),f.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(!tb.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&&!tb.LR(t)){if(t instanceof tw.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,I.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,I.createHashMap)(),(0,I.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,I.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,I.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])})},d=function(t,e){var n,i=this,r=this.getModel(),o=t.type,a=t.escapeConnect,l=eC[o],c=l.actionInfo,p=(c.update||"update").split(":"),d=p.pop(),f=null!=p[0]&&(0,t8.CC)(p[0]);this[ed]=!0;var g=[t],y=!1;t.batch&&(y=!0,g=(0,I.map)(t.batch,function(e){return(e=(0,I.defaults)((0,I.extend)({},e),t)).batch=null,e}));var v=[],m=(0,tA.Lx)(t),_=(0,tA.T$)(t);if(_&&(0,tA.qR)(this._api),(0,I.each)(g,function(e){if((n=(n=l.action(e,i._model,i._api))||(0,I.extend)({},e)).type=c.event||n.type,v.push(n),_){var r=O.HB(t),o=r.queryOptionMap;u(i,d,e,r.mainTypeSpecified?o.keys()[0]:"series"),S(i)}else m?(u(i,d,e,"series"),S(i)):f&&u(i,d,e,f.main,f.sub)}),"none"!==d&&!_&&!m&&!f)try{this[ef]?(s(this),h.update.call(this,t),this[ef]=null):h[d].call(this,t)}catch(t){throw this[ed]=!1,t}if(n=y?{type:c.event||o,escapeConnect:a,batch:v}:v[0],this[ed]=!1,!e){var x=this._messageCenter;if(x.trigger(n.type,n),m){var b={type:"selectchanged",escapeConnect:a,selected:(0,tA.mc)(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};x.trigger(b.type,b)}}},f=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();d.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[ef]||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,D.A)(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),(0,I.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,I.each)(t._chartsViews,function(t){t.__alive=!1}),x(t,e,n,i,r),(0,I.each)(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},_=function(t,e,o,a,s,l){(0,I.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,d=t._scheduler;s=(0,I.extend)(s||{},{updatedSeries:e.getSeries()}),es.trigger("series:beforeupdate",e,o,s);var f=!1;e.eachSeries(function(e){var n,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var u=s.renderTask;d.updatePayload(u,a),i(e,s),l&&l.get(e.uid)&&u.dirty(),u.perform(d.getPerformArgs(u))&&(f=!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)}),d.unfinished=f||d.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"))||T.A.node||T.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){tb.LR(t)||e(t)}),t[eg]=!1)},b=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}(U))(t)},w=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][ev]=e}(0,I.each)(eI,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,I.each)(eP,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),(0,I.each)(r,function(t){1!==t[ev]&&t.dispatchAction(i)}),e(r,2)}})})}}(),e}(k.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"],eC={},eI={},eT=[],eD=[],ek=[],eO={},eL={},eP={},eR={},eN=new Date-0,ez=new Date-0,eE="_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++,eP[o.id]=o,i&&O.Bq(t,eE,o.id),w(o),es.trigger("afterinit",o),o}function eV(t){if((0,I.isArray)(t)){var e=t;t=null,(0,I.each)(e,function(e){null!=e.group&&(t=e.group)}),t=t||"g_"+ez++,(0,I.each)(e,function(e){e.group=t})}return eR[t]=!0,t}function eF(t){eR[t]=!1}var eH=eF;function eW(t){(0,I.isString)(t)?t=eP[t]:t instanceof eS||(t=eG(t)),t instanceof eS&&!t.isDisposed()&&t.dispose()}function eG(t){return eP[O.D$(t,eE)]}function eY(t){return eP[t]}function eX(t,e){eO[t]=e}function eU(t){0>(0,I.indexOf)(eD,t)&&eD.push(t)}function eZ(t,e){e5(eT,t,e,2e3)}function eq(t){eK("afterinit",t)}function ej(t){eK("afterupdate",t)}function eK(t,e){es.on(t,e)}function e$(t,e,n){(0,I.isFunction)(e)&&(n=e,e="");var i=(0,I.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),eI[e=t.event]||((0,I.assert)(ey.test(i)&&ey.test(e)),eC[i]||(eC[i]={action:n,actionInfo:t}),eI[e]=i)}function eQ(t,e){Z.A.register(t,e)}function eJ(t){var e=Z.A.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function e0(t,e){e5(ek,t,e,1e3,"layout")}function e1(t,e){e5(ek,t,e,3e3,"visual")}var e2=[];function e5(t,e,n,i,r){if(((0,I.isFunction)(e)||(0,I.isObject)(e))&&(n=e,e=i),!((0,I.indexOf)(e2,n)>=0)){e2.push(n);var o=tH.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function e3(t,e){eL[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=tL(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=tP(t,i),l=o[s],u=(0,I.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,I.isFunction)(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||(0,I.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,I.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=tL(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,I.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,I.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)),tD(t).scope=r}}),t.eachSeries(function(e){if(!(e.isColorBySeries()||t.isSeriesFiltered(e))){var n=e.getRawData(),i={},r=e.getData(),o=tD(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=tP(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,I.isFunction)(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual((0,I.extend)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=(0,I.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))}})}),eU(td),eZ(900,function(t){var e=(0,I.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)}),eL.default=function(t,e){e=e||{},I.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 tz.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 tE.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},I.noop),e$({type:tA.PW,event:tA.PW,update:tA.PW},I.noop),e$({type:tA.Lv,event:tA.Lv,update:tA.Lv},I.noop),e$({type:tA.U2,event:tA.U2,update:tA.U2},I.noop),e$({type:tA.Q6,event:tA.Q6,update:tA.Q6},I.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 d=t&&t.step;if(a?this._dueEnd=a._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,g=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!s&&(o||f<g)){var y=this._progress;if((0,i.isArray)(y))for(var v=0;v<y.length;v++)this._doProgress(y[v],f,g,c,p);else this._doProgress(y,f,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 d=0;d<c;d++)this._remove&&this._remove(u[d]);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 d(t){return t>65535?l:u}function f(){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]=f(),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]=f());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 d=p-s,f=0;f<o;f++){var h=r[f],y=i.arrayRows.call(this,t[d]||c,h.property,d,f);n[f][p]=y;var v=a[f];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]=f()),g(o,h,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,l);else for(var p=[],d=t;d<e;d++){p=i.getItem(d,p);for(var y=0;y<s;y++){var v=o[y],m=this._dimValueGetter(p,u[y],d,y);v[d]=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=d(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(d(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 f=0;f<a;f++)o[f]=u[t[f]][p];o[f]=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(d(e._rawCount))(a),l=0,u=i[0],h=t[u][0],c=t[u][1],p=e._chunks,f=!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++}f=!0}else if(2===o){for(var y=p[i[0]],_=p[i[1]],x=t[i[1]][0],b=t[i[1]][1],v=0;v<n;v++){var m=y[v],w=_[v];(m>=h&&m<=c||isNaN(m))&&(w>=x&&w<=b||isNaN(w))&&(s[l++]=g),g++}f=!0}}if(!f)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 C=i[M],m=p[C][S];(m<t[C][0]||m>t[C][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]]=f();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 d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(var u=0;u<d.length;u++){var g=e[u],y=d[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(d(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 f=Math.min(p+u,s-1),g=Math.min(p+2*u,s),y=(g+f)/2,v=0,m=f;m<g;m++){var _=this.getRawIndex(m),x=a[_];isNaN(x)||(v+=x)}v/=g-f;var b=p,w=Math.min(p+u,s),S=p-1,A=a[h];n=-1,r=b;for(var M=-1,C=0,m=b;m<w;m++){var _=this.getRawIndex(m),x=a[_];if(isNaN(x)){C++,M<0&&(M=_);continue}(i=Math.abs((S-y)*(x-A)-(S-m)*(v-A)))>n&&(n=i,r=_)}C>0&&C<w-b&&(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]=f(),c=new(d(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=f();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:()=>I});var i,r,o,a,s,l,u,h=n(4884),c=n(25744),p=n(31393),d=n(98609),f=n(1122),g=n(75017),y=n(95056),v=n(84124),m=n(35032),_=n(79576),x=n(50020),b=n(2442),w=h.isObject,S=h.map,A="undefined"==typeof Int32Array?Array:Int32Array,M=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],C=["_approximateExtent"];let I=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,b.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),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var f=p.otherDims=p.otherDims||{};o.push(d),r[d]=p,null!=l[d]&&(s=!0),p.createInvertedIndices&&(a[d]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.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 d.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,f.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){w(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||{},w(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():w(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,w(e)?h.extend(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(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(C,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:d(s),startIndex:u,dimensionsDetectedCount:l};if(e===r.Km){var l,u;"auto"===a||null==a?f(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=[],f(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:d(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 d(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 f(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,d=this.dimensions[l];if(d&&d.storeDimIndex===a)u=e?d.name:null,h=d.type,c=d.ordinalMeta,l++;else{var f=this.getSourceDimension(a);f&&(u=e?f.name:null,h=f.type)}r.push({property:u,type:h,ordinalMeta:c}),!e||null==u||d&&d.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,d,f,g=(e=e||{}).coordDimensions||[],y=e.dimensionsDefine||t.dimensionsDefine||[],v=(0,o.createHashMap)(),m=[],_=(n=t,c=g,p=y,d=e.dimensionsCount,f=Math.max(n.dimensionsDetectedCount||1,c.length,p.length,d||0),(0,o.each)(c,function(t){var e;(0,o.isObject)(t)&&(e=t.dimsDef)&&(f=Math.max(f,e.length))}),f),x=e.canOmitUnusedDimensions&&(0,h.eS)(_),b=y===t.dimensionsDefine,w=b?(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_(_),C=0;C<M.length;C++)M[C]=-1;function I(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!=w.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 C=0;C<_;C++)I(C);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)?w.get(t):t;null!=r&&r<_&&(i[n]=r,D(I(r),e,n))})});var T=0;function D(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(;T<_&&null!=I(T).coordDim;)T++;T<_&&s.push(T++)}(0,o.each)(s,function(t,a){var s=I(t);if(b&&null!=i.type&&(s.type=i.type),D((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 k=e.generateCoord,O=e.generateCoordCount,L=null!=O;O=k?O||1:0;var P=k||"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 z=I(N);null==z.coordDim&&(z.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}(P,v,L),z.coordDimIndex=0,(!k||O<=0)&&(z.isExtraCoord=!0),O--),R(z),null==z.type&&((0,u.PU)(t,N)===u.sc.Must||z.isExtraCoord&&(null!=z.otherDims.itemName||null!=z.otherDims.seriesName))&&(z.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:()=>b});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,d=a[w(s,u)];if((0,l.extend)(t,d),s===c.XO)t.getItem=e,t.count=i,t.fillStorage=n;else{var f=g(s,u);t.getItem=(0,l.bind)(f,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 d=r[p*o+a];c[t+p]=d,d<l&&(l=d),d>u&&(u=d)}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}(),d=function(t,e,n,i){return t[i]},f=((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]=d,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]=d,i);function g(t,e){return f[w(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[w(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 b(t){return x[t]}function w(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,d=(n=n||{}).byIndex,f=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&&(d||u||!t.ordinalMeta||(u=t),h||"ordinal"===t.type||"time"===t.type||f&&f!==t.coordDim||(h=t))}),!h||d||u||(d=!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:d,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:()=>d});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 d(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=[],d={};l.each(function(t,e){var n=a[e];d[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=d;var f=a.label;f&&f.length&&(u=f.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:()=>d,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,d=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 f=p.get(d)||p.set(d,{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=f.valueWayDim;g(a[n],o,r),g(h,o,r),f.valueWayDim+=r}else if(i===e)g(a[n],0,r),g(u,0,r);else{var o=f.categoryWayDim;g(a[n],o,r),g(h,o,r),f.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=f(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),d(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 d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(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 d(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,n,s,l,u){var h,c,p;if((0,r.isTypedArray)(t))return a.Not;if(s){var d=s[u];(0,r.isObject)(d)?(c=d.name,p=d.type):(0,r.isString)(d)&&(c=d)}if(null!=p)return"ordinal"===p?a.Must:a.Not;if(e===o.Km)if(n===o.oC){for(var f=t[u],g=0;g<(f||[]).length&&g<5;g++)if(null!=(h=_(f[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 f=t[c];if(!f||(0,r.isTypedArray)(f))return a.Not;for(var g=0;g<f.length&&g<5;g++)if(null!=(h=_(f[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 d=this._getSourceMetaRawOption()||{},f=h&&h.metaRawOption||{},g=(0,i.retrieve2)(d.seriesLayoutBy,f.seriesLayoutBy)||null,y=(0,i.retrieve2)(d.sourceHeader,f.sourceHeader),v=(0,i.retrieve2)(d.dimensions,f.dimensions);t=g!==f.seriesLayoutBy||!!y!=!!f.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&&d("");var l=[],u=[];return(0,i.each)(t,function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||d(""),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 d(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 d(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 f(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 b=(0,a.uQ)(s);n.retrieveValue=function(t,e){return w(_(r,u,g,t),e)};var w=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=g[e];if(n)return b(t,e,n.name)}};return n.getDimensionInfo=(0,o.bind)(d,null,g,y),n.cloneAllDimensionInfo=(0,o.bind)(f,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)}}},82883:function(t,e,n){n.d(e,{QK:()=>T,YI:()=>I,eR:()=>O,lB:()=>A,rv:()=>L});var i=n(45400),r=n(30070),o=n(88297),a=n(40843),s=n(50391),l=n(26989),u=n(4884),h=n(37817),c=n(28535),p=n(72059),d=2*Math.PI,f=a.A.CMD,g=["top","right","bottom","left"];function y(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,h=Math.sqrt(l*l+u*u),c=((r-t)*(l/=h)+(o-e)*(u/=h))/h;s&&(c=Math.min(Math.max(c,0),1)),c*=h;var p=a[0]=t+c*l,d=a[1]=e+c*u;return Math.sqrt((p-r)*(p-r)+(d-o)*(d-o))}function v(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),h=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}var m=[],_=new i.A,x=new i.A,b=new i.A,w=new i.A,S=new i.A;function A(t,e){if(t){var n=t.getTextGuideLine(),o=t.getTextContent();if(o&&n){var a=t.textGuideLineConfig||{},u=[[0,0],[0,0],[0,0]],c=a.candidates||g,p=o.getBoundingRect().clone();p.applyTransform(o.getComputedTransform());var S=1/0,A=a.anchor,M=t.getComputedTransform(),C=M&&(0,h.invert)([],M),T=e.get("length2")||0;A&&b.copy(A);for(var D=0;D<c.length;D++){!function(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-0),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+0),r.set(0,1);break;case"left":i.set(n.x-0,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+0,n.y+a/2),r.set(1,0)}}(c[D],0,p,_,w),i.A.scaleAndAdd(x,_,w,T),x.transform(C);var k=t.getBoundingRect(),O=A?A.distance(x):t instanceof r.Ay?function(t,e,n){for(var i,r,o=0,a=0,u=0,h=0,c=1/0,p=e.data,g=t.x,_=t.y,x=0;x<p.length;){var b=p[x++];1===x&&(o=p[x],a=p[x+1],u=o,h=a);var w=c;switch(b){case f.M:u=p[x++],h=p[x++],o=u,a=h;break;case f.L:w=y(o,a,p[x],p[x+1],g,_,m,!0),o=p[x++],a=p[x++];break;case f.C:w=(0,l.Et)(o,a,p[x++],p[x++],p[x++],p[x++],p[x],p[x+1],g,_,m),o=p[x++],a=p[x++];break;case f.Q:w=(0,l.kh)(o,a,p[x++],p[x++],p[x],p[x+1],g,_,m),o=p[x++],a=p[x++];break;case f.A:var S=p[x++],A=p[x++],M=p[x++],C=p[x++],I=p[x++],T=p[x++];x+=1;var D=!!(1-p[x++]);i=Math.cos(I)*M+S,r=Math.sin(I)*C+A,x<=1&&(u=i,h=r);var k=(g-S)*C/M+S;w=function(t,e,n,i,r,o,a,l,u){var h=Math.sqrt((a-=t)*a+(l-=e)*l),c=(a/=h)*n+t,p=(l/=h)*n+e;if(Math.abs(i-r)%d<1e-4)return u[0]=c,u[1]=p,h-n;if(o){var f=i;i=(0,s.n)(r),r=(0,s.n)(f)}else i=(0,s.n)(i),r=(0,s.n)(r);i>r&&(r+=d);var g=Math.atan2(l,a);if(g<0&&(g+=d),g>=i&&g<=r||g+d>=i&&g+d<=r)return u[0]=c,u[1]=p,h-n;var y=n*Math.cos(i)+t,v=n*Math.sin(i)+e,m=n*Math.cos(r)+t,_=n*Math.sin(r)+e,x=(y-a)*(y-a)+(v-l)*(v-l),b=(m-a)*(m-a)+(_-l)*(_-l);return x<b?(u[0]=y,u[1]=v,Math.sqrt(x)):(u[0]=m,u[1]=_,Math.sqrt(b))}(S,A,C,I,I+T,D,k,_,m),o=Math.cos(I+T)*M+S,a=Math.sin(I+T)*C+A;break;case f.R:w=v(u=o=p[x++],h=a=p[x++],p[x++],p[x++],g,_,m);break;case f.Z:w=y(o,a,u,h,g,_,m,!0),o=u,a=h}w<c&&(c=w,n.set(m[0],m[1]))}return c}(x,t.path,b):function(t,e,n){var i=v(e.x,e.y,e.width,e.height,t.x,t.y,m);return n.set(m[0],m[1]),i}(x,k,b);O<S&&(S=O,x.transform(M),b.transform(M),b.toArray(u[0]),x.toArray(u[1]),_.toArray(u[2]))}I(u,e.get("minTurnAngle")),n.setShape({points:u})}}}var M=[],C=new i.A;function I(t,e){if(e<=180&&e>0){e=e/180*Math.PI,_.fromArray(t[0]),x.fromArray(t[1]),b.fromArray(t[2]),i.A.sub(w,_,x),i.A.sub(S,b,x);var n=w.len(),r=S.len();if(!(n<.001)&&!(r<.001)&&(w.scale(1/n),S.scale(1/r),Math.cos(e)<w.dot(S))){var o=y(x.x,x.y,b.x,b.y,_.x,_.y,M,!1);C.fromArray(M),C.scaleAndAdd(S,o/Math.tan(Math.PI-e));var a=b.x!==x.x?(C.x-x.x)/(b.x-x.x):(C.y-x.y)/(b.y-x.y);if(isNaN(a))return;a<0?i.A.copy(C,x):a>1&&i.A.copy(C,b),C.toArray(t[1])}}}function T(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,_.fromArray(t[0]),x.fromArray(t[1]),b.fromArray(t[2]),i.A.sub(w,x,_),i.A.sub(S,b,x);var r=w.len(),o=S.len();if(!(r<.001)&&!(o<.001)&&(w.scale(1/r),S.scale(1/o),w.dot(e)<Math.cos(n))){var a=y(x.x,x.y,b.x,b.y,_.x,_.y,M,!1);C.fromArray(M);var s=Math.PI/2,l=s+Math.acos(S.dot(e))-n;if(l>=s)i.A.copy(C,b);else{C.scaleAndAdd(S,a/Math.tan(Math.PI/2-l));var u=b.x!==x.x?(C.x-x.x)/(b.x-x.x):(C.y-x.y)/(b.y-x.y);if(isNaN(u))return;u<0?i.A.copy(C,x):u>1&&i.A.copy(C,b)}C.toArray(t[1])}}}function D(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function k(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=c.dist(i[0],i[1]),o=c.dist(i[1],i[2]);if(!r||!o){t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]);return}var a=Math.min(r,o)*n,s=c.lerp([],i[1],i[0],a/r),l=c.lerp([],i[1],i[2],a/o),u=c.lerp([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)t.lineTo(i[h][0],i[h][1])}function O(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(!r){i&&t.removeTextGuideLine();return}for(var a=e.normal,s=a.get("show"),l=r.ignore,h=0;h<p.wV.length;h++){var c=p.wV[h],d=e[c],f="normal"===c;if(d){var g=d.get("show");if((f?l:(0,u.retrieve2)(r.states[c]&&r.states[c].ignore,l))||!(0,u.retrieve2)(g,s)){var y=f?i:i&&i.states[c];y&&(y.ignore=!0),i&&D(i,!0,c,d);continue}!i&&(i=new o.A,t.setTextGuideLine(i),f||!l&&s||D(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),D(i,!1,c,d)}}if(i){(0,u.defaults)(i.style,n),i.style.fill=null;var v=a.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=v||!1,i.buildPath=k}}function L(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<p.BV.length;i++){var r=p.BV[i];n[r]=t.getModel([r,e])}return n}},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=[],d=0,f=0;f<u;f++){var g=t[f],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),d+=v,h=y[e]+y[n]}d>0&&o&&w(-d/u,0,u);var m=t[0],_=t[u-1];return x(),s<0&&S(-s,.8),l<0&&S(l,.8),x(),b(s,l,1),b(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 b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,u);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(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;w(p,0,s+1)}else for(var s=u-1;s>0;s--){var p=o[s-1]*c;w(-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?w(n,0,i+1):w(-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 d=s.obb,f=!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)),d||(d=new i.A(u,h)),d.intersect(y.obb)))){f=!0;break}}f?(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:()=>b,VB:()=>d,c8:()=>_,lx:()=>p,qM:()=>c,sD:()=>f,xb:()=>w});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],d=e[p];h[p]=(0,r.retrieve2)(a?a.getFormattedLabel(s,p,null,l,d&&d.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"),b=d(m,a&&a.normal,n,!1,!s);b.text=v.normal,s||t.setTextConfig(f(m,n,!1));for(var p=0;p<o.BV.length;p++){var w=o.BV[p],g=e[w];if(g){var S=y.ensureState(w),A=!!(0,r.retrieve2)(g.getShallow("show"),_);A!==_&&(S.ignore=!A),S.style=d(g,a&&a[w],n,!0,!s),S.style.text=v[w],s||(t.ensureState(w).textConfig=f(g,n,!0))}}y.silent=!!m.getShallow("silent"),null!=y.style.x&&(b.x=y.style.x),null!=y.style.y&&(b.y=y.style.y),y.ignore=!_,y.useStyle(b),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 d(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 d=e.get("overflow");d&&(t.overflow=d);var f=e.get("minMargin");null!=f&&(t.margin=f),m(t,e,u,n,i,o,!0,!1)}(a,t,n,i,o),e&&(0,r.extend)(a,e),a}function f(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"),d=(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 f=(0,r.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);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!=d||u||(d=i&&i.defaultOpacity),null!=d&&(t.opacity=d),o||a||null!=t.fill||!i.inheritColor||(t.fill=i.inheritColor);for(var x=0;x<g.length;x++){var b=g[x],w=(0,r.retrieve2)(e.getShallow(b),n[b]);null!=w&&(t[b]=w)}for(var x=0;x<y.length;x++){var b=y[x],w=e.getShallow(b);null!=w&&(t[b]=w)}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 b=v[x],w=e.getShallow(b);null!=w&&(t[b]=w)}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 b(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 w(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),d=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,d,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:()=>d});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=f(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 d(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 d=t.getData();i=Math.abs(a[1]-a[0])/d.count()}var f=(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:f,barMaxWidth:g,barMinWidth:y,barGap:v,barCategoryGap:m,axisKey:h(o),stackId:u(t)})}),f(n)}function f(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,d=(c-u)/(p+(p-1)*h);d=Math.max(d,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=d;e&&e<i&&(i=Math.min(e,c)),n&&n>i&&(i=n),i!==d&&(t.width=i,c-=i+h*i,p--)}}),d=Math.max(d=(c-u)/(p+(p-1)*h),0);var f=0;(0,i.each)(a,function(t,e){t.width||(t.width=d),o=t,f+=t.width*(1+h)}),o&&(f-=o.width*h);var g=-f/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=d(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"),d=(0,o.sJ)(n,c)&&!!n.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),g=(e=a).toGlobalCoord(e.dataToCoord(+("log"===e.type))),y=_(t),v=t.get("barMinHeight")||0,x=p&&n.getDimensionIndex(p),b=n.getLayout("size"),w=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=f?p.width:p.height,_=e.getStore(),S=0;null!=(n=t.next());){var A=_.get(d?x:l,n),M=_.get(u,n),C=g,I=void 0;d&&(I=A-_.get(l,n));var T=void 0,D=void 0,k=void 0,O=void 0;if(f){var L=i.dataToPoint([A,M]);if(d){var P=i.dataToPoint([I,M]);C=P[0]}T=C,D=L[1]+w,k=L[0]-C,O=b,Math.abs(k)<v&&(k=(k<0?-1:1)*v)}else{var L=i.dataToPoint([M,A]);if(d){var P=i.dataToPoint([M,I]);C=P[1]}T=L[0]+w,D=C,k=b,Math.abs(O=L[1]-C)<v&&(O=(O<=0?-1:1)*v)}y?(o[S]=T,o[S+1]=D,o[S+2]=f?k:O,a&&(a[S]=f?p.x:T,a[S+1]=f?D:p.y,a[S+2]=m),c[n]=n):e.setItemLayout(n,{x:T,y:D,width:k,height:O}),S+=3}y&&e.setLayout({largePoints:o,largeDataIndices:c,largeBackgroundPoints:a,valueAxisHorizontal:f})}}}}}}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(),d=n.getDimensionIndex(u[0]),f=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(d,u);g=r.dataToPoint(y,null,s)}else o[0]=p.get(d,u),o[1]=p.get(f,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}(),d=n(81275),f=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,d.J),(0,g.mixin)(y,f.s),(0,g.mixin)(y,a),(0,g.mixin)(y,p);let v=y},55785:function(t,e,n){n.d(e,{A:()=>C,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),d=n(66282),f=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:b}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(g(this).sourceManager=new d.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,f.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 b(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(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 C=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}}},31069:function(t,e,n){n.d(e,{A:()=>i});function i(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf(function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0})}}}}},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(),d=n.getDevicePixelRatio(),f=Math.round(u/(Math.abs(p[1]-p[0])*(d||1)));if(isFinite(f)&&f>1){"lttb"===s&&t.setData(a.lttbDownSample(a.mapDimension(c.dim),1/f));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/f,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 d=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 d=t.width*t.height,f=c.width*c.height,g=l.width*l.height-d-f;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 d=t[p];if(d){var f=d.shouldBePainted(n,i,!0,!0),g=d.__isRendered&&(d.__dirty&h.M||!f)?d.getPrevPaintRect():null;g&&c(g);var y=f&&(d.__dirty&h.M||!d.__isRendered)?d.getPaintRect():null;y&&c(y)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var d=e[p],f=d&&d.shouldBePainted(n,i,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var g=d.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,d=this;h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/p,u/p));var f=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(){d.setUnpainted(),d.painter.refresh()}})),o.save(),o.fillStyle=u||e,o.fillRect(t,n,i,a),o.restore()}h&&(o.save(),o.globalAlpha=c,o.drawImage(f,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),f=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 d(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 f,g,y,v=this._domRoot=(f=this._width,g=this._height,(y=document.createElement("div")).style.cssText=["position:relative","width:"+f+"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,f.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,d=0;d<o.length;d++)!function(r){var s,l=o[r],u=l.ctx,d=a&&l.createRepaintRects(t,e,p._width,p._height),f=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,d);else if(f===l.__startIndex){var m=t[f];m.incremental&&m.notClear&&!n||l.clear(!1,v,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;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(d)if(0===d.length)s=l.__endIndex;else for(var x=p.dpr,b=0;b<d.length;++b){var w=d[b];u.save(),u.beginPath(),u.rect(w.x*x,w.y*x,w.width*x,w.height*x),u.clip(),_(w),u.restore()}else u.save(),_(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)}(d);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 d("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 d("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:()=>f});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,f=0;f<a.length&&s++<1e4;++f){var g=(0,o.ym)(a[f]);if((0,o.ce)(a[f])&&(!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")},d=function(){return p()&&l("minute")},f=function(){return d()&&l("second")};switch(t){case"year":return u();case"month":return h();case"day":return c();case"hour":return p();case"minute":return d();case"second":return f();case"millisecond":return f()&&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 f,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=(f=e/(30*o.CZ))>6?6:f>3?3:f>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=d(e,!0),m=(0,o.yB)(n),_=(0,o.KF)(n);break;case"second":v=d(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[f],l[l.length-1]||[],h),g!==(a[f+1]?(0,o.ym)(a[f+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[f]))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}),b=[],w=x.length-1,f=0;f<x.length;++f)for(var S=x[f],A=0;A<S.length;++A)b.push({value:S[A].value,level:w-f});b.sort(function(t,e){return t.value-e.value});for(var M=[],f=0;f<b.length;++f)(0===f||b[f].value!==b[f-1].value)&&M.push(b[f]);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 d(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 f=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=d,n.superApply=f,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 d(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 f(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,d={};for(i.each(t,function(t){d[t]=!0});p.length;){var f=p.pop(),g=c[f],y=!!d[f];y&&(o.call(a,f,g.originalDeps.slice()),delete d[f]),i.each(g.successor,y?m:v)}i.each(d,function(){throw Error("")})}function v(t){c[t].entryCount--,0===c[t].entryCount&&p.push(t)}function m(t){d[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,d=new a.Ay(100),f=["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<f.length;++m){var _=a[f[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=d.get(o);x&&(r?t.svgElement=x:t.image=x)}var b=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),w=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=b,(0,s.map)(e,function(t){return y(t)})),M=y(w),C=!r&&c.yh.createCanvas(),I=r&&{tag:"g",attrs:{},key:"dcl",children:[]},T=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))}}();C&&(C.width=T.width*n,C.height=T.height*n,p=C.getContext("2d")),function(){p&&(p.clearRect(0,0,C.width,C.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,C.width,C.height)));for(var t=0,e=0;e<w.length;++e)t+=w[e];if(!(t<=0))for(var o=-M,s=0,l=0,c=0;o<T.height;){if(s%2==0){for(var d=l/2%S.length,f=0,g=0,y=0;f<2*T.width;){for(var v=0,e=0;e<b[c].length;++e)v+=b[c][e];if(v<=0)break;if(g%2==0){var m=(1-a.symbolSize)*.5,_=f+b[c][g]*m,x=o+w[s]*m,A=b[c][g]*a.symbolSize,D=w[s]*a.symbolSize,k=y/2%S[d].length;!function(t,e,o,s,l){var c=r?1:n,d=(0,u.v5)(l,t*c,e*c,o*c,s*c,a.color,a.symbolKeepAspect);if(r){var f=i.painter.renderOneToVNode(d);f&&I.children.push(f)}else(0,h.Xi)(p,d)}(_,x,A,D,S[d][k])}f+=b[c][g],++y,++g===b[c].length&&(g=0)}++c===b.length&&(c=0)}o+=w[s],++l,++s===w.length&&(s=0)}}(),v&&d.put(o,C||I),t.image=C,t.svgElement=I,t.svgWidth=T.width,t.svgHeight=T.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:()=>d,fU:()=>y,he:()=>m,io:()=>f,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 d(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 d=e[u][a[h]];t=t.replace(p(c[h],u),n?(0,r.Me)(d):d)}return t}function f(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"](),d=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)(d,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:()=>b.A,Ellipse:()=>p.A,Group:()=>u.A,Image:()=>l.Ay,IncrementalDisplayable:()=>I.A,Line:()=>m.A,LinearGradient:()=>w.A,OrientedBoundingRect:()=>M.A,Path:()=>a.Ay,Point:()=>C.A,Polygon:()=>g.A,Polyline:()=>y.A,RadialGradient:()=>S.A,Rect:()=>v.A,Ring:()=>f.A,Sector:()=>d.A,Text:()=>h.Ay,applyTransform:()=>j,clipPointsByRect:()=>Q,clipRectByRect:()=>J,createIcon:()=>tt,extendPath:()=>E,extendShape:()=>N,getShapeClass:()=>V,getTransform:()=>q,groupTransition:()=>$,initProps:()=>O.LW,isElementRemoved:()=>O.LR,lineLineIntersect:()=>tn,linePolygonIntersect:()=>te,makeImage:()=>H,makePath:()=>F,mergePath:()=>G,registerShape:()=>B,removeElement:()=>O.Nz,removeElementWithFadeOut:()=>O.t5,resizePath:()=>Y,setTooltipConfig:()=>ti,subPixelOptimize:()=>Z,subPixelOptimizeLine:()=>X,subPixelOptimizeRect:()=>U,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),d=n(23917),f=n(26839),g=n(97451),y=n(88297),v=n(63811),m=n(28887),_=n(95163),x=n(76265),b=n(58933),w=n(87142),S=n(12152),A=n(51690),M=n(14230),C=n(45400),I=n(83081),T=n(33915),D=n(4884),k=n(35032),O=n(68532),L=Math.max,P=Math.min,R={};function N(t){return a.Ay.extend(t)}var z=i.Qh;function E(t,e){return z(t,e)}function B(t,e){R[t]=e}function V(t){if(R.hasOwnProperty(t))return R[t]}function F(t,e,n,r){var o=i.UJ(t,e);return n&&("center"===r&&(n=W(n,o.getBoundingRect())),Y(o,n)),o}function H(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 Y(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function X(t,e){return T.eB(t,t,{lineWidth:e}),t}function U(t){return T.Op(t.shape,t.shape,t.style),t}var Z=T.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 j(t,e,n){return e&&!(0,D.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=j(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,k.z)(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=(0,D.extend)({},t.shape)),e}}function Q(t,e){return(0,D.map)(t,function(t){var n=t[0];n=P(n=L(n,e.x),e.x+e.width);var i=t[1];return[n,i=P(i=L(i,e.y),e.y+e.height)]})}function J(t,e){var n=L(t.x,e.x),i=P(t.x+t.width,e.x+e.width),r=L(t.y,e.y),o=P(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,D.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,D.defaults)(r,n),new l.Ay(i)):F(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,d=c*h-u*p;if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,y=(f*h-u*g)/d;if(y<0||y>1)return!1;var v=(f*p-c*g)/d;return!(v<0)&&!(v>1)}function ti(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=(0,D.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,D.each)((0,D.keys)(l),function(t){(0,D.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=(0,k.z)(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:(0,D.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,D.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=d.A,R.ring=f.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:()=>d,m$:()=>f,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(),d=e.childAt(u+1),f=d&&d.getBoundingRect();if("horizontal"===t){var g=p.width+(f?-f.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+(f?-f.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 d(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),d=(0,o.lo)(t.height,s),f=n[2]+n[0],g=n[1]+n[3],y=t.aspect;switch(isNaN(p)&&(p=i-h-g-l),isNaN(d)&&(d=s-c-f-u),null!=y&&(isNaN(p)&&isNaN(d)&&(y>i/s?p=.8*i:d=.8*s),isNaN(p)&&(p=y*d),isNaN(d)&&(d=p/y)),isNaN(l)&&(l=i-h-p-g),isNaN(u)&&(u=s-c-d-f),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-d/2-n[0];break;case"bottom":u=s-d-f}l=l||0,u=u||0,isNaN(p)&&(p=i-g-l-(h||0)),isNaN(d)&&(d=s-f-u-(c||0));var v=new r.A(l+n[3],u+n[0],p,d);return v.margin=n,v}function f(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 f=d(i.defaults({width:l.width,height:l.height},e),n,o),g=u?f.x-l.x:0,y=h?f.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 d=n[p];if(!h(o,d)&&h(t,d)){o[d]=t[d];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:()=>k,D$:()=>O,D6:()=>b,GX:()=>x,HB:()=>C,Il:()=>R,JO:()=>D,JS:()=>h,M5:()=>u,O0:()=>v,O2:()=>d,S_:()=>_,Sq:()=>P,US:()=>I,UW:()=>T,XJ:()=>L,_e:()=>M,le:()=>w,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 d(t,e,n){var r,o,s,l,u,h,c,p,d,y,v,_,x,b="normalMerge"===n,w="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(b||w)&&(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}}})),b&&(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)&&f("name",i,t)){u[n].newOption=t,h[e]=null;return}}})),b||w?(c=M,p=e,d=w,(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&&!f("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=d):c.push({newOption:t,brandNew:d,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 f(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 b(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 w(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=C(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=D(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 C(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 I={useDefault:!0,enableAll:!1,enableNone:!1},T={useDefault:!1,enableAll:!0,enableNone:!0};function D(t,e,n,r){r=r||I;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 k(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 L(t){return"auto"===t?r.A.domSupported?"html":"richText":t||"html"}function P(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 d=t.getDimensionInfo(p);if(d&&"ordinal"===d.type)h[p]=(a<1&&n?n:r)[p];else{var f=n&&n[p]?n[p]:0,g=r[p],u=(g-f)*a+f;h[p]=(0,o.LI)(u,s?Math.max((0,o.XV)(f),(0,o.XV)(g)):e)}}return h}},21916:function(t,e,n){n.d(e,{Cb:()=>r,Cm:()=>b,IH:()=>C,Is:()=>f,LI:()=>a,NX:()=>x,Sm:()=>A,Tr:()=>d,XV:()=>l,Y6:()=>s,YV:()=>w,_7:()=>g,_U:()=>m,au:()=>_,dh:()=>y,hb:()=>h,kM:()=>p,kf:()=>M,lQ:()=>I,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,d=u.length;p<d;++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 d(t,e){var n=Math.max(l(t),l(e)),i=t+e;return n>20?i:a(i,n)}var f=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 b(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 w(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 C(){return Math.round(9*Math.random())}function I(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)}},88556:function(t,e,n){n.d(e,{A:()=>a});var i=n(31831),r=n(30070),o=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0};let a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}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=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=(o-r)*.5,s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,p=h?u-l<c:l-u<c;p||(l=u-(h?c:-c));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);p?(t.moveTo(d*r+n,f*r+i),t.arc(d*s+n,f*s+i,a,-Math.PI+l,l,!h)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!h),t.arc(g*s+n,y*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==r&&t.arc(n,i,r,u,l,h)},e}(r.Ay)},72059:function(t,e,n){n.d(e,{BV:()=>f,CA:()=>y,DW:()=>P,Du:()=>X,HY:()=>z,Iz:()=>j,JC:()=>V,JI:()=>F,Lm:()=>tt,Lv:()=>_,Lx:()=>tu,Mx:()=>tr,PW:()=>m,Pk:()=>O,Q6:()=>b,QX:()=>B,SD:()=>E,T$:()=>th,Tl:()=>Z,U2:()=>x,_m:()=>q,_n:()=>tl,e3:()=>d,fz:()=>tc,gR:()=>te,gd:()=>H,h5:()=>v,iJ:()=>J,ix:()=>to,jA:()=>$,lV:()=>U,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,d=2,f=["emphasis","blur","select"],g=["normal","emphasis","blur","select"],y=10,v="highlight",m="downplay",_="select",x="unselect",b="toggleSelect";function w(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",d)}function M(t){t.hoverState===d&&S(t,"normal",0)}function C(t){S(t,"blur",p)}function I(t){t.hoverState===p&&S(t,"normal",0)}function T(t){t.selected=!0}function D(t){t.selected=!1}function k(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=d;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function L(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(w(c)||w(p)){var d=(r=r||{}).style||{};"inherit"===d.fill?(l=!0,r=(0,i.extend)({},r),(d=(0,i.extend)({},d)).fill=c):!w(d.fill)&&w(c)?(l=!0,r=(0,i.extend)({},r),(d=(0,i.extend)({},d)).fill=(0,o.liftColor)(c)):!w(d.stroke)&&w(p)&&(l||(r=(0,i.extend)({},r),d=(0,i.extend)({},d)),d.stroke=(0,o.liftColor)(p)),r.style=d}}if(r&&null==r.z2){l||(r=(0,i.extend)({},r));var f=t.z2EmphasisLift;r.z2=t.z2+(null!=f?f: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 d=this.z2SelectLift;p.z2=this.z2+(null!=d?d:9)}return p}}return c}function P(t){t.stateProxy=L;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=L),n&&(n.stateProxy=L)}function R(t,e){W(t,e)||t.__highByOuter||k(t,A)}function N(t,e){W(t,e)||t.__highByOuter||k(t,M)}function z(t,e){t.__highByOuter|=1<<(e||0),k(t,A)}function E(t,e){(t.__highByOuter&=~(1<<(e||0)))||k(t,M)}function B(t){k(t,C)}function V(t){k(t,I)}function F(t){k(t,T)}function H(t){k(t,D)}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){I(t)}),a&&n.push(i)),o.isBlured=!1}),(0,i.each)(r,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)})}function Y(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&&V(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||C(t)}),(0,i.isArrayLike)(e))a(t.getData(),e);else if((0,i.isObject)(e))for(var d=(0,i.keys)(e),f=0;f<d.length;f++)a(t.getData(d[f]),e[d[f]]);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 X(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){C(t)})}}}function U(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);Y(o,p.focus,p.blurScope,n)}else{var d=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=d&&Y(o,d,f,n)}}}function Z(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=Z(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&X(o.componentMainType,o.componentIndex,n),(0,i.each)(s,function(t){return R(t,e)})):(Y(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&X(o.componentMainType,o.componentIndex,n),R(t,e))}function j(t,e,n){G(n);var o=(0,r.z)(t),a=Z(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===b?"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)?F(e):H(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),k(t,P),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===b}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}},45106:function(t,e,n){n.d(e,{Fs:()=>s,ex:()=>r,lH:()=>o});var i=n(4884);function r(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||(0,i.hasOwn)(t,"text")))}function o(t,e,n){var r,o,s;if("text"===e)s=t;else{s={},(0,i.hasOwn)(t,"text")&&(s.text=t.text),(0,i.hasOwn)(t,"rich")&&(s.rich=t.rich),(0,i.hasOwn)(t,"textFill")&&(s.fill=t.textFill),(0,i.hasOwn)(t,"textStroke")&&(s.stroke=t.textStroke),(0,i.hasOwn)(t,"fontFamily")&&(s.fontFamily=t.fontFamily),(0,i.hasOwn)(t,"fontSize")&&(s.fontSize=t.fontSize),(0,i.hasOwn)(t,"fontStyle")&&(s.fontStyle=t.fontStyle),(0,i.hasOwn)(t,"fontWeight")&&(s.fontWeight=t.fontWeight),o={type:"text",style:s,silent:!0},r={};var l=(0,i.hasOwn)(t,"textPosition");n?r.position=l?t.textPosition:"inside":l&&(r.position=t.textPosition),(0,i.hasOwn)(t,"textPosition")&&(r.position=t.textPosition),(0,i.hasOwn)(t,"textOffset")&&(r.offset=t.textOffset),(0,i.hasOwn)(t,"textRotation")&&(r.rotation=t.textRotation),(0,i.hasOwn)(t,"textDistance")&&(r.distance=t.textDistance)}return a(s,t),(0,i.each)(s.rich,function(t){a(t,t)}),{textConfig:r,textContent:o}}function a(t,e){e&&(e.font=e.textFont||e.font,(0,i.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),(0,i.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),(0,i.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),(0,i.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),(0,i.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),(0,i.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),(0,i.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),(0,i.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),(0,i.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),(0,i.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),(0,i.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),(0,i.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),(0,i.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),(0,i.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),(0,i.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function s(t,e,n){t.textPosition=t.textPosition||n.position||"inside",null!=n.offset&&(t.textOffset=n.offset),null!=n.rotation&&(t.textRotation=n.rotation),null!=n.distance&&(t.textDistance=n.distance);var r=t.textPosition.indexOf("inside")>=0,o=t.fill||"#000";l(t,e);var a=null==t.textFill;return r?a&&(t.textFill=n.insideFill||"#fff",!t.textStroke&&n.insideStroke&&(t.textStroke=n.insideStroke),t.textStroke||(t.textStroke=o),null==t.textStrokeWidth&&(t.textStrokeWidth=2)):(a&&(t.textFill=t.fill||n.outsideFill||"#000"),!t.textStroke&&n.outsideStroke&&(t.textStroke=n.outsideStroke)),t.text=e.text,t.rich=e.rich,(0,i.each)(e.rich,function(t){l(t,t)}),t}function l(t,e){e&&((0,i.hasOwn)(e,"fill")&&(t.textFill=e.fill),(0,i.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),(0,i.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),(0,i.hasOwn)(e,"font")&&(t.font=e.font),(0,i.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),(0,i.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),(0,i.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),(0,i.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),(0,i.hasOwn)(e,"align")&&(t.textAlign=e.align),(0,i.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),(0,i.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),(0,i.hasOwn)(e,"width")&&(t.textWidth=e.width),(0,i.hasOwn)(e,"height")&&(t.textHeight=e.height),(0,i.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),(0,i.hasOwn)(e,"padding")&&(t.textPadding=e.padding),(0,i.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),(0,i.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),(0,i.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),(0,i.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),(0,i.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),(0,i.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),(0,i.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),(0,i.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),(0,i.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),(0,i.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),(0,i.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}},60253:function(t,e,n){n.d(e,{$V:()=>m,hV:()=>S,v5:()=>b,xU:()=>w});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()}}),d=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()}}),f=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),d=.6*a,f=.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*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-h+c*d,l+s+p*d,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:d,pin:f,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 b(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 w(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 d=s||e,f=s||n;s=null,r=i-(f?l:u)-d,clearTimeout(h),f?h=setTimeout(c,d):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:()=>b,KF:()=>z,Lm:()=>f,MA:()=>u,OY:()=>s,Wf:()=>k,X_:()=>w,Yd:()=>N,Zz:()=>O,bP:()=>I,ce:()=>_,eV:()=>v,g0:()=>A,hY:()=>M,iC:()=>T,iW:()=>l,jJ:()=>C,tM:()=>L,ti:()=>R,ww:()=>E,xu:()=>P,yB:()=>D,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}"},d="{yyyy}-{MM}-{dd}",f={year:"{yyyy}",month:"{yyyy}-{MM}",day:d,hour:d+" "+p.hour,minute:d+" "+p.minute,second:d+" "+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 b(t,e,n,i){var s=r._U(t),l=s[M(n)](),u=s[C(n)]()+1,h=Math.floor((u-1)/3)+1,c=s[I(n)](),p=s["get"+(n?"UTC":"")+"Day"](),d=s[T(n)](),f=(d-1)%12+1,g=s[D(n)](),y=s[k(n)](),m=s[O(n)](),_=(i instanceof a.A?i:(0,o.A4)(i||o.Lv)||(0,o.pr)()).getModel("time"),x=_.get("month"),b=_.get("monthAbbr"),w=_.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,b[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,w[p]).replace(/{ee}/g,S[p]).replace(/{e}/g,p+"").replace(/{HH}/g,v(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,v(f+"",2)).replace(/{h}/g,f+"").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 w(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 d=null==t.level?0:t.level>=0?t.level:a.length+t.level;d=Math.min(d,a.length-1),a=a[d]}}return b(new Date(t.value),a,o,r)}function S(t,e){var n=r._U(t),i=n[C(e)]()+1,o=n[I(e)](),a=n[T(e)](),s=n[D(e)](),l=n[k(e)](),u=0===n[O(e)](),h=u&&0===l,c=h&&0===s,p=c&&0===a,d=p&&1===o;if(d&&1===i)return"year";if(d)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[C(n)]()>=6);case"quarter":return Math.floor((o[C(n)]()+1)/4);case"month":return o[C(n)]();case"day":return o[I(n)]();case"half-day":return o[T(n)]()/24;case"hour":return o[T(n)]();case"minute":return o[D(n)]();case"second":return o[k(n)]();case"millisecond":return o[O(n)]()}}function M(t){return t?"getUTCFullYear":"getFullYear"}function C(t){return t?"getUTCMonth":"getMonth"}function I(t){return t?"getUTCDate":"getDate"}function T(t){return t?"getUTCHours":"getHours"}function D(t){return t?"getUTCMinutes":"getMinutes"}function k(t){return t?"getUTCSeconds":"getSeconds"}function O(t){return t?"getUTCMilliseconds":"getMilliseconds"}function L(t){return t?"setUTCFullYear":"setFullYear"}function P(t){return t?"setUTCMonth":"setMonth"}function R(t){return t?"setUTCDate":"setDate"}function N(t){return t?"setUTCHours":"setHours"}function z(t){return t?"setUTCMinutes":"setMinutes"}function E(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(),d=(0,h.A)(),f=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 d(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(f,["dispose"]),a.tQ(f);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=f},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},96457:function(t,e,n){n.d(e,{A:()=>i});let i=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}()},39111:function(t,e,n){n.d(e,{A:()=>_});var i=n(4884),r=n(34196),o=n(21916),a=i.each,s=i.isObject,l=function(){function t(e){var n,r,o=e.mappingMethod,s=e.type,l=this.option=i.clone(e);this.type=s,this.mappingMethod=o,this._normalizeData=m[o];var h=t.visualHandlers[s];this.applyVisual=h.applyVisual,this.getColorMapper=h.getColorMapper,this._normalizedToVisual=h._normalizedToVisual[o],"piecewise"===o?(u(l),r=(n=l).pieceList,n.hasSpecialVisual=!1,i.each(r,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)})):"category"===o?l.categories?function(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(a(e,function(t,e){n[t]=e}),!i.isArray(r)){var o=[];i.isObject(r)?a(r,function(t,e){var i=n[e];o[null!=i?i:-1]=t}):o[-1]=r,r=v(t,o)}for(var s=e.length-1;s>=0;s--)null==r[s]&&(delete n[e[s]],e.pop())}(l):u(l,!0):(i.assert("linear"!==o||l.dataExtent),u(l))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return i.bind(this._normalizeData,this)},t.listVisualTypes=function(){return i.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){i.isObject(t)?i.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var o,a=i.isArray(e)?[]:i.isObject(e)?{}:(o=!0,null);return t.eachVisual(e,function(t,e){var i=n.call(r,t,e);o?a=i:a[e]=i}),a},t.retrieveVisuals=function(e){var n,i={};return e&&a(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(i.isArray(t))t=t.slice();else{if(!s(t))return[];var e=[];a(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!!(t&&0===t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,o=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(null!=l){if(l===t||i.isString(l)&&l===t+"")return a;n&&A(l,a)}}for(var a=0,s=e.length;a<s;a++){var u,h,c,p,d,f,g,y,v,m,_,x,b=e[a],w=b.interval,S=b.close;if(w){if(w[0]===-1/0){if(u=S[1],h=t,c=w[1],u?h<=c:h<c)return a}else if(w[1]===1/0){if(p=S[0],d=w[0],f=t,p?d<=f:d<f)return a}else{if(g=S[0],y=w[0],v=t,(g?y<=v:y<v)&&(m=S[1],_=t,x=w[1],m?_<=x:_<x))return a}n&&A(w[0],a),n&&A(w[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function A(e,n){var i=Math.abs(e-t);i<o&&(o=i,r=n)}},t.visualHandlers={color:{applyVisual:p("color"),getColorMapper:function(){var t=this.option;return i.bind("category"===t.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),d.call(this,t)}:function(e,n,i){var o=!!i;return n||(e=this._normalizeData(e)),i=r.fastLerp(e,t.parsedVisual,i),o?i:r.stringify(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")},category:d,piecewise:function(t,e){var n=y.call(this,e);return null==n&&(n=r.stringify(r.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:f}},colorHue:h(function(t,e){return r.modifyHSL(t,e)}),colorSaturation:h(function(t,e){return r.modifyHSL(t,null,e)}),colorLightness:h(function(t,e){return r.modifyHSL(t,null,null,e)}),colorAlpha:h(function(t,e){return r.modifyAlpha(t,e)}),decal:{applyVisual:p("decal"),_normalizedToVisual:{linear:null,category:d,piecewise:null,fixed:null}},opacity:{applyVisual:p("opacity"),_normalizedToVisual:g([0,1])},liftZ:{applyVisual:p("liftZ"),_normalizedToVisual:{linear:f,category:f,piecewise:f,fixed:f}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:c,category:d,piecewise:function(t,e){var n=y.call(this,e);return null==n&&(n=c.call(this,t)),n},fixed:f}},symbolSize:{applyVisual:p("symbolSize"),_normalizedToVisual:g([0,1])}},t}();function u(t,e){var n=t.visual,r=[];i.isObject(n)?a(n,function(t){r.push(t)}):null!=n&&r.push(n),e||1!==r.length||({color:1,symbol:1}).hasOwnProperty(t.type)||(r[1]=r[0]),v(t,r)}function h(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:g([0,1])}}function c(t){var e=this.option.visual;return e[Math.round((0,o.Cb)(t,[0,1],[0,e.length-1],!0))]||{}}function p(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function d(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function f(){return this.option.visual[0]}function g(t){return{linear:function(e){return(0,o.Cb)(e,t,this.option.visual,!0)},category:d,piecewise:function(e,n){var i=y.call(this,n);return null==i&&(i=(0,o.Cb)(e,t,this.option.visual,!0)),i},fixed:f}}function y(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=l.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function v(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=i.map(e,function(t){return r.parse(t)||[0,0,0,1]})),e}var m={linear:function(t){return(0,o.Cb)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=l.findPieceIndex(t,e,!0);if(null!=n)return(0,o.Cb)(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:i.noop};let _=l},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})},74664:function(t,e,n){n.d(e,{A:()=>o});var i=n(4884),r={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};let o={get:function(t,e,n){var o=i.clone((r[t]||{})[e]);return n&&i.isArray(o)?o[o.length-1]:o}}},88526:function(t,e,n){n.d(e,{R3:()=>h,St:()=>u,dS:()=>c,u1:()=>l});var i=n(4884),r=n(39111),o=n(80153),a=i.each;function s(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function l(t,e,n){var o={};return a(e,function(e){var s,l=o[e]=((s=function(){}).prototype.__hidden=s.prototype,new s);a(t[e],function(t,o){if(r.A.isValidType(o)){var a={type:o,visual:t};n&&n(a,e),l[o]=new r.A(a),"opacity"===o&&((a=i.clone(a)).type="colorAlpha",l.__hidden.__alphaForOpacity=new r.A(a))}})}),o}function u(t,e,n){var r;i.each(n,function(t){e.hasOwnProperty(t)&&s(e[t])&&(r=!0)}),r&&i.each(n,function(n){e.hasOwnProperty(n)&&s(e[n])?t[n]=i.clone(e[n]):delete t[n]})}function h(t,e,n,a,s,l){var u,h={};function c(t){return(0,o.Ez)(n,u,t)}function p(t,e){(0,o.oZ)(n,u,t,e)}function d(t,i){u=null==l?t:i;var r=n.getRawDataItem(u);if(!r||!1!==r.visualMap)for(var o=a.call(s,t),d=e[o],f=h[o],g=0,y=f.length;g<y;g++){var v=f[g];d[v]&&d[v].applyVisual(t,c,p)}}i.each(t,function(t){var n=r.A.prepareVisualTypes(e[t]);h[t]=n}),null==l?n.each(d):n.each([l],d)}function c(t,e,n,a){var s={};return i.each(t,function(t){var n=r.A.prepareVisualTypes(e[t]);s[t]=n}),{progress:function(t,i){function r(t){return(0,o.Ez)(i,h,t)}function l(t,e){(0,o.oZ)(i,h,t,e)}null!=a&&(u=i.getDimensionIndex(a));for(var u,h,c=i.getStore();null!=(h=t.next());){var p=i.getRawDataItem(h);if(!p||!1!==p.visualMap)for(var d=null!=a?c.get(u,h):h,f=n(d),g=e[f],y=s[f],v=0,m=y.length;v<m;v++){var _=y[v];g[_]&&g[_].applyVisual(d,r,l)}}}}}},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__",d=i.Wx.concat(["ignore"]),f=(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,d=void 0;"center"===h?(p=.5*y.width,d=.5*y.height):(p=(0,s.lo)(h[0],y.width),d=(0,s.lo)(h[1],y.height)),u=!0,r.originX=-r.x+p+(i?0:y.x),r.originY=-r.y+d+(i?0:y.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],u||(r.originX=-f[0],r.originY=-f[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,b=void 0;v&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,(null==_||"auto"===_)&&(_=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(_),b=!0)):(_=n.outsideFill,x=n.outsideStroke,(null==_||"auto"===_)&&(_=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(_),b=!0)),((_=_||"#000")!==m.fill||x!==m.stroke||b!==m.autoStroke||o!==m.align||a!==m.verticalAlign)&&(l=!0,m.fill=_,m.stroke=x,m.autoStroke=b,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,d)},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,d=this._textGuide;return h&&h.useState(t,e,n,u),d&&d.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 d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);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<d.length;h++){var c=d[h],p=r&&f[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,d=a.delay,f=a.additive,g=a.setToFinal,y=!(0,l.isObject)(s),v=e.animators,m=[],x=0;x<c.length;x++){var b=c[x],w=o[b];if(null!=w&&null!=i[b]&&(y||s[b]))if(!(0,l.isObject)(w)||(0,l.isArrayLike)(w)||(0,l.isGradientObject)(w))m.push(b);else{if(n){h||(i[b]=w,e.updateDuringAnimation(n));continue}t(e,b,i[b],w,a,s&&s[b],u,h)}else h||(i[b]=w,e.updateDuringAnimation(n),m.push(b))}var S=m.length;if(!f&&S)for(var A=0;A<v.length;A++){var M=v[A];if(M.targetName===n&&M.stopTracks(m)){var C=(0,l.indexOf)(v,M);v.splice(C,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 I=void 0,T=void 0,D=void 0;if(h){T={},g&&(I={});for(var A=0;A<S;A++){var b=m[A];T[b]=i[b],g?I[b]=o[b]:i[b]=o[b]}}else if(g){D={};for(var A=0;A<S;A++){var b=m[A];D[b]=(0,r.F)(i[b]),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,b)}}var M=new r.A(i,!1,!1,f?(0,l.filter)(v,function(t){return t.targetName===n}):null);M.targetName=n,a.scope&&(M.scope=a.scope),g&&I&&M.whenWithKeys(0,I,m),D&&M.whenWithKeys(0,D,m),M.whenWithKeys(null==p?500:p,h?T:o,m).delay(d||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())},d=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 f=0;f<a.length;f++){var g=a[f];p&&g.done(p),d&&g.aborted(d),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:()=>d,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 d(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 f(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 d=(0,r.isArrayLike)(e&&e[0])?2:1;c=d,(1!==d||(0,r.isNumber)(e[0]))&&(2!==d||(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 f=s.parse(e);f&&(p=f,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 d=n[h],f=d.value,v=o.value;d.percent=d.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])}}(f,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()})}(f.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,d=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,b=0===x?1:_((e-i.percent)/x,1);o.easingFunc&&(b=o.easingFunc(b));var w=a?this._additiveValue:d?v:t[p];if((y(l)||d)&&!w&&(w=this._additiveValue=[]),this.discrete)t[p]=b<1?i.rawValue:o.rawValue;else if(y(l))1===l?h(w,i[s],o[s],b):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)}}(w,i[s],o[s],b);else if(g(l)){var S,A,M,C,I,T=i[s],D=o[s],k=4===l;(t[p]={type:k?"linear":"radial",x:(S=T.x,(D.x-S)*b+S),y:(A=T.y,(D.y-A)*b+A),colorStops:(0,r.map)(T.colorStops,function(t,e){var n,i=D.colorStops[e];return{offset:(n=t.offset,(i.offset-n)*b+n),color:f(h([],t.color,i.color,b))}}),global:D.global},k)?(t[p].x2=(M=T.x2,(D.x2-M)*b+M),t[p].y2=(C=T.y2,(D.y2-C)*b+C)):t[p].r=(I=T.r,(D.r-I)*b+I)}else if(d)h(w,i[s],o[s],b),a||(t[p]=f(w));else{var O,L=(O=i[s],(o[s]-O)*b+O);a?this._additiveValue=L:t[p]=L}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]=f(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=f(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,d(l),i),this._trackKeys.push(a)}s.addKeyframe(t,d(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]=d(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$:()=>D,Xi:()=>T,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),d=n(46979),f=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 b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["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){C(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||(C(t,o),a=!0),t.globalCompositeOperation=e.blend||i.oN.blend);for(var l=0;l<b.length;l++){var u=b[l];(r||e[u]!==n[u])&&(a||(C(t,o),a=!0),t[u]=t.dpr*(e[u]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(C(t,o),a=!0),t.shadowColor=e.shadowColor||i.oN.shadowColor),a}function A(t,e,n,i,r){var o=I(e,r.inHover),a=i?null:n&&I(n,r.inHover)||{};if(o===a)return!1;var s=S(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(C(t,r),s=!0),y(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(C(t,r),s=!0),y(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(C(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||(C(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<w.length;u++){var h=w[u],c=h[0];(i||o[c]!==a[c])&&(s||(C(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 C(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function I(t,e){return e&&t.__hoverStyle||t.style}function T(t,e){D(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function D(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,b=n.prevElClipPaths,w=!1,T=!1;if(!b||(0,a.KU)(y,b)){if(b&&b.length&&(C(t,n),t.restore(),T=w=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),y&&y.length){C(t,n),t.save();for(var k=!1,O=0;O<y.length;O++){var L=y[O];k=k||L.isZeroArea(),M(t,L),t.beginPath(),L.buildPath(t,L.shape),t.clip()}n.allClipped=k,w=!0}n.prevElClipPaths=y}if(n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var P=n.prevEl;P||(T=w=!0);var R=e instanceof s.Ay&&e.autoBatch&&(E=v(z=e.style),B=g(z),!(z.lineDash||!(E^B)||E&&"string"!=typeof z.fill||B&&"string"!=typeof z.stroke||z.strokePercent<1||z.strokeOpacity<1||z.fillOpacity<1));!w&&(V=P.transform,h&&V?h[0]===V[0]&&h[1]===V[1]&&h[2]===V[2]&&h[3]===V[3]&&h[4]===V[4]&&h[5]===V[5]:+(!h&&!V))?R||C(t,n):(C(t,n),M(t,e));var N=I(e,n.inHover);if(e instanceof s.Ay)1!==n.lastDrawType&&(T=!0,n.lastDrawType=1),A(t,e,P,T,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,d=h<1,y=!e.path;(!e.silent||d)&&y&&e.createPathProxy();var b=e.path||f,w=e.__dirty;if(!i){var S=n.fill,A=n.stroke,M=u&&!!S.colorStops,C=l&&!!A.colorStops,I=u&&!!S.image,T=l&&!!A.image,D=void 0,k=void 0,O=void 0,L=void 0,P=void 0;(M||C)&&(P=e.getBoundingRect()),M&&(D=w?(0,a.Ff)(t,S,P):e.__canvasFillGradient,e.__canvasFillGradient=D),C&&(k=w?(0,a.Ff)(t,A,P):e.__canvasStrokeGradient,e.__canvasStrokeGradient=k),I&&(O=w||!e.__canvasFillPattern?x(t,S,e):e.__canvasFillPattern,e.__canvasFillPattern=O),T&&(L=w||!e.__canvasStrokePattern?x(t,A,e):e.__canvasStrokePattern,e.__canvasStrokePattern=O),M?t.fillStyle=D:I&&(O?t.fillStyle=O:u=!1),C?t.strokeStyle=k:T&&(L?t.strokeStyle=L:l=!1)}var R=e.getGlobalScale();b.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||w&p.Dl)&&(b.setDPR(t.dpr),d?b.setContext(null):(b.setContext(t),N=!1),b.reset(),e.buildPath(b,e.shape,i),b.toStatic(),e.pathUpdated()),N&&b.rebuildPath(t,d?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&&(T=!0,n.lastDrawType=3),A(t,e,P,T,n);var z,E,B,V,F,H=N.text;if(null!=H&&(H+=""),H){t.font=N.font||d.OH,t.textAlign=N.textAlign,t.textBaseline=N.textBaseline;var W=void 0,G=void 0;t.setLineDash&&N.lineDash&&(W=(F=(0,c.V)(e))[0],G=F[1]),W&&(t.setLineDash(W),t.lineDashOffset=G),N.strokeFirst?(g(N)&&t.strokeText(H,N.x,N.y),v(N)&&t.fillText(H,N.x,N.y)):(v(N)&&t.fillText(H,N.x,N.y),g(N)&&t.strokeText(H,N.x,N.y)),W&&t.setLineDash([])}}else e instanceof l.Ay?(2!==n.lastDrawType&&(T=!0,n.lastDrawType=2),r=T,S(t,I(e,n.inHover),P&&I(P,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,d=l-c;t.drawImage(i,h,c,p,d,r,a,s,l)}else t.drawImage(i,r,a,s,l)}}(t,e,N)):e.getTemporalDisplayables&&(4!==n.lastDrawType&&(T=!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(),D(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(),D(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&&C(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,d,f="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,d=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,d=d*n.height+n.y),h=i(h)?h:0,c=i(c)?c:1,p=i(p)?p:0,d=i(d)?d:0,t.createLinearGradient(h,p,c,d)),g=e.colorStops,y=0;y<g.length;y++)f.addColorStop(g[y].offset,g[y].color);return f}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:()=>f,ks:()=>p,ll:()=>h,lo:()=>d,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 d(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function f(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+=d(i[0],n.width),u+=d(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:()=>d});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 d=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,d=e.y+e.height,f=!(o<l||u<i||s<h||d<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(d-a),b=Math.min(v,m),w=Math.min(_,x);o<l||u<i?b>y&&(y=b,v<m?r.A.set(p,-v,0):r.A.set(p,m,0)):b<g&&(g=b,v<m?r.A.set(c,v,0):r.A.set(c,-m,0)),s<h||d<a?w>y&&(y=w,_<x?r.A.set(p,0,-_):r.A.set(p,0,x)):b<g&&(g=b,_<x?r.A.set(c,0,_):r.A.set(c,0,-x))}return n&&r.A.copy(n,f?c:p),f},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],d=i[5];e.x=n.x*r+p,e.y=n.y*c+d,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 f=a(s.x,l.x,u.x,h.x),g=a(s.y,l.y,u.y,h.y);e.width=f-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]),d=Math.abs(r[0]-o[1]);Math.min(p,d)>a.len()&&(p<d?i.A.scale(a,c,-p*l):i.A.scale(a,c,d*l))}else if(n){var p=Math.abs(o[0]-r[1]),d=Math.abs(r[0]-o[1]);Math.min(p,d)<n.len()&&(p<d?i.A.scale(n,c,p*l):i.A.scale(n,c,-d*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:()=>C,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=[],d=[],f=[],g=Math.min,y=Math.max,v=Math.cos,m=Math.sin,_=Math.abs,x=Math.PI,b=2*x,w="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+=b);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=b?r=n+b:e&&n-r>=b?r=n-b:!e&&n>r?r=n+(b-A(n-r)):e&&n<r&&(r=n-(b-A(r-n))),t[0]=n,t[1]=r}let C=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)&&w&&(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();w&&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,w&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){c[0]=c[1]=d[0]=d[1]=Number.MAX_VALUE,p[0]=p[1]=f[0]=f[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++],d[0]=s,d[1]=u,f[0]=s,f[1]=u;break;case l.L:(0,a.j6)(n,o,e[t],e[t+1],d,f),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],d,f),n=e[t++],o=e[t++];break;case l.Q:(0,a.tW)(n,o,e[t++],e[t++],e[t],e[t+1],d,f),n=e[t++],o=e[t++];break;case l.A:var y=e[t++],_=e[t++],x=e[t++],b=e[t++],w=e[t++],S=e[t++]+w;t+=1;var A=!e[t++];g&&(s=v(w)*x+y,u=m(w)*b+_),(0,a.$s)(y,_,x,b,w,S,A,d,f),n=v(S)*x+y,o=m(S)*b+_;break;case l.R:s=n=e[t++],u=o=e[t++];var M=e[t++],C=e[t++];(0,a.j6)(s,u,s+M,u+C,d,f);break;case l.Z:n=s,o=u}i.min(c,c,d),i.max(p,p,f)}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,d=0;d<e;){var f=t[d++],x=1===d;x&&(r=t[d],o=t[d+1],a=r,u=o);var w=-1;switch(f){case l.M:r=a=t[d++],o=u=t[d++];break;case l.L:var S=t[d++],A=t[d++],M=S-r,C=A-o;(_(M)>n||_(C)>i||d===e-1)&&(w=Math.sqrt(M*M+C*C),r=S,o=A);break;case l.C:var I=t[d++],T=t[d++],S=t[d++],A=t[d++],D=t[d++],k=t[d++];w=(0,s.h0)(r,o,I,T,S,A,D,k,10),r=D,o=k;break;case l.Q:var I=t[d++],T=t[d++],S=t[d++],A=t[d++];w=(0,s.d8)(r,o,I,T,S,A,10),r=S,o=A;break;case l.A:var O=t[d++],L=t[d++],P=t[d++],R=t[d++],N=t[d++],z=t[d++],E=z+N;d+=1,x&&(a=v(N)*P+O,u=m(N)*R+L),w=y(P,R)*g(b,Math.abs(z)),r=v(E)*P+O,o=m(E)*R+L;break;case l.R:a=r=t[d++],u=o=t[d++],w=2*t[d++]+2*t[d++];break;case l.Z:var M=a-r,C=u-o;w=Math.sqrt(M*M+C*C),r=a,o=u}w>=0&&(h[p++]=w,c+=w)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,e){var n,i,r,o,a,c,p,d,f,x,b=this.data,w=this._ux,S=this._uy,A=this._len,M=e<1,C=0,I=0,T=0;if(!M||(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=e*this._pathLen))t:for(var D=0;D<A;){var k=b[D++],O=1===D;switch(O&&(r=b[D],o=b[D+1],n=r,i=o),k!==l.L&&T>0&&(t.lineTo(f,x),T=0),k){case l.M:n=r=b[D++],i=o=b[D++],t.moveTo(r,o);break;case l.L:a=b[D++],c=b[D++];var L=_(a-r),P=_(c-o);if(L>w||P>S){if(M){var R=p[I++];if(C+R>d){var N=(d-C)/R;t.lineTo(r*(1-N)+a*N,o*(1-N)+c*N);break t}C+=R}t.lineTo(a,c),r=a,o=c,T=0}else{var z=L*L+P*P;z>T&&(f=a,x=c,T=z)}break;case l.C:var E=b[D++],B=b[D++],V=b[D++],F=b[D++],H=b[D++],W=b[D++];if(M){var R=p[I++];if(C+R>d){var N=(d-C)/R;(0,s.YT)(r,E,V,H,N,u),(0,s.YT)(o,B,F,W,N,h),t.bezierCurveTo(u[1],h[1],u[2],h[2],u[3],h[3]);break t}C+=R}t.bezierCurveTo(E,B,V,F,H,W),r=H,o=W;break;case l.Q:var E=b[D++],B=b[D++],V=b[D++],F=b[D++];if(M){var R=p[I++];if(C+R>d){var N=(d-C)/R;(0,s.kx)(r,E,V,N,u),(0,s.kx)(o,B,F,N,h),t.quadraticCurveTo(u[1],h[1],u[2],h[2]);break t}C+=R}t.quadraticCurveTo(E,B,V,F),r=V,o=F;break;case l.A:var G=b[D++],Y=b[D++],X=b[D++],U=b[D++],Z=b[D++],q=b[D++],j=b[D++],K=!b[D++],$=X>U?X:U,Q=_(X-U)>.001,J=Z+q,tt=!1;if(M){var R=p[I++];C+R>d&&(J=Z+q*(d-C)/R,tt=!0),C+=R}if(Q&&t.ellipse?t.ellipse(G,Y,X,U,j,Z,J,K):t.arc(G,Y,$,Z,J,K),tt)break t;O&&(n=v(Z)*X+G,i=m(Z)*U+Y),r=v(J)*X+G,o=m(J)*U+Y;break;case l.R:n=r=b[D],i=o=b[D+1],a=b[D++],c=b[D++];var te=b[D++],tn=b[D++];if(M){var R=p[I++];if(C+R>d){var ti=d-C;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}C+=R}t.rect(a,c,te,tn);break;case l.Z:if(M){var R=p[I++];if(C+R>d){var N=(d-C)/R;t.lineTo(r*(1-N)+n*N,o*(1-N)+i*N);break t}C+=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:()=>f,IT:()=>d,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){d(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,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-p*g*a,e[5]=-g*a-d*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*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 d(t,e){for(var n=0;n<p.length;n++){var i=p[n];t[i]=e[i]}}let f=c},6091:function(t,e,n){n.d(e,{$s:()=>_,BM:()=>v,Cr:()=>d,j6:()=>f,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 d(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 f(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 d=r.lX,f=r.Yb,v=d(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 _=f(t,n,s,u,g[m]);c[0]=o(_,c[0]),p[0]=a(_,p[0])}v=d(e,i,l,h,y);for(var m=0;m<v;m++){var x=f(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,d=a(o(c(t,n,s),1),0),f=a(o(c(e,i,l),1),0),g=p(t,n,s,d),y=p(e,i,l,f);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,d,f,g){var y=i.min,v=i.max,m=Math.abs(o-a);if(m%u<1e-4&&m>1e-4){f[0]=t-n,f[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(f,h,c),v(g,h,c),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!d?a+=u:o<a&&d&&(o+=u),d){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(f,p,f),v(g,p,g))}},26989:function(t,e,n){n.d(e,{Et:()=>m,YT:()=>v,Yb:()=>d,_E:()=>g,d8:()=>C,gC:()=>S,h0:()=>_,k3:()=>x,kh:()=>M,kx:()=>A,lX:()=>y,qY:()=>w,rD:()=>f,z7:()=>b});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 d(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 f(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),d=3*(e-t),f=t-l,g=p*p-3*h*d,y=p*d-9*h*f,v=d*d-3*p*f,m=0;if(c(g)&&c(y))if(c(p))u[0]=0;else{var _=-d/p;_>=0&&_<=1&&(u[m++]=_)}else{var x=y*y-4*g*v;if(c(x)){var b=y/g,_=-p/h+b,w=-b/2;_>=0&&_<=1&&(u[m++]=_),w>=0&&w<=1&&(u[m++]=w)}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 C=Math.acos((2*g*p-3*h*y)/(2*o(g*g*g)))/3,I=o(g),T=Math.cos(C),_=(-p-2*I*T)/(3*h),w=(-p+I*(T+a*Math.sin(C)))/(3*h),D=(-p+I*(T-a*Math.sin(C)))/(3*h);_>=0&&_<=1&&(u[m++]=_),w>=0&&w<=1&&(u[m++]=w),D>=0&&D<=1&&(u[m++]=D)}}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 d=a*a-4*s*l;if(c(d))r[0]=-a/(2*s);else if(d>0){var f=o(d),h=(-a+f)/(2*s),g=(-a-f)/(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,f,g,y){var v,m,_,x,b,w=.005,S=1/0;l[0]=f,l[1]=g;for(var A=0;A<1;A+=.05)u[0]=d(t,n,a,c,A),u[1]=d(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&&!(w<1e-4);M++)m=v-w,_=v+w,u[0]=d(t,n,a,c,m),u[1]=d(e,r,s,p,m),x=(0,i.distSquare)(u,l),m>=0&&x<S?(v=m,S=x):(h[0]=d(t,n,a,c,_),h[1]=d(e,r,s,p,_),b=(0,i.distSquare)(h,l),_<=1&&b<S?(v=_,S=b):w*=.5);return y&&(y[0]=d(t,n,a,c,v),y[1]=d(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,f=1;f<=l;f++){var g=f*p,y=d(t,n,r,a,g),v=d(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 b(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function w(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 d=s*s-4*a*l;if(c(d)){var h=-s/(2*a);h>=0&&h<=1&&(r[u++]=h)}else if(d>0){var f=o(d),h=(-s+f)/(2*a),g=(-s-f)/(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,d){var f,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&&(f=v,y=m)}y=1/0;for(var _=0;_<32&&!(g<1e-4);_++){var b=f-g,w=f+g;u[0]=x(t,n,a,b),u[1]=x(e,r,s,b);var m=(0,i.distSquare)(u,l);if(b>=0&&m<y)f=b,y=m;else{h[0]=x(t,n,a,w),h[1]=x(e,r,s,w);var S=(0,i.distSquare)(h,l);w<=1&&S<y?(f=w,y=S):g*=.5}}return d&&(d[0]=x(t,n,a,f),d[1]=x(e,r,s,f)),o(y)}function C(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,d=x(t,n,r,p),f=x(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}},26776:function(t,e,n){n.d(e,{lJ:()=>u,Me:()=>f,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 d=0,f=0,g=0;f<u;f++){var y=1<<f;!(y&a)&&(d+=(g%2?-1:1)*t[n][f]*o(t,e-1,p,c,a|y,s),g++)}return s[l]=d,d}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,d=c.left,f=c.top;s.push(d,f),u=u&&o&&d===o[p]&&f===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,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function f(t){return null==t?"":(t+"").replace(p,function(t,e){return d[e]})}},35209:function(t,e,n){n.d(e,{A:()=>d});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 d=p},77250:function(t,e,n){n.d(e,{W5:()=>g,Yo:()=>l,ds:()=>f,e0:()=>c,f:()=>d,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 d(t,e,n,i){t.removeEventListener(e,n,i)}var f=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 d=l[t[p]];c+=null==d?h:d*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],d=i[u+1];i[u]=c+d,u===s-3&&(n[u+1]=n[u+2],i[u+1]=i[u+2]),s--;var f=a(t[p],t,h,c,0,e);h+=f,0==(c-=f)||0!==(d=o(t[h+c-1],t,p,d,d-1,e))&&(c<=d?function(n,i,s,u){var h,c,p,d=0;for(d=0;d<i;d++)l[d]=t[n+d];var f=0,g=s,y=n;if(t[y++]=t[g++],0==--u){for(d=0;d<i;d++)t[y+d]=l[f+d];return}if(1===i){for(d=0;d<u;d++)t[y+d]=t[g+d];t[y+u]=l[f];return}for(var v=r;;){h=0,c=0,p=!1;do if(0>e(t[g],l[f])){if(t[y++]=t[g++],c++,h=0,0==--u){p=!0;break}}else if(t[y++]=l[f++],h++,c=0,1==--i){p=!0;break}while((h|c)<v);if(p)break;do{if(0!==(h=a(t[g],l,f,i,0,e))){for(d=0;d<h;d++)t[y+d]=l[f+d];if(y+=h,f+=h,(i-=h)<=1){p=!0;break}}if(t[y++]=t[g++],0==--u){p=!0;break}if(0!==(c=o(l[f],t,g,u,0,e))){for(d=0;d<c;d++)t[y+d]=t[g+d];if(y+=c,g+=c,0==(u-=c)){p=!0;break}}if(t[y++]=l[f++],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(d=0;d<u;d++)t[y+d]=t[g+d];t[y+u]=l[f]}else if(0===i)throw Error();else for(d=0;d<i;d++)t[y+d]=l[f+d]}(h,c,p,d):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,d=s+u-1,f=0,g=0;if(t[d--]=t[c--],0==--i){for(h=0,f=d-(u-1);h<u;h++)t[f+h]=l[h];return}if(1===u){for(d-=i,c-=i,g=d+1,f=c+1,h=i-1;h>=0;h--)t[g+h]=t[f+h];t[d]=l[p];return}for(var y=r;;){var v=0,m=0,_=!1;do if(0>e(l[p],t[c])){if(t[d--]=t[c--],v++,m=0,0==--i){_=!0;break}}else if(t[d--]=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(d-=v,c-=v,i-=v,g=d+1,f=c+1,h=v-1;h>=0;h--)t[g+h]=t[f+h];if(0===i){_=!0;break}}if(t[d--]=l[p--],1==--u){_=!0;break}if(0!=(m=u-o(t[c],l,0,u,u-1,e))){for(d-=m,p-=m,u-=m,g=d+1,f=p+1,h=0;h<m;h++)t[g+h]=l[f+h];if(u<=1){_=!0;break}}if(t[d--]=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(d-=i,c-=i,g=d+1,f=c+1,h=i-1;h>=0;h--)t[g+h]=t[f+h];t[d]=l[p]}else if(0===u)throw Error();else for(h=0,f=d-(u-1);h<u;h++)t[f+h]=l[h]}(h,c,p,d))}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:()=>tf,assert:()=>tt,bind:()=>R,clone:()=>m,concatArray:()=>tu,createCanvas:()=>S,createHashMap:()=>tl,createObject:()=>th,curry:()=>N,defaults:()=>w,disableUserSelect:()=>tc,each:()=>T,eqNaN:()=>q,extend:()=>b,filter:()=>O,find:()=>L,guid:()=>y,hasOwn:()=>tp,indexOf:()=>A,inherits:()=>M,isArray:()=>z,isArrayLike:()=>I,isBuiltInObject:()=>W,isDom:()=>Y,isFunction:()=>E,isGradientObject:()=>X,isImagePatternObject:()=>U,isNumber:()=>F,isObject:()=>H,isPrimitive:()=>tr,isRegExp:()=>Z,isString:()=>B,isStringSafe:()=>V,isTypedArray:()=>G,keys:()=>P,logError:()=>v,map:()=>D,merge:()=>_,mergeAll:()=>x,mixin:()=>C,noop:()=>td,normalizeCssArray:()=>J,reduce:()=>k,retrieve:()=>j,retrieve2:()=>K,retrieve3:()=>$,setAsPrimitive:()=>ti,slice:()=>Q,trim:()=>te});var i=n(46979),r=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),o=k(["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,d=p?p.prototype:null,f="__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]&&!Y(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==f&&(e[u]=m(t[u]));return e}function _(t,e,n){if(!H(e)||!H(t))return n?m(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==f){var r=t[i],o=e[i];!(H(o)&&H(r))||z(o)||z(r)||Y(o)||Y(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 b(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function w(t,e,n){for(var i=P(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 C(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function I(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function T(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 D(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 k(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 L(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 P(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=d&&E(d.bind)?d.call.bind(d.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 z(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function E(t){return"function"==typeof t}function B(t){return"string"==typeof t}function V(t){return"[object String]"===a.call(t)}function F(t){return"number"==typeof t}function H(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 Y(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function X(t){return null!=t.colorStops}function U(t){return null!=t.image}function Z(t){return"[object RegExp]"===a.call(t)}function q(t){return t!=t}function j(){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 P(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=z(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&&T(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&&b(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 td(){}var tf=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:()=>w,distance:()=>_,distanceSquare:()=>b,div:()=>g,dot:()=>y,len:()=>h,lenSquare:()=>p,length:()=>c,lengthSquare:()=>d,lerp:()=>A,max:()=>I,min:()=>C,mul:()=>f,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 d=p;function f(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 b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;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 C(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function I(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"],d=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,f.copy(r.getBoundingRect()),r.transform&&f.applyTransform(r.transform),g.width=o,g.height=a,!f.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 d=(0,a.keys)(h),f=0;f<d.length;f++){var g=d[f];g in l&&(l[g]=l[g],this.style[g]=h[g])}for(var y=(0,a.keys)(l),f=0;f<y.length;f++){var g=y[f];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,f=0;f<v.length;f++){var g=v[f];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),f=new o.A(0,0,0,0),g=new o.A(0,0,0,0);let y=d},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:()=>w,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,d=2*Math.PI,f=[-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,b=0,w=0,S=0,A=0;A<m;){var M,C,I,T,D,k,O,L,P=v[A++],R=1===A;switch(P===p.M&&A>1&&!n&&(_+=(0,c.A)(x,b,w,S,i,r)),R&&(x=v[A],b=v[A+1],w=x,S=b),P){case p.M:w=v[A++],S=v[A++],x=w,b=S;break;case p.L:if(n){if(a.l(x,b,v[A],v[A+1],e,i,r))return!0}else _+=(0,c.A)(x,b,v[A],v[A+1],i,r)||0;x=v[A++],b=v[A++];break;case p.C:if(n){if(M=x,C=b,I=v[A++],T=v[A++],D=v[A++],k=v[A++],O=v[A],L=v[A+1],0!==e&&(!(r>C+e)||!(r>T+e)||!(r>k+e)||!(r>L+e))&&(!(r<C-e)||!(r<T-e)||!(r<k-e)||!(r<L-e))&&(!(i>M+e)||!(i>I+e)||!(i>D+e)||!(i>O+e))&&(!(i<M-e)||!(i<I-e)||!(i<D-e)||!(i<O-e))&&s.Et(M,C,I,T,D,k,O,L,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,f);if(0===c)return 0;for(var p=0,d=-1,y=void 0,v=void 0,m=0;m<c;m++){var _=f[m],x=0===_||1===_?.5:1;s.Yb(t,n,r,a,_)<u||(d<0&&(d=s.lX(e,i,o,l,g),g[1]<g[0]&&d>1&&function(){var t=g[0];g[0]=g[1],g[1]=t}(),y=s.Yb(e,i,o,l,g[0]),d>1&&(v=s.Yb(e,i,o,l,g[1]))),2===d?_<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,b,v[A++],v[A++],v[A++],v[A++],v[A],v[A+1],i,r)||0;x=v[A++],b=v[A++];break;case p.Q:if(n){if(l.l(x,b,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,f);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),d=0;d<u;d++){var g=0===f[d]||1===f[d]?.5:1,y=s.k3(t,n,r,f[d]);y<a||(f[d]<h?c+=p<e?g:-g:c+=o<p?g:-g)}return c}var g=0===f[0]||1===f[0]?.5:1,y=s.k3(t,n,r,f[0]);return y<a?0:o<e?g:-g}(x,b,v[A++],v[A++],v[A],v[A+1],i,r)||0;x=v[A++],b=v[A++];break;case p.A:var N=v[A++],z=v[A++],E=v[A++],B=v[A++],V=v[A++],F=v[A++];A+=1;var H=!!(1-v[A++]);o=Math.cos(V)*E+N,y=Math.sin(V)*B+z,R?(w=o,S=y):_+=(0,c.A)(x,b,o,y,i,r);var W=(i-N)*B/E+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 d=Math.atan2(l,s);return d<0&&(d+=h),d>=i&&d<=r||d+h>=i&&d+h<=r}(N,z,B,V,V+F,H,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);f[0]=-l,f[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=d-1e-4){i=0,r=d;var h=o?1:-1;return a>=f[0]+t&&a<=f[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=d,r+=d);for(var p=0,g=0;g<2;g++){var y=f[g];if(y+t>a){var v=Math.atan2(s,y),h=o?1:-1;v<0&&(v=d+v),(v>=i&&v<=r||v+d>=i&&v+d<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(h=-h),p+=h)}}return p}(N,z,B,V,V+F,H,W,r);x=Math.cos(V+F)*E+N,b=Math.sin(V+F)*B+z;break;case p.R:w=x=v[A++],S=b=v[A++];var G=v[A++],Y=v[A++];if(o=w+G,y=S+Y,n){if(a.l(w,S,o,S,e,i,r)||a.l(o,S,o,y,e,i,r)||a.l(o,y,w,y,e,i,r)||a.l(w,y,w,S,e,i,r))return!0}else _+=(0,c.A)(o,S,o,y,i,r),_+=(0,c.A)(w,y,w,S,i,r);break;case p.Z:if(n){if(a.l(x,b,w,S,e,i,r))return!0}else _+=(0,c.A)(x,b,w,S,i,r);x=w,b=S}}return n||1e-4>Math.abs(b-S)||(_+=(0,c.A)(x,b,w,S,i,r)||0),0!==_}var v=n(4884),m=n(34196),_=n(72076),x=n(63154),b=n(5486),w=(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=b.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)(w,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:()=>T,I5:()=>_,XE:()=>b});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),d={fill:"#000"},f={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=d,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,w(t=this.style),(0,a.each)(t.rich,w),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||d},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 f},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=C(t),a=(0,r.j_)(i,t),l=I(t),u=!!t.backgroundColor,c=a.outerHeight,d=a.outerWidth,f=a.contentWidth,g=a.lines,y=a.lineHeight,v=this._defaultStyle,m=t.x||0,_=t.y||0,b=t.align||v.align||"left",w=t.verticalAlign||v.verticalAlign||"top",T=m,D=(0,s.sZ)(_,a.contentHeight,w);if(l||n){var k=(0,s.ll)(m,d,b),O=(0,s.sZ)(_,c,w);l&&this._renderBackground(t,t,k,O,d,c)}D+=y/2,n&&(T=M(m,b,n),"top"===w?D+=n[0]:"bottom"===w&&(D-=n[2]));for(var L=0,P=!1,R=A("fill"in t?t.fill:(P=!0,v.fill)),N=S("stroke"in t?t.stroke:u||v.autoStroke&&!P?null:(L=2,v.stroke)),z=t.textShadowBlur>0,E=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,V=0;V<g.length;V++){var F=this._getOrCreateChild(o.A),H=F.createStyle();F.useStyle(H),H.text=g[V],H.x=T,H.y=D,b&&(H.textAlign=b),H.textBaseline="middle",H.opacity=t.opacity,H.strokeFirst=!0,z&&(H.shadowBlur=t.textShadowBlur||0,H.shadowColor=t.textShadowColor||"transparent",H.shadowOffsetX=t.textShadowOffsetX||0,H.shadowOffsetY=t.textShadowOffsetY||0),H.stroke=N,H.fill=R,N&&(H.lineWidth=t.lineWidth||L,H.lineDash=t.lineDash,H.lineDashOffset=t.lineDashOffset||0),H.font=e,x(H,t),D+=y,E&&F.setBoundingRect(new h.A((0,s.ll)(H.x,t.width,H.textAlign),(0,s.sZ)(H.y,B,H.textBaseline),f,B))}},e.prototype._updateRichTexts=function(){var t=this.style,e=C(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,d=t.verticalAlign||c.verticalAlign,f=(0,s.ll)(u,o,p),g=(0,s.sZ)(h,a,d),y=f,v=g;l&&(y+=l[3],v+=l[0]);var m=y+i;I(t)&&this._renderBackground(t,t,f,g,o,a);for(var _=!!t.backgroundColor,x=0;x<n.lines.length;x++){for(var b=n.lines[x],w=b.tokens,S=w.length,A=b.lineHeight,M=b.width,T=0,D=y,k=m,O=S-1,L=void 0;T<S&&(!(L=w[T]).align||"left"===L.align);)this._placeToken(L,t,A,v,D,"left",_),M-=L.width,D+=L.width,T++;for(;O>=0&&"right"===(L=w[O]).align;)this._placeToken(L,t,A,v,k,"right",_),M-=L.width,k-=L.width,O--;for(D+=(i-(D-y)-(m-k)-M)/2;T<=O;)L=w[T],this._placeToken(L,t,A,v,D+L.width/2,"center",_),D+=L.width,T++;v+=A}},e.prototype._placeToken=function(t,e,n,i,r,l,u){var c=e.rich[t.styleName]||{};c.text=t.text;var d=t.verticalAlign,f=i+n/2;"top"===d?f=i+t.height/2:"bottom"===d&&(f=i+n-t.height/2),!t.isLineHolder&&I(c)&&this._renderBackground(c,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!c.backgroundColor,y=t.textPadding;y&&(r=M(r,l,y),f-=t.height/2-y[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.A),m=v.createStyle();v.useStyle(m);var _=this._defaultStyle,b=!1,w=0,C=A("fill"in c?c.fill:"fill"in e?e.fill:(b=!0,_.fill)),T=S("stroke"in c?c.stroke:"stroke"in e?e.stroke:g||u||_.autoStroke&&!b?null:(w=2,_.stroke)),D=c.textShadowBlur>0||e.textShadowBlur>0;m.text=t.text,m.x=r,m.y=f,D&&(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),T&&(m.lineWidth=(0,a.retrieve3)(c.lineWidth,e.lineWidth,w),m.lineDash=(0,a.retrieve2)(c.lineDash,e.lineDash),m.lineDashOffset=e.lineDashOffset||0,m.stroke=T),C&&(m.fill=C);var k=t.contentWidth,O=t.contentHeight;v.setBoundingRect(new h.A((0,s.ll)(m.x,k,m.textAlign),(0,s.sZ)(m.y,O,m.textBaseline),k,O))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,h,c=t.backgroundColor,p=t.borderWidth,d=t.borderColor,f=c&&c.image,g=c&&!f,y=t.borderRadius,v=this;if(g||t.lineHeight||p&&d){(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(f){(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&&d){var _=s.style;_.lineWidth=p,_.stroke=d,_.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 b=(s||h).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return b(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 b(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function w(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 C(t){var e=t.text;return null!=e&&(e+=""),e}function I(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}let T=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:()=>f,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,d="truncate"===e.lineOverflow,f=e.width,g=(n=null!=f&&("break"===i||"breakAll"===i)?t?v(t,e.font,f,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*c,y=(0,r.retrieve2)(e.height,g);if(g>y&&d){var m=Math.floor(y/c);n=n.slice(0,m)}if(t&&"truncate"===i&&null!=f)for(var _=l(f,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;x<n.length;x++)n[x]=u(n[x],_);for(var b=y,w=0,x=0;x<n.length;x++)w=Math.max((0,o.RG)(n[x],s),w);null==f&&(f=w);var S=w;return a&&(b+=a[0]+a[2],S+=a[1]+a[3],f+=a[1]+a[3]),p&&(S=f),{lines:n,height:y,outerWidth:S,outerHeight:b,lineHeight:c,calculatedLineHeight:h,contentWidth:w,contentHeight:g,width:f}}var c=function(){},p=function(t){this.tokens=[],t&&(this.tokens=t)},d=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function f(t,e){var n,l=new d;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,f=a.lastIndex=0;null!=(n=a.exec(t));){var y=n.index;y>f&&g(l,t.substring(f,y),e,p),g(l,n[2],e,p,n[1]),f=a.lastIndex}f<t.length&&g(l,t.substring(f,t.length),e,p);var v=[],m=0,_=0,x=e.padding,b="truncate"===c,w="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],C=0,I=0,T=0;T<M.tokens.length;T++){var D=M.tokens[T],k=D.styleName&&e.rich[D.styleName]||{},O=D.textPadding=k.padding,L=O?O[1]+O[3]:0,P=D.font=k.font||e.font;D.contentHeight=(0,o.ks)(P);var R=(0,r.retrieve2)(k.height,D.contentHeight);if(D.innerHeight=R,O&&(R+=O[0]+O[2]),D.height=R,D.lineHeight=(0,r.retrieve3)(k.lineHeight,e.lineHeight,R),D.align=k&&k.align||e.align,D.verticalAlign=k&&k.verticalAlign||"middle",w&&null!=h&&m+D.lineHeight>h){T>0?(M.tokens=M.tokens.slice(0,T),S(M,I,C),l.lines=l.lines.slice(0,A+1)):l.lines=l.lines.slice(0,A);break e}var N=k.width,z=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))D.percentWidth=N,v.push(D),D.contentWidth=(0,o.RG)(D.text,P);else{if(z){var E=k.backgroundColor,B=E&&E.image;B&&(B=i.SR(B),i.xA(B)&&(D.width=Math.max(D.width,B.width*R/B.height)))}var V=b&&null!=u?u-I:null;null!=V&&V<D.width?!z||V<L?(D.text="",D.width=D.contentWidth=0):(D.text=s(D.text,V-L,P,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=(0,o.RG)(D.text,P)):D.contentWidth=(0,o.RG)(D.text,P)}D.width+=L,I+=D.width,k&&(C=Math.max(C,D.lineHeight))}S(M,I,C)}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 D=v[A],F=D.percentWidth;D.width=parseInt(F,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,d=u.font||n.font,f=!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"),f=!0),i.accumWidth=m}else{var _=v(e,d,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 b=a[x],w=new c;if(w.styleName=r,w.text=b,w.isLineHolder=!b&&!l,"number"==typeof u.width?w.width=u.width:w.width=s?s[x]:(0,o.RG)(b,d),x||f)h.push(new p([w]));else{var S=(h[h.length-1]||(h[0]=new p)).tokens,A=S.length;1===A&&S[0].isLineHolder?S[0]=w:(b||!A||l)&&S.push(w)}}}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 d=t.charAt(p);if("\n"===d){u&&(l+=u,c+=h),a.push(l),s.push(c),l="",u="",h=0,c=0;continue}var f=(0,o.RG)(d,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]}(d);if(a.length?c+f>n:r+c+f>n){c?(l||u)&&(g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=d,h+=f,l="",c=h):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=d,c=f)):g?(a.push(u),s.push(h),u=d,h=f):(a.push(d),s.push(f));continue}c+=f,g?(u+=d,h+=f):(u&&(l+=u,u="",h=0),l+=d)}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 d=0,f=t.length;d<f;d++)(0,i.min)(s,s,t[d]),(0,i.max)(l,l,t[d]);(0,i.min)(s,s,r[0]),(0,i.max)(l,l,r[1])}for(var d=0,f=t.length;d<f;d++){var g=t[d];if(n)o=t[d?d-1:f-1],a=t[(d+1)%f];else if(0===d||d===f-1){u.push((0,i.clone)(t[d]));continue}else o=t[d-1],a=t[d+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,d,f,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,d=n.height,f=n.r,p<0&&(h+=p,p=-p),d<0&&(c+=d,d=-d),"number"==typeof f?i=r=a=l=f:f instanceof Array?1===f.length?i=r=a=l=f[0]:2===f.length?(i=a=f[0],r=l=f[1]):3===f.length?(i=f[0],r=l=f[1],a=f[2]):(i=f[0],r=f[1],a=f[2],l=f[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>d&&(u=r+a,r*=d/u,a*=d/u),i+l>d&&(u=i+l,i*=d/u,l*=d/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+d-a),0!==a&&t.arc(h+p-a,c+d-a,a,0,Math.PI/2),t.lineTo(h+l,c+d),0!==l&&t.arc(h+l,c+d-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,d=Math.sqrt,f=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)/d(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,b=v-g,w=x*x+b*b,S=r-o,A=p*v-y*g,M=(b<0?-1:1)*d(f(0,S*S*w-A*A)),C=(A*b-x*M)/w,I=(-A*x-b*M)/w,T=(A*b+x*M)/w,D=(-A*x+b*M)/w,k=C-m,O=I-_,L=T-m,P=D-_;return k*k+O*O>L*L+P*P&&(C=T,I=D),{cx:C,cy:I,x0:-h,y0:-c,x1:C*(r/S-1),y1:I*(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=f(e.r,0),r=f(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,b=e.endAngle;if(!(isNaN(x)||isNaN(b))){var w=e.cx,S=e.cy,A=!!e.clockwise,M=p(b-x),C=M>s&&M%s;if(C>1e-4&&(M=C),i>1e-4)if(M>s-1e-4)t.moveTo(w+i*u(x),S+i*l(x)),t.arc(w,S,i,x,b,!A),r>1e-4&&(t.moveTo(w+r*u(b),S+r*l(b)),t.arc(w,S,r,b,x,A));else{var I=void 0,T=void 0,D=void 0,k=void 0,O=void 0,L=void 0,P=void 0,R=void 0,N=void 0,z=void 0,E=void 0,B=void 0,V=void 0,F=void 0,H=void 0,W=void 0,G=i*u(x),Y=i*l(x),X=r*u(b),U=r*l(b),Z=M>1e-4;if(Z){var q=e.cornerRadius;q&&(I=(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],T=n[1],D=n[2],k=n[3]);var j=p(i-r)/2;if(O=g(j,D),L=g(j,k),P=g(j,I),R=g(j,T),E=N=f(O,L),B=z=f(P,R),(N>1e-4||z>1e-4)&&(V=i*u(b),F=i*l(b),H=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,Y,H,W,V,F,X,U);if(K){var $=G-K[0],Q=Y-K[1],J=V-K[0],tt=F-K[1],te=1/l(h(($*J+Q*tt)/(d($*$+Q*Q)*d(J*J+tt*tt)))/2),tn=d(K[0]*K[0]+K[1]*K[1]);E=g(N,(i-tn)/(te+1)),B=g(z,(r-tn)/(te-1))}}}if(Z)if(E>1e-4){var ti=g(D,E),tr=g(k,E),to=y(H,W,G,Y,i,ti,A),ta=y(V,F,X,U,i,tr,A);t.moveTo(w+to.cx+to.x0,S+to.cy+to.y0),E<N&&ti===tr?t.arc(w+to.cx,S+to.cy,E,c(to.y0,to.x0),c(ta.y0,ta.x0),!A):(ti>0&&t.arc(w+to.cx,S+to.cy,ti,c(to.y0,to.x0),c(to.y1,to.x1),!A),t.arc(w,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(w+ta.cx,S+ta.cy,tr,c(ta.y1,ta.x1),c(ta.y0,ta.x0),!A))}else t.moveTo(w+G,S+Y),t.arc(w,S,i,x,b,!A);else t.moveTo(w+G,S+Y);if(r>1e-4&&Z)if(B>1e-4){var ti=g(I,B),tr=g(T,B),to=y(X,U,V,F,r,-tr,A),ta=y(G,Y,H,W,r,-ti,A);t.lineTo(w+to.cx+to.x0,S+to.cy+to.y0),B<z&&ti===tr?t.arc(w+to.cx,S+to.cy,B,c(to.y0,to.x0),c(ta.y0,ta.x0),!A):(tr>0&&t.arc(w+to.cx,S+to.cy,tr,c(to.y0,to.x0),c(to.y1,to.x1),!A),t.arc(w,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(w+ta.cx,S+ta.cy,ti,c(ta.y1,ta.x1),c(ta.y0,ta.x0),!A))}else t.lineTo(w+X,S+U),t.arc(w,S,r,b,x,A);else t.lineTo(w+X,S+U)}else t.moveTo(w,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:()=>w,OH:()=>_,OS:()=>m,Pt:()=>v,WG:()=>A,XP:()=>h,Xu:()=>b,Z1:()=>S,bn:()=>x,dX:()=>f,eQ:()=>p,nV:()=>c,sL:()=>y,sZ:()=>d,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 d(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function f(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function g(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(t){return t&&!!t.image}function v(t){return 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 b(t){return"url(#"+t+")"}function w(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:()=>b,lerp:()=>w,lift:()=>m,liftColor:()=>k,lum:()=>I,mapToColor:()=>S,modifyAlpha:()=>M,modifyHSL:()=>A,parse:()=>y,random:()=>T,stringify:()=>C,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 d=new i.Ay(20),f=null;function g(t,e){f&&p(f,e),f=d.put(t,f||e.slice())}function y(t,e){if(t){e=e||[];var n=d.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 f=i.substr(0,s),y=i.substr(s+1,h-(s+1)).split(","),m=1;switch(f){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 C(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],d=e[c],f=u-h;return n[0]=a((i=p[0],i+(d[0]-i)*f)),n[1]=a((r=p[1],r+(d[1]-r)*f)),n[2]=a((o=p[2],o+(d[2]-o)*f)),n[3]=s((l=p[3],l+(d[3]-l)*f)),n}}var b=x;function w(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]),d=y(e[c]),f=u-h,g=C([a((i=p[0],i+(d[0]-i)*f)),a((r=p[1],r+(d[1]-r)*f)),a((o=p[2],o+(d[2]-o)*f)),s((l=p[3],l+(d[3]-l)*f))],"rgba");return n?{color:g,leftIndex:h,rightIndex:c,value:u}:g}}var S=w;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 d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}(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)),C(v(o),"rgba")}function M(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(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 I(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 T(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var D=new i.Ay(100);function k(t){if((0,r.isString)(t)){var e=D.get(t);return e||(e=m(t,-.1),D.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:()=>C,rR:()=>D,Qh:()=>I,uc:()=>T});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,d=t.data,f=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<f;){switch(n=d[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 b=e[4],w=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);d[r]*=S,d[r++]+=b,d[r]*=A,d[r++]+=w,d[r++]*=S,d[r++]*=A,d[r++]+=M,d[r++]+=M,r+=2,o=r;break;case m:p[0]=d[r++],p[1]=d[r++],(0,a.applyTransform)(p,p,e),d[o++]=p[0],d[o++]=p[1],p[0]+=d[r++],p[1]+=d[r++],(0,a.applyTransform)(p,p,e),d[o++]=p[0],d[o++]=p[1]}for(c=0;c<i;c++){var C=l[c];C[0]=d[r++],C[1]=d[r++],(0,a.applyTransform)(C,C,e),d[o++]=C[0],d[o++]=C[1]}}t.increaseVersion()}}var p=n(4884),d=Math.sqrt,f=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+f(c)*(e-i)/2,v=-1*f(c)*(t-n)/2+g(c)*(e-i)/2,x=p*p/(a*a)+v*v/(s*s);x>1&&(a*=d(x),s*=d(x));var b=(r===o?-1:1)*d((a*a*(s*s)-a*a*(v*v)-s*s*(p*p))/(a*a*(v*v)+s*s*(p*p)))||0,w=b*a*v/s,S=-(b*s)*p/a,A=(t+n)/2+g(c)*w-f(c)*S,M=(e+i)/2+f(c)*w+g(c)*S,C=_([1,0],[(p-w)/a,(v-S)/s]),I=[(p-w)/a,(v-S)/s],T=[(-1*p-w)/a,(-1*v-S)/s],D=_(I,T);if(-1>=m(I,T)&&(D=y),m(I,T)>=1&&(D=0),D<0){var k=Math.round(D/y*1e6)/1e6;D=2*y+k%2*y}h.addData(u,A,M,a,s,C,D,c,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,w=/-?([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(b);if(!u)return n;for(var h=0;h<u.length;h++){for(var c=u[h],p=c.charAt(0),d=void 0,f=c.match(w)||[],g=f.length,y=0;y<g;y++)f[y]=parseFloat(f[y]);for(var v=0;v<g;){var m=void 0,_=void 0,S=void 0,A=void 0,M=void 0,C=void 0,I=void 0,T=i,D=r,k=void 0,O=void 0;switch(p){case"l":i+=f[v++],r+=f[v++],d=l.L,n.addData(d,i,r);break;case"L":i=f[v++],r=f[v++],d=l.L,n.addData(d,i,r);break;case"m":i+=f[v++],r+=f[v++],d=l.M,n.addData(d,i,r),a=i,s=r,p="l";break;case"M":i=f[v++],r=f[v++],d=l.M,n.addData(d,i,r),a=i,s=r,p="L";break;case"h":i+=f[v++],d=l.L,n.addData(d,i,r);break;case"H":i=f[v++],d=l.L,n.addData(d,i,r);break;case"v":r+=f[v++],d=l.L,n.addData(d,i,r);break;case"V":r=f[v++],d=l.L,n.addData(d,i,r);break;case"C":d=l.C,n.addData(d,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":d=l.C,n.addData(d,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":m=i,_=r,k=n.len(),O=n.data,e===l.C&&(m+=i-O[k-4],_+=r-O[k-3]),d=l.C,T=f[v++],D=f[v++],i=f[v++],r=f[v++],n.addData(d,m,_,T,D,i,r);break;case"s":m=i,_=r,k=n.len(),O=n.data,e===l.C&&(m+=i-O[k-4],_+=r-O[k-3]),d=l.C,T=i+f[v++],D=r+f[v++],i+=f[v++],r+=f[v++],n.addData(d,m,_,T,D,i,r);break;case"Q":T=f[v++],D=f[v++],i=f[v++],r=f[v++],d=l.Q,n.addData(d,T,D,i,r);break;case"q":T=f[v++]+i,D=f[v++]+r,i+=f[v++],r+=f[v++],d=l.Q,n.addData(d,T,D,i,r);break;case"T":m=i,_=r,k=n.len(),O=n.data,e===l.Q&&(m+=i-O[k-4],_+=r-O[k-3]),i=f[v++],r=f[v++],d=l.Q,n.addData(d,m,_,i,r);break;case"t":m=i,_=r,k=n.len(),O=n.data,e===l.Q&&(m+=i-O[k-4],_+=r-O[k-3]),i+=f[v++],r+=f[v++],d=l.Q,n.addData(d,m,_,i,r);break;case"A":S=f[v++],A=f[v++],M=f[v++],C=f[v++],I=f[v++],T=i,D=r,i=f[v++],x(T,D,i,r=f[v++],C,I,S,A,M,d=l.A,n);break;case"a":S=f[v++],A=f[v++],M=f[v++],C=f[v++],I=f[v++],T=i,D=r,i+=f[v++],x(T,D,i,r+=f[v++],C,I,S,A,M,d=l.A,n)}}("z"===p||"Z"===p)&&(d=l.Z,n.addData(d),i=a,r=s),e=d}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 C(t,e){return new S(M(t,e))}function I(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 T(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 D(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}(),d=n(16419),f=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=f.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(){f.ds(this.event)}var b=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}(d.A),w=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 w(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new b,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=I(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 w(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 w(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 w(t,e);if(C(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,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(C(o,r,t+d*Math.cos(f),e+d*Math.sin(f),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 w;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(d.A);function C(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 I(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=I(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 T=n(24952),D=n(63154),k=!1;function O(){k||(k=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function L(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var P=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=L}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,T.A)(n,L)},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|=D.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 z(){return new Date().getTime()}var E=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=z()-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=z(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=z(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=z()-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}(d.A),B=s.A.domSupported,V=(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}),F=["mousemove","mouseup"],H=["pointermove","pointerup"],W=!1;function G(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Y(t){t&&(t.zrByTouch=!0)}function X(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 U=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},Z={mousedown:function(t){t=(0,f.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,f.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,f.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){X(this,(t=(0,f.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){W=!0,t=(0,f.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){W||(t=(0,f.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Y(t=(0,f.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Z.mousemove.call(this,t),Z.mousedown.call(this,t)},touchmove:function(t){Y(t=(0,f.e0)(this.dom,t)),this.handler.processGesture(t,"change"),Z.mousemove.call(this,t)},touchend:function(t){Y(t=(0,f.e0)(this.dom,t)),this.handler.processGesture(t,"end"),Z.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&Z.click.call(this,t)},pointerdown:function(t){Z.mousedown.call(this,t)},pointermove:function(t){G(t)||Z.mousemove.call(this,t)},pointerup:function(t){Z.mouseup.call(this,t)},pointerout:function(t){G(t)||Z.mouseout.call(this,t)}};l.each(["click","dblclick","contextmenu"],function(t){Z[t]=function(e){e=(0,f.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 j(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,f.q2)(t.domTarget,e,n,i)}function K(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,f.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,Z),B&&(o._globalHandlerScope=new $(document,q)),r=(i=o._localHandlerScope).domHandlers,s.A.pointerEventsSupported?l.each(V.pointer,function(t){j(i,t,function(e){r[t].call(o,e)})}):(s.A.touchEventsSupported&&l.each(V.touch,function(t){j(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(V.mouse,function(t){j(i,t,function(e){e=(0,f.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(H,n):s.A.touchEventsSupported||l.each(F,n);function n(n){j(e,n,function(i){if(!X(t,(i=(0,f.mK)(i)).target)){var r;r=i,i=(0,f.e0)(t.dom,new U(t,r),!0),e.domHandlers[n].call(t,i)}},{capture:!0})}}(this,e):K(e)}},e}(d.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 P,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 E({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=z();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=z();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"}}]);