create-ssnode-cli 0.1.0 → 0.2.2

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 (107) hide show
  1. package/README.md +1 -2
  2. package/index.js +10 -4
  3. package/package.json +2 -2
  4. package/secrets.js +10 -7
  5. package/templates/backend/Dockerfile +4 -0
  6. package/templates/backend/config/config.develop.yaml +10 -0
  7. package/templates/backend/config/config.prod.yaml +10 -0
  8. package/templates/backend/dist/config/configuration.js +1 -1
  9. package/templates/backend/dist/config/configuration.js.map +1 -1
  10. package/templates/backend/dist/modules/auth/auth.service.js +1 -1
  11. package/templates/backend/dist/modules/auth/auth.service.js.map +1 -1
  12. package/templates/backend/dist/modules/page-data/page-data.controller.js +1 -1
  13. package/templates/backend/dist/modules/page-data/page-data.controller.js.map +1 -1
  14. package/templates/backend/dist/modules/screen-config/screen-config.controller.js +1 -1
  15. package/templates/backend/dist/modules/screen-config/screen-config.controller.js.map +1 -1
  16. package/templates/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  17. package/templates/backend/node_modules/.bin/js-yaml +2 -2
  18. package/templates/backend/node_modules/.bin/typeorm +2 -2
  19. package/templates/backend/node_modules/.bin/typeorm-ts-node-commonjs +2 -2
  20. package/templates/backend/node_modules/.bin/typeorm-ts-node-esm +2 -2
  21. package/templates/backend/ops/docker/.env.example +4 -0
  22. package/templates/backend/ops/docker/config.sh +2 -0
  23. package/templates/backend/ops/docker/install.sh +35 -0
  24. package/templates/backend/ops/install.sh +17 -3
  25. package/templates/backend/ops/pm2/config.sh +2 -0
  26. package/templates/backend/ops/systemd/config.sh +2 -0
  27. package/templates/backend/package.json +13 -6
  28. package/templates/backend/scripts/build.cjs +67 -1
  29. package/templates/backend/src/config/config.interface.ts +9 -0
  30. package/templates/backend/src/config/configuration.ts +11 -0
  31. package/templates/backend/src/modules/auth/auth.service.ts +57 -12
  32. package/templates/backend/src/modules/page-data/page-data.controller.ts +33 -10
  33. package/templates/backend/src/modules/screen-config/screen-config.controller.ts +33 -5
  34. package/templates/root/AGENTS.md +1 -1
  35. package/templates/root/README.md +9 -6
  36. package/templates/root/package.json +9 -1
  37. package/templates/web/dist/assets/{404-f80ef771.js → 404-e6edada0.js} +1 -1
  38. package/templates/web/dist/assets/{404-legacy-3002ee98.js → 404-legacy-f6ca5b91.js} +1 -1
  39. package/templates/web/dist/assets/AuthLayout-bcf98efb.js +1 -0
  40. package/templates/web/dist/assets/AuthLayout-legacy-6e7a8ae1.js +1 -0
  41. package/templates/web/dist/assets/Background-90a49ee7.css +1 -0
  42. package/templates/web/dist/assets/Background-eb77ef54.js +1 -0
  43. package/templates/web/dist/assets/Background-legacy-50457007.js +1 -0
  44. package/templates/web/dist/assets/{Screen-2126fd8d.js → Screen-318c3fc2.js} +1 -1
  45. package/templates/web/dist/assets/{Screen-legacy-e1974f1b.js → Screen-legacy-af123b0f.js} +1 -1
  46. package/templates/web/dist/assets/{ScreenChartOption-cc9d0192.js → ScreenChartOption-953b9157.js} +1 -1
  47. package/templates/web/dist/assets/{ScreenChartOption-legacy-b1b2d49d.js → ScreenChartOption-legacy-2e8fcfd8.js} +1 -1
  48. package/templates/web/dist/assets/api-beff4a3e.js +1 -0
  49. package/templates/web/dist/assets/api-legacy-9fe41d4b.js +1 -0
  50. package/templates/web/dist/assets/{base-8cbac341.js → base-a14309c8.js} +1 -1
  51. package/templates/web/dist/assets/{base-legacy-ee9fb316.js → base-legacy-2bc6e427.js} +1 -1
  52. package/templates/web/dist/assets/{child-10cea360.js → child-2a48ca65.js} +1 -1
  53. package/templates/web/dist/assets/{child-legacy-5af47aba.js → child-legacy-7665b5f8.js} +1 -1
  54. package/templates/web/dist/assets/{component-ae0df581.js → component-89b5253e.js} +1 -1
  55. package/templates/web/dist/assets/{component-legacy-7824b5dc.js → component-legacy-8c5a28ef.js} +1 -1
  56. package/templates/web/dist/assets/{demo-1b5e36be.js → demo-d7272cf4.js} +1 -1
  57. package/templates/web/dist/assets/{demo-legacy-e12d2ac9.js → demo-legacy-f7bbfe55.js} +1 -1
  58. package/templates/web/dist/assets/echarts-vendor-50090982.js +9 -0
  59. package/templates/web/dist/assets/echarts-vendor-legacy-50b58722.js +10 -0
  60. package/templates/web/dist/assets/{grandson-d5883b90.js → grandson-05f8bb58.js} +1 -1
  61. package/templates/web/dist/assets/{grandson-legacy-10cd2476.js → grandson-legacy-3e10990b.js} +1 -1
  62. package/templates/web/dist/assets/{index-9fbd51da.js → index-466a1ec1.js} +1 -1
  63. package/templates/web/dist/assets/{index-5dbae75a.js → index-5b5a8146.js} +1 -1
  64. package/templates/web/dist/assets/{index-6faaa6d8.js → index-7277cbfb.js} +1 -1
  65. package/templates/web/dist/assets/{index-8f6fba9f.js → index-777ef781.js} +1 -1
  66. package/templates/web/dist/assets/{index-2e42b180.js → index-86214b19.js} +1 -1
  67. package/templates/web/dist/assets/{index-463d9205.js → index-9cd5622a.js} +1 -1
  68. package/templates/web/dist/assets/{index-16f6b85c.js → index-a79e448b.js} +1 -1
  69. package/templates/web/dist/assets/{index-3a9a0a97.js → index-b60badf7.js} +1 -1
  70. package/templates/web/dist/assets/{index-fbf4ee3f.js → index-bd4ed808.js} +1 -1
  71. package/templates/web/dist/assets/{index-687d6cfe.js → index-cba19800.js} +1 -1
  72. package/templates/web/dist/assets/{index-5dbcad00.js → index-d70eb540.js} +1 -1
  73. package/templates/web/dist/assets/{index-25ea283a.js → index-e6071630.js} +1 -1
  74. package/templates/web/dist/assets/{index-legacy-ced5a7f1.js → index-legacy-028ed5d5.js} +1 -1
  75. package/templates/web/dist/assets/{index-legacy-8c7d1ee7.js → index-legacy-06483318.js} +1 -1
  76. package/templates/web/dist/assets/{index-legacy-ba034322.js → index-legacy-0da8de82.js} +1 -1
  77. package/templates/web/dist/assets/{index-legacy-3d221bb6.js → index-legacy-3965dcaf.js} +1 -1
  78. package/templates/web/dist/assets/{index-legacy-f3e49a4e.js → index-legacy-4a13dddc.js} +1 -1
  79. package/templates/web/dist/assets/{index-legacy-e9af81d8.js → index-legacy-783129a7.js} +1 -1
  80. package/templates/web/dist/assets/{index-legacy-07d00151.js → index-legacy-8a2cfb9d.js} +1 -1
  81. package/templates/web/dist/assets/{index-legacy-dd62c9e7.js → index-legacy-993ef005.js} +1 -1
  82. package/templates/web/dist/assets/{index-legacy-38c170dc.js → index-legacy-b075295d.js} +1 -1
  83. package/templates/web/dist/assets/{index-legacy-95da3338.js → index-legacy-b3bd40c1.js} +1 -1
  84. package/templates/web/dist/assets/{index-legacy-9be704da.js → index-legacy-d510e318.js} +1 -1
  85. package/templates/web/dist/assets/{index-legacy-0f01787c.js → index-legacy-feb54578.js} +1 -1
  86. package/templates/web/dist/assets/{parent-e7114c1b.js → parent-bba709aa.js} +1 -1
  87. package/templates/web/dist/assets/{parent-legacy-9e493d04.js → parent-legacy-48111978.js} +1 -1
  88. package/templates/web/dist/assets/vendor-affac96c.js +124 -0
  89. package/templates/web/dist/assets/vendor-legacy-55fa76eb.js +122 -0
  90. package/templates/web/dist/index.html +3 -3
  91. package/templates/web/package.json +7 -7
  92. package/templates/web/src/js/xlsl.ts +110 -59
  93. package/templates/web/src/layouts/AuthLayout.tsx +16 -11
  94. package/templates/web/src/layouts/Background.module.less +5 -3
  95. package/templates/web/src/services/api/admin/user.ts +9 -2
  96. package/templates/web/dist/assets/AuthLayout-f07f2dff.js +0 -1
  97. package/templates/web/dist/assets/AuthLayout-legacy-635887dd.js +0 -1
  98. package/templates/web/dist/assets/Background-63ce83a2.js +0 -1
  99. package/templates/web/dist/assets/Background-b264d337.css +0 -1
  100. package/templates/web/dist/assets/Background-legacy-a34b521f.js +0 -1
  101. package/templates/web/dist/assets/api-21ca288f.js +0 -1
  102. package/templates/web/dist/assets/api-legacy-b464070b.js +0 -1
  103. package/templates/web/dist/assets/echarts-vendor-fdb2c14f.js +0 -9
  104. package/templates/web/dist/assets/echarts-vendor-legacy-e99e5121.js +0 -10
  105. package/templates/web/dist/assets/vendor-e7ea3a11.js +0 -96
  106. package/templates/web/dist/assets/vendor-legacy-a62a28c9.js +0 -87
  107. package/templates/web/node_modules/.bin/xlsx +0 -17
@@ -0,0 +1,10 @@
1
+ System.register(["./vendor-legacy-55fa76eb.js"],(function(t,e){"use strict";var n;return{setters:[t=>{n=t._}],execute:function(){t({a:function(t){t.registerChartView(AM),t.registerSeriesModel(oM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,function(t){return{seriesType:t,overallReset:function(e){var n=UT(t,jT);!function(t,e,n){var i=Yb(qy(t)).keyed,r=i&&i.get(e);r&&r.each((function(t){n(t.axis)}))}(e,n,(function(e){var i=function(t,e){var n=function(t,e){var n=UT(e,jT),i=[],r=Ww(t,{fromStat:{key:n},min:1});return tw(t,n,(function(t){i.push({barWidth:jr(t.get("barWidth"),r.w),barMaxWidth:jr(t.get("barMaxWidth"),r.w),barMinWidth:jr(t.get("barMinWidth")||(eM(t)?.5:1),r.w),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),defaultBarGap:t.get("defaultBarGap"),stackId:tM(t)})})),{bandWidthResult:r,seriesInfo:i}}(t,e);return n.columnMap=function(t){var e,n,i=t.bandWidthResult.w,r=i,o=0,a=[],s={};P(t.seriesInfo,(function(t,i){i||(n=t.defaultBarGap||0);var l=t.stackId;pt(s,l)||o++;var u=s[l];u||(u=s[l]={width:0,maxWidth:0},a.push(l));var c=t.barWidth;c&&!u.width&&(u.width=c,c=zr(r,c),r-=c);var h=t.barMaxWidth;h&&(u.maxWidth=h);var p=t.barMinWidth;p&&(u.minWidth=p);var d=t.barGap;null!=d&&(n=d);var f=t.barCategoryGap;null!=f&&(e=f)})),null==e&&(e=Er(35-4*a.length,15)+"%");var l=jr(e,i),u=jr(n,1),c=(r-l)/(o+(o-1)*u);c=Er(c,0),P(a,(function(t){var e=s[t],n=e.maxWidth,i=e.minWidth;if(e.width)a=e.width,n&&(a=zr(a,n)),i&&(a=Er(a,i)),e.width=a,r-=a+u*a,o--;else{var a=c;n&&n<a&&(a=zr(n,r)),i&&i>a&&(a=i),a!==c&&(e.width=a,r-=a+u*a,o--)}})),c=Er(c=(r-l)/(o+(o-1)*u),0);var h,p=0;P(a,(function(t){var e=s[t];e.width||(e.width=c),h=e,p+=e.width*(1+u)})),h&&(p-=h.width*u);var d={},f=-p/2;return P(a,(function(t){var e=s[t];d[t]=d[t]||{bandWidth:i,offset:f,width:e.width},f+=e.width*(1+u)})),d}(n),n}(e,t);tw(e,n,(function(t){var e=i.columnMap[tM(t)];t.getData().setLayout({bandWidth:e.bandWidth,offset:e.offset,size:e.width})}))}))}}}(YT)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,function(t){return{seriesType:t,plan:Hv(),reset:function(t){if(function(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),c=Ax(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),p=r.toGlobalCoord(r.dataToCoord(function(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}(r))),d=eM(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=d&&NS(3*r),u=d&&s&&NS(3*r),m=d&&NS(r),_=n.master.getRect(),x=h?_.width:_.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(c?g:o,i),T=b.get(a,i),M=p,I=void 0;c&&(I=+S-b.get(o,i));var C=void 0,k=void 0,D=void 0,A=void 0;if(h){var L=n.dataToPoint([S,T]);c&&(M=n.dataToPoint([I,T])[0]),C=M,k=L[1]+y,D=L[0]-M,A=v,Fr(D)<f&&(D=(D<0?-1:1)*f)}else L=n.dataToPoint([T,S]),c&&(M=n.dataToPoint([T,I])[1]),C=L[0]+y,k=M,D=v,A=L[1]-M,Fr(A)<f&&(A=(A<=0?-1:1)*f);d?(l[w]=C,l[w+1]=k,l[w+2]=h?D:A,u&&(u[w]=h?_.x:C,u[w+1]=h?k:_.y,u[w+2]=x),m[i]=i):e.setItemLayout(i,{x:C,y:k,width:D,height:A}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}(YT)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,cT(YT)),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)}))})),function(t){QT(t,(function(){function e(e){var n=UT(e,jT);!function(t,e,n,i){!function(t,e){var n=aw(e.seriesType,e.baseAxis,e.coordSysType);sw.set(n,e),Ub(t,(function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:iw})}))}(t,{key:e,seriesType:n,coordSysType:i,getMetrics:XT})}(t,n,e,jT),function(t,e){yw.set(t,e)}(n,function(t){return function(t){return function(e,n){var i=Ww(e,{fromStat:{key:t}});if(go(i.w2))return[-i.w2/2,i.w2/2]}}(UT(t,jT))}(e))}e("bar"),e("pictorialBar")}))}(t)},b:function(t){Mw(ZI),t.registerSeriesModel(tI),t.registerChartView(sI),t.registerLayout(sT("scatter"))},c:function(t){t.registerChartView(QM),t.registerSeriesModel(zM),function(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}P([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=C({},e),r.dispatchAction(C(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}(RM,t.registerAction),t.registerLayout(qM),t.registerProcessor(function(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}))}}}}(RM)),t.registerProcessor(function(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(W(i)&&!isNaN(i)&&i<0)}))}}}(RM))},d:function(t){Mw(ZI),Mw(lk)},e:function(t){Mw(lk),t.registerComponentModel(wk),t.registerComponentView(Uk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},dt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},dt)},f:function(t){Mw(DD),Mw(ED)},g:function(t){t.registerComponentModel(Xk),t.registerComponentView(Yk)},h:function(t){t.registerComponentModel(FD),t.registerComponentView(VD)},i:function(t){t.registerChartView(aT),t.registerSeriesModel(mS),t.registerLayout(sT("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,cT("line"))},j:lk,k:function(t){t.registerComponentModel(dk),t.registerComponentView(vk),t.registerPreprocessor((function(t){var e=t.graphic;F(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))},l:function(t){t.registerComponentModel(sD),t.registerComponentView(gD),t.registerPreprocessor((function(t){(function(t,e){if(!t)return!1;for(var n=F(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1})(t.series,"markLine")&&(t.markLine=t.markLine||{})}))},m:function(t){t.registerPainter("canvas",oA)},n:function(t,e,n){var i=!(n&&n.ssr);if(i){var r=function(t){return O_[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(t,B_)]}(t);if(r)return r}var o=new w_(t,e,n);return o.id="ec_"+N_++,O_[o.id]=o,i&&Go(t,B_,o.id),v_(o),Uy.trigger("afterinit",o),o},u:Mw});var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new e,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?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:!i.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(i.node=!0,i.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=e.domSupported="undefined"!=typeof document;if(s){var l=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,i);const r=i;var o,a,s="12px sans-serif",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(!o){var n=u.createCanvas();o=n&&n.getContext("2d")}if(o)return a!==e&&(a=o.font=e||s),o.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(e=e||s),r=i&&+i[1]||12,c=0;if(e.indexOf("mono")>=0)c=r*t.length;else for(var h=0;h<t.length;h++){var p=l[t[h]];c+=null==p?r:p*r}return{width:c}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}},c=R(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),h=R(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),p=Object.prototype.toString,d=Array.prototype,f=d.forEach,g=d.filter,v=d.slice,y=d.map,m=function(){}.constructor,_=m?m.prototype:null,x="__proto__",b=2311,w=Math.pow(2,53)-1;function S(){return b>=w&&(b=0),b++}function T(){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=p.call(t);if("[object Array]"===n){if(!ot(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=M(t[i])}}else if(h[n]){if(!ot(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!c[n]&&!ot(t)&&!Z(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==x&&(e[a]=M(t[a]));return e}function I(t,e,n){if(!U(e)||!U(t))return n?M(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==x){var r=t[i],o=e[i];!U(o)||!U(r)||F(o)||F(r)||Z(o)||Z(r)||X(o)||X(r)||ot(o)||ot(r)?!n&&i in t||(t[i]=M(e[i])):I(r,o,n)}return t}function C(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==x&&(t[n]=e[n]);return t}function k(t,e,n){for(var i=B(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function D(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 A(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 k(t,e,n)}function L(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function P(t,e,n){if(t&&e)if(t.forEach&&t.forEach===f)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 O(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===y)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 R(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 N(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===g)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 B(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 z=_&&V(_.bind)?_.call.bind(_.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(v.call(arguments)))}};function E(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(v.call(arguments)))}}function F(t){return Array.isArray?Array.isArray(t):"[object Array]"===p.call(t)}function V(t){return"function"==typeof t}function H(t){return"string"==typeof t}function G(t){return"[object String]"===p.call(t)}function W(t){return"number"==typeof t}function U(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function X(t){return!!c[p.call(t)]}function Y(t){return!!h[p.call(t)]}function Z(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function q(t){return null!=t.colorStops}function j(t){return t!=t}function K(){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 $(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return v.apply(t,e)}function tt(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 et(t,e){if(!t)throw new Error(e)}function nt(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var it="__ec_primitive__";function rt(t){t[it]=!0}function ot(t){return t[it]}var at=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 B(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),st="function"==typeof Map,lt=function(){function t(e){var n=F(e);this.data=st?new Map:new at;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&P(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 st?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function ut(t){return new lt(t)}function ct(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&C(n,e),n}function ht(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function pt(t,e){return t.hasOwnProperty(e)}function dt(){}var ft=180/Math.PI;function gt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function vt(t){return[t[0],t[1]]}function yt(t,e,n){return t[0]=e,t[1]=n,t}function mt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function _t(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function xt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function bt(t,e){var n=function(t){return Math.sqrt(function(t){return t[0]*t[0]+t[1]*t[1]}(t))}(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function wt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var St=wt,Tt=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function Mt(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 It(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 Ct(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function kt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Dt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},At=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 Dt(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 Dt(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 Dt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Dt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Dt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Dt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();const Lt=At;var Pt=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}();const Ot=Pt;var Rt=Math.log(2);function Nt(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/Rt);return t[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(h+=(d%2?-1:1)*t[n][p]*Nt(t,e-1,c,u,r|f,o),d++)}return o[a]=h,h}function Bt(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=Nt(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Nt(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var zt="___zrEVENTSAVED",Et=[];function Ft(t,e,n,i,o){if(e.getBoundingClientRect&&r.domSupported&&!Vt(e)){var a=e[zt]||(e[zt]={}),s=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=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return e.clearMarkers=function(){P(n,(function(t){t.parentNode&&t.parentNode.removeChild(t)}))},n}(e,a),l=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?Bt(s,a):Bt(a,s))}(s,a,o);if(l)return l(t,n,i),!0}return!1}function Vt(t){return"CANVAS"===t.nodeName.toUpperCase()}var Ht=/([&<>"'])/g,Gt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Wt(t){return null==t?"":(t+"").replace(Ht,(function(t,e){return Gt[e]}))}var Ut=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xt=[],Yt=r.browser.firefox&&+r.browser.version.split(".")[0]<39;function Zt(t,e,n,i){return n=n||{},i?qt(t,e,n):Yt&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):qt(t,e,n),n}function qt(t,e,n){if(r.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(Vt(t)){var a=t.getBoundingClientRect();return n.zrX=i-a.left,void(n.zrY=o-a.top)}if(Ft(Xt,t,i,o))return n.zrX=Xt[0],void(n.zrY=Xt[1])}n.zrX=n.zrY=0}function jt(t){return t||window.event}function Kt(t,e,n){if(null!=(e=jt(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&&Zt(t,r,e,n)}else{Zt(t,e,e,n);var o=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=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Ut.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var $t=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},Qt=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=Zt(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 te)if(te.hasOwnProperty(e)){var n=te[e](this._track,t);if(n)return n}},t}();function Jt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var te={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Jt(r)/Jt(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function ee(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ne(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 ie(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 re(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 oe(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],c=Math.sin(n),h=Math.cos(n);return t[0]=r*h+s*c,t[1]=-r*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-i[0])+c*(u-i[1])+i[0],t[5]=h*(u-i[1])-c*(a-i[0])+i[1],t}function ae(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}var se=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}();const le=se;var ue=Math.min,ce=Math.max,he=Math.abs,pe=["x","y"],de=["width","height"],fe=new le,ge=new le,ve=new le,ye=new le,me=Ae(),_e=me.minTv,xe=me.maxTv,be=[0,0],we=function(){function t(t,e,n,i){Se(this,t,e,n,i)}return t.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},t.prototype.union=function(t){var e=ue(t.x,this.x),n=ue(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ce(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ce(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){return Me([1,0,0,1,0,0],this,t)},t.prototype.intersect=function(e,n,i){return t.intersect(this,e,n,i)},t.intersect=function(e,n,i,r){i&&le.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!e||!n)return!1;e instanceof t||(e=Se(Ie,e.x,e.y,e.width,e.height)),n instanceof t||(n=Se(Ce,n.x,n.y,n.width,n.height));var s=!!i;me.reset(r,s);var l=me.touchThreshold,u=e.x+l,c=e.x+e.width-l,h=e.y+l,p=e.y+e.height-l,d=n.x+l,f=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>p||d>f||g>v)return!1;var y=!(c<d||f<u||p<g||v<h);return(s||o)&&(be[0]=1/0,be[1]=0,De(u,c,d,f,0,s,o,a),De(h,p,g,v,1,s,o,a),s&&le.copy(i,y?me.useDir?me.dirMinTv:_e:xe)),y},t.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},t.prototype.contain=function(e,n){return t.contain(this,e,n)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){Te(this,t)},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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],r=n[3],o=n[4],a=n[5];return t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}fe.x=ve.x=e.x,fe.y=ye.y=e.y,ge.x=ye.x=e.x+e.width,ge.y=ve.y=e.y+e.height,fe.transform(n),ye.transform(n),ge.transform(n),ve.transform(n),t.x=ue(fe.x,ge.x,ve.x,ye.x),t.y=ue(fe.y,ge.y,ve.y,ye.y);var s=ce(fe.x,ge.x,ve.x,ye.x),l=ce(fe.y,ge.y,ve.y,ye.y);t.width=s-t.x,t.height=l-t.y}else t!==e&&Te(t,e)},t.calculateTransform=function(t,e,n){var i=n.width/e.width,r=n.height/e.height;return re(t=ee(t||[]),t,yt(ke,-e.x,-e.y)),function(t,e,n){var i=n[0],r=n[1];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,t,yt(ke,i,r)),re(t,t,yt(ke,n.x,n.y)),t},t}();we.create;var Se=we.set,Te=we.copy,Me=we.calculateTransform;we.applyTransform,we.contain;var Ie=new we(0,0,0,0),Ce=new we(0,0,0,0),ke=[];function De(t,e,n,i,r,o,a,s){var l=he(e-n),u=he(i-t),c=ue(l,u),h=pe[r],p=pe[1-r],d=de[r];e<n||i<t?l<u?(o&&(xe[h]=-l),s&&(a[h]=e,a[d]=0)):(o&&(xe[h]=u),s&&(a[h]=t,a[d]=0)):(a&&(a[h]=ce(t,n),a[d]=ue(e,i)-a[h]),o&&(c<be[0]||me.useDir)&&(be[0]=ue(c,be[0]),(l<u||!me.bidirectional)&&(_e[h]=l,_e[p]=0,me.useDir&&me.calcDirMTV()),(l>=u||!me.bidirectional)&&(_e[h]=-u,_e[p]=0,me.useDir&&me.calcDirMTV())))}function Ae(){var t=0,e=new le,n=new le,i={minTv:new le,maxTv:new le,useDir:!1,dirMinTv:new le,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){i.touchThreshold=0,r&&null!=r.touchThreshold&&(i.touchThreshold=ce(0,r.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,r&&null!=r.direction&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),t=r.direction,i.bidirectional=null==r.bidirectional||!!r.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),u=Math.cos(t),c=l*o.y+u*o.x;r(c)?r(o.x)&&r(o.y)&&a.set(0,0):(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)?a.set(0,0):(i.bidirectional||e.dot(n)>0)&&n.len()<a.len()&&a.copy(n))}};function r(t){return he(t)<1e-10}return i}const Le=we;var Pe="silent";function Oe(){$t(this.event)}var Re=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return n(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ot),Ne=function(t,e){this.x=t,this.y=e},Be=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ze=new Le(0,0,0,0),Ee=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Ne(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Re,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new Lt(a),a}return n(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(P(Be,(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=He(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 Ne(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 Ne(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="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Oe}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Ne(t,e);if(Ve(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Le(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ze.copy(c.getBoundingRect()),c.transform&&ze.applyTransform(c.transform),ze.intersect(l)&&o.push(c))}if(o.length)for(var h=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=h)if(Ve(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 Qt);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 Ne;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(Ot);function Fe(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);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return!r||Pe}return!1}function Ve(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=Fe(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==Pe)){e.target=a;break}}}function He(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ee.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=He(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||St(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const Ge=Ee;var We=32,Ue=7;function Xe(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function Ye(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?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 Ze(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=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function qe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<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=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function je(t,e){var n,i,r=Ue,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=qe(t[c],t,l,u,0,e);l+=p,0!=(u-=p)&&0!==(h=Ze(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!=--s)if(1!==i){for(var p,d,f,g=r;;){p=0,d=0,f=!1;do{if(e(t[c],a[u])<0){if(t[h++]=t[c++],d++,p=0,0==--s){f=!0;break}}else if(t[h++]=a[u++],p++,d=0,1==--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=qe(t[c],a,u,i,0,e))){for(l=0;l<p;l++)t[h+l]=a[u+l];if(h+=p,u+=p,(i-=p)<=1){f=!0;break}}if(t[h++]=t[c++],0==--s){f=!0;break}if(0!==(d=Ze(a[u],t,c,s,0,e))){for(l=0;l<d;l++)t[h+l]=t[c+l];if(h+=d,c+=d,0==(s-=d)){f=!0;break}}if(t[h++]=a[u++],1==--i){f=!0;break}g--}while(p>=Ue||d>=Ue);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=a[u+l]}}else{for(l=0;l<s;l++)t[h+l]=t[c+l];t[h+s]=a[u]}else for(l=0;l<i;l++)t[h+l]=a[u+l]}(l,u,c,h):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,c=s-1,h=o+s-1,p=0,d=0;if(t[h--]=t[u--],0!=--i)if(1!==s){for(var f=r;;){var g=0,v=0,y=!1;do{if(e(a[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0==--i){y=!0;break}}else if(t[h--]=a[c--],v++,g=0,1==--s){y=!0;break}}while((g|v)<f);if(y)break;do{if(0!=(g=i-qe(a[c],t,n,i,i-1,e))){for(i-=g,d=1+(h-=g),p=1+(u-=g),l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){y=!0;break}}if(t[h--]=a[c--],1==--s){y=!0;break}if(0!=(v=s-Ze(t[u],a,0,s,s-1,e))){for(s-=v,d=1+(h-=v),p=1+(c-=v),l=0;l<v;l++)t[d+l]=a[p+l];if(s<=1){y=!0;break}}if(t[h--]=t[u--],0==--i){y=!0;break}f--}while(g>=Ue||v>=Ue);if(y)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d=1+(h-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c]}else{if(0===s)throw new Error;for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}else{for(d=1+(h-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=a[c]}else for(p=h-(s-1),l=0;l<s;l++)t[p+l]=a[l]}(l,u,c,h))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-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;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}function Ke(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<We)Ye(t,n,i,n+(o=Xe(t,n,i,e)),e);else{var a=je(t,e),s=function(t){for(var e=0;t>=We;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Xe(t,n,i,e))<s){var l=r;l>s&&(l=s),Ye(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var $e=1,Qe=4,Je=!1;function tn(){Je||(Je=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function en(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=en}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,Ke(n,en)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),a[o++]=l,u=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var c=t.childrenRef(),h=0;h<c.length;h++){var p=c[h];t.__dirty&&(p.__dirty|=$e),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(tn(),d.z=0),isNaN(d.z2)&&(tn(),d.z2=0),isNaN(d.zlevel)&&(tn(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,a,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,a,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,a,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]);else{var i=D(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}();const rn=nn,on=r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var an={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;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((t-e)*(2*Math.PI)/.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((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-an.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*an.bounceIn(2*t):.5*an.bounceOut(2*t-1)+.5}};const sn=an;var ln=Math.pow,un=Math.sqrt,cn=1e-8,hn=1e-4,pn=un(3),dn=1/3,fn=gt(),gn=gt(),vn=gt();function yn(t){return t>-cn&&t<cn}function mn(t){return t>cn||t<-cn}function _n(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 xn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function bn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(yn(c)&&yn(h))yn(s)?o[0]=0:(T=-l/s)>=0&&T<=1&&(o[d++]=T);else{var f=h*h-4*c*p;if(yn(f)){var g=h/c,v=-g/2;(T=-s/a+g)>=0&&T<=1&&(o[d++]=T),v>=0&&v<=1&&(o[d++]=v)}else if(f>0){var y=un(f),m=c*s+1.5*a*(-h+y),_=c*s+1.5*a*(-h-y);(T=(-s-((m=m<0?-ln(-m,dn):ln(m,dn))+(_=_<0?-ln(-_,dn):ln(_,dn))))/(3*a))>=0&&T<=1&&(o[d++]=T)}else{var x=(2*c*s-3*a*h)/(2*un(c*c*c)),b=Math.acos(x)/3,w=un(c),S=Math.cos(b),T=(-s-2*w*S)/(3*a),M=(v=(-s+w*(S+pn*Math.sin(b)))/(3*a),(-s+w*(S-pn*Math.sin(b)))/(3*a));T>=0&&T<=1&&(o[d++]=T),v>=0&&v<=1&&(o[d++]=v),M>=0&&M<=1&&(o[d++]=M)}}return d}function wn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(yn(a))mn(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if(yn(u))r[0]=-o/(2*a);else if(u>0){var c,h=un(u),p=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}function Sn(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,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Tn(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=_n(t,n,r,a,f),v=_n(e,i,o,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Mn(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function In(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Cn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function kn(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 Dn(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=Mn(t,n,r,p),f=Mn(e,i,o,p),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}var An=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ln(t){var e=t&&An.exec(t);if(e){var n=e[1].split(","),i=+nt(n[0]),r=+nt(n[1]),o=+nt(n[2]),a=+nt(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:bn(0,i,o,1,t,s)&&_n(0,r,a,1,s[0])}}}const Pn=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||dt,this.ondestroy=t.ondestroy||dt,this.onrestart=t.onrestart||dt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,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;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=V(t)?t:sn[t]||Ln(t)},t}();var On=function(t){this.value=t},Rn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new On(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}(),Nn=function(){function t(t){this._list=new Rn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new On(e),a.key=t,n.insertEntry(a),i[t]=a}return r},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}();const Bn=Nn;var zn={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 En(t){return(t=Math.round(t))<0?0:t>255?255:t}function Fn(t){return t<0?0:t>1?1:t}function Vn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?En(parseFloat(e)/100*255):En(parseInt(e,10))}function Hn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Fn(parseFloat(e)/100):Fn(parseFloat(e))}function Gn(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 Wn(t,e,n){return t+(e-t)*n}function Un(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Xn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Yn=new Bn(20),Zn=null;function qn(t,e){Zn&&Xn(Zn,e),Zn=Yn.put(t,Zn||e.slice())}function jn(t,e){if(t){e=e||[];var n=Yn.get(t);if(n)return Xn(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in zn)return Xn(e,zn[i]),qn(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Un(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),qn(t,e),e):void Un(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Un(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),qn(t,e),e):void Un(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Un(e,+u[0],+u[1],+u[2],1):Un(e,0,0,0,1);c=Hn(u.pop());case"rgb":return u.length>=3?(Un(e,Vn(u[0]),Vn(u[1]),Vn(u[2]),3===u.length?c:Hn(u[3])),qn(t,e),e):void Un(e,0,0,0,1);case"hsla":return 4!==u.length?void Un(e,0,0,0,1):(u[3]=Hn(u[3]),Kn(u,e),qn(t,e),e);case"hsl":return 3!==u.length?void Un(e,0,0,0,1):(Kn(u,e),qn(t,e),e);default:return}}Un(e,0,0,0,1)}}function Kn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Hn(t[1]),r=Hn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Un(e=e||[],En(255*Gn(a,o,n+1/3)),En(255*Gn(a,o,n)),En(255*Gn(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function $n(t,e){var n=jn(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Jn(n,4===n.length?"rgba":"rgb")}}function Qn(t,e,n,i){var r,o=jn(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 c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,p=((s-o)/6+l/2)/l;i===s?e=p-h:r===s?e=1/3+c-p:o===s&&(e=2/3+h-c),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=V(e)?e(o[0]):e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=Hn(V(n)?n(o[1]):n)),null!=i&&(o[2]=Hn(V(i)?i(o[2]):i)),Jn(Kn(o),"rgba")}function Jn(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 ti(t,e){var n=jn(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}var ei=new Bn(100);function ni(t){if(H(t)){var e=ei.get(t);return e||(e=$n(t,-.1),ei.put(t,e)),e}if(q(t)){var n=C({},t);return n.colorStops=O(t.colorStops,(function(t){return{offset:t.offset,color:$n(t.color,-.1)}})),n}return t}"undefined"!=typeof Buffer&&Buffer.from;var ii=Array.prototype.slice;function ri(t,e,n){return(e-t)*n+t}function oi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=ri(e[o],n[o],i);return t}function ai(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function si(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 li(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()})}function ui(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:ii.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function ci(t){if(L(t)){var e=t.length;if(L(t[0])){for(var n=[],i=0;i<e;i++)n.push(ii.call(t[i]));return n}return ii.call(t)}return t}function hi(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 pi(t){return 4===t||5===t}function di(t){return 1===t||2===t}var fi=[0,0,0,0],gi=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 i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(L(e)){var l=function(t){return L(t&&t[0])?2:1}(e);a=l,(1===l&&!W(e[0])||2===l&&!W(e[0][0]))&&(o=!0)}else if(W(e)&&!j(e))a=0;else if(H(e))if(isNaN(+e)){var u=jn(e);u&&(s=u,a=3)}else a=0;else if(q(e)){var c=C({},s);c.colorStops=O(e.colorStops,(function(t){return{offset:t.offset,color:jn(t.color)}})),"linear"===e.type?a=4:function(t){return"radial"===t.type}(e)&&(a=5),s=c}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=V(n)?n:sn[n]||Ln(n)),i.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=di(i),l=pi(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?ui(h,p,i):l&&li(h.colorStops,p.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-d:3===i?n[u].additiveValue=ai([],n[u].value,d,-1):di(i)&&(n[u].additiveValue=1===i?ai([],n[u].value,d,-1):si([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=3===s,p=this._lastFr,d=Math.min;if(1===u)i=r=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=d(p+1,u-1);n>=0&&!(l[n].percent<=e);n--);n=d(n,u-2)}else{for(n=p;n<u&&!(l[n].percent>e);n++);n=d(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:d((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var v=o?this._additiveValue:h?fi:t[c];if(!di(s)&&!h||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?i.rawValue:r.rawValue;else if(di(s))1===s?oi(v,i[a],r[a],g):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=0;s<o;s++)t[a][s]=ri(e[a][s],n[a][s],i)}}(v,i[a],r[a],g);else if(pi(s)){var y=i[a],m=r[a],_=4===s;t[c]={type:_?"linear":"radial",x:ri(y.x,m.x,g),y:ri(y.y,m.y,g),colorStops:O(y.colorStops,(function(t,e){var n=m.colorStops[e];return{offset:ri(t.offset,n.offset,g),color:hi(oi([],t.color,n.color,g))}})),global:m.global},_?(t[c].x2=ri(y.x2,m.x2,g),t[c].y2=ri(y.y2,m.y2,g)):t[c].r=ri(y.r,m.r,g)}else if(h)oi(v,i[a],r[a],g),o||(t[c]=hi(v));else{var x=ri(i[a],r[a],g);o?this._additiveValue=x:t[c]=x}o&&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?(jn(t[n],fi),ai(fi,fi,i,1),t[n]=hi(fi)):1===e?ai(t[n],t[n],i,1):2===e&&si(t[n],t[n],i,1)},t}(),vi=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?T("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,B(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 gi(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,3===u.valType&&l&&(l=hi(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,ci(l),i),this._trackKeys.push(a)}s.addKeyframe(t,ci(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],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Pn({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(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.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 O(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())}var a=!0;for(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]=ci(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||B(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const yi=vi;function mi(){return(new Date).getTime()}var _i=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return n(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=mi()-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):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,on((function e(){t._running&&(on(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=mi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=mi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=mi()-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 yi(t,e.loop);return this.addAnimator(n),n},e}(Ot);const xi=_i;var bi,wi,Si=r.domSupported,Ti=(wi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:bi=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:O(bi,(function(t){var e=t.replace("mouse","pointer");return wi.hasOwnProperty(e)?e:t}))}),Mi=["mousemove","mouseup"],Ii=["pointermove","pointerup"],Ci=!1;function ki(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Di(t){t&&(t.zrByTouch=!0)}function Ai(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 Li=function(t,e){this.stopPropagation=dt,this.stopImmediatePropagation=dt,this.preventDefault=dt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Pi={mousedown:function(t){t=Kt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Kt(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=Kt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ai(this,(t=Kt(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Ci=!0,t=Kt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Ci||(t=Kt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Di(t=Kt(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Pi.mousemove.call(this,t),Pi.mousedown.call(this,t)},touchmove:function(t){Di(t=Kt(this.dom,t)),this.handler.processGesture(t,"change"),Pi.mousemove.call(this,t)},touchend:function(t){Di(t=Kt(this.dom,t)),this.handler.processGesture(t,"end"),Pi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Pi.click.call(this,t)},pointerdown:function(t){Pi.mousedown.call(this,t)},pointermove:function(t){ki(t)||Pi.mousemove.call(this,t)},pointerup:function(t){Pi.mouseup.call(this,t)},pointerout:function(t){ki(t)||Pi.mouseout.call(this,t)}};P(["click","dblclick","contextmenu"],(function(t){Pi[t]=function(e){e=Kt(this.dom,e),this.trigger(t,e)}}));var Oi={pointermove:function(t){ki(t)||Oi.mousemove.call(this,t)},pointerup:function(t){Oi.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 Ri(t,e){var n=e.domHandlers;r.pointerEventsSupported?P(Ti.pointer,(function(i){Bi(e,i,(function(e){n[i].call(t,e)}))})):(r.touchEventsSupported&&P(Ti.touch,(function(i){Bi(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),P(Ti.mouse,(function(i){Bi(e,i,(function(r){r=jt(r),e.touching||n[i].call(t,r)}))})))}function Ni(t,e){function n(n){Bi(e,n,(function(i){i=jt(i),Ai(t,i.target)||(i=function(t,e){return Kt(t.dom,new Li(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}r.pointerEventsSupported?P(Ii,n):r.touchEventsSupported||P(Mi,n)}function Bi(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,function(t,e,n,i){t.addEventListener(e,n,i)}(t.domTarget,e,n,i)}function zi(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var Ei=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const Fi=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Ei(e,Pi),Si&&(i._globalHandlerScope=new Ei(document,Oi)),Ri(i,i._localHandlerScope),i}return n(e,t),e.prototype.dispose=function(){zi(this._localHandlerScope),Si&&zi(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,Si&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Ni(this,e):zi(e)}},e}(Ot);var Vi=1;r.hasGlobalWindow&&(Vi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hi=Vi,Gi="#333",Wi="#ccc",Ui=ee,Xi=5e-5;function Yi(t){return t>Xi||t<-5e-5}var Zi=[],qi=[],ji=[1,0,0,1,0,0],Ki=Math.abs,$i=function(){function t(){}var e;return t.prototype.getLocalTransform=function(t){return Qi(this,t)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Yi(this.rotation)||Yi(this.x)||Yi(this.y)||Yi(this.scaleX-1)||Yi(this.scaleY-1)||Yi(this.skewX)||Yi(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Ui(n),t&&(e?ie(n,t,n):ne(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||[1,0,0,1,0,0],ae(this.invTransform,n)):n&&(Ui(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Zi);var n=Zi[0]<0?-1:1,i=Zi[1]<0?-1:1,r=((Zi[0]-n)*e+n)/Zi[0]||0,o=((Zi[1]-i)*e+i)/Zi[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],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}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],ie(qi,t.invTransform,e),e=qi);var n=this.originX,i=this.originY;(n||i)&&(ji[4]=n,ji[5]=i,ie(qi,e,ji),qi[4]-=n,qi[5]-=i,e=qi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&It(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&It(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Ki(t[0]-1)>1e-10&&Ki(t[3]-1)>1e-10?Math.sqrt(Ki(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){tr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var d=n+a,f=i+s;e[4]=-d*r-h*f*o,e[5]=-f*o-p*d*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=p*r,e[2]=h*o,l&&oe(e,e,l),e[4]+=n+u,e[5]+=i+c,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),Qi=$i.getLocalTransform,Ji=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tr(t,e){return function(t,e,n){t=t||{};for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}return t}(t,e,Ji)}const er=$i;function nr(t){ir||(ir=new Bn(100)),t=t||s;var e=ir.get(t);return e||(e={font:t,strWidthCache:new Bn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:u.measureText("国",t).width,asciiCharWidth:u.measureText("a",t).width},ir.put(t,e)),e}var ir,rr=0,or=5;function ar(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(rr>=or)){t=t||s;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=u.measureText(String.fromCharCode(i),t).width;var r=+new Date-n;return r>16?rr=or:r>2&&rr++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function sr(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=u.measureText(e,t.font).width,n.put(e,i)),i}function lr(t,e,n,i){var r=sr(nr(e),t),o=pr(e),a=cr(0,r,n),s=hr(0,o,i);return new Le(a,s,r,o)}function ur(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return lr(r[0],e,n,i);for(var o=new Le(0,0,0,0),a=0;a<r.length;a++){var s=lr(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function cr(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function hr(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function pr(t){return nr(t).stWideCharWidth}function dr(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function fr(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,c="left",h="top";if(i instanceof Array)l+=dr(i[0],n.width),u+=dr(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var gr="__zr_normal__",vr=Ji.concat(["ignore"]),yr=R(Ji,(function(t,e){return t[e]=!0,t}),{ignore:!1}),mr={},_r=new Le(0,0,0,0),xr=[],br=function(){function t(t){this.id=S(),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,s=!1;r.parent=i?this:null;var l=!1;r.copyTransform(e);var u=null!=n.position,c=n.autoOverflowArea,h=void 0;if((c||u)&&(h=_r,n.layoutRect?h.copy(n.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),u){this.calculateTextPosition?this.calculateTextPosition(mr,n,h):fr(mr,n,h),r.x=mr.x,r.y=mr.y,o=mr.align,a=mr.verticalAlign;var p=n.origin;if(p&&null!=n.rotation){var d=void 0,f=void 0;"center"===p?(d=.5*h.width,f=.5*h.height):(d=dr(p[0],h.width),f=dr(p[1],h.height)),l=!0,r.originX=-r.x+d+(i?0:h.x),r.originY=-r.y+f+(i?0:h.y)}}null!=n.rotation&&(r.rotation=n.rotation);var g=n.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=v.overflowRect=v.overflowRect||new Le(0,0,0,0);r.getLocalTransform(xr),ae(xr,xr),Le.copy(y,h),y.applyTransform(xr)}else v.overflowRect=null;var m=void 0,_=void 0,x=void 0;(null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside)&&this.canBeInsideText()?(m=n.insideFill,_=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=_&&"auto"!==_||(_=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,_=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=_&&"auto"!==_||(_=this.getOutsideStroke(m),x=!0)),(m=m||"#000")===v.fill&&_===v.stroke&&x===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=m,v.stroke=_,v.autoStroke=x,v.align=o,v.verticalAlign=a,e.setDefaultTextStyle(v)),e.__dirty|=$e,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wi:Gi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&jn(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+(r?0:255)*(1-i);return n[3]=1,Jn(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||{},C(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(U(t))for(var n=B(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!==gr)){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,vr)},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(gr,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===gr;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(D(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=this._textContent,u=Ir(this,l,s,i);u&&!this.__inHover&&(this.__inHover=u),this._applyStateObj(t,s,this._normalState,e,kr(this,n,a),a);var c=this._textGuide;return l&&l.useState(t,e,n,!!u),c&&c.useState(t,e,n,!!u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this.__inHover=0,this.__dirty&=~$e),s}T("State "+t+" not exists.")}}},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)return;for(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 c=i[o-1],h=this._textContent,p=Ir(this,h,c,n);p&&!this.__inHover&&(this.__inHover=p);var d=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,kr(this,e,f),f);var g=this._textGuide;h&&h.useStates(t,e,!!p),g&&g.useStates(t,e,!!p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=0,this.__dirty&=~$e)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},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=D(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=D(i,t),o=D(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];C(n,r),r.textConfig&&C(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){if(1!==this.__inHover){var a=!(e&&i);e&&e.textConfig?(this.textConfig=C({},i?this.textConfig:n.textConfig),C(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<vr.length;u++){var c=vr[u],h=r&&yr[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&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 er,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),C(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|=$e;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},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,r=new yi(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},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=D(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){wr(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){wr(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=wr(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){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}})}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)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=$e,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function wr(t,e,n,i,r){var o=[];Mr(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var p=0;p<o.length;p++){var d=o[p];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function Sr(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Tr(t,e,n){if(L(e[n]))if(L(t[n])||(t[n]=[]),Y(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Sr(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(L(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?Sr(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Sr(o,r,a);o.length=r.length}else t[n]=e[n]}function Mr(t,e,n,i,r,o,a,s){for(var l=B(i),u=r.duration,c=r.delay,h=r.additive,p=r.setToFinal,d=!U(o),f=t.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(null!=m&&null!=n[y]&&(d||o[y]))if(!U(m)||L(m)||q(m))g.push(y);else{if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}Mr(t,y,n[y],m,r,o&&o[y],a,s)}else s||(n[y]=m,t.updateDuringAnimation(e),g.push(y))}var _=g.length;if(!h&&_)for(var x=0;x<f.length;x++)if((w=f[x]).targetName===e&&w.stopTracks(g)){var b=D(f,w);f.splice(b,1)}if(r.force||(g=N(g,(function(t){return e=i[t],r=n[t],!(e===r||L(e)&&L(r)&&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,r));var e,r})),_=g.length),_>0||r.force&&!a.length){var w,S=void 0,T=void 0,M=void 0;if(s)for(T={},p&&(S={}),x=0;x<_;x++)T[y=g[x]]=n[y],p?S[y]=i[y]:n[y]=i[y];else if(p)for(M={},x=0;x<_;x++)M[y=g[x]]=ci(n[y]),Tr(n,i,y);(w=new yi(n,!1,!1,h?N(f,(function(t){return t.targetName===e})):null)).targetName=e,r.scope&&(w.scope=r.scope),p&&S&&w.whenWithKeys(0,S,g),M&&w.whenWithKeys(0,M,g),w.whenWithKeys(null==u?500:u,s?T:i,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}function Ir(t,e,n,i){return!(n&&n.hoverLayer||i)||Cr(t)||e&&Cr(e)?0:1}function Cr(t){return"text"===t.type||"tspan"===t.type}function kr(t,e,n){return!e&&!t.__inHover&&n&&n.duration>0}A(br,Ot),A(br,er);var Dr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return n(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=D(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=D(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 Le(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Le.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(br);Dr.prototype.type="group";const Ar=Dr;
2
+ /*!
3
+ * ZRender, a high performance 2d drawing library.
4
+ *
5
+ * Copyright (c) 2013, Baidu Inc.
6
+ * All rights reserved.
7
+ *
8
+ * LICENSE
9
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
10
+ */var Lr={},Pr={},Or=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new rn,a=n.renderer||"canvas";Lr[a]||(a=B(Lr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Lr[a](e,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u,c=r.node||r.worker||l?null:new Fi(s.getViewportRoot(),s.root),h=n.useCoarsePointer;(null==h||"auto"===h?r.touchEventsSupported:!!h)&&(u=$(n.pointerSize,44)),this.handler=new Ge(o,s,c,s.root,u),this.animation=new xi({stage:{update:l?null:function(){return i._flush(!1)}}}),l||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 ti(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=ti(e[r].color,1);return(n/=i)<.4}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||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,n=mi(),i=this._needsRefresh,r=this._needsRefreshHover;(i||r)&&(e=!0,this._refresh({animUpdate:t,refresh:i,refreshHover:r}));var o=mi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Ar&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete Pr[t])},t}();function Rr(t,e){var n=new Or(S(),t,e);return Pr[n.id]=n,n}var Nr=1e-4,Br=20,zr=Math.min,Er=Math.max,Fr=Math.abs,Vr=Math.round,Hr=Math.floor,Gr=Math.ceil,Wr=Math.pow,Ur=Math.log,Xr=Math.LN10,Yr=Math.PI,Zr=Math.random;function qr(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;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}var jr=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Kr(t,e,n)};function Kr(t,e,n){return H(t)?function(t){return!!(e=t,e.replace(/^\s+|\s+$/g,"")).match(/%$/);var e}(t)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function $r(t,e,n){return isNaN(e)?n?""+t:+t:(e=zr(Er(0,e),Br),t=(+t).toFixed(e),n?t:+t)}function Qr(t){return t.sort((function(t,e){return t-e})),t}function Jr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Vr(t*e)/e===t)return n;return function(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 Er(0,(o<0?0:r-1-o)-i)}(t)}function to(t,e){var n=Er(Jr(t),Jr(e)),i=t+e;return n>Br?i:$r(i,n)}var eo=Wr(2,53)-1;function no(t){var e=2*Yr;return(t%e+e)%e}function io(t){return t>-Nr&&t<Nr}var ro=/^(?:(\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 oo(t){if(t instanceof Date)return t;if(H(t)){var e=ro.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Vr(t))}function ao(t){return Wr(10,so(t))}function so(t){if(0===t)return 0;var e=Hr(Ur(t)/Xr);return t/Wr(10,e)>=10&&e++,e}var lo=2;function uo(t,e){var n=so(t),i=Wr(10,n),r=t/i;return $r(t=(e===lo?1: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)}function co(t){var e=parseFloat(t);return e==t&&(0!==e||!H(t)||t.indexOf("x")<=0)?e:NaN}function ho(){return Vr(9*Zr())}function po(t,e){return 0===e?t:po(e,t%e)}function fo(t,e){return null==t?e:null==e?t:t*e/po(t,e)}function go(t){return null!=t&&isFinite(t)}var vo="[ECharts] ",yo={},mo="undefined"!=typeof console&&console.warn&&console.log;function _o(t,e){!function(t,e,n){if(mo){if(n){if(yo[e])return;yo[e]=!0}console[t](vo+e)}}("error",t,e)}function xo(t){throw new Error(t)}function bo(t,e,n){return(e-t)*n+t}var wo="series\0",So="\0_ec_\0";function To(t){return t instanceof Array?t:null==t?[]:[t]}function Mo(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 Io=["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 Co(t){return!U(t)||F(t)||t instanceof Date?t:t.value}function ko(t){return U(t)&&!(t instanceof Array)}function Do(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=ut();P(e,(function(t,n){U(t)||(e[n]=null)}));var s,l,u=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||Ro(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,n);return(i||r)&&function(t,e,n,i){P(i,(function(r,o){if(r&&null!=r.id){var a=Lo(r.id),s=n.get(a);if(null!=s){var l=t[s];et(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=e[s],i[o]=null}}}))}(u,t,a,e),i&&function(t,e){P(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!Ro(n)&&!Ro(o)&&Ao("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),i||r?function(t,e,n){P(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||Ro(i.existing)||i.existing&&null!=e.id&&!Ao("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,r):o&&function(t,e){P(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),s=u,l=ut(),P(s,(function(t){var e=t.existing;e&&l.set(e.id,t)})),P(s,(function(t){var e=t.newOption;et(!e||null==e.id||!l.get(e.id)||l.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&l.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),P(s,(function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(U(i)){if(r.name=null!=i.name?Lo(i.name):n?n.name:wo+e,n)r.id=Lo(n.id);else if(null!=i.id)r.id=Lo(i.id);else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(l.get(r.id))}l.set(r.id,t)}})),u}function Ao(t,e,n){var i=Po(e[t],null),r=Po(n[t],null);return null!=i&&null!=r&&i===r}function Lo(t){return Po(t,"")}function Po(t,e){return null==t?e:H(t)?t:W(t)||G(t)?t+"":e}function Oo(t){var e=t.name;return!(!e||!e.indexOf(wo))}function Ro(t){return t&&null!=t.id&&0===Lo(t.id).indexOf(So)}function No(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?F(e.dataIndex)?O(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?F(e.name)?O(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Bo(){var t="__ec_inner_"+zo++;return function(e){return e[t]||(e[t]={})}}var zo=ho();function Eo(t,e,n){var i=Fo(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=Ho(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 Fo(t,e){var n;if(H(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=ut(),o={},a=!1;return P(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&D(e.includeMainTypes,s)<0||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Vo={useDefault:!0,enableAll:!1,enableNone:!1};function Ho(t,e,n,i){i=i||Vo;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r){if(i.enableNone)return s.models=[],s;r=-1}return"all"===r&&(r=i.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function Go(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Wo(t,e){Yo(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function Uo(t,e){Yo(e)&&e<t[0]&&(t[0]=e)}function Xo(t,e){Yo(e)&&e>t[1]&&(t[1]=e)}function Yo(t){return null!=t&&isFinite(t)}function Zo(t,e){return Yo(t)&&Yo(e)&&t<=e}function qo(){var t="__ec_once_"+jo++;return function(e,n){pt(e,t)||(e[t]=1,n())}}var jo=ho();function Ko(t,e,n){var i=ut(),r=0;P(t,(function(o){var a=e(o),s=i.get(a)||0;n&&n(o,s),s||n||(t[r++]=o),i.set(a,s+1)})),n||(t.length=r)}function $o(t){return t.value+""}function Qo(t){return t+""}function Jo(t,e){return $(e,!0)?t.seriesIndex+2:0}function ta(t,e,n){var i=t.getData().count();return{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null}}function ea(t){return{overallReset:t}}var na=".",ia="___EC__COMPONENT__CONTAINER___",ra="___EC__EXTENDED_CLASS___";function oa(t){var e={main:"",sub:""};if(t){var n=t.split(na);e.main=n[0]||"",e.sub=n[1]||""}return e}function aa(t,e){t.$constructor=t,t.extend=function(t){var e,i,r=this;return V(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?e=function(t){function e(){return t.apply(this,arguments)||this}return n(e,t),e}(r):(e=function(){(t.$constructor||r).apply(this,arguments)},function(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}(e,this)),C(e.prototype,t),e[ra]=!0,e.extend=this.extend,e.superCall=ua,e.superApply=ca,e.superClass=r,e}}function sa(t,e){t.extend=e.extend}var la=Math.round(10*Math.random());function ua(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 ca(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ha(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){et(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=i),'componentType "'+n+'" illegal'),t.prototype.type=i;var r=oa(i);if(r.sub){if(r.sub!==ia){var o=function(t){var n=e[t.main];return n&&n[ia]||((n=e[t.main]={})[ia]=!0),n}(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[ia]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=oa(t),i=[],r=e[n.main];return r&&r[ia]?P(r,(function(t,e){e!==ia&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=oa(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return P(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=oa(t),i=e[n.main];return i&&i[ia]}}function pa(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(i&&D(i,s)>=0||r&&D(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var da=pa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),fa=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return da(this,t,e)},t}(),ga=new Bn(50);function va(t){if("string"==typeof t){var e=ga.get(t);return e&&e.image}return t}function ya(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ga.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!_a(e=o.image)&&o.pending.push(a):((e=u.loadImage(t,ma,ma)).__zrImageSrc=t,ga.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ma(){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 _a(t){return t&&t.width&&t.height}var xa=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ba(t,e,n,i,r,o){if(!n)return t.text="",void(t.isTruncated=!1);var a=(e+"").split("\n");o=wa(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)Sa(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}function wa(t,e,n,i){var r=C({},i=i||{});n=$(n,"..."),r.maxIterations=$(i.maxIterations,2);var o=r.minChar=$(i.minChar,0),a=r.fontMeasureInfo=nr(e),s=a.asciiCharWidth;r.placeholder=$(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=sr(a,n);return c>l&&(n="",c=0),l=t-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=t,r}function Sa(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i)return t.textLine="",void(t.isTruncated=!1);var a=sr(o,e);if(a<=i)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(a<=r||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?Ta(e,r,o):a>0?Math.floor(e.length*r/a):0;a=sr(o,e=e.substr(0,l))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function Ta(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=ar(n,t.charCodeAt(r));return r}var Ma=function(){},Ia=function(t){this.tokens=[],t&&(this.tokens=t)},Ca=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function ka(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},u=t.lines,c=l.font||n.font,h=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(null!=l.width&&"auto"!==l.width){var f=dr(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=La(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var v=nr(c),y=0;y<o.length;y++){var m=o[y],_=new Ma;if(_.styleName=r,_.text=m,_.isLineHolder=!m&&!s,"number"==typeof l.width?_.width=l.width:_.width=a?a[y]:sr(v,m),y||h)u.push(new Ia([_]));else{var x=(u[u.length-1]||(u[0]=new Ia)).tokens,b=x.length;1===b&&x[0].isLineHolder?x[0]=_:(m||!b||s)&&x.push(_)}}}var Da=R(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Aa(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Da[t]}function La(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=nr(e),p=0;p<t.length;p++){var d=t.charAt(p);if("\n"!==d){var f=ar(h,d.charCodeAt(0)),g=!i&&!Aa(d);(o.length?c+f>n:r+c+f>n)?c?(s||l)&&(g?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=f):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=f)):g?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,g?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function Pa(t,e,n,i,r,o){if(t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;Le.set(Oa,cr(n,a,r),hr(i,s,o),a,s),Le.intersect(e,Oa,null,Ra);var l=Ra.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=cr(l.x,l.width,r,!0),t.baseY=hr(l.y,l.height,o,!0)}}var Oa=new Le(0,0,0,0),Ra={outIntersectRect:{},clamp:!0};function Na(t){return null!=t?t+="":t=""}function Ba(t,e,n,i){var r=new Le(cr(t.x||0,e,t.textAlign),hr(t.y||0,n,t.textBaseline),e,n),o=null!=i?i:za(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function za(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var Ea="__zr_style_"+Math.round(10*Math.random()),Fa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Va={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Fa[Ea]=!0;var Ha=["z","z2","invisible"],Ga=["invisible"],Wa=function(t){function e(e){return t.call(this,e)||this}var i;return n(e,t),e.prototype._init=function(e){for(var n=B(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,Ua.copy(r.getBoundingRect()),r.transform&&Ua.applyTransform(r.transform),Xa.width=o,Xa.height=a,!Ua.intersect(Xa))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)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},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Le(0,0,0,0)),e?Le.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Le(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:C(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return ct(Fa,t)},e.prototype.useStyle=function(t){t[Ea]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[Ea]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Ha)},e.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),u=1===this.__inHover;if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=B(c),p=0;p<h.length;p++)(f=h[p])in s&&(s[f]=s[f],this.style[f]=c[f]);var d=B(s);for(p=0;p<d.length;p++){var f=d[p];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else u?this._useHoverStyle(s):this.useStyle(s);if(!u){var g=this.__inHover?Ga:Ha;for(p=0;p<g.length;p++)f=g[p],n&&null!=n[f]?this[f]=n[f]:l&&null!=i[f]&&(this[f]=i[f])}},e.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},e.prototype._mergeStyle=function(t,e){return C(t,e),t},e.prototype.getAnimationStyleProps=function(){return Va},e.initDefaultProps=((i=e.prototype).type="displayable",i.invisible=!1,i.z=0,i.z2=0,i.zlevel=0,i.culling=!1,i.cursor="pointer",i.rectHover=!1,i.incremental=0,i._rect=null,i.dirtyRectTolerance=0,void(i.__dirty=2|$e)),e}(br),Ua=new Le(0,0,0,0),Xa=new Le(0,0,0,0);const Ya=Wa;var Za=Math.min,qa=Math.max,ja=Math.sin,Ka=Math.cos,$a=2*Math.PI,Qa=gt(),Ja=gt(),ts=gt();function es(t,e,n,i,r,o){r[0]=Za(t,n),r[1]=Za(e,i),o[0]=qa(t,n),o[1]=qa(e,i)}var ns=[],is=[];function rs(t,e,n,i,r,o,a,s,l,u){var c=wn,h=_n,p=c(t,n,r,a,ns);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=h(t,n,r,a,ns[d]);l[0]=Za(f,l[0]),u[0]=qa(f,u[0])}for(p=c(e,i,o,s,is),d=0;d<p;d++){var g=h(e,i,o,s,is[d]);l[1]=Za(g,l[1]),u[1]=qa(g,u[1])}l[0]=Za(t,l[0]),u[0]=qa(t,u[0]),l[0]=Za(a,l[0]),u[0]=qa(a,u[0]),l[1]=Za(e,l[1]),u[1]=qa(e,u[1]),l[1]=Za(s,l[1]),u[1]=qa(s,u[1])}function os(t,e,n,i,r,o,a,s){var l=Cn,u=Mn,c=qa(Za(l(t,n,r),1),0),h=qa(Za(l(e,i,o),1),0),p=u(t,n,r,c),d=u(e,i,o,h);a[0]=Za(t,r,p),a[1]=Za(e,o,d),s[0]=qa(t,r,p),s[1]=qa(e,o,d)}function as(t,e,n,i,r,o,a,s,l){var u=Ct,c=kt,h=Math.abs(r-o);if(h%$a<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(Qa[0]=Ka(r)*n+t,Qa[1]=ja(r)*i+e,Ja[0]=Ka(o)*n+t,Ja[1]=ja(o)*i+e,u(s,Qa,Ja),c(l,Qa,Ja),(r%=$a)<0&&(r+=$a),(o%=$a)<0&&(o+=$a),r>o&&!a?o+=$a:r<o&&a&&(r+=$a),a){var p=o;o=r,r=p}for(var d=0;d<o;d+=Math.PI/2)d>r&&(ts[0]=Ka(d)*n+t,ts[1]=ja(d)*i+e,u(s,ts,s),c(l,ts,l))}var ss={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ls=[],us=[],cs=[],hs=[],ps=[],ds=[],fs=Math.min,gs=Math.max,vs=Math.cos,ys=Math.sin,ms=Math.abs,_s=Math.PI,xs=2*_s,bs="undefined"!=typeof Float32Array,ws=[];function Ss(t){return Math.round(t/_s*1e8)/1e8%2*_s}function Ts(t,e){var n=Ss(t[0]);n<0&&(n+=xs);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=xs?r=n+xs:e&&n-r>=xs?r=n-xs:!e&&n>r?r=n+(xs-Ss(n-r)):e&&n<r&&(r=n-(xs-Ss(r-n))),t[0]=n,t[1]=r}var Ms=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=ms(n/Hi/t)||0,this._uy=ms(n/Hi/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ss.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ms(t-this._xi),i=ms(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(ss.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},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(ss.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},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(ss.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),ws[0]=i,ws[1]=r,Ts(ws,o),i=ws[0];var a=(r=ws[1])-i;return this.addData(ss.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=vs(r)*n+t,this._yi=ys(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ss.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ss.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!bs||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(bs&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++){var s=t[r].data;for(a=0;a<s.length;a++)this.data[i++]=s[a]}this._len=i}},t.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 c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,bs&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){cs[0]=cs[1]=ps[0]=ps[1]=Number.MAX_VALUE,hs[0]=hs[1]=ds[0]=ds[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(r=n=e[t],o=i=e[t+1]),a){case ss.M:n=r=e[t++],i=o=e[t++],ps[0]=r,ps[1]=o,ds[0]=r,ds[1]=o;break;case ss.L:es(n,i,e[t],e[t+1],ps,ds),n=e[t++],i=e[t++];break;case ss.C:rs(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ps,ds),n=e[t++],i=e[t++];break;case ss.Q:os(n,i,e[t++],e[t++],e[t],e[t+1],ps,ds),n=e[t++],i=e[t++];break;case ss.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],p=e[t++],d=e[t++]+p;t+=1;var f=!e[t++];s&&(r=vs(p)*c+l,o=ys(p)*h+u),as(l,u,c,h,p,d,f,ps,ds),n=vs(d)*c+l,i=ys(d)*h+u;break;case ss.R:es(r=n=e[t++],o=i=e[t++],r+e[t++],o+e[t++],ps,ds);break;case ss.Z:n=r,i=o}Ct(cs,cs,ps),kt(hs,hs,ds)}return 0===t&&(cs[0]=cs[1]=hs[0]=hs[1]=0),new Le(cs[0],cs[1],hs[0]-cs[0],hs[1]-cs[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var p=t[h++],d=1===h;d&&(a=r=t[h],s=o=t[h+1]);var f=-1;switch(p){case ss.M:r=a=t[h++],o=s=t[h++];break;case ss.L:var g=t[h++],v=(_=t[h++])-o;(ms(D=g-r)>n||ms(v)>i||h===e-1)&&(f=Math.sqrt(D*D+v*v),r=g,o=_);break;case ss.C:var y=t[h++],m=t[h++],_=(g=t[h++],t[h++]),x=t[h++],b=t[h++];f=Tn(r,o,y,m,g,_,x,b,10),r=x,o=b;break;case ss.Q:f=Dn(r,o,y=t[h++],m=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case ss.A:var w=t[h++],S=t[h++],T=t[h++],M=t[h++],I=t[h++],C=t[h++],k=C+I;h+=1,d&&(a=vs(I)*T+w,s=ys(I)*M+S),f=gs(T,M)*fs(xs,Math.abs(C)),r=vs(k)*T+w,o=ys(k)*M+S;break;case ss.R:a=r=t[h++],s=o=t[h++],f=2*t[h++]+2*t[h++];break;case ss.Z:var D=a-r;v=s-o,f=Math.sqrt(D*D+v*v),r=a,o=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,p=this.data,d=this._ux,f=this._uy,g=this._len,v=e<1,y=0,m=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var x=0;x<g;){var b=p[x++],w=1===x;switch(w&&(n=r=p[x],i=o=p[x+1]),b!==ss.L&&_>0&&(t.lineTo(c,h),_=0),b){case ss.M:n=r=p[x++],i=o=p[x++],t.moveTo(r,o);break;case ss.L:a=p[x++],s=p[x++];var S=ms(a-r),T=ms(s-o);if(S>d||T>f){if(v){if(y+(q=l[m++])>u){var M=(u-y)/q;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}y+=q}t.lineTo(a,s),r=a,o=s,_=0}else{var I=S*S+T*T;I>_&&(c=a,h=s,_=I)}break;case ss.C:var C=p[x++],k=p[x++],D=p[x++],A=p[x++],L=p[x++],P=p[x++];if(v){if(y+(q=l[m++])>u){Sn(r,C,D,L,M=(u-y)/q,ls),Sn(o,k,A,P,M,us),t.bezierCurveTo(ls[1],us[1],ls[2],us[2],ls[3],us[3]);break t}y+=q}t.bezierCurveTo(C,k,D,A,L,P),r=L,o=P;break;case ss.Q:if(C=p[x++],k=p[x++],D=p[x++],A=p[x++],v){if(y+(q=l[m++])>u){kn(r,C,D,M=(u-y)/q,ls),kn(o,k,A,M,us),t.quadraticCurveTo(ls[1],us[1],ls[2],us[2]);break t}y+=q}t.quadraticCurveTo(C,k,D,A),r=D,o=A;break;case ss.A:var O=p[x++],R=p[x++],N=p[x++],B=p[x++],z=p[x++],E=p[x++],F=p[x++],V=!p[x++],H=N>B?N:B,G=ms(N-B)>.001,W=z+E,U=!1;if(v&&(y+(q=l[m++])>u&&(W=z+E*(u-y)/q,U=!0),y+=q),G&&t.ellipse?t.ellipse(O,R,N,B,F,z,W,V):t.arc(O,R,H,z,W,V),U)break t;w&&(n=vs(z)*N+O,i=ys(z)*B+R),r=vs(W)*N+O,o=ys(W)*B+R;break;case ss.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var X=p[x++],Y=p[x++];if(v){if(y+(q=l[m++])>u){var Z=u-y;t.moveTo(a,s),t.lineTo(a+fs(Z,X),s),(Z-=X)>0&&t.lineTo(a+X,s+fs(Z,Y)),(Z-=Y)>0&&t.lineTo(a+gs(X-Z,0),s+Y),(Z-=X)>0&&t.lineTo(a,s+gs(Y-Z,0));break t}y+=q}t.rect(a,s,X,Y);break;case ss.Z:if(v){var q;if(y+(q=l[m++])>u){M=(u-y)/q,t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}y+=q}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=ss,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();const Is=Ms;function Cs(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var u=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return u*u/(l*l+1)<=s/2*s/2}function ks(t,e,n,i,r,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>i+h&&c>o+h&&c>s+h||c<e-h&&c<i-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>r+h&&u>a+h||u<t-h&&u<n-h&&u<r-h&&u<a-h)return!1;var p=function(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,v=.005,y=1/0;fn[0]=l,fn[1]=u;for(var m=0;m<1;m+=.05)gn[0]=_n(t,n,r,a,m),gn[1]=_n(e,i,o,s,m),(f=Tt(fn,gn))<y&&(h=m,y=f);y=1/0;for(var _=0;_<32&&!(v<hn);_++)p=h-v,d=h+v,gn[0]=_n(t,n,r,a,p),gn[1]=_n(e,i,o,s,p),f=Tt(gn,fn),p>=0&&f<y?(h=p,y=f):(vn[0]=_n(t,n,r,a,d),vn[1]=_n(e,i,o,s,d),g=Tt(vn,fn),d<=1&&g<y?(h=d,y=g):v*=.5);return c&&(c[0]=_n(t,n,r,a,h),c[1]=_n(e,i,o,s,h)),un(y)}(t,e,n,i,r,o,a,s,u,c,null);return p<=h/2}function Ds(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>i+u&&l>o+u||l<e-u&&l<i-u&&l<o-u||s>t+u&&s>n+u&&s>r+u||s<t-u&&s<n-u&&s<r-u)return!1;var c=function(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;fn[0]=a,fn[1]=s;for(var p=0;p<1;p+=.05)gn[0]=Mn(t,n,r,p),gn[1]=Mn(e,i,o,p),(v=Tt(fn,gn))<h&&(u=p,h=v);h=1/0;for(var d=0;d<32&&!(c<hn);d++){var f=u-c,g=u+c;gn[0]=Mn(t,n,r,f),gn[1]=Mn(e,i,o,f);var v=Tt(gn,fn);if(f>=0&&v<h)u=f,h=v;else{vn[0]=Mn(t,n,r,g),vn[1]=Mn(e,i,o,g);var y=Tt(vn,fn);g<=1&&y<h?(u=g,h=y):c*=.5}}return l&&(l[0]=Mn(t,n,r,u),l[1]=Mn(e,i,o,u)),un(h)}(t,e,n,i,r,o,s,l,null);return c<=u/2}var As=2*Math.PI;function Ls(t){return(t%=As)<0&&(t+=As),t}var Ps=2*Math.PI;function Os(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%Ps<1e-4)return!0;if(o){var h=i;i=Ls(r),r=Ls(h)}else i=Ls(i),r=Ls(r);i>r&&(r+=Ps);var p=Math.atan2(l,s);return p<0&&(p+=Ps),p>=i&&p<=r||p+Ps>=i&&p+Ps<=r}function Rs(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(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}var Ns=Is.CMD,Bs=2*Math.PI,zs=1e-4,Es=[-1,-1,-1],Fs=[-1,-1];function Vs(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u<e&&u<i&&u<o&&u<s)return 0;var c,h=bn(e,i,o,s,u,Es);if(0===h)return 0;for(var p=0,d=-1,f=void 0,g=void 0,v=0;v<h;v++){var y=Es[v],m=0===y||1===y?.5:1;_n(t,n,r,a,y)<l||(d<0&&(d=wn(e,i,o,s,Fs),Fs[1]<Fs[0]&&d>1&&(c=void 0,c=Fs[0],Fs[0]=Fs[1],Fs[1]=c),f=_n(e,i,o,s,Fs[0]),d>1&&(g=_n(e,i,o,s,Fs[1]))),2===d?y<Fs[0]?p+=f<e?m:-m:y<Fs[1]?p+=g<f?m:-m:p+=s<g?m:-m:y<Fs[0]?p+=f<e?m:-m:p+=s<f?m:-m)}return p}function Hs(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=function(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(yn(o))mn(a)&&(c=-s/a)>=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if(yn(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=un(u),p=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),p>=0&&p<=1&&(r[l++]=p)}}return l}(e,i,o,s,Es);if(0===l)return 0;var u=Cn(e,i,o);if(u>=0&&u<=1){for(var c=0,h=Mn(e,i,o,u),p=0;p<l;p++){var d=0===Es[p]||1===Es[p]?.5:1;Mn(t,n,r,Es[p])<a||(Es[p]<u?c+=h<e?d:-d:c+=o<h?d:-d)}return c}return d=0===Es[0]||1===Es[0]?.5:1,Mn(t,n,r,Es[0])<a?0:o<e?d:-d}function Gs(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Es[0]=-l,Es[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Bs-1e-4){i=0,r=Bs;var c=o?1:-1;return a>=Es[0]+t&&a<=Es[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Bs,r+=Bs);for(var p=0,d=0;d<2;d++){var f=Es[d];if(f+t>a){var g=Math.atan2(s,f);c=o?1:-1,g<0&&(g=Bs+g),(g>=i&&g<=r||g+Bs>=i&&g+Bs<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),p+=c)}}return p}function Ws(t,e,n,i,r){for(var o,a,s,l,u=t.data,c=t.len(),h=0,p=0,d=0,f=0,g=0,v=0;v<c;){var y=u[v++],m=1===v;switch(y===Ns.M&&v>1&&(n||(h+=Rs(p,d,f,g,i,r))),m&&(f=p=u[v],g=d=u[v+1]),y){case Ns.M:p=f=u[v++],d=g=u[v++];break;case Ns.L:if(n){if(Cs(p,d,u[v],u[v+1],e,i,r))return!0}else h+=Rs(p,d,u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case Ns.C:if(n){if(ks(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=Vs(p,d,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case Ns.Q:if(n){if(Ds(p,d,u[v++],u[v++],u[v],u[v+1],e,i,r))return!0}else h+=Hs(p,d,u[v++],u[v++],u[v],u[v+1],i,r)||0;p=u[v++],d=u[v++];break;case Ns.A:var _=u[v++],x=u[v++],b=u[v++],w=u[v++],S=u[v++],T=u[v++];v+=1;var M=!!(1-u[v++]);o=Math.cos(S)*b+_,a=Math.sin(S)*w+x,m?(f=o,g=a):h+=Rs(p,d,o,a,i,r);var I=(i-_)*w/b+_;if(n){if(Os(_,x,w,S,S+T,M,e,I,r))return!0}else h+=Gs(_,x,w,S,S+T,M,I,r);p=Math.cos(S+T)*b+_,d=Math.sin(S+T)*w+x;break;case Ns.R:if(f=p=u[v++],g=d=u[v++],o=f+u[v++],a=g+u[v++],n){if(Cs(f,g,o,g,e,i,r)||Cs(o,g,o,a,e,i,r)||Cs(o,a,f,a,e,i,r)||Cs(f,a,f,g,e,i,r))return!0}else h+=Rs(o,g,o,a,i,r),h+=Rs(f,a,f,g,i,r);break;case Ns.Z:if(n){if(Cs(p,d,f,g,e,i,r))return!0}else h+=Rs(p,d,f,g,i,r);p=f,d=g}}return n||(s=d,l=g,Math.abs(s-l)<zs)||(h+=Rs(p,d,f,g,i,r)||0),0!==h}var Us=k({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Fa),Xs={style:k({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Va.style)},Ys=Ji.concat(["invisible","culling","z","z2","zlevel","parent"]),Zs=function(t){function e(e){return t.call(this,e)||this}var i;return n(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var 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<Ys.length;++s)r[Ys[s]]=this[Ys[s]];r.__dirty|=$e}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=B(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?C(this.style,a):this.useStyle(a):"shape"===o?C(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(H(t)){var e=ti(t,0);return e>.5?Gi:e>.2?"#eee":Wi}if(t)return Wi}return Gi},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(H(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==ti(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Qe},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Is(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Qe)&&(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},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var 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)),function(t,e,n,i){return Ws(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return Ws(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Qe,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:C(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Qe)},e.prototype.createStyle=function(t){return ct(Us,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=C({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){if(t.prototype._applyStateObj.call(this,e,n,i,r,o,a),1!==this.__inHover){var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=C({},i.shape),C(s,n.shape)):(s=C({},r?this.shape:i.shape),C(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=C({},this.shape);for(var u={},c=B(s),h=0;h<c.length;h++){var p=c[h];"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()}},e.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},e.prototype.getAnimationStyleProps=function(){return Xs},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(e){function i(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return n(i,e),i.prototype.getDefaultStyle=function(){return M(t.style)},i.prototype.getDefaultShape=function(){return M(t.shape)},i}(e);for(var r in t)"function"==typeof t[r]&&(i.prototype[r]=t[r]);return i},e.initDefaultProps=((i=e.prototype).type="path",i.strokeContainThreshold=5,i.segmentIgnoreThreshold=0,i.subPixelOptimize=!1,i.autoBatch=!1,void(i.__dirty=2|$e|Qe)),e}(Ya);const qs=Zs;var js=k({strokeFirst:!0,font:s,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Us),Ks=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.hasStroke=function(){return za(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return ct(js,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(t=this.style,e=Na(t.text),n=t.font,Ba(t,sr(nr(n),e),pr(n),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Ya);Ks.prototype.type="tspan";const $s=Ks;var Qs=k({x:0,y:0},Fa),Js={style:k({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Va.style)},tl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.createStyle=function(t){return ct(Qs,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[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 Js},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Le(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ya);tl.prototype.type="image";const el=tl;var nl=Math.round;function il(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(nl(2*i)===nl(2*r)&&(t.x1=t.x2=ol(i,s,!0)),nl(2*o)===nl(2*a)&&(t.y1=t.y2=ol(o,s,!0)),t):t}}function rl(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ol(i,s,!0),t.y=ol(r,s,!0),t.width=Math.max(ol(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ol(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ol(t,e,n){if(!e)return t;var i=nl(2*t);return(i+nl(e))%2==0?i/2:(i+(n?1:-1))/2}var al=function(){this.x=0,this.y=0,this.width=0,this.height=0},sl={},ll=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new al},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=rl(sl,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI),t.closePath()}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(qs);ll.prototype.type="rect";const ul=ll;var cl={fill:"#000"},hl={},pl={style:k({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},Va.style)},dl=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=cl,n.attr(e),n}return n(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,ml(t=this.style),P(t.rich,ml),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 Le(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||cl},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return C(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=B(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},C(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return pl},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||s,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",l=t.verticalAlign||i.verticalAlign||"top";Pa(hl,i.overflowRect,r,o,a,l),r=hl.baseX,o=hl.baseY;var u=function(t,e,n,i){var r=Na(t),o=e.overflow,a=e.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=e.font,c="truncate"===o,h=pr(u),p=$(e.lineHeight,h),d="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-s);var v,y=e.height;null==y&&null!=i&&(y=i-l);var m=(v=null==g||"break"!==o&&"breakAll"!==o?r?r.split("\n"):[]:r?La(r,e.font,g,"breakAll"===o,0).lines:[]).length*p;if(null==y&&(y=m),m>y&&d){var _=Math.floor(y/p);f=f||v.length>_,m=(v=v.slice(0,_)).length*p}if(r&&c&&null!=g)for(var x=wa(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},w=0;w<v.length;w++)Sa(b,v[w],x),v[w]=b.textLine,f=f||b.isTruncated;var S=y,T=0,M=nr(u);for(w=0;w<v.length;w++)T=Math.max(sr(M,v[w]),T);null==g&&(g=T);var I=g;return{lines:v,height:y,outerWidth:I+=s,outerHeight:S+=l,lineHeight:p,calculatedLineHeight:h,contentWidth:T,contentHeight:m,width:g,isTruncated:f}}(wl(t),t,hl.outerWidth,hl.outerHeight),c=Sl(t),h=!!t.backgroundColor,p=u.outerHeight,d=u.outerWidth,f=u.lines,g=u.lineHeight;this.isTruncated=!!u.isTruncated;var v=r,y=hr(o,u.contentHeight,l);if(c||n){var m=cr(r,d,a),_=hr(o,p,l);c&&this._renderBackground(t,t,m,_,d,p)}y+=g/2,n&&(v=bl(r,a,n),"top"===l?y+=n[0]:"bottom"===l&&(y-=n[2]));for(var x=0,b=!1,w=!1,S=(xl("fill"in t?t.fill:(w=!0,i.fill))),T=(_l("stroke"in t?t.stroke:h||i.autoStroke&&!w?null:(x=2,b=!0,i.stroke))),M=t.textShadowBlur>0,I=0;I<f.length;I++){var C=this._getOrCreateChild($s),k=C.createStyle();C.useStyle(k),k.text=f[I],k.x=v,k.y=y,a&&(k.textAlign=a),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,M&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=T,k.fill=S,T&&(k.lineWidth=t.lineWidth||x,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=e,yl(k,t),y+=g,C.setBoundingRect(Ba(k,u.contentWidth,u.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;Pa(hl,e.overflowRect,r,o,n,i),r=hl.baseX,o=hl.baseY;var a=function(t,e,n,i,r){var o=new Ca,a=Na(t);if(!a)return o;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=i&&(h=i-u);for(var p,d=e.overflow,f="break"!==d&&"breakAll"!==d||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===d},g=xa.lastIndex=0;null!=(p=xa.exec(a));){var v=p.index;v>g&&ka(o,a.substring(g,v),e,f),ka(o,p[2],e,f,p[1]),g=xa.lastIndex}g<a.length&&ka(o,a.substring(g,a.length),e,f);var y=[],m=0,_=0,x="truncate"===d,b="truncate"===e.lineOverflow,w={};function S(t,e,n){t.width=e,t.lineHeight=n,m+=n,_=Math.max(_,e)}t:for(var T=0;T<o.lines.length;T++){for(var M=o.lines[T],I=0,C=0,k=0;k<M.tokens.length;k++){var D=(V=M.tokens[k]).styleName&&e.rich[V.styleName]||{},A=V.textPadding=D.padding,L=A?A[1]+A[3]:0,P=V.font=D.font||e.font;V.contentHeight=pr(P);var O=$(D.height,V.contentHeight);if(V.innerHeight=O,A&&(O+=A[0]+A[2]),V.height=O,V.lineHeight=Q(D.lineHeight,e.lineHeight,O),V.align=D&&D.align||r,V.verticalAlign=D&&D.verticalAlign||"middle",b&&null!=h&&m+V.lineHeight>h){var R=o.lines.length;k>0?(M.tokens=M.tokens.slice(0,k),S(M,C,I),o.lines=o.lines.slice(0,T+1)):o.lines=o.lines.slice(0,T),o.isTruncated=o.isTruncated||o.lines.length<R;break t}var N=D.width,B=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))V.percentWidth=N,y.push(V),V.contentWidth=sr(nr(P),V.text);else{if(B){var z=D.backgroundColor,E=z&&z.image;E&&_a(E=va(E))&&(V.width=Math.max(V.width,E.width*O/E.height))}var F=x&&null!=c?c-C:null;null!=F&&F<V.width?!B||F<L?(V.text="",V.width=V.contentWidth=0):(ba(w,V.text,F-L,P,e.ellipsis,{minChar:e.truncateMinChar}),V.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,V.width=V.contentWidth=sr(nr(P),V.text)):V.contentWidth=sr(nr(P),V.text)}V.width+=L,C+=V.width,D&&(I=Math.max(I,V.lineHeight))}S(M,C,I)}for(o.outerWidth=o.width=$(c,_),o.outerHeight=o.height=$(h,m),o.contentHeight=m,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u,T=0;T<y.length;T++){var V,H=(V=y[T]).percentWidth;V.width=parseInt(H,10)/100*o.width}return o}(wl(t),t,hl.outerWidth,hl.outerHeight,n),s=a.width,l=a.outerWidth,u=a.outerHeight,c=t.padding;this.isTruncated=!!a.isTruncated;var h=cr(r,l,n),p=hr(o,u,i),d=h,f=p;c&&(d+=c[3],f+=c[0]);var g=d+s;Sl(t)&&this._renderBackground(t,t,h,p,l,u);for(var v=!!t.backgroundColor,y=0;y<a.lines.length;y++){for(var m=a.lines[y],_=m.tokens,x=_.length,b=m.lineHeight,w=m.width,S=0,T=d,M=g,I=x-1,C=void 0;S<x&&(!(C=_[S]).align||"left"===C.align);)this._placeToken(C,t,b,f,T,"left",v),w-=C.width,T+=C.width,S++;for(;I>=0&&"right"===(C=_[I]).align;)this._placeToken(C,t,b,f,M,"right",v),w-=C.width,M-=C.width,I--;for(T+=(s-(T-d)-(g-M)-w)/2;S<=I;)C=_[S],this._placeToken(C,t,b,f,T+C.width/2,"center",v),T+=C.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var l=e.rich[t.styleName]||{};l.text=t.text;var u=t.verticalAlign,c=i+n/2;"top"===u?c=i+t.height/2:"bottom"===u&&(c=i+n-t.height/2),!t.isLineHolder&&Sl(l)&&this._renderBackground(l,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,c-t.height/2,t.width,t.height);var h=!!l.backgroundColor,p=t.textPadding;p&&(r=bl(r,o,p),c-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild($s),f=d.createStyle();d.useStyle(f);var g=this._defaultStyle,v=!1,y=0,m=!1,_=xl("fill"in l?l.fill:"fill"in e?e.fill:(v=!0,g.fill)),x=_l("stroke"in l?l.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=2,m=!0,g.stroke)),b=l.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=c,b&&(f.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,f.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||s,f.opacity=Q(l.opacity,e.opacity,1),yl(f,l),x&&(f.lineWidth=Q(l.lineWidth,e.lineWidth,y),f.lineDash=$(l.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=x),_&&(f.fill=_),d.setBoundingRect(Ba(f,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,p=u&&u.image,d=u&&!p,f=t.borderRadius,g=this;if(d||t.lineHeight||c&&h){(a=this._getOrCreateChild(ul)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=n,v.y=i,v.width=r,v.height=o,v.r=f,a.dirtyShape()}if(d)(l=a.style).fill=u||null,l.fillOpacity=$(t.fillOpacity,1);else if(p){(s=this._getOrCreateChild(el)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=n,y.y=i,y.width=r,y.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=$(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Q(t.opacity,e.opacity,1)},e.makeFont=function(t){var e,n="";return function(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}(t)&&(n=[t.fontStyle,t.fontWeight,(e=t.fontSize,"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e),t.fontFamily||"sans-serif"].join(" ")),n&&nt(n)||t.textFont||t.font},e}(Ya),fl={left:!0,right:1,center:1},gl={top:1,bottom:1,middle:1},vl=["fontStyle","fontWeight","fontSize","fontFamily"];function yl(t,e){for(var n=0;n<vl.length;n++){var i=vl[n],r=e[i];null!=r&&(t[i]=r)}}function ml(t){if(t){t.font=dl.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||fl[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||gl[n]?n:"top",t.padding&&(t.padding=tt(t.padding))}}function _l(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function xl(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function bl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function wl(t){var e=t.text;return null!=e&&(e+=""),e}function Sl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Tl=dl;var Ml=Bo(),Il="undefined",Cl="series",kl=ut(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Dl="original",Al="arrayRows",Ll="objectRows",Pl="keyedColumns",Ol="typedArray",Rl="unknown",Nl="column",Bl="row",zl=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const El=function(t){P(zl,(function(e){this[e]=z(t[e],t)}),this)};var Fl=1,Vl={},Hl=Bo(),Gl=Bo(),Wl=0,Ul=1,Xl=2,Yl=["emphasis","blur","select"],Zl=["normal","emphasis","blur","select"],ql=10,jl=9,Kl="highlight",$l="downplay",Ql="select",Jl="unselect",tu="toggleSelect",eu="selectchanged";function nu(t){return null!=t&&"none"!==t}function iu(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ru(t){iu(t,"emphasis",Xl)}function ou(t){t.hoverState===Xl&&iu(t,"normal",Wl)}function au(t){iu(t,"blur",Ul)}function su(t){t.hoverState===Ul&&iu(t,"normal",Wl)}function lu(t){t.selected=!0}function uu(t){t.selected=!1}function cu(t,e,n){e(t,n)}function hu(t,e,n){cu(t,e,n),t.isGroup&&t.traverse((function(t){cu(t,e,n)}))}function pu(t,e){switch(e){case"emphasis":t.hoverState=Xl;break;case"normal":t.hoverState=Wl;break;case"blur":t.hoverState=Ul;break;case"select":t.selected=!0}}function du(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&D(n,"select")>=0,o=!1;if(t instanceof qs){var a=Hl(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(nu(s)||nu(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=C({},i),(u=C({},u)).fill=s):!nu(u.fill)&&nu(s)?(o=!0,i=C({},i),(u=C({},u)).fill=ni(s)):!nu(u.stroke)&&nu(l)&&(o||(i=C({},i),u=C({},u)),u.stroke=ni(l)),i.style=u}}if(i&&null==i.z2){o||(i=C({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:ql)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=D(t.currentStates,e)>=0,r=t.style.opacity,o=i?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(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=C({},n),a=C({opacity:i?r:.1*o.opacity},a),n.style=a),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=C({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:jl)}return n}(this,0,n)}return n}function fu(t){t.stateProxy=du;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=du),n&&(n.stateProxy=du)}function gu(t,e){!Su(t,e)&&!t.__highByOuter&&hu(t,ru)}function vu(t,e){!Su(t,e)&&!t.__highByOuter&&hu(t,ou)}function yu(t,e){t.__highByOuter|=1<<(e||0),hu(t,ru)}function mu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&hu(t,ou)}function _u(t){hu(t,au)}function xu(t){hu(t,su)}function bu(t){hu(t,lu)}function wu(t){hu(t,uu)}function Su(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Tu(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=Gl(r),a=function(t,e){return e.mainType===Cl?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}(t,r),s="series"===e;!s&&i.push(a),o.isBlured&&(a.group.traverse((function(t){su(t)})),s&&n.push(r)),o.isBlured=!1})),P(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Mu(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&xu(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!r||"coordinateSystem"===n&&!(u&&s?u===s:r)||"series"===e&&r)){if(i.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&r&&"self"===e||au(t)})),L(e))o(t.getData(),e);else if(U(e))for(var c=B(e),h=0;h<c.length;h++)o(t.getData(c[h]),e[c[h]]);l.push(t),Gl(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Iu(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){Gl(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){au(t)}))}}}function Cu(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Ml(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function ku(t){P(t.getAllData(),(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?bu(e):wu(e)}))}))}function Du(t){var e=[];return t.eachSeries((function(t){P(t.getAllData(),(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 Au(t,e,n){Nu(t,!0),hu(t,fu),function(t,e,n){var i=Ml(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}(t,e,n)}function Lu(t,e,n,i){i?function(t){Nu(t,!1)}(t):Au(t,e,n)}var Pu=["emphasis","blur","select"],Ou={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ru(t,e,n,i){n=n||"itemStyle";for(var r=0;r<Pu.length;r++){var o=Pu[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[Ou[n]]()}}function Nu(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Bu(t){return!(!t||!t.__highDownDispatcher)}function zu(t){var e=t.type;return e===Ql||e===Jl||e===tu}function Eu(t){var e=t.type;return e===Kl||e===$l}var Fu=Is.CMD,Vu=[[],[],[]],Hu=Math.sqrt,Gu=Math.atan2,Wu=Math.sqrt,Uu=Math.sin,Xu=Math.cos,Yu=Math.PI;function Zu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function qu(t,e){return(t[0]*e[0]+t[1]*e[1])/(Zu(t)*Zu(e))}function ju(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(qu(t,e))}function Ku(t,e,n,i,r,o,a,s,l,u,c){var h=l*(Yu/180),p=Xu(h)*(t-n)/2+Uu(h)*(e-i)/2,d=-1*Uu(h)*(t-n)/2+Xu(h)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=Wu(f),s*=Wu(f));var g=(r===o?-1:1)*Wu((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,y=g*-s*p/a,m=(t+n)/2+Xu(h)*v-Uu(h)*y,_=(e+i)/2+Uu(h)*v+Xu(h)*y,x=ju([1,0],[(p-v)/a,(d-y)/s]),b=[(p-v)/a,(d-y)/s],w=[(-1*p-v)/a,(-1*d-y)/s],S=ju(b,w);if(qu(b,w)<=-1&&(S=Yu),qu(b,w)>=1&&(S=0),S<0){var T=Math.round(S/Yu*1e6)/1e6;S=2*Yu+T%2*Yu}c.addData(u,m,_,a,s,x,S,h,o)}var $u=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Qu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.applyTransform=function(t){},e}(qs);function tc(t){return null!=t.setData}function ec(t,e){var n=function(t){var e=new Is;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Is.CMD,l=t.match($u);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(Qu)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,T=i,M=r,I=void 0,C=void 0;switch(h){case"l":i+=d[v++],r+=d[v++],p=s.L,e.addData(p,i,r);break;case"L":i=d[v++],r=d[v++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[v++],r+=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="l";break;case"M":i=d[v++],r=d[v++],p=s.M,e.addData(p,i,r),o=i,a=r,h="L";break;case"h":i+=d[v++],p=s.L,e.addData(p,i,r);break;case"H":i=d[v++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[v++],p=s.L,e.addData(p,i,r);break;case"V":r=d[v++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),i=d[v-2],r=d[v-1];break;case"c":p=s.C,e.addData(p,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r),i+=d[v-2],r+=d[v-1];break;case"S":y=i,m=r,I=e.len(),C=e.data,n===s.C&&(y+=i-C[I-4],m+=r-C[I-3]),p=s.C,T=d[v++],M=d[v++],i=d[v++],r=d[v++],e.addData(p,y,m,T,M,i,r);break;case"s":y=i,m=r,I=e.len(),C=e.data,n===s.C&&(y+=i-C[I-4],m+=r-C[I-3]),p=s.C,T=i+d[v++],M=r+d[v++],i+=d[v++],r+=d[v++],e.addData(p,y,m,T,M,i,r);break;case"Q":T=d[v++],M=d[v++],i=d[v++],r=d[v++],p=s.Q,e.addData(p,T,M,i,r);break;case"q":T=d[v++]+i,M=d[v++]+r,i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,T,M,i,r);break;case"T":y=i,m=r,I=e.len(),C=e.data,n===s.Q&&(y+=i-C[I-4],m+=r-C[I-3]),i=d[v++],r=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"t":y=i,m=r,I=e.len(),C=e.data,n===s.Q&&(y+=i-C[I-4],m+=r-C[I-3]),i+=d[v++],r+=d[v++],p=s.Q,e.addData(p,y,m,i,r);break;case"A":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],Ku(T=i,M=r,i=d[v++],r=d[v++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[v++],x=d[v++],b=d[v++],w=d[v++],S=d[v++],Ku(T=i,M=r,i+=d[v++],r+=d[v++],w,S,_,x,b,p=s.A,e)}}"z"!==h&&"Z"!==h||(p=s.Z,e.addData(p),i=o,r=a),n=p}return e.toStatic(),e}(t),i=C({},e);return i.buildPath=function(t){var e,i=tc(t);i&&t.canSave()?(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1)):(e=i?t.getContext():t)&&n.rebuildPath(e,1)},i.applyTransform=function(t){!function(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),c=Fu.M,h=Fu.C,p=Fu.L,d=Fu.R,f=Fu.A,g=Fu.Q;for(r=0,o=0;r<u;){switch(n=l[r++],o=r,i=0,n){case c:case p:i=1;break;case h:i=3;break;case g:i=2;break;case f:var v=e[4],y=e[5],m=Hu(e[0]*e[0]+e[1]*e[1]),_=Hu(e[2]*e[2]+e[3]*e[3]),x=Gu(-e[1]/_,e[0]/m);l[r]*=m,l[r++]+=v,l[r]*=_,l[r++]+=y,l[r++]*=m,l[r++]*=_,l[r++]+=x,l[r++]+=x,o=r+=2;break;case d:s[0]=l[r++],s[1]=l[r++],It(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],It(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var b=Vu[a];b[0]=l[r++],b[1]=l[r++],It(b,b,e),l[o++]=b[0],l[o++]=b[1]}}t.increaseVersion()}}(n,t),this.dirtyShape()},i}var nc=function(){this.cx=0,this.cy=0,this.r=0},ic=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new nc},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}(qs);ic.prototype.type="circle";const rc=ic;var oc=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ac=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new oc},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(qs);ac.prototype.type="ellipse";const sc=ac;var lc=Math.PI,uc=2*lc,cc=Math.sin,hc=Math.cos,pc=Math.acos,dc=Math.atan2,fc=Math.abs,gc=Math.sqrt,vc=Math.max,yc=Math.min,mc=1e-4;function _c(t,e,n,i,r,o,a){var s=t-n,l=e-i,u=(a?o:-o)/gc(s*s+l*l),c=u*l,h=-u*s,p=t+c,d=e+h,f=n+c,g=i+h,v=(p+f)/2,y=(d+g)/2,m=f-p,_=g-d,x=m*m+_*_,b=r-o,w=p*g-f*d,S=(_<0?-1:1)*gc(vc(0,b*b*x-w*w)),T=(w*_-m*S)/x,M=(-w*m-_*S)/x,I=(w*_+m*S)/x,C=(-w*m+_*S)/x,k=T-v,D=M-y,A=I-v,L=C-y;return k*k+D*D>A*A+L*L&&(T=I,M=C),{cx:T,cy:M,x0:-c,y0:-h,x1:T*(r/b-1),y1:M*(r/b-1)}}function xc(t,e){var n,i=vc(e.r,0),r=vc(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,h=!!e.clockwise,p=fc(l-s),d=p>uc&&p%uc;if(d>mc&&(p=d),i>mc)if(p>uc-mc)t.moveTo(u+i*hc(s),c+i*cc(s)),t.arc(u,c,i,s,l,!h),r>mc&&(t.moveTo(u+r*hc(l),c+r*cc(l)),t.arc(u,c,r,l,s,h));else{var f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,T=void 0,M=void 0,I=void 0,C=void 0,k=void 0,D=void 0,A=i*hc(s),L=i*cc(s),P=r*hc(l),O=r*cc(l),R=p>mc;if(R){var N=e.cornerRadius;N&&(n=function(t){var e;if(F(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}(N),f=n[0],g=n[1],v=n[2],y=n[3]);var B=fc(i-r)/2;if(m=yc(B,v),_=yc(B,y),x=yc(B,f),b=yc(B,g),T=w=vc(m,_),M=S=vc(x,b),(w>mc||S>mc)&&(I=i*hc(l),C=i*cc(l),k=r*hc(s),D=r*cc(s),p<lc)){var z=function(t,e,n,i,r,o,a,s){var l=n-t,u=i-e,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<mc))return[t+(p=(c*(e-o)-h*(t-r))/p)*l,e+p*u]}(A,L,k,D,I,C,P,O);if(z){var E=A-z[0],V=L-z[1],H=I-z[0],G=C-z[1],W=1/cc(pc((E*H+V*G)/(gc(E*E+V*V)*gc(H*H+G*G)))/2),U=gc(z[0]*z[0]+z[1]*z[1]);T=yc(w,(i-U)/(W+1)),M=yc(S,(r-U)/(W-1))}}}if(R)if(T>mc){var X=yc(v,T),Y=yc(y,T),Z=_c(k,D,A,L,i,X,h),q=_c(I,C,P,O,i,Y,h);t.moveTo(u+Z.cx+Z.x0,c+Z.cy+Z.y0),T<w&&X===Y?t.arc(u+Z.cx,c+Z.cy,T,dc(Z.y0,Z.x0),dc(q.y0,q.x0),!h):(X>0&&t.arc(u+Z.cx,c+Z.cy,X,dc(Z.y0,Z.x0),dc(Z.y1,Z.x1),!h),t.arc(u,c,i,dc(Z.cy+Z.y1,Z.cx+Z.x1),dc(q.cy+q.y1,q.cx+q.x1),!h),Y>0&&t.arc(u+q.cx,c+q.cy,Y,dc(q.y1,q.x1),dc(q.y0,q.x0),!h))}else t.moveTo(u+A,c+L),t.arc(u,c,i,s,l,!h);else t.moveTo(u+A,c+L);r>mc&&R?M>mc?(X=yc(f,M),Z=_c(P,O,I,C,r,-(Y=yc(g,M)),h),q=_c(A,L,k,D,r,-X,h),t.lineTo(u+Z.cx+Z.x0,c+Z.cy+Z.y0),M<S&&X===Y?t.arc(u+Z.cx,c+Z.cy,M,dc(Z.y0,Z.x0),dc(q.y0,q.x0),!h):(Y>0&&t.arc(u+Z.cx,c+Z.cy,Y,dc(Z.y0,Z.x0),dc(Z.y1,Z.x1),!h),t.arc(u,c,r,dc(Z.cy+Z.y1,Z.cx+Z.x1),dc(q.cy+q.y1,q.cx+q.x1),h),X>0&&t.arc(u+q.cx,c+q.cy,X,dc(q.y1,q.x1),dc(q.y0,q.x0),!h))):(t.lineTo(u+P,c+O),t.arc(u,c,r,l,s,h)):t.lineTo(u+P,c+O)}else t.moveTo(u,c);t.closePath()}}}var bc=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},wc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new bc},e.prototype.buildPath=function(t,e){xc(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(qs);wc.prototype.type="sector";const Sc=wc;var Tc=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Mc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new Tc},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}(qs);Mc.prototype.type="ring";const Ic=Mc;function Cc(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)Ct(a,a,t[p]),kt(s,s,t[p]);Ct(a,a,i[0]),kt(s,s,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){l.push(vt(t[p]));continue}r=t[p-1],o=t[p+1]}_t(u,o,r),xt(u,u,e);var g=wt(f,r),v=wt(f,o),y=g+v;0!==y&&(g/=y,v/=y),xt(c,u,-g),xt(h,u,v);var m=mt([],f,c),_=mt([],f,h);i&&(kt(m,m,a),Ct(m,m,s),kt(_,_,a),Ct(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var kc=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Dc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultShape=function(){return new kc},e.prototype.buildPath=function(t,e){Cc(t,e,!0)},e}(qs);Dc.prototype.type="polygon";const Ac=Dc;var Lc=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Pc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lc},e.prototype.buildPath=function(t,e){Cc(t,e,!1)},e}(qs);Pc.prototype.type="polyline";const Oc=Pc;var Rc={},Nc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Bc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Nc},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=il(Rc,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},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}(qs);Bc.prototype.type="line";const zc=Bc;var Ec=[],Fc=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Vc(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?xn:_n)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?xn:_n)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?In:Mn)(t.x1,t.cpx1,t.x2,e),(n?In:Mn)(t.y1,t.cpy1,t.y2,e)]}var Hc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Fc},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,i),null==l||null==u?(c<1&&(kn(n,a,r,c,Ec),a=Ec[1],r=Ec[2],kn(i,s,o,c,Ec),s=Ec[1],o=Ec[2]),t.quadraticCurveTo(a,s,r,o)):(c<1&&(Sn(n,a,l,r,c,Ec),a=Ec[1],l=Ec[2],r=Ec[3],Sn(i,s,u,o,c,Ec),s=Ec[1],u=Ec[2],o=Ec[3]),t.bezierCurveTo(a,s,l,u,r,o)))},e.prototype.pointAt=function(t){return Vc(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Vc(this.shape,t,!0);return bt(e,e)},e}(qs);Hc.prototype.type="bezier-curve";const Gc=Hc;var Wc=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Uc=function(t){function e(e){return t.call(this,e)||this}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Wc},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}(qs);Uc.prototype.type="arc";const Xc=Uc;var Yc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return n(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),qs.prototype.getBoundingRect.call(this)},e}(qs);const Zc=Yc;var qc=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();const jc=qc;var Kc=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 n(e,t),e}(jc);const $c=t("L",Kc),Qc=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 n(e,t),e}(jc);var Jc=Math.min,th=Math.max,eh=Math.abs,nh=[0,0],ih=[0,0],rh=Ae(),oh=rh.minTv,ah=rh.maxTv,sh=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new le;for(n=0;n<2;n++)this._axes[n]=new le;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);for(le.sub(i[0],n[1],n[0]),le.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&le.set(e,0,0),rh.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||rh.negativeSize||le.copy(e,i?rh.useDir?rh.dirMinTv:oh:ah),i},t.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,nh),t._getProjMinMaxOnAxis(o,e._corners,ih),rh.negativeSize||nh[1]<ih[0]||nh[0]>ih[1]){if(r=!1,rh.negativeSize||n)return r;var s=eh(ih[0]-nh[1]),l=eh(nh[0]-ih[1]);Jc(s,l)>ah.len()&&(s<l?le.scale(ah,a,-s*i):le.scale(ah,a,l*i))}else n||(s=eh(ih[0]-nh[1]),l=eh(nh[0]-ih[1]),(rh.useDir||Jc(s,l)<oh.len())&&((s<l||!rh.bidirectional)&&(le.scale(oh,a,s*i),rh.useDir&&rh.calcDirMTV()),(s>=l||!rh.bidirectional)&&(le.scale(oh,a,-l*i),rh.useDir&&rh.calcDirMTV())))}return r},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=Jc(u,a),s=th(u,s)}n[0]=a+rh.touchThreshold,n[1]=s-rh.touchThreshold,rh.negativeSize=n[1]<n[0]},t}();const lh=sh;var uh=[],ch=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=1,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return n(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Le(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(uh)),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}(Ya);const hh=ch;var ph=Bo();function dh(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===t;if(e&&e.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return i?(l=$(i.duration,200),u=$(i.easing,"cubicOut"),c=0):(l=e.getShallow(s?"animationDurationUpdate":"animationDuration"),u=e.getShallow(s?"animationEasingUpdate":"animationEasing"),c=e.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),V(c)&&(c=c(n,r)),V(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}function fh(t,e,n,i,r,o,a){var s,l=!1;V(r)?(a=o,o=r,r=null):U(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=dh(t,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(c&&c.duration>0){var h={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,h):e.animateTo(n,h)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function gh(t,e,n,i,r,o){fh("update",t,e,n,i,r,o)}function vh(t,e,n,i,r,o){fh("enter",t,e,n,i,r,o)}function yh(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 mh(t,e,n,i,r,o){yh(t)||fh("leave",t,e,n,i,r,o)}function _h(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),mh(t,{style:{opacity:0}},e,n,i)}function xh(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||_h(t,e,n,i)})):_h(t,e,n,i)}function bh(t){ph(t).oldStyle=t.style}var wh={},Sh=["x","y"],Th=["width","height"],Mh=function(t,e){var i=ec(t,e);return function(t){function e(e){var n=t.call(this,e)||this;return n.applyTransform=i.applyTransform,n.buildPath=i.buildPath,n}return n(e,t),e}(Ju)};function Ih(t,e){wh[t]=e}function Ch(t){if(wh.hasOwnProperty(t))return wh[t]}function kh(t,e,n,i){var r=function(t,e){return new Ju(ec(t,e))}(t,e);return n&&("center"===i&&(n=Ah(n,r.getBoundingRect())),Ph(r,n)),r}function Dh(t,e,n){var i=new el({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(Ah(e,r))}}});return i}function Ah(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 Lh=function(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new qs(e);return a.createPathProxy(),a.buildPath=function(t){if(tc(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function Ph(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function Oh(t,e){return il(t,t,{lineWidth:e}),t}var Rh=ol;function Nh(t,e,n){return e&&!L(e)&&(e=er.getLocalTransform(e)),n&&(e=ae([],e)),It([],t,e)}function Bh(t){return!t.isGroup}function zh(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){Bh(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(Bh(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),gh(t,i,n,Ml(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=M(t.shape)),e}}function Eh(t,e,n){var i=C({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),k(r,n),new el(i)):kh(t.replace("path://",""),i,n,"center")}function Fh(t,e,n,i,r,o,a,s){var l,u=n-t,c=i-e,h=a-r,p=s-o,d=Vh(h,p,u,c);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,v=Vh(f,g,u,c)/d;if(v<0||v>1)return!1;var y=Vh(f,g,h,p)/d;return!(y<0||y>1)}function Vh(t,e,n,i){return t*i-n*e}function Hh(t,e,n,i,r){return null==e||(W(e)?Gh[0]=Gh[1]=Gh[2]=Gh[3]=e:(Gh[0]=e[0],Gh[1]=e[1],Gh[2]=e[2],Gh[3]=e[3]),i&&(Gh[0]=Er(0,Gh[0]),Gh[1]=Er(0,Gh[1]),Gh[2]=Er(0,Gh[2]),Gh[3]=Er(0,Gh[3])),n&&(Gh[0]=-Gh[0],Gh[1]=-Gh[1],Gh[2]=-Gh[2],Gh[3]=-Gh[3]),Wh(t,Gh,"x","width",3,1,r&&r[0]||0),Wh(t,Gh,"y","height",0,2,r&&r[1]||0)),t}var Gh=[0,0,0,0];function Wh(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=Er(0,zr(a,l)),t[i]<a?(t[i]=a,t[n]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:Fr(s)>1e-8?(l-a)*e[r]/s:0):t[n]-=e[r]}function Uh(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=H(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&&P(B(l),(function(t){pt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Ml(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:k({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Xh(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Yh(t,e){if(t)if(F(t))for(var n=0;n<t.length;n++)Xh(t[n],e);else Xh(t,e)}function Zh(t){return!t||Fr(t[1])<qh&&Fr(t[2])<qh||Fr(t[0])<qh&&Fr(t[3])<qh}var qh=1e-5;function jh(t,e){return t?Le.copy(t,e):e.clone()}function Kh(t,e){return e?ne(t||[1,0,0,1,0,0],e):void 0}function $h(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function Qh(t,e,n){Jh(t,e,n,-1/0)}function Jh(t,e,n,i){if(t.ignoreModelZ)return i;var r=t.getTextContent(),o=t.getTextGuideLine();if(t.isGroup)for(var a=t.childrenRef(),s=0;s<a.length;s++)i=Er(Jh(a[s],e,n,i),i);else t.z=e,t.zlevel=n,i=Er(t.z2||0,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var l=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(l&&l.showAbove?1:-1))}return i}var tp=new er;tp.transform=[1,0,0,1,0,0],Ih("circle",rc),Ih("ellipse",sc),Ih("sector",Sc),Ih("ring",Ic),Ih("polygon",Ac),Ih("polyline",Oc),Ih("rect",ul),Ih("line",zc),Ih("bezierCurve",Gc),Ih("arc",Xc);const ep=Object.freeze(Object.defineProperty({__proto__:null,Arc:Xc,BezierCurve:Gc,BoundingRect:Le,Circle:rc,CompoundPath:Zc,Ellipse:sc,Group:Ar,HOVER_LAYER_FOR_INCREMENTAL:2,HOVER_LAYER_FROM_THRESHOLD:1,HOVER_LAYER_NO:0,Image:el,IncrementalDisplayable:hh,Line:zc,LinearGradient:$c,OrientedBoundingRect:lh,Path:qs,Point:le,Polygon:Ac,Polyline:Oc,RadialGradient:Qc,Rect:ul,Ring:Ic,Sector:Sc,Text:Tl,WH:Th,XY:Sh,applyTransform:Nh,calcZ2Range:function(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){if(t){var i=t.z2;i>e&&(e=i),i<n&&(n=i)}}return Xh(t,(function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())})),n>e&&(n=e=0),{min:n,max:e}},clipPointsByRect:function(t,e){return O(t,(function(t){var n=t[0];n=Er(n,e.x),n=zr(n,e.x+e.width);var i=t[1];return i=Er(i,e.y),[n,i=zr(i,e.y+e.height)]}))},clipRectByRect:function(t,e){var n=Er(t.x,e.x),i=zr(t.x+t.width,e.x+e.width),r=Er(t.y,e.y),o=zr(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}},createIcon:Eh,decomposeTransform:function(t,e){return e?ne(tp.transform,e):ee(tp.transform),tp.decomposeTransform(),tr(t,tp),t},ensureCopyRect:jh,ensureCopyTransform:Kh,expandOrShrinkRect:Hh,extendPath:function(t,e){return Mh(t,e)},extendShape:function(t){return qs.extend(t)},getCurrentCanvasPainter:function(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null},getShapeClass:Ch,getTransform:function(t,e){for(var n=ee([]);t&&t!==e;)ie(n,t.getLocalTransform(),n),t=t.parent;return n},groupTransition:zh,initProps:vh,isBoundingRectAxisAligned:Zh,isElementRemoved:yh,lineLineIntersect:Fh,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Fh(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:Dh,makePath:kh,mergePath:Lh,payloadDisableAnimation:function(t){return t.animation={duration:0},t},registerShape:Ih,removeElement:mh,removeElementWithFadeOut:xh,resizePath:Ph,retrieveZInfo:$h,setTooltipConfig:Uh,subPixelOptimize:Rh,subPixelOptimizeLine:Oh,subPixelOptimizeRect:function(t,e){return rl(t,t,e),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Fr(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Fr(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Nh(o,e,n),Fr(o[0])>Fr(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},traverseElements:Yh,traverseUpdateZ:Qh,updateProps:gh},Symbol.toStringTag,{value:"Module"}));var np={};function ip(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=V(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:i},u=0;u<Yl.length;u++){var c=Yl[u],h=e[c];l[c]=$(r?r.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,i)}return l}function rp(t,e,n,i){n=n||np;for(var r=t instanceof Tl,o=!1,a=0;a<Zl.length;a++)if((p=e[Zl[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new Tl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=ip(n,e),u=e.normal,c=!!u.getShallow("show"),h=ap(u,i&&i.normal,n,!1,!r);for(h.text=l.normal,r||t.setTextConfig(sp(u,n,!1)),a=0;a<Yl.length;a++){var p,d=Yl[a];if(p=e[d]){var f=s.ensureState(d),g=!!$(p.getShallow("show"),c);g!==c&&(f.ignore=!g),f.style=ap(p,i&&i[d],n,!0,!r),f.style.text=l[d],r||(t.ensureState(d).textConfig=sp(p,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(h.x=s.style.x),null!=s.style.y&&(h.y=s.style.y),s.ignore=!c,s.useStyle(h),s.dirty(),n.enableTextSetter&&(pp(s).setLabelText=function(t){var i=ip(n,e,t);!function(t,e){for(var n=0;n<Yl.length;n++){var i=Yl[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(s,i)})}else s&&(s.ignore=!0);t.dirty()}function op(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Yl.length;i++){var r=Yl[i];n[r]=t.getModel([r,e])}return n}function ap(t,e,n,i,r){var o={};return function(t,e,n,i,r){n=n||np;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||np).rich;if(n){e=e||{};for(var i=B(n),r=0;r<i.length;r++)e[i[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var u="richInheritPlainLabel",c=$(e.get(u),a?a.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var p=e.getModel(["rich",h]);hp(o[h]={},p,s,e,c,n,i,r,!1,!0)}}o&&(t.rich=o);var d=e.get("overflow");d&&(t.overflow=d);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=t,v=e.get("minMargin");if(null!=v)v=W(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=dp.minMargin;else{var y=e.get("textMargin");null!=y&&(g.margin=tt(y),g.__marginType=dp.textMargin)}hp(t,e,s,null,null,n,i,r,!0,!1)}(o,t,n,i,r),e&&C(o,e),o}function sp(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=$(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var lp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],up=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function hp(t,e,n,i,r,o,a,s,l,u){n=!a&&n||np;var c=o&&o.inheritColor,h=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=$(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==p&&"auto"!==p||(p=c||null),s||(h=h||n.color,p=p||n.textBorderColor),null!=h&&(t.fill=h),null!=p&&(t.stroke=p);var f=$(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=$(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var v=$(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=v&&(t.lineDashOffset=v),a||null!=d||u||(d=o&&o.defaultOpacity),null!=d&&(t.opacity=d),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var y=0;y<lp.length;y++){var m=lp[y];null!=(x=!1!==r&&i?Q(e.getShallow(m),i.getShallow(m),n[m]):$(e.getShallow(m),n[m]))&&(t[m]=x)}for(y=0;y<up.length;y++)m=up[y],null!=(x=e.getShallow(m))&&(t[m]=x);if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!l||!o.disableBox){for(y=0;y<cp.length;y++){var x;m=cp[y],null!=(x=e.getShallow(m))&&(t[m]=x)}var b=e.getShallow("borderType");null!=b&&(t.borderDash=b),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}var pp=Bo(),dp={minMargin:1,textMargin:2},fp=["textStyle","color"],gp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],vp=new Tl,yp=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(fp):null)},t.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=this.ecModel,n=e&&e.getModel("textStyle"),nt([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 t,e,n},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<gp.length;n++)e[gp[n]]=this.getShallow(gp[n]);return vp.useStyle(e),vp.update(),vp.getBoundingRect()},t}();const mp=yp;var _p,xp,bp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],wp=pa(bp),Sp=function(){function t(){}return t.prototype.getLineStyle=function(t){return wp(this,t)},t}(),Tp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Mp=pa(Tp),Ip=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Mp(this,t,e)},t}(),Cp=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){},t.prototype.mergeOption=function(t,e){I(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(0,this.constructor)(M(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(!r.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!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}();aa(Cp),_p=Cp,xp=["__\0is_clz",la++].join("_"),_p.prototype[xp]=!0,_p.isInstance=function(t){return!(!t||!t[xp])},A(Cp,Sp),A(Cp,Ip),A(Cp,fa),A(Cp,mp);const kp=Cp;var Dp=Math.round(10*Math.random());function Ap(t){return[t||"",Dp++].join("_")}function Lp(t,e){return I(I({},t,!0),e,!0)}var Pp="ZH",Op="EN",Rp=Op,Np={},Bp={},zp=r.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Rp).toUpperCase().indexOf(Pp)>-1?Pp:Rp;function Ep(t,e){t=t.toUpperCase(),Bp[t]=new kp(e),Np[t]=e}Ep(Op,{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:". "}}}}),Ep(Pp,{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:""}}}});var Fp=null;function Vp(){return Fp}function Hp(t,e){var n=Vp(),i=e.breakOption,r=e.breakParsed;return!r&&n&&(r=n.parseAxisBreakOption(i,t)),r}function Gp(t){var e=t.brk;return e?e.breaks:[]}function Wp(t){var e=t.brk;return!!e&&e.hasBreaks()}var Up=1e3,Xp=60*Up,Yp=60*Xp,Zp=24*Yp,qp=365*Zp,jp={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Kp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},$p="{yyyy}-{MM}-{dd}",Qp={year:"{yyyy}",month:"{yyyy}-{MM}",day:$p,hour:$p+" "+Kp.hour,minute:$p+" "+Kp.minute,second:$p+" "+Kp.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Jp=["year","month","day","hour","minute","second","millisecond"],td=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ed(t){return H(t)||V(t)?t:function(t){t=t||{};var e={},n=!0;return P(Jp,(function(e){n&&(n=null==t[e])})),P(Jp,(function(i,r){var o=t[i];e[i]={};for(var a=null,s=r;s>=0;s--){var l=Jp[s],u=U(o)&&!F(o)?o[l]:o,c=void 0;F(u)?a=(c=u.slice())[0]||"":H(u)?c=[a=u]:(null==a?a=Kp[i]:jp[l].test(a)||(a=e[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),e[i][l]=c}})),e}(t)}function nd(t,e){return"0000".substr(0,e-(t+="").length)+t}function id(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 rd(t){return t===id(t)}function od(t,e,n,i){var r=oo(t),o=r[ld(n)](),a=r[ud(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[cd(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[hd(n)](),h=(c-1)%12+1,p=r[pd(n)](),d=r[dd(n)](),f=r[fd(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=i instanceof kp?i:function(t){return Bp[t]}(i||zp)||Bp[Rp],m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,nd(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,nd(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,nd(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,nd(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,nd(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,nd(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,nd(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,nd(f,3)).replace(/{S}/g,f+"")}function ad(t,e){var n=oo(t),i=n[ud(e)]()+1,r=n[cd(e)](),o=n[hd(e)](),a=n[pd(e)](),s=n[dd(e)](),l=0===n[fd(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,p=h&&1===r;return p&&1===i?"year":p?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function sd(t,e,n){switch(e){case"year":t[vd(n)](0);case"month":t[yd(n)](1);case"day":t[md(n)](0);case"hour":t[_d(n)](0);case"minute":t[xd(n)](0);case"second":t[bd(n)](0)}return t}function ld(t){return t?"getUTCFullYear":"getFullYear"}function ud(t){return t?"getUTCMonth":"getMonth"}function cd(t){return t?"getUTCDate":"getDate"}function hd(t){return t?"getUTCHours":"getHours"}function pd(t){return t?"getUTCMinutes":"getMinutes"}function dd(t){return t?"getUTCSeconds":"getSeconds"}function fd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function gd(t){return t?"setUTCFullYear":"setFullYear"}function vd(t){return t?"setUTCMonth":"setMonth"}function yd(t){return t?"setUTCDate":"setDate"}function md(t){return t?"setUTCHours":"setHours"}function _d(t){return t?"setUTCMinutes":"setMinutes"}function xd(t){return t?"setUTCSeconds":"setSeconds"}function bd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function wd(t){if(isNaN(co(t)))return H(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Sd(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 Td=tt;function Md(t,e,n){function i(t){return t&&nt(t)?t:"-"}function r(t){return go(t)}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?oo(t):t;if(!isNaN(+s))return od(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return G(t)?i(t):W(t)&&r(t)?t+"":"-";var l=co(t);return r(l)?wd(l):G(t)?i(t):"boolean"==typeof t?t+"":"-"}var Id=["a","b","c","d","e","f","g"],Cd=function(t,e){return"{"+t+(null==e?"":e)+"}"};function kd(t,e,n){F(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Id[o];t=t.replace(Cd(a),Cd(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Cd(Id[l],s),n?Wt(u):u)}return t}function Dd(t,e){return e=e||"transparent",H(t)?t:U(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ad(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Ld={},Pd={},Od=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,i){var r=[];return P(n,(function(n,i){var o=n.create(t,e);r=r.concat(o||[])})),r}this._nonSeriesBoxMasterList=n(Ld),this._normalMasterList=n(Pd)},t.prototype.update=function(t,e){P(this._normalMasterList,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?Pd[t]=e:Ld[t]=e},t.get=function(t){return Pd[t]||Ld[t]},t}(),Rd=1,Nd=2,Bd=ut();function zd(t){var e=t.getShallow("coord",!0),n=Rd;if(null==e){var i=Bd.get(t.type);i&&i.getCoord2&&(n=Nd,e=i.getCoord2(t))}return{coord:e,from:n}}var Ed=0,Fd=1,Vd=2;function Hd(t,e){var n=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),r=Ed;if(n){var o="series"===t.mainType;null==i&&(i=o?"data":"box"),"data"===i?(r=Fd,o||(r=Ed)):"box"===i&&(r=Vd,o||function(t){return!!Ld[t]}(n)||(r=Ed))}return{coordSysType:n,kind:r}}const Gd=Od;var Wd=P,Ud=["left","right","top","bottom","width","height"],Xd=[["width","left","right"],["height","top","bottom"]];function Yd(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 c,h,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);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(f?-f.y+p.y:0);(h=a+v)>r||l.newline?(o+=s+n,a=0,h=v,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var Zd=Yd;function qd(t,e){var n=function(t,e){var n,i,r=$d(t,e,{enableLayoutOnlyByCenter:!0}),o=t.getBoxLayoutParams();if(r.type===Kd.point)i=r.refPoint,n=jd(o,{width:e.getWidth(),height:e.getHeight()});else{var a=t.get("center"),s=F(a)?a:[a,a];n=jd(o,r.refContainer),i=r.boxCoordFrom===Nd?r.refPoint:[jr(s[0],n.width)+n.x,jr(s[1],n.height)+n.y]}return{viewRect:n,center:i}}(t,e),i=n.viewRect,r=n.center,o=t.get("radius");F(o)||(o=[0,o]);var a=jr(i.width,e.getWidth()),s=jr(i.height,e.getHeight()),l=Math.min(a,s),u=jr(o[0],l/2),c=jr(o[1],l/2);return{cx:r[0],cy:r[1],r0:u,r:c,viewRect:i}}function jd(t,e,n){n=Td(n||0);var i=e.width,r=e.height,o=jr(t.left,i),a=jr(t.top,r),s=jr(t.right,i),l=jr(t.bottom,r),u=jr(t.width,i),c=jr(t.height,r),h=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var f=new Le((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,c);return f.margin=n,f}E(Yd,"vertical"),E(Yd,"horizontal");var Kd={rect:1,point:2};function $d(t,e,n){var i,r,o,a,s=t.boxCoordinateSystem;if(s){var l=zd(t),u=l.coord,c=l.from;if(s.dataToLayout){o=Kd.rect,a=c;var h=s.dataToLayout(u);i=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=Kd.point,a=c,r=s.dataToPoint(u))}return null==o&&(o=Kd.rect),o===Kd.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:a}}function Qd(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new Le(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var h=jd(k({width:a.width,height:a.height},e),n,i),p=s?h.x-a.x:0,d=l?h.y-a.y:0;return"raw"===u?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===t&&t.markRedraw(),!0}function Jd(t){var e=t.layoutMode||t.constructor.layoutMode;return U(e)?e:e?{type:e}:null}function tf(t,e,n){var i=n&&n.ignoreSize;!F(i)&&(i=[i,i]);var r=a(Xd[0],0),o=a(Xd[1],1);function a(n,r){var o={},a=0,l={},u=0;if(Wd(n,(function(e){l[e]=t[e]})),Wd(n,(function(t){pt(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&u++})),i[r])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var c=0;c<n.length;c++){var h=n[c];if(!pt(o,h)&&pt(t,h)){o[h]=t[h];break}}return o}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){Wd(t,(function(t){e[t]=n[t]}))}l(Xd[0],t,r),l(Xd[1],t,o)}function ef(t){return nf({},t)}function nf(t,e){return e&&t&&Wd(Ud,(function(n){pt(e,n)&&(t[n]=e[n])})),t}var rf=Bo(),of=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Ap("ec_cpt_model"),r}var i;return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Jd(this),i=n?ef(t):{};I(t,e.getTheme().get(this.mainType)),I(t,this.getDefaultOption()),n&&tf(t,i,n)},e.prototype.mergeOption=function(t,e){I(this.option,t,!0);var n=Jd(this);n&&tf(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function(t){return!(!t||!t[ra])}(t))return t.defaultOption;var e=rf(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=I(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Ho(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((i=e.prototype).type="component",i.id="",i.name="",i.mainType="",i.subType="",void(i.componentIndex=0)),e}(kp);sa(of,kp),ha(of),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=oa(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=oa(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(of),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,i,r,o){if(t.length){var a=function(t){var i={},r=[];return P(t,(function(o){var a=n(i,o),s=function(t,e){var n=[];return P(t,(function(t){D(e,t)>=0&&n.push(t)})),n}(a.originalDeps=e(o),t);a.entryCount=s.length,0===a.entryCount&&r.push(o),P(s,(function(t){D(a.predecessor,t)<0&&a.predecessor.push(t);var e=n(i,t);D(e.successor,t)<0&&e.successor.push(o)}))})),{graph:i,noEntryList:r}}(i),s=a.graph,l=a.noEntryList,u={};for(P(t,(function(t){u[t]=!0}));l.length;){var c=l.pop(),h=s[c],p=!!u[c];p&&(r.call(o,c,h.originalDeps.slice()),delete u[c]),P(h.successor,p?f:d)}P(u,(function(){throw new Error("")}))}function d(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}}}(of,(function(t){var e=[];return P(of.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=O(e,(function(t){return oa(t).main})),"dataset"!==t&&D(e,"dataset")<=0&&e.unshift("dataset"),e}));const af=of;var sf={color:{},darkColor:{},size:{}},lf=sf.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var uf in C(lf,{primary:lf.neutral80,secondary:lf.neutral70,tertiary:lf.neutral60,quaternary:lf.neutral50,disabled:lf.neutral20,border:lf.neutral30,borderTint:lf.neutral20,borderShade:lf.neutral40,background:lf.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:lf.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:lf.neutral70,axisLineTint:lf.neutral40,axisTick:lf.neutral70,axisTickMinor:lf.neutral60,axisLabel:lf.neutral70,axisSplitLine:lf.neutral15,axisMinorSplitLine:lf.neutral05}),lf)if(lf.hasOwnProperty(uf)){var cf=lf[uf];"theme"===uf?sf.darkColor.theme=lf.theme.slice():"highlight"===uf?sf.darkColor.highlight="rgba(255,231,130,0.4)":0===uf.indexOf("accent")?sf.darkColor[uf]=Qn(cf,null,(function(t){return.5*t}),(function(t){return Math.min(1,1.3-t)})):sf.darkColor[uf]=Qn(cf,null,(function(t){return.9*t}),(function(t){return 1-Math.pow(t,1.5)}))}sf.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const hf=sf;var pf="";"undefined"!=typeof navigator&&(pf=navigator.platform||"");var df="rgba(0, 0, 0, 0.2)",ff=hf.color.theme[0],gf=Qn(ff,null,null,.9);const vf={darkMode:"auto",colorBy:"series",color:hf.color.theme,gradientColor:[gf,ff],aria:{decal:{decals:[{color:df,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:df,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:df,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:df,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:df,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:df,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pf.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 yf={Must:1,Might:2,Not:3},mf=Bo();function _f(t,e,n){var i={},r=bf(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,c=mf(u).datasetMap,h=r.uid+"_"+n.seriesLayoutBy;P(t=t.slice(),(function(e,n){var r=U(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var p=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function f(t){var e=t.dimsDef;return e?e.length:1}return P(t,(function(t,e){var n=t.name,r=f(t);if(null==o){var a=p.valueWayDim;d(i[n],a,r),d(l,a,r),p.valueWayDim+=r}else o===e?(d(i[n],0,r),d(s,0,r)):(a=p.categoryWayDim,d(i[n],a,r),d(l,a,r),p.categoryWayDim+=r)})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function xf(t,e,n){var i={};if(!bf(t))return i;var r,o=e.sourceFormat,a=e.dimensionsDefine;o!==Ll&&o!==Pl||P(a,(function(t,e){"name"===(U(t)?t.name:t)&&(r=e)}));var s=function(){for(var t={},i={},s=[],l=0,u=Math.min(5,n);l<u;l++){var c=Sf(e.data,o,e.seriesLayoutBy,a,e.startIndex,l);s.push(c);var h=c===yf.Not;if(h&&null==t.v&&l!==r&&(t.v=l),(null==t.n||t.n===t.v||!h&&s[t.n]===yf.Not)&&(t.n=l),p(t)&&s[t.n]!==yf.Not)return t;h||(c===yf.Might&&null==i.v&&l!==r&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(s){i.value=[s.v];var l=null!=r?r:s.n;i.itemName=[l],i.seriesName=[l]}return i}function bf(t){if(!t.get("data",!0))return Ho(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Vo).models[0]}function wf(t,e){return Sf(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Sf(t,e,n,i,r,o){var a,s,l;if(Y(t))return yf.Not;if(i){var u=i[o];U(u)?(s=u.name,l=u.type):H(u)&&(s=u)}if(null!=l)return"ordinal"===l?yf.Must:yf.Not;if(e===Al){var c=t;if(n===Bl){for(var h=c[o],p=0;p<(h||[]).length&&p<5;p++)if(null!=(a=_(h[r+p])))return a}else for(p=0;p<c.length&&p<5;p++){var d=c[r+p];if(d&&null!=(a=_(d[o])))return a}}else if(e===Ll){var f=t;if(!s)return yf.Not;for(p=0;p<f.length&&p<5;p++)if((y=f[p])&&null!=(a=_(y[s])))return a}else if(e===Pl){var g=t;if(!s)return yf.Not;if(!(h=g[s])||Y(h))return yf.Not;for(p=0;p<h.length&&p<5;p++)if(null!=(a=_(h[p])))return a}else if(e===Dl){var v=t;for(p=0;p<v.length&&p<5;p++){var y,m=Co(y=v[p]);if(!F(m))return yf.Not;if(null!=(a=_(m[o])))return a}}function _(t){var e=H(t);return null!=t&&isFinite(Number(t))&&""!==t?e?yf.Might:yf.Not:e&&"-"!==t?yf.Must:void 0}return yf.Not}var Tf=ut(),Mf=Bo();Bo();var If,Cf,kf,Df=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=To(this.get("color",!0)),r=this.get("colorLayer",!0);return function(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 c=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((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}(this,Mf,i,r,t,e,n)},t.prototype.clearColorPalette=function(){!function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}(this,Mf)},t}(),Af="\0_ec_inner",Lf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new kp(i),this._locale=new kp(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Rf(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Rf(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):kf(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&P(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=ut(),s=e&&e.replaceMergeMainTypeMap;mf(this).datasetMap=ut(),P(t,(function(t,e){null!=t&&(af.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?M(t):I(n[e],t,!0))})),s&&s.each((function(t,e){af.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),af.topologicalTravel(o,af.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=Tf.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,To(t[e])),a=i.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Do(a,o,l);(function(t,e,n){P(t,(function(t){var i=t.newOption;U(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(u,e,af),n[e]=null,i.set(e,null),r.set(e,0);var c,h=[],p=[],d=0;P(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=af.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return;c=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=C({componentIndex:n},t.keyInfo);C(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),p.push(i),d++):(h.push(void 0),p.push(void 0))}),this),n[e]=h,i.set(e,p),r.set(e,d),"series"===e&&If(this)}),this),this._seriesIndices||If(this)},e.prototype.getOption=function(){var t=M(this.option);return P(t,(function(e,n){if(af.hasClass(n)){for(var i=To(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Ro(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[Af],t},e.prototype.setTheme=function(t){this._theme=new kp(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],P(To(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?Pf("id",r,a):null!=o?Pf("name",o,a):N(a,(function(t){return!!t})),Of(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,o,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",r=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:s,index:e[n],id:e[i],name:e[r]}),u=l?this.queryComponents(l):N(this._componentsMap.get(s),(function(t){return!!t}));return o=Of(u,t),t.filter?N(o,t.filter):o},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(V(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=H(t)?i.get(t):U(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=Po(t,null);return N(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 N(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return N(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Cf(this),P(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){P(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Cf(this),P(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 P(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Cf(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Cf(this);var n=[];P(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=ut(n)},e.prototype.restoreData=function(t){If(this);var e=this._componentsMap,n=[];e.each((function(t,e){af.hasClass(e)&&n.push(e)})),af.topologicalTravel(n,af.getAllClassMainTypes(),(function(n){P(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=(If=function(t){var e=t._seriesIndices=[];P(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=ut(e)},Cf=function(t){},void(kf=function(t,e){t.option={},t.option[Af]=1,t._componentsMap=ut({series:[]}),t._componentsCount=ut();var n=e.aria;U(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;P(e,(function(e,i){"colorLayer"===i&&n||"color"===i&&t.color||af.hasClass(i)||("object"==typeof e?t[i]=t[i]?I(t[i],e,!1):M(e):null==t[i]&&(t[i]=e))}))}(e,t._theme.option),I(e,vf,!1),t._mergeOption(e,null)})),e}(kp);function Pf(t,e,n){if(F(e)){var i=ut();return P(e,(function(t){null!=t&&null!=Po(t,null)&&i.set(t,!0)})),N(n,(function(e){return e&&i.get(e[t])}))}var r=Po(e,null);return N(n,(function(e){return e&&null!=r&&e[t]===r}))}function Of(t,e){return e.hasOwnProperty("subType")?N(t,(function(t){return t&&t.subType===e.subType})):t}function Rf(t){var e=ut();return t&&P(To(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}A(Lf,Df);const Nf=Lf;var Bf=/^(min|max)?(.+)$/,zf=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(P(To(t.series),(function(t){t&&t.data&&Y(t.data)&&rt(t.data)})),P(To(t.dataset),(function(t){t&&t.source&&Y(t.source)&&rt(t.source)}))),t=M(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,c=!!t.media,h=!!(l||s||a&&a.timeline);function p(t){P(e,(function(e){e(t,n)}))}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&F(u)&&P(u,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})),p(r),P(l,(function(t){return p(t)})),P(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=[],M(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=M(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,c=o.length;u<c;u++)Ef(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=O(s,(function(t){return M(-1===t?a.option:o[t].option)}))),this._currentMediaIndices=s,l},t}();function Ef(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return P(t,(function(t,e){var n=e.match(Bf);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}const Ff=zf;var Vf=P,Hf=U,Gf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wf(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Gf.length;n<i;n++){var r=Gf[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?I(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?I(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Uf(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,k(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 Xf(t){Uf(t,"itemStyle"),Uf(t,"lineStyle"),Uf(t,"areaStyle"),Uf(t,"label"),Uf(t,"labelLine"),Uf(t,"upperLabel"),Uf(t,"edgeLabel")}function Yf(t,e){var n=Hf(t)&&t[e],i=Hf(n)&&n.textStyle;if(i)for(var r=0,o=Io.length;r<o;r++){var a=Io[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Zf(t){t&&(Xf(t),Yf(t,"label"),t.emphasis&&Yf(t.emphasis,"label"))}function qf(t){return F(t)?t:t?[t]:[]}function jf(t){return(F(t)?t[0]:t)||{}}function Kf(t,e){Vf(qf(t.series),(function(t){Hf(t)&&function(t){if(Hf(t)){Wf(t),Xf(t),Yf(t,"label"),Yf(t,"upperLabel"),Yf(t,"edgeLabel"),t.emphasis&&(Yf(t.emphasis,"label"),Yf(t.emphasis,"upperLabel"),Yf(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Wf(e),Zf(e));var n=t.markLine;n&&(Wf(n),Zf(n));var i=t.markArea;i&&Zf(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!Y(o))for(var a=0;a<o.length;a++)Zf(o[a]);P(t.categories,(function(t){Xf(t)}))}if(r&&!Y(r))for(a=0;a<r.length;a++)Zf(r[a]);if((e=t.markPoint)&&e.data){var s=e.data;for(a=0;a<s.length;a++)Zf(s[a])}if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)F(l[a])?(Zf(l[a][0]),Zf(l[a][1])):Zf(l[a])}"gauge"===t.type?(Yf(t,"axisLabel"),Yf(t,"title"),Yf(t,"detail")):"treemap"===t.type?(Uf(t.breadcrumb,"itemStyle"),P(t.levels,(function(t){Xf(t)}))):"tree"===t.type&&Xf(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Vf(n,(function(e){Vf(qf(t[e]),(function(t){t&&(Yf(t,"axisLabel"),Yf(t.axisPointer,"label"))}))})),Vf(qf(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Yf(e,"axisLabel"),Yf(e&&e.axisPointer,"label")})),Vf(qf(t.calendar),(function(t){Uf(t,"itemStyle"),Yf(t,"dayLabel"),Yf(t,"monthLabel"),Yf(t,"yearLabel")})),Vf(qf(t.radar),(function(t){Yf(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)})),Vf(qf(t.geo),(function(t){Hf(t)&&(Zf(t),Vf(qf(t.regions),(function(t){Zf(t)})))})),Vf(qf(t.timeline),(function(t){Zf(t),Uf(t,"label"),Uf(t,"itemStyle"),Uf(t,"controlStyle",!0);var e=t.data;F(e)&&P(e,(function(t){U(t)&&(Uf(t,"label"),Uf(t,"itemStyle"))}))})),Vf(qf(t.toolbox),(function(t){Uf(t,"iconStyle"),Vf(t.feature,(function(t){Uf(t,"iconStyle")}))})),Yf(jf(t.axisPointer),"label"),Yf(jf(t.tooltip).axisPointer,"label")}function $f(t){t&&P(Qf,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Qf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Jf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],tg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function eg(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<tg.length;n++){var i=tg[n][1],r=tg[n][0];null!=e[i]&&(e[r]=e[i])}}function ng(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function ig(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function rg(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&rg(t[n].children,e)}function og(t,e){Kf(t,e),t.series=To(t.series),P(t.series,(function(t){if(U(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),ng(t.label),(r=t.data)&&!Y(r))for(var n=0;n<r.length;n++)ng(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=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!=i&&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];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(eg(t),eg(t.backgroundStyle),eg(t.emphasis),(r=t.data)&&!Y(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(eg(r[n]),eg(r[n]&&r[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),ig(t),rg(t.data,ig)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&k(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),$f(t)}})),t.dataRange&&(t.visualMap=t.dataRange),P(Jf,(function(e){var n=t[e];n&&(F(n)||(n=[n]),P(n,(function(t){$f(t)})))}))}var ag,sg,lg,ug,cg,hg,pg=ea((function(t){var e=ut();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.push(o)}})),e.each((function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),P(t,(function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)})),function(t){P(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,c){var h,p,d=a.get(e.stackedDimension,c);if(isNaN(d))return r;s?p=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(p=v.data.rawIndexOf(v.stackedByDimension,h)),p>=0){var y=v.data.getByRawIndex(v.stackResultDimension,p);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&d>=0&&y>0||"samesign"===l&&d<=0&&y<0){d=to(d,y),f=y;break}}}return i[0]=d,i[1]=f,i}))}))}(t))}))})),dg=function(t){this.data=t.data||(t.sourceFormat===Pl?{}:[]),this.sourceFormat=t.sourceFormat||Rl,this.seriesLayoutBy=t.seriesLayoutBy||Nl,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&&wf(this,n)===yf.Must&&(i.type="ordinal")}};function fg(t){return t instanceof dg}function gg(t,e,n){n=n||yg(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:mg(r),startIndex:a,dimensionsDetectedCount:o};if(e===Al){var s=t;"auto"===i||null==i?_g((function(t){null!=t&&"-"!==t&&(H(t)?null==a&&(a=1):a=0)}),n,s,10):a=W(i)?i:i?1:0,r||1!==a||(r=[],_g((function(t,e){r[e]=null!=t?t+"":""}),n,s,1/0)),o=r?r.length:n===Bl?s.length:s[0]?s[0].length:null}else if(e===Ll)r||(r=function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return B(e)}(t));else if(e===Pl)r||(r=[],P(t,(function(t,e){r.push(e)})));else if(e===Dl){var l=Co(t[0]);o=F(l)&&l.length||1}return{startIndex:a,dimensionsDefine:mg(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new dg({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:M(e)})}function vg(t){return new dg({data:t,sourceFormat:Y(t)?Ol:Dl})}function yg(t){var e=Rl;if(Y(t))e=Ol;else if(F(t)){0===t.length&&(e=Al);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(F(r)||Y(r)){e=Al;break}if(U(r)){e=Ll;break}}}}else if(U(t))for(var o in t)if(pt(t,o)&&L(t[o])){e=Pl;break}return e}function mg(t){if(t){var e=ut();return O(t,(function(t,n){var i={name:(t=U(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function _g(t,e,n,i){if(e===Bl)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function xg(t){var e=t.sourceFormat;return e===Ll||e===Pl}var bg=function(){function t(t,e){var n=fg(t)?t:vg(t);this._source=n;var i=this._data=n.data,r=n.sourceFormat;n.seriesLayoutBy,r===Ol&&(this._offset=0,this._dimSize=e,this._data=i),hg(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;hg=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(C(t,cg[Pg(a,s)]),a===Ol)t.getItem=e,t.count=i,t.fillStorage=n;else{var c=Mg(a,s);t.getItem=z(c,null,r,l,u);var h=kg(a,s);t.count=z(h,null,r,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,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],c=e-t,h=n[a],p=0;p<c;p++){var d=r[p*o+a];h[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={})[Al+"_"+Nl]={pure:!0,appendData:r},t[Al+"_"+Bl]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ll]={pure:!0,appendData:r},t[Pl]={pure:!0,appendData:function(t){var e=this._data;P(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[Dl]={appendData:r},t[Ol]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},cg=t}(),t}(),wg=function(t){F(t)||_o("series.data or dataset.source must be an array.")};(ag={})[Al+"_"+Nl]=wg,ag[Al+"_"+Bl]=wg,ag[Ll]=wg,ag[Pl]=function(t,e){for(var n=0;n<e.length;n++)null==e[n].name&&_o("dimension name must not be null/undefined.")},ag[Dl]=wg;var Sg=function(t,e,n,i){return t[i]},Tg=((sg={})[Al+"_"+Nl]=function(t,e,n,i){return t[i+e]},sg[Al+"_"+Bl]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},sg[Ll]=Sg,sg[Pl]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=null!=s?t[s]:null;o[a]=l?l[i]:null}return o},sg[Dl]=Sg,sg);function Mg(t,e){return Tg[Pg(t,e)]}var Ig=function(t,e,n){return t.length},Cg=((lg={})[Al+"_"+Nl]=function(t,e,n){return Math.max(0,t.length-e)},lg[Al+"_"+Bl]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},lg[Ll]=Ig,lg[Pl]=function(t,e,n){var i=n[0].name,r=null!=i?t[i]:null;return r?r.length:0},lg[Dl]=Ig,lg);function kg(t,e){return Cg[Pg(t,e)]}var Dg=function(t,e,n){return t[e]},Ag=((ug={})[Al]=Dg,ug[Ll]=function(t,e,n){return t[n]},ug[Pl]=Dg,ug[Dl]=function(t,e,n){var i=Co(t);return i instanceof Array?i[e]:i},ug[Ol]=Dg,ug);function Lg(t){return Ag[t]}function Pg(t,e){return t===Al?t+"_"+e:t}function Og(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 Lg(o)(i,a,s)}var l=i;return o===Dl&&(l=Co(i)),l}}}var Rg=/\{@(.+?)\}/g,Ng=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,c=this.mainType,h="series"===c,p=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name: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,i,r,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);return o&&(s.value=o.interpolatedValue),null!=i&&F(s.value)&&(s.value=s.value[i]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),V(r)?(s.status=e,s.dimensionIndex=i,r(s)):H(r)?kd(r,s).replace(Rg,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=Og(a,t,r);if(o&&F(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Og(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Bg(t){var e,n;return U(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function zg(t){return new Eg(t)}var Eg=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||p<d)){var f=this._progress;if(F(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],p,d,l,u);else this._doProgress(f,p,d,l,u)}this._dueIndex=d;var v=null!=this._settedOutputEnd?this._settedOutputEnd:d;this._outputDueEnd=v}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){Fg.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Fg.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Fg=function(){var t,e,n,i,r,o={reset:function(l,u,c,h){e=l,t=u,n=c,i=h,r=Math.ceil(i/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}}();function Vg(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||W(t)||null==t||"-"===t||(t=+oo(t)),null==t||""===t?NaN:Number(t))}ut({number:function(t){return parseFloat(t)},time:function(t){return+oo(t)},trim:function(t){return H(t)?nt(t):t}});var Hg=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=W(t)?t:co(t),i=W(e)?e:co(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=H(t),s=H(e);a&&(n=s?t:0),s&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}();function Gg(t){var e="",n=-1/0,i=-1/0,r=1/0,o=1/0;return t&&(null!=t.g&&(e+="G"+t.g,n=t.g),null!=t.ge&&(e+="GE"+t.ge,i=t.ge),null!=t.l&&(e+="L"+t.l,r=t.l),null!=t.le&&(e+="LE"+t.le,o=t.le)),{key:e,g:n,ge:i,l:r,le:o}}function Wg(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var Ug=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Vg(t,e)},t}();function Xg(t){return $g(t.sourceFormat)||xo(""),t.data}function Yg(t){var e=t.sourceFormat,n=t.data;if($g(e)||xo(""),e===Al){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Ll){for(i=[],r=0,o=n.length;r<o;r++)i.push(C({},n[r]));return i}}function Zg(t,e,n){if(null!=n)return W(n)||!isNaN(n)&&!pt(e,n)?t[n]:pt(e,n)?e[n]:void 0}function qg(t){return M(t)}var jg=ut();function Kg(t,e,n,i){e.length||xo(""),U(t)||xo("");var r=t.type,o=jg.get(r);o||xo("");var a=O(e,(function(t){return function(t,e){var n=new Ug,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==Nl&&xo("");var a=[],s={},l=t.dimensionsDefine;if(l)P(l,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};a.push(i),null!=n&&(pt(s,n)&&xo(""),s[n]=i)}));else for(var u=0;u<t.dimensionsDetectedCount;u++)a.push({index:u});var c=Mg(r,Nl);e.__isBuiltIn&&(n.getRawDataItem=function(t){return c(i,o,a,t)},n.getRawData=z(Xg,null,t)),n.cloneRawData=z(Yg,null,t);var h=kg(r,Nl);n.count=z(h,null,i,o,a);var p=Lg(r);n.retrieveValue=function(t,e){var n=c(i,o,a,t);return d(n,e)};var d=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=a[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=z(Zg,null,a,s),n.cloneAllDimensionInfo=z(qg,null,a),n}(t,o)}));return O(To(o.transform({upstream:a[0],upstreamList:a,config:M(t.config)})),(function(t,n){var i;U(t)||xo(""),t.data||xo(""),$g(yg(t.data))||xo("");var r=e[0];if(r&&0===n&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),i={seriesLayoutBy:Nl,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else i={seriesLayoutBy:Nl,sourceHeader:0,dimensions:t.dimensions};return gg(t.data,i,null)}))}function $g(t){return t===Al||t===Ll}var Qg,Jg=typeof Uint32Array===Il?Array:Uint32Array,tv=typeof Uint16Array===Il?Array:Uint16Array,ev=typeof Int32Array===Il?Array:Int32Array,nv=typeof Float64Array===Il?Array:Float64Array,iv={float:nv,int:ev,ordinal:Array,number:Array,time:nv};function rv(t){return t>65535?Jg:tv}function ov(t,e,n,i,r){var o=iv[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)}var av=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ut()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Qg[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],xg(i),this._dimensions=O(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 iv[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],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]=[1/0,-1/0]);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,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)ov(n,l,(d=i[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var h=c-a,p=0;p<r;p++){var d=i[p],f=Qg.arrayRows.call(this,t[h]||u,d.property,h,p);n[p][c]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=O(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),ov(r,u,c.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var h=[],p=t;p<e;p++){h=i.getItem(p,h);for(var d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(h,l[d],p,d);f[p]=g;var v=s[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var 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=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)})),Qr(e);var n=this.count();return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;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.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 for(t=new(n=rv(this._rawCount))(this.count()),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(rv(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,c=0;c<i;c++){var h=void 0,p=n.getRawIndex(c);if(0===a)h=e(c);else if(1===a)h=e(u[l][p],c);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=c,h=e.apply(null,o)}h&&(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=B(t),r=i.length;if(!r)return this;var o=e.count(),a=new(rv(e._rawCount))(o),s=0,l=i[0],u=t[l][0],c=t[l][1],h=e._chunks,p=!1;if(!e._indices){var d=0;if(1===r){for(var f=h[i[0]],g=0;g<n;g++)((_=f[g])>=u&&_<=c||isNaN(_))&&(a[s++]=d),d++;p=!0}else if(2===r){f=h[i[0]];var v=h[i[1]],y=t[i[1]][0],m=t[i[1]][1];for(g=0;g<n;g++){var _=f[g],x=v[g];(_>=u&&_<=c||isNaN(_))&&(x>=y&&x<=m||isNaN(x))&&(a[s++]=d),d++}p=!0}}if(!p)if(1===r)for(g=0;g<o;g++){var b=e.getRawIndex(g);((_=h[i[0]][b])>=u&&_<=c||isNaN(_))&&(a[s++]=b)}else for(g=0;g<o;g++){for(var w=!0,S=(b=e.getRawIndex(g),0);S<r;S++){var T=i[S];((_=h[T][b])<t[T][0]||_>t[T][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,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]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),p=0;p<o;p++)s[p]=i[e[p]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d)for("object"!=typeof d&&(r[0]=d,d=r),u=0;u<d.length;u++){var f=e[u],g=d[u],v=l[f],y=i[f];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}},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),c=this.getRawIndex(0),h=new(rv(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var p=1;p<s-1;p+=u){for(var d=Math.min(p+u,s-1),f=Math.min(p+2*u,s),g=(f+d)/2,v=0,y=d;y<f;y++){var m=a[M=this.getRawIndex(y)];isNaN(m)||(v+=m)}v/=f-d;var _=p,x=Math.min(p+u,s),b=p-1,w=a[c];n=-1,r=_;var S=-1,T=0;for(y=_;y<x;y++){var M;m=a[M=this.getRawIndex(y)],isNaN(m)?(T++,S<0&&(S=M)):(i=Math.abs((b-g)*(m-w)-(b-y)*(v-w)))>n&&(n=i,r=M)}T>0&&T<x-_&&(h[l++]=Math.min(S,r),r=Math.max(S,r)),h[l++]=r,c=r}return h[l++]=this.getRawIndex(s-1),o._count=l,o._indices=h,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(rv(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var c=u,h=o[this.getRawIndex(c)],p=u,d=o[this.getRawIndex(p)],f=r;u+r>a&&(f=a-u);for(var g=0;g<f;g++){var v=o[this.getRawIndex(u+g)];v<h&&(h=v,c=u+g),v>d&&(d=v,p=u+g)}var y=this.getRawIndex(c),m=this.getRawIndex(p);c<p?(s[l++]=y,s[l++]=m):(s[l++]=m,s[l++]=y)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=r._rawExtent[t]=[1/0,-1/0],h=new(rv(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(d+i(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[p++]=y}return r._count=p,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,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,e){var n=this._chunks[t],i=[1/0,-1/0];if(!n)return i;var r=this.count();if(!this._indices&&!e)return this._rawExtent[t].slice();var o=this._extent,a=o[t]||(o[t]={}),s=Gg(e),l=s.key,u=a[l];if(u)return u.slice();for(var c=i[0],h=i[1],p=0;p<r;p++){var d=n[this.getRawIndex(p)];e&&!Wg(s,d)||(d<c&&(c=d),d>h&&(h=d))}return a[l]=[c,h]},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,r,o=new t,a=this._chunks,s=e&&R(e,(function(t,e){return t[e]=!0,t}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=M(this._extent),t._rawExtent=M(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 Vg(t[i],this._dimensions[i])}Qg={arrayRows:t,objectRows:function(t,e,n,i){return Vg(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Vg(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),sv=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(uv(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=Y(a=o.get("data",!0))?Ol:Dl,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},p=$(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=$(c.sourceHeader,h.sourceHeader),f=$(c.dimensions,h.dimensions);t=p!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||f?[gg(a,{seriesLayoutBy:p,sourceHeader:d,dimensions:f},s)]:[]}else{var g=n;if(r){var v=this._applyTransform(i);t=v.sourceList,e=v.upstreamSignList}else t=[gg(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&cv("");var o,a=[],s=[];return P(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||cv(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e,n){var i=To(t),r=i.length;r||xo("");for(var o=0,a=r;o<a;o++)e=Kg(i[o],e),o!==a-1&&(e.length=Math.max(e.length,1));return e}(i,a,n.componentIndex):null!=r&&(e=[(o=a[0],new dg({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:M(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];uv(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new av).initData(new bg(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(uv(t)){var e=bf(t);return e?[e.getSourceManager()]:[]}return O(function(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Ho(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Vo).models:[]}(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(uv(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function lv(t){t.option.transform&&rt(t.option.transform)}function uv(t){return"series"===t.mainType}function cv(t){throw new Error(t)}var hv="line-height:1";function pv(t){var e=t.lineHeight;return null==e?hv:"line-height:"+Wt(e+"")+"px"}function dv(t,e){var n=t.color||hf.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||hf.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Wt(i+"")+"px;color:"+Wt(n)+";font-weight:"+Wt(r+""),valueStyle:"font-size:"+Wt(a+"")+"px;color:"+Wt(o)+";font-weight:"+Wt(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var fv=[0,10,20,30],gv=["","\n","\n\n","\n\n\n"];function vv(t,e){return e.type=t,e}function yv(t){return"section"===t.type}function mv(t){return yv(t)?xv:bv}function _v(t){if(yv(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return P(t.blocks,(function(t){var n=_v(t);n>=e&&(e=n+ +(i&&(!n||yv(t)&&!t.noHeader)))})),e}return 0}function xv(t,e,n,i){var r,o=e.noHeader,a=(r=_v(e),{html:fv[r],richText:gv[r]}),s=[],l=e.blocks||[];et(!l||F(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(pt(c,u)){var h=new Hg(c[u],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}P(l,(function(n,r){var o=e.valueFormatter,l=mv(n)(o?C(C({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var p="richText"===t.renderMode?s.join(a.richText):Sv(i,s.join(""),o?n:a.html);if(o)return p;var d=Md(e.header,"ordinal",t.useUTC),f=dv(i,t.renderMode).nameStyle,g=pv(i);return"richText"===t.renderMode?Tv(t,d,f)+a.richText+p:Sv(i,'<div style="'+f+";"+g+';">'+Wt(d)+"</div>"+p,n)}function bv(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return O(t=F(t)?t:[t],(function(t,e){return Md(t,F(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||hf.color.secondary,r),p=o?"":Md(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value,e.rawDataIndex),g=!s||!o,v=!s&&o,y=dv(i,r),m=y.nameStyle,_=y.valueStyle;return"richText"===r?(s?"":h)+(o?"":Tv(t,p,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,o)}(t,f,g,v,_)):Sv(i,(s?"":h)+(o?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+Wt(t)+"</span>"}(p,!s,m))+(a?"":function(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=F(t)?t:[t],'<span style="'+o+";"+i+'">'+O(t,(function(t){return Wt(t)})).join("&nbsp;&nbsp;")+"</span>"}(f,g,v,_)),n)}}function wv(t,e,n,i,r,o){if(t)return mv(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Sv(t,e,n){return'<div style="margin: '+n+"px 0 0;"+pv(t)+';">'+e+'<div style="clear:both"></div></div>'}function Tv(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Mv(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Iv=function(){function t(){this.richTextStyles={},this._nextStyleNameId=ho()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=function(t,e){var n=H(t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";return i?"html"===o?"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Wt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Wt(i)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}({color:e,type:t,renderMode:n,markerId:i});return H(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?P(e,(function(t){return C(n,t)})):C(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Cv(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),p=F(h),d=function(t,e){return Dd(t.getData().getItemVisual(e,"style")[t.visualDrawType])}(o,a);if(c>1||p&&!c){var f=function(t,e,n,i,r){var o=e.getData(),a=R(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(vv("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?P(i,(function(t){c(Og(o,n,t),t)})):P(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,d);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=Og(l,a,u[0]),n=g.type}else r=e=p?h[0]:h;var v=Oo(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return vv("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[vv("nameValue",{markerType:"item",markerColor:d,name:_,noName:!nt(_),value:e,valueType:n,rawDataIndex:l.getRawIndex(a)})].concat(i||[])})}var kv=Bo();function Dv(t,e){return t.getName(e)||t.getId(e)}var Av=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var i;return n(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=zg({count:Pv,reset:Ov}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(kv(this).sourceManager=new sv(this)).prepareSource();var i=this.getInitialData(t,n);Nv(i,this),this.dataTask.context.data=i,kv(this).dataBeforeProcessed=i,Lv(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Jd(this),i=n?ef(t):{},r=this.subType;af.hasClass(r)&&(r+="Series"),I(t,e.getTheme().get(this.subType)),I(t,this.getDefaultOption()),Mo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&tf(t,i,n)},e.prototype.mergeOption=function(t,e){t=I(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Jd(this);n&&tf(this.option,t,n);var i=kv(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Nv(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,kv(this).dataBeforeProcessed=r,Lv(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!Y(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Mo(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=zv(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return kv(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=zv(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}kv(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return ut(t)},e.prototype.getSourceManager=function(){return kv(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return kv(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,i){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(n);null==i&&(i=1/0);for(var l=[],u=1/0,c=-1,h=0,p=r.getDimensionIndex(e),d=r.getStore(),f=0,g=d.count();f<g;f++){var v=d.get(p,f),y=s-a.dataToCoord(v),m=Math.abs(y);m<=i&&((m<u||m===u&&y>=0&&c<0)&&(u=m,c=y,h=0),y===c&&(l[h++]=f))}return l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return Cv({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(r.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Df.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=Dv(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=B(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Dv(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){U(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var u=e[l];s[h=Dv(t,u)]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var c=e[a-1],h=Dv(t,c);r.selectedMap=((n={})[h]=!0,n),this._selectedDataIndicesMap=((i={})[h]=t.getRawIndex(c),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return af.registerClass(t)},e.protoInitialize=((i=e.prototype).type="series.__base__",i.seriesIndex=0,i.ignoreStyleOnData=!1,i.hasSymbolVisual=!1,i.defaultSymbol="circle",i.visualStyleAccessPath="itemStyle",void(i.visualDrawType="fill")),e}(af);function Lv(t){var e=t.name;Oo(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return P(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function Pv(t){return t.model.getRawData().count()}function Ov(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Rv}function Rv(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Nv(t,e){P(function(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,E(Bv,e))}))}function Bv(t,e){var n=zv(t);return n&&n.setOutputEnd((e||this).count()),e}function zv(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}}A(Av,Ng),A(Av,Df),sa(Av,af);const Ev=Av;var Fv=function(){function t(){this.group=new Ar,this.uid=Ap("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}();aa(Fv),ha(Fv);const Vv=Fv;function Hv(){var t=Bo();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"}}var Gv=Bo(),Wv=Hv(),Uv=function(){function t(){this.group=new Ar,this.uid=Ap("viewChart"),this.renderTask=zg({plan:Zv,reset:qv}),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&&Yv(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Yv(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Yh(this.group,t)},t.markUpdateMethod=function(t,e){Gv(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Xv(t,e,n){t&&Bu(t)&&("emphasis"===e?yu:mu)(t,n)}function Yv(t,e,n){var i=No(t,e),r=e&&null!=e.highlightKey?function(t){var e=Vl[t];return null==e&&Fl<=32&&(e=Vl[t]=Fl++),e}(e.highlightKey):null;null!=i?P(To(i),(function(e){Xv(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){Xv(t,n,r)}))}function Zv(t){return Wv(t.model)}function qv(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Gv(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),jv[l]}aa(Uv),ha(Uv);var jv={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)}}};const Kv=Uv;var $v="\0__throttleOriginMethod",Qv="\0__throttleRate",Jv="\0__throttleType";function ty(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=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(c),f?c=setTimeout(h,d):r>=0?h():c=setTimeout(h,-r),l=i};return p.clear=function(){c&&(clearTimeout(c),c=null)},p.debounceNextCall=function(t){s=t},p}function ey(t,e,n,i){var r=t[e];if(r){var o=r[$v]||r,a=r[Jv];if(r[Qv]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=ty(o,n,"debounce"===i))[$v]=o,r[Jv]=i,r[Qv]=n}return r}}function ny(t,e){var n=t[e];n&&n[$v]&&(n.clear&&n.clear(),t[e]=n[$v])}var iy=Bo(),ry={itemStyle:pa(Tp,!0),lineStyle:pa(bp,!0)},oy={lineStyle:"stroke",itemStyle:"fill"};function ay(t,e){var n=t.visualStyleMapper||ry[e];return n||(console.warn("Unknown style type '"+e+"'."),ry.itemStyle)}function sy(t,e){var n=t.visualDrawType||oy[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var ly={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=ay(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=sy(t,i),l=o[s],u=V(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=h,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||V(o.fill)?h:o.fill,o.stroke="auto"===o.stroke||V(o.stroke)?h: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=C({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},uy=new kp,cy={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=ay(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){uy.option=n[i];var a=r(uy);C(t.ensureUniqueItemVisual(e,"style"),a),uy.option.decal&&(t.setItemVisual(e,"decal",uy.option.decal),uy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},hy={performRawSeries:!0,overallReset:function(t){var e=ut();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();iy(t).scope=e.get(n)||e.set(n,{})}})),t.eachSeries((function(t){if(!t.isColorBySeries()){var e=t.getRawData(),n={},i=t.getData(),r=iy(t).scope,o=t.visualStyleAccessPath||"itemStyle",a=sy(t,o);i.each((function(t){var e=i.getRawIndex(t);n[e]=t})),e.each((function(o){var s=n[o];if(i.getItemVisual(s,"colorFromPalette")){var l=i.ensureUniqueItemVisual(s,"style"),u=e.getName(o)||o+"",c=e.count();l[a]=t.getColorFromPalette(u,r,c)}}))}}))}},py=Math.PI,dy=function(){function t(t,e,n,i){this._stageTaskMap=ut(),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;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.__preparePipelineContext?t.__preparePipelineContext(e,n):ta(t,e,n);t.pipelineContext=n.context=i},t.prototype.restorePipelines=function(t,e){var n=this,i=n._pipelineMap=ut();e.eachSeries((function(e){var r="canvas"===t.painter.type&&e.getProgressive(),o=e.uid;i.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),n._pipe(e,e.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;P(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});et(!(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))}P(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,p=c.agentStubMap;p.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,i.block);p.each((function(t){t.perform(d)})),c.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=ut(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||zg({plan:my,reset:_y,count:wy}));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||zg({reset:fy});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=ut(),l=t.seriesType,u=t.getTargetSeries,c=t.dirtyOnOverallProgress,h=!1;function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,zg({reset:gy,onDirty:yy})));n.context={model:t,dirtyOnOverallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}et(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):P(n.getSeries(),p),h&&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 V(t)&&(t={overallReset:t,seriesType:Sy(t)}),t.uid=Ap("stageHandler"),e&&(t.visualType=e),t},t}();function fy(t){t.overallReset(t.ecModel,t.api,t.payload)}function gy(t){return t.dirtyOnOverallProgress&&vy}function vy(){this.agent.dirty(),this.getDownstream().dirty()}function yy(){this.agent&&this.agent.dirty()}function my(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function _y(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=To(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?O(e,(function(t,e){return by(e)})):xy}var xy=by(0);function by(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 wy(t){return t.data.count()}function Sy(t){Ty=null;try{t(My,Iy)}catch(mc){}return Ty}var Ty,My={},Iy={};function Cy(t,e){for(var n in e.prototype)t[n]=dt}Cy(My,Nf),Cy(Iy,El),My.eachSeriesByType=My.eachRawSeriesByType=function(t){Ty=t},My.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Ty=t.subType)};const ky=dy;var Dy,Ay=hf.darkColor,Ly=Ay.background,Py=function(){return{axisLine:{lineStyle:{color:Ay.axisLine}},splitLine:{lineStyle:{color:Ay.axisSplitLine}},splitArea:{areaStyle:{color:[Ay.backgroundTint,Ay.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Ay.axisMinorSplitLine}},axisLabel:{color:Ay.axisLabel},axisName:{}}},Oy={label:{color:Ay.secondary},itemStyle:{borderColor:Ay.borderTint},dividerLineStyle:{color:Ay.border}},Ry={darkMode:!0,color:Ay.theme,backgroundColor:Ly,axisPointer:{lineStyle:{color:Ay.border},crossStyle:{color:Ay.borderShade},label:{color:Ay.tertiary}},legend:{textStyle:{color:Ay.secondary},pageTextStyle:{color:Ay.tertiary}},textStyle:{color:Ay.secondary},title:{textStyle:{color:Ay.primary},subtextStyle:{color:Ay.quaternary}},toolbox:{iconStyle:{borderColor:Ay.accent50},feature:{dataView:{backgroundColor:Ly,textColor:Ay.primary,textareaColor:Ay.background,textareaBorderColor:Ay.border,buttonColor:Ay.accent50,buttonTextColor:Ay.neutral00}}},tooltip:{backgroundColor:Ay.neutral20,defaultBorderColor:Ay.border,textStyle:{color:Ay.tertiary}},dataZoom:{borderColor:Ay.accent10,textStyle:{color:Ay.tertiary},brushStyle:{color:Ay.backgroundTint},handleStyle:{color:Ay.neutral00,borderColor:Ay.accent20},moveHandleStyle:{color:Ay.accent40},emphasis:{handleStyle:{borderColor:Ay.accent50}},dataBackground:{lineStyle:{color:Ay.accent30},areaStyle:{color:Ay.accent20}},selectedDataBackground:{lineStyle:{color:Ay.accent50},areaStyle:{color:Ay.accent30}}},visualMap:{textStyle:{color:Ay.secondary},handleStyle:{borderColor:Ay.neutral30}},timeline:{lineStyle:{color:Ay.accent10},label:{color:Ay.tertiary},controlStyle:{color:Ay.accent30,borderColor:Ay.accent30}},calendar:{itemStyle:{color:Ay.neutral00,borderColor:Ay.neutral20},dayLabel:{color:Ay.tertiary},monthLabel:{color:Ay.secondary},yearLabel:{color:Ay.secondary}},matrix:{x:Oy,y:Oy,backgroundColor:{borderColor:Ay.axisLine},body:{itemStyle:{borderColor:Ay.borderTint}}},timeAxis:Py(),logAxis:Py(),valueAxis:Py(),categoryAxis:Py(),line:{symbol:"circle"},graph:{color:Ay.theme},gauge:{title:{color:Ay.secondary},axisLine:{lineStyle:{color:[[1,Ay.neutral05]]}},axisLabel:{color:Ay.axisLabel},detail:{color:Ay.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Ay.background}},radar:(Dy=Py(),Dy.axisName={color:Ay.axisLabel},Dy.axisLine.lineStyle.color=Ay.neutral20,Dy),treemap:{breadcrumb:{itemStyle:{color:Ay.neutral20,textStyle:{color:Ay.secondary}},emphasis:{itemStyle:{color:Ay.neutral30}}}},sunburst:{itemStyle:{borderColor:Ay.background}},map:{itemStyle:{borderColor:Ay.border,areaColor:Ay.neutral10},label:{color:Ay.tertiary},emphasis:{label:{color:Ay.primary},itemStyle:{areaColor:Ay.highlight}},select:{label:{color:Ay.primary},itemStyle:{areaColor:Ay.highlight}}},geo:{itemStyle:{borderColor:Ay.border,areaColor:Ay.neutral10},emphasis:{label:{color:Ay.primary},itemStyle:{areaColor:Ay.highlight}},select:{label:{color:Ay.primary},itemStyle:{color:Ay.highlight}}}};Ry.categoryAxis.splitLine.show=!1;const Ny=Ry;var By=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(H(t)){var r=oa(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};P(t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=r.lastIndexOf(u);if(c>0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}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}(),zy=["symbol","symbolSize","symbolRotate","symbolOffset"],Ey=zy.concat(["symbolKeepAspect"]),Fy={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<zy.length;a++){var s=zy[a],l=t.get(s);V(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(C({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=B(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}}}}},Vy={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<Ey.length;i++){var r=Ey[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function Hy(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 Gy(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=No(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:F(u)?l.getName(u[0]):l.getName(u),selected:H(i)?i:C({},i)})}}))}function Wy(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}const Uy=new Ot;var Xy={},Yy={},Zy=Bo();function qy(t){return Zy(t).fullUpdate}var jy=Math.round(9*Math.random()),Ky="function"==typeof Object.defineProperty,$y=function(){function t(){this._id="__ec_inner_"+jy++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Ky?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}();const Qy=$y;var Jy=qs.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()}}),tm=qs.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()}}),em=qs.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),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*d,l+s+p*d,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+h*d,l+s+p*d,n-c,l+s),t.closePath()}}),nm=qs.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()}}),im={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}},rm={};P({line:zc,rect:ul,roundRect:ul,square:ul,circle:rc,diamond:tm,pin:em,arrow:nm,triangle:Jy},(function(t,e){rm[e]=new t}));var om=qs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=fr(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=rm[i];r||(r=rm[i="rect"]),im[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function am(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||hf.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function sm(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Dh(t.slice(8),new Le(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?kh(t.slice(7),{},new Le(e,n,i,r),a?"center":"cover"):new om({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=l,s.setColor=am,o&&s.setColor(o),s}function lm(t){return F(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function um(t,e){if(null!=t)return F(t)||(t=[t,t]),[jr(t[0],e[0])||0,jr($(t[1],t[0]),e[1])||0]}function cm(t){return isFinite(t)}function hm(t,e,n){for(var i="radial"===e.type?function(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=cm(a)?a:.5,s=cm(s)?s:.5,l=l>=0&&cm(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=cm(i)?i:0,r=cm(r)?r:1,o=cm(o)?o:0,a=cm(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function pm(t){return parseInt(t,10)}function dm(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||pm(s[i])||pm(t.style[i]))-(pm(s[o])||0)-(pm(s[a])||0)||0}function fm(t){var e,n,i=t.style,r=i.lineDash&&i.lineWidth>0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:W(e)?[e]:F(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=O(r,(function(t){return t/a})),o/=a)}return[r,o]}var gm=new Is(!0);function vm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function ym(t){return"string"==typeof t&&"none"!==t}function mm(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 xm(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 bm(t,e,n){var i=ya(e.image,e.__image,n);if(_a(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*ft),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var wm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Sm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Tm(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Lm(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Fa.opacity:a}(i||e.blend!==n.blend)&&(o||(Lm(t,r),o=!0),t.globalCompositeOperation=e.blend||Fa.blend);for(var s=0;s<wm.length;s++){var l=wm[s];(i||e[l]!==n[l])&&(o||(Lm(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Lm(t,r),o=!0),t.shadowColor=e.shadowColor||Fa.shadowColor),o}function Mm(t,e,n,i,r){var o=e.style,a=i?null:n&&n.style||{};if(o===a)return!1;var s=Tm(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Lm(t,r),s=!0),ym(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Lm(t,r),s=!0),ym(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Lm(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||(Lm(t,r),s=!0),t.lineWidth=l)}for(var u=0;u<Sm.length;u++){var c=Sm[u],h=c[0];(i||o[h]!==a[h])&&(s||(Lm(t,r),s=!0),t[h]=o[h]||c[1])}return s}function Im(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)}var Cm=1,km=2,Dm=3,Am=4;function Lm(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function Pm(t,e){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Om(t,e,n),Rm(t,n)}function Om(t,e,n){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~$e,void(e.__isRendered=!1);var r=e.__clipPaths,o=n.prevElClipPaths,a=e.style,l=!1,u=!1;if(o&&!function(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}(r,o)||(o&&(Lm(t,n),t.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length&&(Lm(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Im(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(r,t,n),l=!0,n.prevElClipPaths=r)),n.allClipped)return e.__dirty&=~$e,void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(n.beforeBrushParam),e.innerBeforeBrush();var c=n.prevEl;c||(u=l=!0);var h,p,d=e instanceof qs&&e.autoBatch&&function(t){var e=mm(t),n=vm(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(a);l||(h=i,p=c.transform,h&&p?h[0]!==p[0]||h[1]!==p[1]||h[2]!==p[2]||h[3]!==p[3]||h[4]!==p[4]||h[5]!==p[5]:h||p)?(Lm(t,n),Im(t,e)):d||Lm(t,n),e instanceof qs?(n.lastDrawType!==Cm&&(u=!0,n.lastDrawType=Cm),Mm(t,e,c,u,n),d&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i,r){var o,a=vm(n),s=mm(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var h=e.path||gm,p=e.__dirty;if(!i){var d=n.fill,f=n.stroke,g=s&&!!d.colorStops,v=a&&!!f.colorStops,y=s&&!!d.image,m=a&&!!f.image,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0;(g||v)&&(S=e.getBoundingRect()),g&&(_=p?hm(t,d,S):e.__canvasFillGradient,e.__canvasFillGradient=_),v&&(x=p?hm(t,f,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),y&&(b=p||!e.__canvasFillPattern?bm(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(w=p||!e.__canvasStrokePattern?bm(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=_:y&&(b?t.fillStyle=b:s=!1),v?t.strokeStyle=x:m&&(w?t.strokeStyle=w:a=!1)}var T,M,I=e.getGlobalScale();h.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(T=(o=fm(e))[0],M=o[1]);var C=!0;(c||p&Qe)&&(h.setDPR(t.dpr),u?h.setContext(null):(h.setContext(t),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(t,u?l:1),T&&(t.setLineDash(T),t.lineDashOffset=M),i?(r.batchFill=s,r.batchStroke=a):n.strokeFirst?(a&&xm(t,n),s&&_m(t,n)):(s&&_m(t,n),a&&xm(t,n)),T&&t.setLineDash([])}(t,e,a,d,n)):e instanceof $s?(n.lastDrawType!==Dm&&(u=!0,n.lastDrawType=Dm),Mm(t,e,c,u,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||s,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=fm(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(vm(n)&&t.strokeText(r,n.x,n.y),mm(n)&&t.fillText(r,n.x,n.y)):(mm(n)&&t.fillText(r,n.x,n.y),vm(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,a)):e instanceof el?(n.lastDrawType!==km&&(u=!0,n.lastDrawType=km),function(t,e,n,i,r){Tm(t,e.style,n&&n.style,i,r)}(t,e,c,u,n),function(t,e,n){var i=e.__image=ya(n.image,e.__image,e,e.onload);if(i&&_a(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var h=a-(u=n.sx),p=s-(c=n.sy);t.drawImage(i,u,c,h,p,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,a)):e.getTemporalDisplayables&&(n.lastDrawType!==Am&&(u=!0,n.lastDrawType=Am),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}};for(o=e.getCursor(),a=i.length;o<a;o++)(c=i[o]).beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Om(t,c,s),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;Rm(t,s);for(var l=0,u=r.length;l<u;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Om(t,c,s),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}Rm(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),e.innerAfterBrush(),e.afterBrush&&(d&&Lm(t,n),e.afterBrush()),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Rm(t,e){Lm(t,e),e.prevElClipPaths&&t.restore()}var Nm=new Qy,Bm=new Bn(100),zm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Em(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&Nm.delete(t);var o=Nm.get(t);if(o)return o;var a=k(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 s={repeat:"repeat"};return function(t){for(var e,o=[n],s=!0,l=0;l<zm.length;++l){var c=a[zm[l]];if(null!=c&&!F(c)&&!H(c)&&!W(c)&&"boolean"!=typeof c){s=!1;break}o.push(c)}if(s){e=o.join(",")+(r?"-svg":"");var h=Bm.get(e);h&&(r?t.svgElement=h:t.image=h)}var p,d=Vm(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(W(t)){var e=Math.ceil(t);return[e,e]}var n=O(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),g=Fm(a.symbol),v=O(d,(function(t){return Hm(t)})),y=Hm(f),m=!r&&u.createCanvas(),_=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=v.length;e<n;++e)t=fo(t,v[e]);var i=1;for(e=0,n=g.length;e<n;++e)i=fo(i,g[e].length);t*=i;var r=y*v.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=x.width*n,m.height=x.height*n,p=m.getContext("2d")),function(){p&&(p.clearRect(0,0,m.width,m.height),a.backgroundColor&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0))for(var o=-y,s=0,l=0,u=0;o<x.height;){if(s%2==0){for(var c=l/2%g.length,h=0,v=0,b=0;h<2*x.width;){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(v%2==0){var S=.5*(1-a.symbolSize),T=h+d[u][v]*S,M=o+f[s]*S,I=d[u][v]*a.symbolSize,C=f[s]*a.symbolSize,k=b/2%g[c].length;D(T,M,I,C,g[c][k])}h+=d[u][v],++b,++v===d[u].length&&(v=0)}++u===d.length&&(u=0)}o+=f[s],++l,++s===f.length&&(s=0)}function D(t,e,o,s,l){var u=r?1:n,c=sm(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(c);h&&_.children.push(h)}else Pm(p,c)}}(),s&&Bm.put(e,m||_),t.image=m,t.svgElement=_,t.svgWidth=x.width,t.svgHeight=x.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,Nm.set(t,s),t.dirty=!1,s}function Fm(t){if(!t||0===t.length)return[["rect"]];if(H(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!H(t[n])){e=!1;break}if(e)return Fm([t]);var i=[];for(n=0;n<t.length;++n)H(t[n])?i.push([t[n]]):i.push(t[n]);return i}function Vm(t){if(!t||0===t.length)return[[0,0]];if(W(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!W(t[n])){e=!1;break}if(e)return Vm([t]);var i=[];for(n=0;n<t.length;++n)if(W(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else(r=O(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r);return i}function Hm(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Gm=ea((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=Em(n,e))}));var r=i.getVisual("decal");r&&(i.getVisual("style").decal=Em(r,e))}}))})),Wm=2e3,Um=4500,Xm={PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Wm,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Um,ARIA:6e3,DECAL:7e3}},Ym="__flagInMainProcess",Zm="__mainProcessVersion",qm="__pendingUpdate",jm="__needsUpdateStatus",Km=/^[a-zA-Z0-9_]+$/,$m="__connectUpdateStatus";function Qm(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return t_(this,t,e);this.id}}function Jm(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t_(this,t,e)}}function t_(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Ot.prototype[e].apply(t,n)}var e_,n_,i_,r_,o_,a_,s_,l_,u_,c_,h_,p_,d_,f_,g_,v_,y_,m_,__,x_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Ot),b_=x_.prototype;b_.on=Jm("on"),b_.off=Jm("off");var w_=function(t){function e(e,n,i){var r=t.call(this,new By)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},r.__v_skip=!0,r._dom=e,r[Zm]=1,i.ssr;var o=r._zr=Rr(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:$(i.useDirtyRect,!1),useCoarsePointer:$(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=ty(z(o.flush,o),17),r._updateTheme(n),r._locale=function(t){if(H(t)){var e=Np[t.toUpperCase()]||{};return t===Pp||t===Op?M(e):I(M(e),M(Np[Rp]),!1)}return I(M(t),M(Np[Rp]),!1)}(i.locale||zp),r._coordSysMgr=new Gd;var a=r._api=g_(r);function s(t,e){return t.__prio-e.__prio}return Ke(A_,s),Ke(k_,s),r._scheduler=new ky(r,a,k_,A_),r._messageCenter=new x_,r._initEvents(),r.resize=z(r.resize,r),o.animation.on("frame",r._onframe,r),c_(o,r),h_(o,r),rt(r),r}return n(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,n=this._api;if(m_(this),this[qm]){var i=this[qm].silent;this[Ym]=!0,__(this);try{e_(this),r_.update.call(this,null,this[qm].updateParams)}catch(mc){throw this[Ym]=!1,this[qm]=null,mc}this._zr.flush(),this[Ym]=!1,this[qm]=null,l_.call(this,i),u_.call(this,i)}else if(t.unfinished){var r=1;do{t.unfinished=!1;var o=u.getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),a_(this,e),t.performVisualTasks(e),f_(this,this._model,n,"remain",{}),r-=u.getTime()-o}while(r>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Ym])if(this._disposed)this.id;else{var i,r,o;if(U(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Ym]=!0,__(this),!this._model||e){var a=new Ff(this._api),s=this._theme,l=this._model=new Nf;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},D_);var u={seriesTransition:o,optionChanged:!0};if(n)this[qm]={silent:i,updateParams:u},this[Ym]=!1,this.getZr().wakeUp();else{try{e_(this),r_.update.call(this,null,u)}catch(mc){throw this[qm]=null,this[Ym]=!1,mc}this._ssr||this._zr.flush(),this[qm]=null,this[Ym]=!1,l_.call(this,i),u_.call(this,i)}}},e.prototype.setTheme=function(t,e){if(!this[Ym])if(this._disposed)this.id;else{var n=this._model;if(n){var i=e&&e.silent,r=null;this[qm]&&(null==i&&(i=this[qm].silent),r=this[qm].updateParams,this[qm]=null),this[Ym]=!0,__(this);try{this._updateTheme(t),n.setTheme(this._theme),e_(this),r_.update.call(this,{type:"setTheme"},r)}catch(mc){throw this[Ym]=!1,mc}this[Ym]=!1,l_.call(this,i),u_.call(this,i)}}},e.prototype._updateTheme=function(t){H(t)&&(t=L_[t]),t&&((t=M(t))&&og(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||r.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(){var t=this._zr;return P(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;P(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 P(i,(function(t){t.group.ignore=!1})),o}this.id},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(R_[n]){var a=o,s=o,l=-1/0,c=-1/0,h=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();P(O_,(function(o,u){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(M(t)),d=o.getDom().getBoundingClientRect();a=i(d.left,a),s=i(d.top,s),l=r(d.right,l),c=r(d.bottom,c),h.push({dom:p,left:d.left,top:d.top})}}));var d=(l*=p)-(a*=p),f=(c*=p)-(s*=p),g=u.createCanvas(),v=Rr(g,{renderer:e?"svg":"canvas"});if(v.resize({width:d,height:f}),e){var y="";return P(h,(function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new ul({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),P(h,(function(t){var e=new el({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}this.id},e.prototype.convertToPixel=function(t,e,n){return o_(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return o_(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return o_(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return P(Eo(this._model,t),(function(t,i){i.indexOf("Models")>=0&&P(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;this.id},e.prototype.getVisual=function(t,e){var n=Eo(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?function(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)}}(i,r,e):Hy(i,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;P(T_,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target;if("globalout"===e?i={}:o&&Wy(o,(function(t){var e=Ml(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=C({},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)}));var e=this._messageCenter;P(C_,(function(n,i){e.on(i,(function(e){t.trigger(i,e)}))})),function(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Gy("map","selectchanged",e,i,t),Gy("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Gy("map","selected",e,i,t),Gy("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Gy("map","unselected",e,i,t),Gy("pie","unselected",e,i,t))}))}(e,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)this.id;else{this._disposed=!0,this.getDom()&&Go(this.getDom(),B_,"");var t=this,e=t._api,n=t._model;P(t._componentsViews,(function(t){t.dispose(n,e)})),P(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete O_[t.id]}},e.prototype.resize=function(t){if(!this[Ym])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[qm]&&(null==i&&(i=this[qm].silent),n=!0,this[qm]=null),this[Ym]=!0,__(this);try{n&&e_(this),r_.update.call(this,{type:"resize",animation:C({duration:0},t&&t.animation)})}catch(mc){throw this[Ym]=!1,mc}this[Ym]=!1,l_.call(this,i),u_.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)this.id;else if(U(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),P_[t]){var n=P_[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=C({},t);return e.type=I_[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)this.id;else if(U(e)||(e={silent:!!e}),M_[t.type]&&this._model)if(this[Ym])this._pendingActions.push(t);else{var n=e.silent;s_.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&r.browser.weChat&&this._throttledZrFlush(),l_.call(this,n),u_.call(this,n)}},e.prototype.updateLabelLayout=function(){Uy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)this.id;else{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===Xl&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ul&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){if(!t.preventAutoZ){var n=$h(t);e.eachRendered((function(t){return Qh(t,n.z,n.zlevel),!0}))}}function o(t,e){e.eachRendered((function(t){if(!yh(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 a(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){if(yh(t))return;if(t instanceof qs&&function(t){var e=Hl(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}(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)}}))}e_=function(t){var e;e=t._model,Zy(e).prepare={};var n=t._scheduler;n.restorePipelines(t._zr,t._model),n.prepareStageTasks(),n_(t,!0),n_(t,!1),n.plan()},n_=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,c=!l&&o[u];if(!c){var h=oa(t.type);(c=new(e?Vv.getClass(h.main,h.sub):Kv.getClass(h.sub))).init(n,s),o[u]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}for(e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u),l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},i_=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a,s=function(t,e,n){var i={};i[e+"Id"]=t[e+"Id"],i[e+"Index"]=t[e+"Index"],i[e+"Name"]=t[e+"Name"];var r={mainType:e,query:i};return n&&(r.subType=n),r}(n,i,r),l=n.excludeSeriesId;null!=l&&(a=ut(),P(To(l),(function(t){var e=Po(t,null);null!=e&&a.set(e,!0)}))),o&&o.eachComponent(s,(function(e){if(!a||null==a.get(e.id))if(Eu(n))if(e instanceof Ev)n.type!==Kl||n.notBlur||e.get(["emphasis","disabled"])||function(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=No(r,e);o=(F(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=Ml(a);Mu(i,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Mu(i,c,h,n)}}}(e,n,t._api);else{var i=Cu(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,o=i.dispatchers;n.type===Kl&&r&&!n.notBlur&&Iu(e.mainType,e.componentIndex,t._api),o&&P(o,(function(t){n.type===Kl?yu(t):mu(t)}))}else zu(n)&&e instanceof Ev&&(function(t,e,n){if(zu(e)){var i=e.dataType,r=No(t.getData(i),e);F(r)||(r=[r]),t[e.type===tu?"toggleSelect":e.type===Ql?"select":"unselect"](r,i)}}(e,n,t._api),ku(e),y_(t))}),t),o&&o.eachComponent(s,(function(e){a&&null!=a.get(e.id)||u(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else P([].concat(t._componentsViews).concat(t._chartsViews),u);function u(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},r_={prepareAndUpdate:function(t){e_(this),r_.update.call(this,t,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){!function(t){Zy(t).fullUpdate={}}(i),i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),Uy.trigger("coordsys:aftercreate",i,r),s.performDataProcessorTasks(i,e),a_(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e);var l=i.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var u=i.get("darkMode");null!=u&&"auto"!==u&&o.setDarkMode(u),p_(this,i,r,e,n),Uy.trigger("afterupdate",i,r)}},updateTransform:function(t){var e=this,n=e._model,i=e._api;if(n){n.setUpdatePayload(t);var r=[];n.eachComponent((function(o,a){if(o!==Cl){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,n,i,t);l&&l.update&&r.push(s)}else r.push(s)}}));var o=ut();n.eachSeries((function(r){var a=e._chartsMap[r.__viewId],s=r.pipelineContext;if(a.updateTransform&&!s.progressiveRender){var l=a.updateTransform(r,n,i,t);l&&l.update&&o.set(r.uid,1)}else o.set(r.uid,1)})),e._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:o}),f_(e,n,i,t,{},o),Uy.trigger("afterupdate",n,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Kv.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),p_(this,n,this._api,e,{}),Uy.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()})),Kv.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)})),Uy.trigger("afterupdate",i,this._api))},updateLayout:function(t){r_.update.call(this,t)}},o_=function(t,e,n,i,r){if(t._disposed)t.id;else for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=Eo(a,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(o=c[e](a,l,i,r)))return o}},a_=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},s_=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=M_[r],s=(a.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&oa(s[0]);this[Ym]=!0,__(this);var c=[t],h=!1;t.batch&&(h=!0,c=O(t.batch,(function(e){return(e=k(C({},e),t)).batch=null,e})));var p,d=[],f=[],g=a.nonRefinedEventType,v=zu(t),y=Eu(t);if(y&&Tu(this._api),P(c,(function(e){var r=a.action(e,i,n._api);if(a.refineEvent?f.push(r):p=r,(p=p||C({},e)).type=g,d.push(p),y){var o=Fo(t),s=o.queryOptionMap,c=o.mainTypeSpecified?s.keys()[0]:"series";i_(n,l,e,c),y_(n)}else v?(i_(n,l,e,"series"),y_(n)):u&&i_(n,l,e,u.main,u.sub)})),"none"!==l&&!y&&!v&&!u)try{this[qm]?(e_(this),r_.update.call(this,t),this[qm]=null):r_[l].call(this,t)}catch(mc){throw this[Ym]=!1,mc}if(p=h?{type:g,escapeConnect:o,batch:d}:d[0],this[Ym]=!1,!e){var m=void 0;if(a.refineEvent){var _=a.refineEvent(f,t,i,this._api).eventContent;et(U(_)),(m=k({type:a.refinedEventType},_)).fromAction=t.type,m.fromActionPayload=t,m.escapeConnect=!0}var x=this._messageCenter;x.trigger(p.type,p),m&&x.trigger(m.type,m)}},l_=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();s_.call(this,n,t)}},u_=function(t){!t&&this.trigger("updated")},c_=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[qm]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")}))},h_=function(t,e){t.on("mouseover",(function(t){var n=Wy(t.target,Bu);n&&(function(t,e,n){var i=Ml(t),r=Cu(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Iu(i.componentMainType,i.componentIndex,n),P(o,(function(t){return gu(t,e)}))):(Mu(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Iu(i.componentMainType,i.componentIndex,n),gu(t,e))}(n,t,e._api),y_(e))})).on("mouseout",(function(t){var n=Wy(t.target,Bu);n&&(function(t,e,n){Tu(n);var i=Ml(t),r=Cu(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?P(r,(function(t){return vu(t,e)})):vu(t,e)}(n,t,e._api),y_(e))})).on("click",(function(t){var n=Wy(t.target,(function(t){return null!=Ml(t).dataIndex}),!0);if(n){var i=n.selected?"unselect":"select",r=Ml(n);e._api.dispatchAction({type:i,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}}))},p_=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);Ke(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),P(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),d_(t,e,n,i,r),P(t._chartsViews,(function(t){t.__alive=!1})),f_(t,e,n,i,r),P(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},d_=function(t,e,n,r,s,l){P(l||t._componentsViews,(function(t){var s=t.__model;o(0,t),t.render(s,e,n,r),i(s,t),a(s,t)}))},f_=function(t,e,n,s,l,u){var c=t._scheduler;l=C(l||{},{updatedSeries:e.getSeries()}),Uy.trigger("series:beforeupdate",e,n,l);var h=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;c.updatePayload(i,s),o(0,n),u&&u.get(e.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(h=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),ku(e)})),c.unfinished=h||c.unfinished,Uy.trigger("series:layoutlabels",e,n,l),Uy.trigger("series:transition",e,n,l),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];i(e,n),a(e,n)})),function(t,e){var n=t._zr;if("canvas"===n.painter.type){var i=n.storage,o=0;i.traverse((function(t){t.isGroup||o++}));var a=o>$(e.get("hoverLayerThreshold"),vf.hoverLayerThreshold)&&!r.node&&!r.worker;(t._usingTHL||a)&&(e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){var e=t.states.emphasis;e&&2!==e.hoverLayer&&(e.hoverLayer=a?1:0)}))}})),t._usingTHL=a)}}(t,e),Uy.trigger("series:afterupdate",e,n,l)},y_=function(t){t[jm]=!0,t.getZr().wakeUp()},__=function(t){t[Zm]=(t[Zm]+1)%1e6},m_=function(t){t[jm]&&(t.getZr().storage.traverse((function(t){yh(t)||e(t)})),t[jm]=!1)},g_=function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n(i,e),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},i.prototype.enterEmphasis=function(e,n){yu(e,n),y_(t)},i.prototype.leaveEmphasis=function(e,n){mu(e,n),y_(t)},i.prototype.enterBlur=function(e){_u(e),y_(t)},i.prototype.leaveBlur=function(e){xu(e),y_(t)},i.prototype.enterSelect=function(e){bu(e),y_(t)},i.prototype.leaveSelect=function(e){wu(e),y_(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i.prototype.getECUpdateCycleVersion=function(){return t[Zm]},i.prototype.usingTHL=function(){return t._usingTHL},i}(El))(t)},v_=function(t){function e(t,e){for(var n=0;n<t.length;n++)t[n][$m]=e}P(I_,(function(n,i){t._messageCenter.on(i,(function(n){if(R_[t.group]&&0!==t[$m]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];P(O_,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),P(r,(function(t){1!==t[$m]&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(Ot),S_=w_.prototype;S_.on=Qm("on"),S_.off=Qm("off"),S_.one=function(t,e,n){var i=this;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 T_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],M_={},I_={},C_={},k_=[],D_=[],A_=[],L_={},P_={},O_={},R_={},N_=+new Date-0,B_="_echarts_instance_";function z_(t,e){L_[t]=e}function E_(t){D(D_,t)<0&&D_.push(t)}function F_(t,e){U_(k_,t,e,2e3)}function V_(t,e){Uy.on(t,e)}function H_(t,e,n){var i,r,o,a,s;function l(t){return t.toLowerCase()}V(e)&&(n=e,e=""),U(t)?(i=t.type,r=t.event,a=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),o=t.refineEvent):(i=t,r=e),r=l(r||i);var u=o?l(i):r;M_[i]||(et(Km.test(i)&&Km.test(r)),o&&et(r!==i),M_[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:a,action:n,refineEvent:o},C_[r]=1,o&&s&&(C_[u]=1),I_[u]=i)}function G_(t,e){U_(A_,t,e,3e3,"visual")}var W_=[];function U_(t,e,n,i,r,o){if((V(e)||U(e))&&(n=e,e=i),!(D(W_,n)>=0)){W_.push(n);var a=ky.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function X_(t,e){P_[t]=e}var Y_=function(t){var e=(t=M(t)).type;e||xo("");var n=e.split(":");2!==n.length&&xo("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,jg.set(e,t)};function Z_(t,e,n,i){return{eventContent:{selected:Du(n),isFromClick:e.isFromClick||!1}}}function q_(t){return null==t?0:t.length||1}function j_(t){return t}G_(Wm,ly),G_(Um,cy),G_(Um,hy),G_(Wm,Fy),G_(Um,Vy),G_(7e3,Gm),E_(og),F_(900,pg),X_("default",(function(t,e){k(e=e||{},{text:"loading",textColor:hf.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:hf.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ar,i=new ul({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Tl({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 ul({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new Xc({shape:{startAngle:-py/2,endAngle:-py/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*py/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*py/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),H_({type:Kl,event:Kl,update:Kl},dt),H_({type:$l,event:$l,update:$l},dt),H_({type:Ql,event:eu,update:Ql,action:dt,refineEvent:Z_,publishNonRefinedEvent:!0}),H_({type:Jl,event:eu,update:Jl,action:dt,refineEvent:Z_,publishNonRefinedEvent:!0}),H_({type:tu,event:eu,update:tu,action:dt,refineEvent:Z_,publishNonRefinedEvent:!0}),z_("default",{}),z_("dark",Ny);var K_=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||j_,this._newKeyGetter=i||j_,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=q_(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],c=q_(l),h=q_(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),i[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var p=0;p<c;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=q_(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=q_(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}();const $_=K_;var Q_=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 J_(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var tx=function(t){this.otherDims={},null!=t&&C(this,t)};const ex=tx;var nx=Bo(),ix={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rx=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=sx(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return $(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=xg(this.source),n=!lx(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=ix[l]||"f",u&&(i+=u.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.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 ox(t){return t instanceof rx}function ax(t){for(var e=ut(),n=0;n<(t||[]).length;n++){var i=t[n],r=U(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function sx(t){var e=nx(t);return e.dimNameMap||(e.dimNameMap=ax(t.dimensionsDefine))}function lx(t){return t>30}var ux,cx,hx,px,dx,fx,gx,vx=U,yx=O,mx="undefined"==typeof Int32Array?Array:Int32Array,_x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xx=["_approximateExtent"],bx=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i=!1;ox(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],h=H(c)?new ex({name:c}):c instanceof ex?c:new ex(c),p=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=p,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(p),r[p]=h,null!=l[p]&&(s=!0),h.createInvertedIndices&&(a[p]=[]),i&&(h.storeDimIndex=u),0===d.itemName&&(this._nameDimIdx=h.storeDimIndex),0===d.itemId&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=ut();P(o,(function(t){f.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(W(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))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 av&&(i=t),!i){var o=this.dimensions,a=fg(t)||L(t)?new bg(t,o.length):t;i=new av;var s=yx(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=function(t,e){var n={},i=n.encode={},r=ut(),o=[],a=[],s={};P(t.dimensions,(function(e){var n,l=t.getDimensionInfo(e),u=l.coordDim;if(u){var c=l.coordDimIndex;J_(i,u)[c]=e,l.isExtraCoord||(r.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=e),J_(s,u)[c]=t.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(e)}kl.each((function(t,e){var n=J_(i,e),r=l.otherDims[e];null!=r&&!1!==r&&(n[r]=l.name)}))}));var l=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=O(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new Q_(s,e),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&gx(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!==Ol&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Dl&&!n.pure)for(var o=[],a=t;a<e;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&ko(s)&&(this.hasItemOption=!0),s){var l=s.name;null==i[a]&&null!=l&&(i[a]=Po(l,null));var u=s.id;null==r[a]&&null!=u&&(r[a]=Po(u,null))}}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)gx(this,a);ux(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){vx(t)?C(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=hx(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 cx(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return F(t)?i.getValues(yx(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],i=n&&n[e];return null==i||isNaN(i)?-1:i},t.prototype.each=function(t,e,n){V(t)&&(n=e,e=t,t=[]);var i=n||this,r=yx(px(t),this._getStoreDimIndex,this);this._store.each(r,i?z(e,i):e)},t.prototype.filterSelf=function(t,e,n){V(t)&&(n=e,e=t,t=[]);var i=n||this,r=yx(px(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?z(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={};return P(B(t),(function(i){var r=e._getStoreDimIndex(i);n[r]=t[i]})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){V(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=yx(px(t),this._getStoreDimIndex,this),a=fx(this);return a._store=this._store.map(o,r?z(e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this,o=yx(px(t),this._getStoreDimIndex,this);this._store.modify(o,r?z(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=fx(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.minmaxDownSample=function(t,e){var n=fx(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=fx(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 kp(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new $_(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return cx(t,e)}),(function(t){return cx(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||{},vx(t)?C(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&&(F(r=this.getVisual(e))?r=r.slice():vx(r)&&(r=C({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,vx(e)?C(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){vx(t)?C(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?C(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){!function(t,e,n,i){if(i){var r=Ml(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===i.type&&i.traverse((function(i){var r=Ml(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e,r.ssrType="chart"}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){P(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:yx(this.dimensions,this._getDimInfo,this),this.hostModel)),dx(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];V(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(J(arguments)))})},t.internalField=(ux=function(t){var e=t._invertedIndicesMap;P(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new mx(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},hx=function(t,e,n){return Po(t._getCategory(e,n),null)},cx=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=hx(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},px=function(t){return F(t)||(t=null!=t?[t]:[]),t},fx=function(e){var n=new t(e._schema?e._schema:yx(e.dimensions,e._getDimInfo,e),e.hostModel);return dx(n,e),n},dx=function(t,e){P(_x.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,P(xx,(function(n){t[n]=M(e[n])})),t._calculationInfo=C({},e._calculationInfo)},void(gx=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=hx(t,r,e)),null==s&&null!=o&&(i[e]=s=hx(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}})),t}();const Sx=bx;function Tx(t,e){fg(t)||(t=vg(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=ut(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return P(e,(function(t){var e;U(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&lx(a),l=i===t.dimensionsDefine,u=l?sx(t):ax(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=ut(c),p=new ev(a),d=0;d<p.length;d++)p[d]=-1;function f(t){var e=p[t];if(e<0){var n=i[t],r=U(n)?n:{name:n},a=new ex,s=r.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return p[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)f(d);h.each((function(t,e){var n=To(t).slice();if(1===n.length&&!H(n[0])&&n[0]<0)h.set(e,!1);else{var i=h.set(e,[]);P(n,(function(t,n){var r=H(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(f(r),e,n))}))}}));var g=0;function v(t,e,n){null!=kl.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}P(n,(function(t){var e,n,i,r;if(H(t))e=t,r={};else{e=(r=t).name;var o=r.ordinalMeta;r.ordinalMeta=null,(r=C({},r)).ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=h.get(e);if(!1!==s){if(!(s=To(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=f(g).coordDim;)g++;g<a&&s.push(g++)}P(s,(function(t,o){var a=f(t);if(l&&null!=r.type&&(a.type=r.type),v(k(a,r),e,o),null==a.name&&n){var s=n[o];!U(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&k(a.otherDims,i)}))}}));var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var x=y||"value";function b(t){null==t.name&&(t.name=t.coordDim)}if(s)P(o,(function(t){b(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var w=0;w<a;w++){var S=f(w);null==S.coordDim&&(S.coordDim=Mx(x,r,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),null!=S.type||wf(t,w)!==yf.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return Ko(o,(function(t){return t.name}),(function(t,e){e>0&&(t.name=t.name+(e-1))})),new rx({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Mx(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}var Ix=function(t){this.coordSysDims=[],this.axisMap=ut(),this.categoryAxisMap=ut(),this.coordSysName=t},Cx={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Vo).models[0],o=t.getReferringComponents("yAxis",Vo).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),kx(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),kx(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Vo).models[0];e.coordSysDims=["single"],n.set("single",r),kx(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Vo).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),kx(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),kx(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,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();P(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),kx(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))},matrix:function(t,e,n,i){var r=t.getReferringComponents("matrix",Vo).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function kx(t){return"category"===t.get("type")}function Dx(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!ox(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,c,h,p=!(!t||!t.get("stack")),d=!0;function f(t){return"ordinal"!==t.type&&"time"!==t.type}if(P(i,(function(t,e){H(t)&&(i[e]=t={name:t}),f(t)||(d=!1)})),P(i,(function(t,e){p&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||!f(t)||d&&("x"===t.coordDim||"angle"===t.coordDim)||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=u.coordDim,v=u.type,y=0;P(i,(function(t){t.coordDim===g&&y++}));var m={name:c,coordDim:g,coordDimIndex:y,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:h,coordDim:h,coordDimIndex:y+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(m.storeDimIndex=o.ensureCalculationDimension(h,v),_.storeDimIndex=o.ensureCalculationDimension(c,v)),r.appendCalculationDimension(m),r.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Ax(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Lx(t,e){return Ax(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Px(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=vg(t)):o=(i=r.getSource()).sourceFormat===Dl;var a=function(t){var e=t.get("coordinateSystem"),n=new Ix(e),i=Cx[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Gd.get(i);return e&&e.coordSysDims&&(n=O(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=function(t){return"category"===t?"ordinal":"time"===t?"time":"float"}(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=V(l)?l:l?E(_f,s,e):null,c=Tx(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),h=function(t,e,n){var i,r;return n&&P(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(c.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(c),d=Dx(e,{schema:c,store:p}),f=new Sx(c,e);f.setCalculationInfo(d);var g=null!=h&&function(t){if(t.sourceFormat===Dl)return!F(Co(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(i)?function(t,e,n,i){return i===h?n:this.defaultDimValueGetter(t,e,n,i)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f}var Ox=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ha(Ox);const Rx=Ox;var Nx=0,Bx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Nx,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&O(i,zx);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!H(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ut(this.categories))},t}();function zx(t){return U(t)&&null!=t.value?t.value:t+""}const Ex=Bx;var Fx=0,Vx=1,Hx=B({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1}),Gx=2,Wx=3;function Ux(t,e,n){var i;t=t||{};var r=Vp();if(r){var o=r.createBreakScaleMapper(e,n);o.hasBreaks()&&(P(Hx,(function(e){o[e]&&(t[e]=z(o[e],o))})),i=o)}return null==i&&function(t,e){var n=t||{},i=[];n._extents=i,i[Fx]=e?e.slice():[1/0,-1/0],C(n,Kx)}(t,n),{brk:i,mapper:t}}function Xx(t,e){P(Hx,(function(n){t[n]=e[n]}))}function Yx(t,e){t.freeze=dt}function Zx(t){return t.getExtentUnsafe(Fx,Gx)}function qx(t,e){return t.getExtentUnsafe(Vx,e)||t.getExtentUnsafe(Fx,e)}function jx(t){var e=t.getExtentUnsafe(Fx,Wx);return e[1]-e[0]}var Kx={needTransform:function(){return!1},normalize:function(t){var e=this._extents[Vx]||this._extents[Fx];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[Vx]||this._extents[Fx];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=qx(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Fx].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){$x(this._extents,Fx,t,e)},setExtent2:function(t,e,n){var i=this._extents;i[t]||(i[t]=i[Fx].slice()),$x(i,t,e,n)},freeze:function(){}};function $x(t,e,n,i){Zo(n,i)&&(t[e][0]=n,t[e][1]=i)}function Qx(t){return Jx(t)||eb(t)}function Jx(t){return"interval"===t.type}function tb(t){return"time"===t.type}function eb(t){return"log"===t.type}function nb(t){return"ordinal"===t.type}function ib(t){return Jr(t)+2}function rb(t,e){return Ur(t)/Ur(e)}function ob(t,e,n){var i=n&&n.lookup;if(i)for(var r=0;r<i.from.length;r++)if(t===i.from[r])return i.to[r];return Wr(e,t)}function ab(t,e,n){var i=t.slice();if(i[0]===i[1]){var r=n&&n.ctnShp;if(0!==i[0]){var o=Fr(i[0]);e[1]||(i[1]+=o/2),i[0]-=o/2}else r?(i[0]=-1,i[1]=1):i[1]=1}return Yo(i[0])&&Yo(i[1])||(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function sb(t,e){return Vr(Er(t=t||e,1))}function lb(t,e,n){var i=Zx(t),r=i[0],o=t.count(),a=Math.max((e||0)+1,1);0!==r&&a>1&&o/a>2&&(r=Math.round(Math.ceil(r/a)*a)),r!==i[0]&&l(i[0],!0,!0);for(var s=r;s<=i[1];s+=a)l(s,!1,s===i[0]||s===i[1]);function l(t,e,i){n({value:t,offInterval:e},i)}s-a!==i[1]&&l(i[1],!0,!0)}var ub=function(t){function e(n){var i=t.call(this)||this;i.type="ordinal",i.parse=e.parse,Xx(i,e.decoratedMethods);var r=n.ordinalMeta;r||(r=new Ex({})),F(r)&&(r=new Ex({categories:O(r,(function(t){return U(t)?t.value:t}))})),i._ordinalMeta=r;var o=Ux(null,null,n.extent||[0,r.categories.length-1]);return i._mapper=o.mapper,Yx(i),i}return n(e,t),e.parse=function(t){return null==t?t=NaN:H(t)?null==(t=this._ordinalMeta.getOrdinal(t))&&(t=NaN):t=Vr(t),t},e.prototype.getTicks=function(){var t=[];return lb(this,0,(function(e){t.push(e)})),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=zr(o,e.length);r<a;++r)i[n[r]=e[r]]=r;for(var s=0;r<o;++r){for(;null!=i[s];)s++;n[r]=s,i[s]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){var t=Zx(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Vr(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,n){return this._mapper.setExtent2(t,e,n)}},e}(Rx);Rx.registerClass(ub);const cb=ub;function hb(t,e,n,i){for(var r=t.getTicks({expandToNicedExtent:!0}),o=[],a=t.getExtent(),s=1;s<r.length;s++){var l=r[s],u=r[s-1];if(!u.break&&!l.break){for(var c=0,h=[],p=(l.value-u.value)/e,d=ib(p);c<e-1;){var f=$r(u.value+(c+1)*p,d);f>a[0]&&f<a[1]&&h.push(f),c++}var g=Vp();g&&g.pruneTicksByBreak("auto",h,n,(function(t){return t}),i,a),o.push(h)}}return o}var pb=function(t){function e(n){var i=t.call(this)||this;i.type="interval",i.parse=e.parse;var r=Ux(i,Hp(i,n=n||{}),null);return i.brk=r.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return n(e,t),e.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.getConfig=function(){return M(this._cfg)},e.prototype.setConfig=function(t){var e=Zx(this);this._cfg=t=M(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=ib(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,n=e.interval,i=Zx(this),r=e.niceExtent,o=e.intervalPrecision,a=Vp(),s=this.brk,l=a&&s,u=[];if(!n)return u;if("only_break"===t.breakTicks&&l)return a.addBreaksToTicks(u,s.breaks,i),u;i[0]<r[0]&&u.push({value:t.expandToNicedExtent?$r(r[0]-n,o):i[0]});for(var c=function(t,e){return Vr((e-t)/n)},h=e.intervalCount,p=r[0],d=0;;d++){if(null==h){if(p>r[1]||!isFinite(p)||!isFinite(r[1]))break}else{if(d>h)break;p=zr(p,r[1]),d===h&&(p=r[1])}if(u.push({value:p}),p=$r(p+n,o),s){var f=s.calcNiceTickMultiple(p,c);f>=0&&(p=$r(p+f*n,o))}if(u.length>0&&p===u[u.length-1].value)break;if(u.length>3e3)return[]}var g=u.length?u[u.length-1].value:r[1];return i[1]>g&&u.push({value:t.expandToNicedExtent?$r(g+n,o):i[1]}),l&&a.pruneTicksByBreak(t.pruneByBreak,u,s.breaks,(function(t){return t.value}),e.interval,i),l&&"none"!==t.breakTicks&&a.addBreaksToTicks(u,s.breaks,i),u},e.prototype.getMinorTicks=function(t){return hb(this,t,Gp(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;return null==n?n=Jr(t.value)||0:"auto"===n&&(n=this._cfg.intervalPrecision),wd($r(t.value,n,!0))},e.type="interval",e}(Rx);Rx.registerClass(pb);const db=pb;var fb=function(t){function e(n){var i=t.call(this)||this;i.type="time",i.parse=e.parse,i._locale=n.locale,i._useUTC=n.useUTC,i._interval=0;var r=Ux(i,Hp(i,n),null);return i.brk=r.brk,i}return n(e,t),e.prototype.getLabel=function(t){return od(t.value,Qp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(id(this._minLevelUnit))]||Qp.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,n){return function(t,e,n,i,r){var o=null;if(H(n))o=n;else if(V(n)){var a={time:t.time,level:t.time?t.time.level:0},s=Vp();s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=n(t.value,e,a)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=ad(t.value,r);o=n[c][c][0]}}return od(new Date(t.value),o,r,i)}(t,e,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=Zx(this),i=Vp(),r=this.brk,o=i&&r,a=[];if(!e)return a;var s=this._useUTC;if(o&&"only_break"===t.breakTicks)return Vp().addBreaksToTicks(a,r.breaks,n),a;a=function(t,e,n,i,r,o){var a=3e3,s=td,l=0;function u(t,e,n,r,s,u,c){for(var h=function(t,e){var n=new Date(0);n[t](1);var i=n.getTime();n[t](1+e);var r=n.getTime()-i;return function(t,e){return Math.max(0,Math.round((e-t)/r))}}(s,t),p=e,d=new Date(p);p<n&&p<=i[1]&&(c.push({value:p}),!(l++>a));)if(d[s](d[r]()+t),p=d.getTime(),o){var f=o.calcNiceTickMultiple(p,h);f>0&&(d[s](d[r]()+f*t),p=d.getTime())}c.push({value:p,notAdd:p>i[1]})}function c(t,r,o){var a=[],s=!r.length;if(!vb(id(t),i[0],i[1],n)){s&&(r=[{value:wb(i[0],t,n)},{value:i[1]}]);for(var l=0;l<r.length-1;l++){var c=r[l].value,h=r[l+1].value;if(c!==h){var p=void 0,d=void 0,f=void 0,g=!1;switch(t){case"year":p=Math.max(1,Math.round(e/Zp/365)),d=ld(n),f=gd(n);break;case"half-year":case"quarter":case"month":p=mb(e),d=ud(n),f=vd(n);break;case"week":case"half-week":case"day":p=yb(e),d=cd(n),f=yd(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=_b(e),d=hd(n),f=md(n);break;case"minute":p=xb(e,!0),d=pd(n),f=_d(n);break;case"second":p=xb(e,!1),d=dd(n),f=xd(n);break;case"millisecond":p=bb(e),d=fd(n),f=bd(n)}h>=i[0]&&c<=i[1]&&u(p,c,h,d,f,g,a),"year"===t&&o.length>1&&0===l&&o.unshift({value:o[0].value-p})}}for(l=0;l<a.length;l++)o.push(a[l])}}for(var h=[],p=[],d=0,f=0,g=0;g<s.length;++g){var v=id(s[g]);if(rd(s[g])&&(c(s[g],h[h.length-1]||[],p),v!==(s[g+1]?id(s[g+1]):null))){if(p.length){f=d,p.sort((function(t,e){return t.value-e.value}));for(var y=[],m=0;m<p.length;++m){var _=p[m].value;0!==m&&p[m-1].value===_||(y.push(p[m]),_>=i[0]&&_<=i[1]&&d++)}var x=r/e;if(d>1.5*x&&f>x/1.5)break;if(h.push(y),d>x||t===s[g])break}p=[]}}var b=N(O(h,(function(t){return N(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=b.length-1,S=[];for(g=0;g<b.length;++g)for(var T=b[g],M=0;M<T.length;++M){var I=ad(T[M].value,n);S.push({value:T[M].value,time:{level:w-g,upperTimeUnit:I,lowerTimeUnit:I}})}Ko(S,$o,null),S.sort((function(t,e){return t.value-e.value}));var C=S[0],k=S[S.length-1],D=ad(i[0],n),A=ad(i[1],n);return(!C||C.value>i[0])&&S.unshift({value:i[0],time:{level:0,upperTimeUnit:D,lowerTimeUnit:D},notNice:!0}),(!k||k.value<i[1])&&S.push({value:i[1],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0}),S}(this._minLevelUnit,this._approxInterval,s,n,jx(this),r);var l=Jp.length-1,u=0;return P(a,(function(t){t.time&&(l=Math.min(l,D(Jp,t.time.upperTimeUnit)),u=Math.max(u,t.time.level))})),o&&Vp().pruneTicksByBreak(t.pruneByBreak,a,r.breaks,(function(t){return t.value}),this._approxInterval,n),o&&"none"!==t.breakTicks&&Vp().addBreaksToTicks(a,r.breaks,n,(function(t){for(var e=Math.max(D(Jp,ad(t.vmin,s)),D(Jp,ad(t.vmax,s))),n=0,i=0;i<Jp.length;i++)if(!vb(Jp[i],t.vmin,t.vmax,s)){n=i;break}var r=Math.min(n,l),o=Math.max(r,e);return{level:u,lowerTimeUnit:Jp[o],upperTimeUnit:Jp[r]}})),a},e.prototype.getMinorTicks=function(t){return hb(this,t,Gp(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return W(t)?Math.round(t):+oo(t)},e.type="time",e}(Rx),gb=[["second",Up],["minute",Xp],["hour",Yp],["quarter-day",6*Yp],["half-day",12*Yp],["day",1.2*Zp],["half-week",3.5*Zp],["week",7*Zp],["month",31*Zp],["quarter",95*Zp],["half-year",qp/2],["year",qp]];function vb(t,e,n,i){return sd(new Date(e),t,i).getTime()===sd(new Date(n),t,i).getTime()}function yb(t,e){return(t/=Zp)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function mb(t){return(t/=30*Zp)>6?6:t>3?3:t>2?2:1}function _b(t){return(t/=Yp)>12?12:t>6?6:t>3.5?4:t>2?2:1}function xb(t,e){return(t/=e?Xp:Up)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function bb(t){return Er(uo(t,!0),1)}function wb(t,e,n){var i=Math.max(0,D(Jp,e)-1);return sd(new Date(t),Jp[i],n).getTime()}Rx.registerClass(fb);const Sb=fb;var Tb=function(t){function e(n){var i=t.call(this)||this;i.type="log",i.parse=db.parse,i.base=n.logBase||10;var r=[],o=[],a=i._lookup={from:r,to:o};r[0]=r[1]=o[0]=o[1]=NaN,Xx(i,e.mapperMethods);var s=Vp(),l=n.breakOption,u={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},2,u),i.powStub=new db({breakParsed:u.original}),i.intervalStub=new db({breakParsed:u.transformed}),Yx(i,i.intervalStub),i}return n(e,t),e.prototype.getTicks=function(t){var e=this.base,n=this.powStub,i=Vp(),r=this.intervalStub,o={lookup:{from:r.getExtent(),to:n.getExtent()}};return O(r.getTicks(t||{}),(function(t){var r,a=ob(t.value,e,o);if(i){var s=i.getTicksBreakOutwardTransform(this,t,Gp(n),this._lookup);s&&(r=s.vBreak,a=s.tickVal)}return{value:a,break:r}}),this)},e.prototype.getMinorTicks=function(t){return hb(this,t,Gp(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(rb(t,this.base))},scale:function(t){return ob(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){return t=rb(t,this.base),e&&e.depth===Gx?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var n=e?e.depth:null;return Mb.depth=n,Ib.lookup=this._lookup,ob(n===Gx?t:this.intervalStub.transformOut(t,Mb),this.base,Ib)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(Fx,t,e)},setExtent2:function(t,e,n){if(!(!Zo(e,n)||e<=0||n<=0)){var i=Cb,r=Cb;if(t===Fx){var o=this._lookup;i=o.to,r=o.from}this.powStub.setExtent2(t,i[0]=e,i[1]=n);var a=this.base;this.intervalStub.setExtent2(t,r[0]=rb(e,a),r[1]=rb(n,a))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return Zo(e[0],e[1])&&go(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(Rx);Rx.registerClass(Tb);var Mb={},Ib={},Cb=[];const kb=Tb;var Db={value:1,category:1,time:1,log:1},Ab=Bo(),Lb=1,Pb=2,Ob=3;function Rb(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n=ed(e);return function(e,i){return t.scale.getFormattedLabel(e,i,n)}}if(H(e))return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")};if(V(e)){if("category"===t.type)return function(n,i){return e(Nb(t,n),n.value-t.scale.getExtent()[0],null)};var i=Vp();return function(n,r){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),e(Nb(t,n),r,o)}}return function(e){return t.scale.getLabel(e)}}function Nb(t,e){var n=t.scale;return nb(n)?n.getLabel(e):e.value}function Bb(t){var e=t.get("interval");return null==e?"auto":e}function zb(t){return"middle"===t||"center"===t}function Eb(t){return t.getShallow("show")}function Fb(t,e,n){var i=t.get("breaks",!0);if(null!=i){if(!Vp())return;if(!n||!function(t){return"category"!==t}(e))return;return i}}function Vb(t,e,n,i,r,o){var a,s,l=eb(t),u=l?t.intervalStub:t;if(u.setExtent(i[0],i[1]),l){var c=t.powStub,h={depth:Gx},p=t.transformOut(i[0],h),d=t.transformOut(i[1],h),f=(s=i,[(a=n)[0]!==s[0],a[1]!==s[1]]);e[0]&&!f[0]&&(p=r[0]),e[1]&&!f[1]&&(d=r[1]),c.setExtent(p,d)}u.setConfig(o)}function Hb(t,e){return nb(t)?t.getRawOrdinalNumber(e.value):e.value}function Gb(t,e){return nb(t)&&!!e.get("boundaryGap")}var Wb=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),Ub=qo(),Xb="|&",Yb=Bo(),Zb=-2,qb=-1,jb=Bo();function Kb(t,e){var n=t.model,i=Yb(qy(n.ecModel)).keyed,r=i&&i.get(e);return r&&r.get(n.uid)}function $b(t,e){return Jb(Kb(t,e))}function Qb(t,e){var n=Yb(qy(t)).keyed;n&&n.each((function(t,n){t.each((function(t,i){e(t,n,i)}))}))}function Jb(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function tw(t,e,n){var i=Kb(t,e);i&&ew(t.model.ecModel,i.sers,n)}function ew(t,e,n){if(e)for(var i=0;i<e.length;i++){var r=e[i];t.isSeriesFiltered(r)||n(r)}}function nw(t,e){var n=t.model,i=Yb(qy(n.ecModel)).keys;i&&P(i.get(n.uid),(function(t){e(t)}))}function iw(t){var e=jb(function(t){return Zy(t).prepare}(t)),n=e.keyed||(e.keyed=ut());Qb(t,(function(e,i,r){var o=n.get(i)||n.set(i,ut()),a=o.get(r)||o.set(r,{});e.metrics.liPosMinGap&&rw.liPosMinGap(t,e,a)}))}var rw={};function ow(t,e,n){if(t){var i=e.ecModel,r=Yb(qy(i)),o=t.model.uid,a=r.axSer||(r.axSer=ut());(a.get(o)||a.set(o,[])).push(e);var s=e.subType,l=e.getBaseAxis()===t,u=sw.get(aw(s,l,n))||sw.get(aw(s,l,null));if(u){var c=r.keyed||(r.keyed=ut()),h=r.keys||(r.keys=ut()),p=u.key,d=c.get(p)||c.set(p,ut()),f=d.get(o);f||((f=d.set(o,{axis:t,sers:[],serByIdx:[]})).metrics=u.getMetrics(t),(h.get(o)||h.set(o,[])).push(p)),f.sers.push(e),f.serByIdx[e.seriesIndex]=e}}}function aw(t,e,n){return t+Xb+$(e,!0)+Xb+(n||"")}var sw=ut(),lw=Bo(),uw=3,cw=function(){function t(t,e,n,i,r){var o,a=nb(t),s=a?e.getCategories().length:null;if(a){var l=e.getCategories(!0);o=l&&!l.length}var u=n.slice();(Jx(t)||eb(t)||tb(t))&&(Uo(u,pw(t,e.get("dataMin",!0))),Xo(u,pw(t,e.get("dataMax",!0)))),function(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}(u)||(u[0]=u[1]=NaN);var c=[],h=[!1,!1],p=e.get("min",!0);"dataMin"===p?(c[0]=u[0],h[0]=!0):(c[0]=pw(t,V(p)?p({min:u[0],max:u[1]}):p),h[0]=null!=c[0]);var d=e.get("max",!0);"dataMax"===d?(c[1]=u[1],h[1]=!0):(c[1]=pw(t,V(d)?d({min:u[0],max:u[1]}):d),h[1]=null!=c[1]);var f=function(t,e){var n;if(nb(t))n=[0,0];else{var i=e.get("boundaryGap");"boolean"==typeof i&&(i=null),n=F(i)?i:[i,i]}return[dw(n[0]),dw(n[1])]}(t,e),g=a?null:u[1]-u[0]||Math.abs(u[0]);null==c[0]&&(c[0]=a?o?u[0]:s?0:NaN:u[0]-f[0]*g),null==c[1]&&(c[1]=a?o?u[1]:s?s-1:NaN:u[1]+f[1]*g),!Yo(c[0])&&(c[0]=NaN),!Yo(c[1])&&(c[1]=NaN);var v=o||j(c[0])||j(c[1])||a&&!s,y=Jx(t),m=y&&e.needIncludeZero&&e.needIncludeZero();m&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var _=!1;c[0]>c[1]&&(c.reverse(),_=!0);var x=pw(t,e.get("startValue",!0)),b=null!=x;!go(x)&&i&&(x=t.getDefaultStartValue?t.getDefaultStartValue():0),go(x)&&(b||!y||m)&&(x<c[0]&&!h[0]?(c[0]=x,h[0]=!0):x>c[1]&&!h[1]&&(c[1]=x,h[1]=!0)),hw(this._i={scale:t,dataMM:u,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:x,isBlank:v,incl0:m,tggAxInv:_,ctnShp:r},c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,i=t.zoomFixMM,r=t.fixMM,o={fixMM:r,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},a=o.effMM;return null!=e[0]&&(a[0]=e[0],r[0]=i[0]=!0),null!=e[1]&&(a[1]=e[1],r[1]=i[1]=!0),hw(t,a),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function hw(t,e){var n,i=t.scale,r=t.dataMM;i.sanitize&&(e[0]=i.sanitize(e[0],r),e[1]=i.sanitize(e[1],r),Zo((n=e)[0],n[1])&&n[0]>n[1]&&(n[0]=n[1]))}function pw(t,e){return null==e?null:j(e)?NaN:t.parse(e)}function dw(t){return dr("boolean"==typeof t?0:t,1)||0}function fw(t){var e=lw(t.scale);return e.extent||(e.extent=[1/0,-1/0]),e}function gw(t,e){var n=t.scale,i=t.model,r=t.dim;n.rawExtentInfo||function(t,e,n,i,r){var o=fw(e),a=o.extent,s=!1;!function(t,e){var n=t.model.ecModel,i=Yb(qy(n)).axSer;i&&ew(n,i.get(t.model.uid),e)}(e,(function(i){if(i.boxCoordinateSystem){var r=zd(i).coord,l=o.dimIdxInCoord;if(l>=0&&F(r)){var u=r[l];null==u||F(u)||Wo(a,t.parse(u))}}else if(i.coordinateSystem){var c=i.getData();if(c){var h=t.getFilter?t.getFilter():null;P(function(t,e){var n={};return P(t.mapDimensionsAll(e),(function(e){n[Lx(t,e)]=!0})),B(n)}(c,n),(function(t){var e,n;e=a,Zo((n=c.getApproximateExtent(t,h))[0],n[1])&&(n[0]<e[0]&&(e[0]=n[0]),n[1]>e[1]&&(e[1]=n[1]))}))}i.__requireStartValue&&i.__requireStartValue(e)&&(s=!0)}}));var l=function(t,e,n){var i=Gb(t,n),r=n.get("containShape",!0);if(null!=r||i||(r=!0),!r)return!1;var o=!1;return nw(e,(function(t){o=!!yw.get(t)||o})),o}(t,e,i),u=new cw(t,i,a,s,l);vw(t,u,r),o.extent=null}(n,t,r,i,e)}function vw(t,e,n){t.rawExtentInfo=e,e.from=n}var yw=ut();function mw(t,e,n,i,r){t.rawExtentInfo||function(t,e){var n=t.scale;vw(n,new cw(n,t.model,e,!1,!1),uw)}({scale:t,model:e},r||[1/0,-1/0]);var o=t.rawExtentInfo.makeFinal(),a=o.effMM;return t.setExtent(a[0],a[1]),t.setBlank(o.isBlank),i&&o.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),o}function _w(t,e,n,i){var r;if(n.ctnShp&&(nw(t,(function(e){var n=yw.get(e);if(n){var o=n(t,i);o&&(Uo(r=r||[0,0],o[0]),Xo(r,o[1]),function(t){Ab(t).noOnMyZero=!0}(t))}})),r)){var o=e.getExtent();if(nb(e))t.onBand||e.setExtent2(Vx,zr(o[0],o[0]+r[0]),Er(o[1],o[1]+r[1]));else{var a=o.slice();n.zoomFixMM[0]||(a[0]=zr(a[0],e.transformOut(e.transformIn(a[0],null)+r[0],null))),n.zoomFixMM[1]||(a[1]=Er(a[1],e.transformOut(e.transformIn(a[1],null)+r[1],null))),(a[0]<o[0]||a[1]>o[1])&&e.setExtent2(Vx,a[0],a[1])}}}function xw(t,e){var n=eb(t),i=n?t.intervalStub:t,r=e.fixMinMax||[],o=n?t.getExtent():null,a=i.getExtent(),s=ab(a,r,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=n?function(t,e){var n=sb(e.splitNumber,10),i=t.getExtent(),r=jx(t),o=Er(ao(r),1);n/r*o<=.5&&(o*=10);var a=ib(o),s=[$r(Gr(i[0]/o)*o,a),$r(Hr(i[1]/o)*o,a)];return{intervalPrecision:a,interval:o,niceExtent:s}}(i,e):function(t,e){var n=sb(e.splitNumber,5),i=jx(t),r=e.minInterval,o=e.maxInterval,a=uo(i/n,!0);null!=r&&a<r&&(a=r),null!=o&&a>o&&(a=o);var s=ib(a),l=t.getExtent(),u=[$r(Gr(l[0]/a)*a,s),$r(Hr(l[1]/a)*a,s)];return{interval:a,intervalPrecision:s,niceExtent:u}}(i,e),u=l.intervalPrecision,c=l.interval,h=e.userInterval;null!=h&&(l.interval=h,l.intervalPrecision=ib(h)),r[0]||(s[0]=$r(Hr(s[0]/c)*c,u)),r[1]||(s[1]=$r(Gr(s[1]/c)*c,u)),null!=h&&(l.niceExtent=s.slice()),Vb(t,r,a,s,o,l)}function bw(t){var e=t.scale,n=t.model;!function(t,e,n,i,r){var o=mw(t,e,i,n,r),a=Jx(t)||tb(t);(function(t,e){ww[t.type](t,e)})(t,{splitNumber:e.get("splitNumber"),fixMinMax:o.fixMM,userInterval:e.get("interval"),minInterval:a?e.get("minInterval"):null,maxInterval:a?e.get("maxInterval"):null,rawExtentResult:o}),n&&i&&_w(n,t,o,i)}(e,n,n.axis,n.ecModel,null)}var ww={interval:xw,log:xw,time:function(t,e){var n=t.getExtent();if(n[0]===n[1]&&(n[0]-=Zp,n[1]+=Zp),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Zp}t.setExtent(n[0],n[1]);var r=sb(e.splitNumber,10),o=jx(t)/r,a=e.minInterval,s=e.maxInterval;null!=a&&o<a&&(o=a),null!=s&&o>s&&(o=s);var l=gb.length,u=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(gb,o,0,l),l-1),c=gb[u][1],h=gb[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:o,interval:c,minLevelUnit:h})},ordinal:dt},Sw=[],Tw={registerPreprocessor:E_,registerProcessor:F_,registerPostInit:function(t){V_("afterinit",t)},registerPostUpdate:function(t){V_("afterupdate",t)},registerUpdateLifecycle:V_,registerAction:H_,registerCoordinateSystem:function(t,e){Gd.register(t,e)},registerLayout:function(t,e){U_(A_,t,e,1e3,"layout")},registerVisual:G_,registerTransform:Y_,registerLoading:X_,registerMap:function(t,e,n){var i=Xy.registerMap;i&&i(t,e,n)},registerImpl:function(t,e){Xy[t]=e},PRIORITY:Xm,ComponentModel:af,ComponentView:Vv,SeriesModel:Ev,ChartView:Kv,registerComponentModel:function(t){af.registerClass(t)},registerComponentView:function(t){Vv.registerClass(t)},registerSeriesModel:function(t){Ev.registerClass(t)},registerChartView:function(t){Kv.registerClass(t)},registerCustomSeries:function(t,e){!function(t,e){Yy[t]=e}(t,e)},registerSubTypeDefaulter:function(t,e){af.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){var n;n=e,Lr[t]=n}};function Mw(t){F(t)?P(t,(function(t){Mw(t)})):D(Sw,t)>=0||(Sw.push(t),V(t)&&(t={install:t}),t.install(Tw))}var Iw=Bo(),Cw=Bo(),kw={estimate:1,determine:2};function Dw(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function Aw(t,e){var n=t.getLabelModel().get("customValues");if(n){var i=t.scale;return{labels:O(Pw(n,i),(function(e,n){return{formattedLabel:Rb(t)(e,n),rawLabel:i.getLabel(e),tick:e}}))}}return"category"===t.type?function(t,e){var n=t.getLabelModel(),i=Ow(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:i}(t,e):function(t){var e=t.scale.getTicks(),n=Rb(t);return{labels:O(e,(function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tick:e}}))}}(t)}function Lw(t,e,n){var i=t.scale,r=t.getTickModel().get("customValues");return r?{ticks:Pw(r,i)}:"category"===t.type?function(t,e){var n,i,r=Rw(t),o=Bb(e),a=zw(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),V(o))n=Hw(t,o,!0);else if("auto"===o){var s=Ow(t,t.getLabelModel(),Dw(kw.determine));i=s.labelCategoryInterval,n=O(s.labels,(function(t){return t.tick}))}else n=Hw(t,i=o,!0);return Ew(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:i.getTicks(n)}}function Pw(t,e){var n=e.getExtent(),i=[];return P(t,(function(t){(t=e.parse(t))>=n[0]&&t<=n[1]&&i.push(t)})),Ko(i,Qo,null),Qr(i),O(i,(function(t){return{value:t}}))}function Ow(t,e,n){var i,r,o=Nw(t),a=Bb(e),s=n.kind===kw.estimate;if(!s){var l=zw(o,a);if(l)return l}V(a)?i=Hw(t,a,!1):(r="auto"===a?function(t,e){if(e.kind===kw.estimate){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push((function(){return Cw(t).autoInterval=n,!0})),n}var i=Cw(t).autoInterval;return null!=i?i:Cw(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):a,i=Hw(t,r,!1));var u={labels:i,labelCategoryInterval:r};return s?n.out.noPxChangeTryDetermine.push((function(){return Ew(o,a,u),!0})):Ew(o,a,u),u}var Rw=Bw("axisTick"),Nw=Bw("axisLabel");function Bw(t){return function(e){return Cw(e)[t]||(Cw(e)[t]={list:[]})}}function zw(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function Ew(t,e,n){return t.list.push({key:e,value:n}),n}function Fw(t,e,n){return null==Vw(t,e,n)}function Vw(t,e,n){var i=Iw(t.model),r=t.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(null!=o&&null!=a&&Math.abs(o-e)<=1&&Math.abs(a-n)<=1&&o>e&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=r[0],i.axisExtent1=r[1]}function Hw(t,e,n){var i=Rb(t),r=t.scale,o=[],a=V(e);return lb(r,a?0:e,(function(t,s){var l=r.getLabel(t);if(a){var u=!!e(t.value,l);if(t.offInterval=!u,!u&&!s)return}o.push(n?t:{formattedLabel:i(t),rawLabel:l,tick:t})})),o}var Gw=.8;function Ww(t,e){e=e||{};var n,i={w:NaN,w2:NaN},r=t.scale,o=e.fromStat,a=e.min,s=(n=qx(r,Wx))[1]-n[0];go(s)||(s=NaN);var l=t.getExtent(),u=Fr(l[1]-l[0]);return nb(r)?function(t,e,n,i){var r=e.onBand,o=n+(r?1:0);0===o&&(o=1),t.w=i/o,!r&&n&&i&&(t.w2=t.w*n/i)}(i,t,s,u):o&&function(t,e,n,i,r){var o=!1,a=-1/0;P(r.key?[$b(e,r.key)]:function(t,e){var n=[];return Qb(t.model.ecModel,(function(t){for(var i=0;i<e.length;i++)e[i]&&t.serByIdx[e[i].seriesIndex]&&n.push(Jb(t))})),n}(e,r.sers||[]),(function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>a&&(a=e),o=!1):e===Zb&&(o=!0))})),go(n)&&n>0&&go(a)?(t.w=i/n*a,t.w2=a):o&&(t.w=i*Gw,t.w2=t.w*n/i)}(i,t,s,u,o),null!=a&&(i.w=go(i.w)?Er(a,i.w):a),i}var Uw=[0,1],Xw=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this.scale;return qr(t=n.normalize(n.parse(t)),Uw,Yw(this),e)},t.prototype.coordToData=function(t,e){var n=qr(t,Yw(this),Uw,e);return this.scale.scale(n)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=O(Lw(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,(function(t){return{coord:this.dataToCoord(Hb(this.scale,t)),tick:t}}),this),i=function(t,e,n){var i=e.length;if(!t.onBand||n||!i)return!1;var r=Ww(t).w;if(!r)return!1;P(e,(function(t){t.coord-=r/2}));var o=t.scale.getExtent(),a=e[i-1];return a.tick.offInterval&&e.pop(),e.push({coord:a.coord+r,tick:{value:o[1]+1}}),!0}(this,n,e.get("alignWithLabel"));return O(n,(function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:i}}))},t.prototype.getMinorTicksCoords=function(){if(nb(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),O(this.scale.getMinorTicks(t),(function(t){return O(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(t){return Aw(this,t=t||Dw(kw.determine)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return Ww(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var n=e.kind,i=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),r=Rb(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var c=s[0],h=t.dataToCoord(c+1)-t.dataToCoord(c),p=Math.abs(h*Math.cos(o)),d=Math.abs(h*Math.sin(o)),f=0,g=0;c<=s[1];c+=u){var v,y,m=ur(r({value:c}),i.font,"center","top");v=1.3*m.width,y=1.3*m.height,f=Math.max(f,v,7),g=Math.max(g,y,7)}var _=f/p,x=g/d;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(_,x)));if(n===kw.estimate)return e.out.noPxChangeTryDetermine.push(z(Fw,null,t,b,l)),b;var w=Vw(t,b,l);return null!=w?w:b}(this,t=t||Dw(kw.determine))},t}();function Yw(t){var e=t.getExtent();if(t.onBand){var n=(e[1]-e[0])/t.scale.count()/2;e[0]+=n,e[1]-=n}return e}const Zw=Xw;function qw(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,p=Math.sqrt(c*c+h*h),d=(l*(c/=p)+u*(h/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=t+d*c,g=a[1]=e+d*h;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}Is.CMD;var jw=new le,Kw=new le,$w=new le,Qw=new le,Jw=new le,tS=[],eS=new le;function nS(t,e){if(e<=180&&e>0){e=e/180*Math.PI,jw.fromArray(t[0]),Kw.fromArray(t[1]),$w.fromArray(t[2]),le.sub(Qw,jw,Kw),le.sub(Jw,$w,Kw);var n=Qw.len(),i=Jw.len();if(!(n<.001||i<.001)){Qw.scale(1/n),Jw.scale(1/i);var r=Qw.dot(Jw);if(Math.cos(e)<r){var o=qw(Kw.x,Kw.y,$w.x,$w.y,jw.x,jw.y,tS,!1);eS.fromArray(tS),eS.scaleAndAdd(Jw,o/Math.tan(Math.PI-e));var a=$w.x!==Kw.x?(eS.x-Kw.x)/($w.x-Kw.x):(eS.y-Kw.y)/($w.y-Kw.y);if(isNaN(a))return;a<0?le.copy(eS,Kw):a>1&&le.copy(eS,$w),eS.toArray(t[1])}}}}function iS(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,jw.fromArray(t[0]),Kw.fromArray(t[1]),$w.fromArray(t[2]),le.sub(Qw,Kw,jw),le.sub(Jw,$w,Kw);var i=Qw.len(),r=Jw.len();if(!(i<.001||r<.001)&&(Qw.scale(1/i),Jw.scale(1/r),Qw.dot(e)<Math.cos(n))){var o=qw(Kw.x,Kw.y,$w.x,$w.y,jw.x,jw.y,tS,!1);eS.fromArray(tS);var a=Math.PI/2,s=a+Math.acos(Jw.dot(e))-n;if(s>=a)le.copy(eS,$w);else{eS.scaleAndAdd(Jw,o/Math.tan(Math.PI/2-s));var l=$w.x!==Kw.x?(eS.x-Kw.x)/($w.x-Kw.x):(eS.y-Kw.y)/($w.y-Kw.y);if(isNaN(l))return;l<0?le.copy(eS,Kw):l>1&&le.copy(eS,$w)}eS.toArray(t[1])}}}function rS(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?.3:Math.max(+a,0)||0,o.shape=o.shape||{},o.shape.smooth=a;var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function oS(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=St(i[0],i[1]),o=St(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Mt([],i[1],i[0],a/r),l=Mt([],i[1],i[2],a/o),u=Mt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}var aS=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],sS=2,lS=1|sS;function uS(t,e,n){n=n||lS,e?t.dirty|=n:t.dirty&=~n}function cS(t,e){return e=e||lS,null==t.dirty||!!(t.dirty&e)}function hS(t){if(t)return cS(t)&&pS(t,t.label,t),t}function pS(t,e,n){var i=e.getComputedTransform();t.transform=Kh(t.transform,i);var r=t.localRect=jh(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;null==c&&u&&(a=u,c=dp.textMargin);for(var h=0;h<4;h++)dS[h]=c===dp.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;c===dp.textMargin&&Hh(r,dS,!1,!1);var p=t.rect=jh(t.rect,r);return i&&p.applyTransform(i),c===dp.minMargin&&Hh(p,dS,!1,!1),t.axisAligned=Zh(i),(t.label=t.label||{}).ignore=e.ignore,uS(t,!1),uS(t,!0,sS),t}var dS=[0,0,0,0];function fS(t,e){for(var n=0;n<aS.length;n++){var i=aS[n];null==t[i]&&(t[i]=e[i])}return hS(t)}function gS(t){var e=t.obb;return e&&!cS(t,sS)||(t.obb=e=e||new lh,e.fromBoundingRect(t.localRect,t.transform),uS(t,!1,sS)),e}function vS(t,e,n,i){return!(!t||!e)&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&!!t.rect.intersect(e.rect,n,i)&&(!(!t.axisAligned||!e.axisAligned)||gS(t).intersect(gS(e),n,i))}var yS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.getInitialData=function(t){return Px(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Ar,n=sm("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,a=.8*t.itemHeight,s=sm(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=hf.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(Ev);const mS=yS;function _S(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Og(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Og(t,e,n[a]));return o.join(" ")}}function xS(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!F(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var bS=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return n(e,t),e.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();var a=sm(t,-1,-1,2,2,null,o);a.attr({z2:$(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),a.drift=wS,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(){yu(this.childAt(0))},e.prototype.downplay=function(){mu(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",a=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=o!==this._symbolType,c=r&&r.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,l,h)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):gh(d,p,a,n),bh(d)}if(this._updateCommon(t,n,s,i,r),u){var d=this.childAt(0);c||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,vh(d,p,a,n))}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,c,h,p,d,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,h=i.labelStatesModels,p=i.hoverScale,d=i.cursorStyle,c=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=op(v),p=y.getShallow("scale"),d=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var _=um(t.getItemVisual(e,"symbolOffset"),n);_&&(f.x=_[0],f.y=_[1]),d&&f.attr("cursor",d);var x=t.getItemVisual(e,"style"),b=x.fill;if(f instanceof el){var w=f.style;f.useStyle(C({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},x))}else f.__isEmptyBrush?f.useStyle(C({},x)):f.useStyle(x),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),T=this._z2;null!=S?null==T&&(this._z2=f.z2,f.z2+=S):null!=T&&(f.z2=T,this._z2=null);var M=r&&r.useNameLabel;rp(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return M?t.getName(e):_S(t,e)},inheritColor:b,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=f.ensureState("emphasis");I.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var k=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*k,I.scaleY=this._sizeY*k,this.setSymbolScale(1),Lu(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Ml(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&mh(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();mh(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return lm(t.getItemVisual(e,"symbolSize"))},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(Ar);function wS(t,e){this.parent.drift(t,e)}const SS=bS;function TS(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(n))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function MS(t){return null==t||U(t)||(t={isIgnore:t}),t||{}}function IS(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:op(e),cursorStyle:e.get("cursor")}}function CS(t,e,n,i,r,o,a){var s=new t(e,n,i,r);return s.setPosition(o),e.setItemGraphicEl(n,s),a.add(s),s}var kS=function(){function t(t){this.group=new Ar,this._SymbolCtor=t||SS}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=MS(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=this._seriesScope=IS(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);TS(t,r,i,e)&&CS(o,t,i,s,l,r,n)})).update((function(c,h){var p=r.getItemGraphicEl(h),d=u(c);if(TS(t,d,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==f)n.remove(p),(p=new o(t,c,s,l)).setPosition(d);else{p.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?p.attr(v):gh(p,v,i)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=this,i=0,r=e.getStore().count();i<r;i++){var o=e.getItemGraphicEl(i),a=n._getSymbolPoint(i);TS(e,a,i,t)?((o=o||CS(n._SymbolCtor,e,i,n._seriesScope,{disableAnimation:!0},a,n.group)).stopAnimation(),o.setPosition(a),o.markRedraw()):o&&(n.group.remove(o),e.setItemGraphicEl(i,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=IS(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n,i){function r(t){t.isGroup||(t.incremental=n,t.ensureState("emphasis").hoverLayer=2)}this._progressiveEls=[],i=MS(i);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(TS(e,a,o,i)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){Yh(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}();const DS=kS;function AS(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:W(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=O(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,d=e.getCalculationInfo("stackResultDimension");return Ax(e,h[0])&&(p=!0,h[0]=d),Ax(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function LS(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)}function PS(t,e){return!isFinite(t)||!isFinite(e)}var OS=typeof Float32Array!==Il?Float32Array:void 0,RS=typeof Float64Array!==Il?Float64Array:void 0;function NS(t){return BS({ctor:OS},t).arr}function BS(t,e){var n=t.arr,i=t.ctor;if(e>eo&&(e=eo),!n||t.typed&&n.length<e){var r=void 0;if(i)try{r=new i(e),t.typed=!0,n&&r.set(n)}catch(mc){}if(!r&&(r=[],t.typed=!1,n))for(var o=0,a=n.length;o<a;o++)r[o]=n[o];t.arr=r}return t}var zS=Math.min,ES=Math.max;function FS(t,e,n,i,r,o,a,s,l){for(var u,c,h,p,d,f,g=n,v=0;v<i;v++){var y=e[2*g],m=e[2*g+1];if(g>=r||g<0)break;if(PS(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===y&&S===m&&v<i;)v++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(y=e[2*g])-u,x=(m=e[2*g+1])-c;var T=v+1;if(l)for(;PS(w,S)&&T<i;)T++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,I=0,C=0,k=void 0,D=void 0;if(T>=i||PS(w,S))d=y,f=m;else{I=w-u,C=S-c;var A=y-u,L=w-y,P=m-c,O=S-m,R=void 0,N=void 0;if("x"===s){var B=I>0?1:-1;d=y-B*(R=Math.abs(A))*a,f=m,k=y+B*(N=Math.abs(L))*a,D=m}else if("y"===s){var z=C>0?1:-1;d=y,f=m-z*(R=Math.abs(P))*a,k=y,D=m+z*(N=Math.abs(O))*a}else R=Math.sqrt(A*A+P*P),d=y-I*a*(1-(M=(N=Math.sqrt(L*L+O*O))/(N+R))),f=m-C*a*(1-M),D=m+C*a*M,k=zS(k=y+I*a*M,ES(w,y)),D=zS(D,ES(S,m)),k=ES(k,zS(w,y)),f=m-(C=(D=ES(D,zS(S,m)))-m)*R/N,d=zS(d=y-(I=k-y)*R/N,ES(u,y)),f=zS(f,ES(c,m)),k=y+(I=y-(d=ES(d,zS(u,y))))*N/R,D=m+(C=m-(f=ES(f,zS(c,m))))*N/R}t.bezierCurveTo(h,p,d,f,y,m),h=k,p=D}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var VS=function(){this.smooth=0,this.smoothConstraint=!0},HS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:hf.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new VS},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&PS(n[2*r-2],n[2*r-1]);r--);for(;i<r&&PS(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=FS(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,o=Is.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,c=void 0,h=void 0,p=void 0,d=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(u=r[l++],c=r[l++],(g=a?(t-n)/(u-n):(t-i)/(c-i))<=1&&g>=0){var v=a?(c-i)*g+i:(u-n)*g+n;return a?[t,v]:[v,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],p=r[l++],d=r[l++],f=r[l++];var y=a?bn(n,u,h,d,t,s):bn(i,c,p,f,t,s);if(y>0)for(var m=0;m<y;m++){var _=s[m];if(_<=1&&_>=0)return v=a?_n(i,c,p,f,_):_n(n,u,h,d,_),a?[t,v]:[v,t]}n=d,i=f}}},e}(qs),GS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(VS),WS=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return n(e,t),e.prototype.getDefaultShape=function(){return new GS},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&&PS(n[2*o-2],n[2*o-1]);o--);for(;r<o&&PS(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=FS(t,n,r,o,o,1,e.smooth,a,e.connectNulls);FS(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(qs);function US(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new ul({shape:{x:a,y:s,width:l,height:u}});if(e){var p=t.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=V(r)?function(t){r(t,h)}:null;vh(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function XS(t,e,n){var i=t.getArea(),r=$r(i.r0,1),o=$r(i.r,1),a=new Sc({shape:{cx:$r(t.cx,1),cy:$r(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,vh(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}function YS(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function ZS(t,e){return t.type===e}function qS(t,e){e&&(e.font=e.textFont||e.font,pt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),pt(e,"textAlign")&&(t.align=e.textAlign),pt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),pt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),pt(e,"textWidth")&&(t.width=e.textWidth),pt(e,"textHeight")&&(t.height=e.textHeight),pt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),pt(e,"textPadding")&&(t.padding=e.textPadding),pt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),pt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),pt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),pt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),pt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),pt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),pt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function jS(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function KS(t){for(var e=[1/0,-1/0],n=[1/0,-1/0],i=0;i<t.length;){var r=t[i++],o=t[i++];PS(r,o)||(Wo(e,r),Wo(n,o))}return[e,n]}function $S(t,e){var n=KS(t),i=n[0],r=n[1],o=KS(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(r[0]-s[0]),Math.abs(i[1]-a[1]),Math.abs(r[1]-s[1]))}function QS(t){return W(t)?t:t?.5:0}function JS(t,e,n,i,r){var o=n.getBaseAxis(),a="x"===o.dim||"radius"===o.dim?0:1,s=[],l=0,u=[],c=[],h=[],p=[];if(r){for(l=0;l<t.length;l+=2){var d=e||t;PS(d[l],d[l+1])||p.push(t[l],t[l+1])}t=p}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var f=(c[a]+h[a])/2,g=[];u[a]=g[a]=f,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function tT(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=jn(e[r]),s=jn(e[o]),l=i-r,u=Jn([En(Wn(a[0],s[0],l)),En(Wn(a[1],s[1],l)),En(Wn(a[2],s[2],l)),Fn(Wn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}((n-i)/(e.coord-i),[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}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function eT(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*SS.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return P(o.getViewLabels(),(function(t){t.tick.offInterval||(s[Hb(o.scale,t.tick)]=1)})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function nT(t,e){return[t[2*e],t[2*e+1]]}function iT(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Yl.length;e++)if(t.get([Yl[e],"endLabel","show"]))return!0;return!1}function rT(t,e,n,i){if(ZS(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=iT(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,u=e.getBaseAxis().isHorizontal(),c=US(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=2*p):(h.x-=p,h.width+=2*p)}return l&&l(1,c),c}return XS(e,n,i)}var oT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.init=function(){var t=new Ar,e=new DS;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=z(this._changePolyState,this)},e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=o.getLayout("points")||[],u="polar"===i.type,c=this._coordSys,h=this._symbolDraw,p=this._polyline,d=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),v=!s.isEmpty(),y=s.get("origin"),m=AS(i,o,y),_=v&&function(t,e,n){if(null==n.valueDim)return[];for(var i=e.count(),r=NS(2*i),o=0;o<i;o++){var a=LS(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(i,o,m),x=t.get("showSymbol"),b=t.get("connectNulls"),w=x&&!u&&eT(t,o,i),S=this._data;S&&S.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))})),x||h.remove(),r.add(f);var T,M=!u&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(T=i.getArea()).width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var I=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=O(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=tT(u,"x"===r?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,v=g-f;if(v<.001)return"transparent";P(p,(function(t){t.offset=(t.coord-f)/v})),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var y=new $c(0,0,0,0,p,!0);return y[r]=f,y[r+"2"]=g,y}}}(o,i,n)||o.getVisual("style")[o.getVisual("drawType")];if(p&&c.type===i.type&&M===this._step){v&&!d?d=this._newPolygon(l,_):d&&!v&&(f.remove(d),d=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Dd(I));var C=f.getClipPath();C?vh(C,{shape:rT(this,i,!1,t).shape},t):f.setClipPath(rT(this,i,!0,t)),x&&h.updateData(o,{isIgnore:w,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),jS(this._stackedOnPoints,_)&&jS(this._points,l)||(g?this._doUpdateAnimation(o,_,i,n,M,y,b):(M&&(_&&(_=JS(_,l,i,M,b)),l=JS(l,null,i,M,b)),p.setShape({points:l}),d&&d.setShape({points:l,stackedOnPoints:_})))}else x&&h.updateData(o,{isIgnore:w,clipShape:T,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(o,i,T),M&&(_&&(_=JS(_,l,i,M,b)),l=JS(l,null,i,M,b)),p=this._newPolyline(l),v?d=this._newPolygon(l,_):d&&(f.remove(d),d=this._polygon=null),u||this._initOrUpdateEndLabel(t,i,Dd(I)),f.setClipPath(rT(this,i,!0,t));var D=t.getModel("emphasis"),A=D.get("focus"),L=D.get("blurScope"),R=D.get("disabled");p.useStyle(k(a.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Ru(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),Ml(p).seriesIndex=t.seriesIndex,Lu(p,A,L,R);var N=QS(t.get("smooth")),B=t.get("smoothMonotone");if(p.setShape({smooth:N,smoothMonotone:B,connectNulls:b}),d){var z=o.getCalculationInfo("stackedOnSeries"),E=0;d.useStyle(k(s.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),z&&(E=QS(z.get("smooth"))),d.setShape({smooth:N,stackedOnSmooth:E,smoothMonotone:B,connectNulls:b}),Ru(d,t,"areaStyle"),Ml(d).seriesIndex=t.seriesIndex,Lu(d,A,L,R)}var F=this._changePolyState;o.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=o,this._coordSys=i,this._stackedOnPoints=_,this._points=l,this._step=M,this._valueOrigin=y;var V=t.get("triggerEvent"),H=t.get("triggerLineEvent"),G=!0===H||!0===V||"line"===V,W=!0===H||!0===V||"area"===V;this.packEventData(t,p,G),d&&this.packEventData(t,d,W)},e.prototype.packEventData=function(t,e,n){Ml(e).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:e===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=No(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(PS(l,u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(s=new SS(r,o)).x=l,s.y=u,s.setZ(c,h);var p=s.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Kv.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=No(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 Kv.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;pu(this._polyline,t),e&&pu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new HS({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 WS({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");V(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=V(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],p=void 0,d=void 0,f=void 0;if(n)if(r){var g=n,v=e.pointToCoord(h);i?(p=g.startAngle,d=g.endAngle,f=-v[1]/180*Math.PI):(p=g.r0,d=g.r,f=v[0])}else{var y=n;i?(p=y.x,d=y.x+y.width,f=t.x):(p=y.y+y.height,d=y.y,f=t.y)}var m=d===p?0:(f-p)/(d-p);a&&(m=1-m);var _=V(u)?u(o):l*m+c,x=s.getSymbolPath(),b=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(iT(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Tl({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e=t.length/2;e>0&&PS(t[2*e-2],t[2*e-1]);e--);return e-1}(a);l>=0&&(rp(o,op(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?xS(r,n):_S(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.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"),c=n.hostModel,h=c.get("connectNulls"),p=o.get("precision"),d=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,_=(g?d:0)*(v?-1:1),x=(g?0:-d)*(v?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(!PS(r=t[2*u+a],t[2*u+1-a]))if(0!==u){if(i<=e&&r>=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,T=S[1]-S[0],M=void 0;if(T>=1){if(T>1&&!h){var I=nT(u,S[0]);s.attr({x:I[0]+_,y:I[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(I=l.getPointOn(m,b))&&s.attr({x:I[0]+_,y:I[1]+x});var C=c.getRawValue(S[0]),k=c.getRawValue(S[1]);r&&(M=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(W(i))return $r(f=bo(n||0,i,r),o?Math.max(Jr(n||0),Jr(i)):e);if(H(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var h=t.getDimensionInfo(c);if(h&&"ordinal"===h.type)a[c]=(r<1&&s?s:l)[c];else{var p=s&&s[c]?s[c]:0,d=l[c],f=bo(p,d,r);a[c]=$r(f,o?Math.max(Jr(p),Jr(d)):e)}}return a}(n,p,C,k,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;I=nT(u,D),r&&(M=c.getRawValue(D)),s.attr({x:I[0]+_,y:I[1]+x})}if(r){var A=pp(s);"function"==typeof A.setLabelText&&A.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],c=[],h=[],p=[],d=[],f=[],g=[],v=AS(r,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=2*x.idx,S=2*x.idx1;var T=y[w],M=y[w+1],I=m[S],C=m[S+1];(isNaN(T)||isNaN(M))&&(T=I,M=C),u.push(T,M),c.push(I,C),h.push(n[w],n[w+1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var k=x.idx,D=v.dataDimsForPoint,A=r.dataToPoint([e.get(D[0],k),e.get(D[1],k)]);S=2*k,u.push(A[0],A[1]),c.push(m[S],m[S+1]);var L=LS(v,r,e,k);h.push(L[0],L[1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(k));break;case"-":b=!1}b&&(d.push(x),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var P=u.length,O=NS(P),R=NS(P),N=NS(P),B=NS(P),z=[];for(_=0;_<f.length;_++){var E=f[_],F=2*_,V=2*E;O[F]=u[V],O[F+1]=u[V+1],R[F]=c[V],R[F+1]=c[V+1],N[F]=h[V],N[F+1]=h[V+1],B[F]=p[V],B[F+1]=p[V+1],z[_]=d[E]}return{current:O,next:R,stackedOnCurrent:N,stackedOnNext:B,status:z}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,f=c.stackedOnNext;if(r&&(p=JS(c.stackedOnCurrent,c.current,n,r,a),h=JS(c.current,null,n,r,a),f=JS(c.stackedOnNext,c.next,n,r,a),d=JS(c.next,null,n,r,a)),$S(h,d)>3e3||l&&$S(p,f)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),gh(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:p}),l.stopAnimation(),gh(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++)if("="===y[m].cmd){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,i=2*v[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}(Kv);const aT=oT;function sT(t,e){return{seriesType:t,plan:Hv(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=O(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");Ax(n,a[0])&&(a[0]=l),Ax(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&NS(n*s),a=[],l=[],p=t.start,d=0;p<t.end;p++){var f=void 0;if(1===s){var g=u.get(c,p);f=i.dataToPoint(g,null,l)}else a[0]=u.get(c,p),a[1]=u.get(h,p),f=i.dataToPoint(a,null,l);o?(r[d++]=f[0],r[d++]=f[1]):e.setItemLayout(p,f.slice())}o&&(e.setLayout("points",r),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}}var lT={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},uT=function(t){return Math.round(t.length/2)};function cT(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),p=Math.round(a/h);if(isFinite(p)&&p>1){"lttb"===r?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/p)):"minmax"===r&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/p));var d=void 0;H(r)?d=lT[r]:V(r)&&(d=r),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/p,d,uT))}}}}}var hT=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 n(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Zw);const pT=hT;var dT=null;function fT(){return dT}var gT="expandAxisBreak",vT=Math.PI,yT=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],mT=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],_T=Bo(),xT=Bo(),bT=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,r=i[e]||(i[e]=[]);return r[n]||(r[n]={ready:{}})},t}(),wT=[1,0,0,1,0,0],ST=new Le(0,0,0,0),TT=function(t,e,n,i,r,o){if(zb(t.nameLocation)){var a=o.stOccupiedRect;a&&MT(function(t,e,n){return t.transform=Kh(t.transform,n),t.localRect=jh(t.localRect,e),t.rect=jh(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=Zh(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}({},a,o.transGroup.transform),i,r)}else IT(o.labelInfoList,o.dirVec,i,r)};function MT(t,e,n){var i=new le;vS(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,n)}}(e,i)}function IT(t,e,n,i){for(var r=le.dot(i,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||MT(s,n,i)}}var CT=function(){function t(t,e,n,i){this.group=new Ar,this._axisModel=t,this._api=e,this._local={},this._shared=i||new bT(TT),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=$(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");null!=r&&"auto"!==r||(r=$(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:$(t.nameDirection,1),tickDirection:$(t.tickDirection,1),labelDirection:$(t.labelDirection,1),labelOffset:$(t.labelOffset,0),silent:$(t.silent,!0),axisName:i,nameLocation:Q(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:ET(i)&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new Ar({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new le(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),P(kT,(function(i){t[i]&&DT[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})})),this},t.innerTextLayout=function(t,e,n){var i,r,o=no(e-t);return io(o)?(r=n>0?"top":"bottom",i="center"):io(o-vT)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<vT?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}(),kT=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],DT={axisLine:function(t,e,n,i,r,o,a){var s=i.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=i.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],p=c[0]>h[0];u&&(It(c,c,u),It(h,h,u));var d=C({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(i.get(["axisLine","breakLine"])&&Wp(i.axis.scale))fT().buildAxisBreakLine(i,r,o,f);else{var g=new zc(C({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},f));Oh(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(null!=v){var y=i.get(["axisLine","symbolSize"]);H(v)&&(v=[v,v]),(H(y)||W(y))&&(y=[y,y]);var m=um(i.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];P([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(e,n){if("none"!==v[n]&&null!=v[n]){var i=sm(v[n],-_/2,-x/2,_,x,d.stroke,!0),o=e.r+e.offset,a=p?h:c;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(i)}}))}}},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){OT(e,r,s)&&AT(t,e,n,i,r,o,a,kw.estimate)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){OT(e,r,s)&&AT(t,e,n,i,r,o,a,kw.determine);var l=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),u=PT(r.getTicksCoords(),n.transform,l,k(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}(t,r,o,i);!function(t,e,n){t.showMinorTicks||P(e,(function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var i=n[e],r=xT(i),o=_T(t.label);if(null!=r.tickValue&&!r.onBand&&r.tickValue===o.labelInfo.tick.value)return void LT(i)}}))}(t,e.labelLayoutList,l),function(t,e,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(t.showMinorTicks&&!o.scale.isBlank()){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=k(l.getLineStyle(),k(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var p=PT(s[h],n.transform,u,c,"minorticks_"+h),d=0;d<p.length;d++)e.add(p[d])}}(t,r,o,i,t.tickDirection)},axisName:function(t,e,n,i,r,o,a,s){var l=n.ensureRecord(i);e.nameEl&&(r.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(ET(u)){var c=t.nameLocation,h=t.nameDirection,p=i.getModel("nameTextStyle"),d=i.get("nameGap")||0,f=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new le(0,0),y=new le(0,0);"start"===c?(v.x=f[0]-g*d,y.x=-g):"end"===c?(v.x=f[1]+g*d,y.x=g):(v.x=(f[0]+f[1])/2,v.y=t.labelOffset+h*d,y.y=h);var m=[1,0,0,1,0,0];y.transform(oe(m,m,t.rotation));var _,x,b=i.get("nameRotate");null!=b&&(b=b*vT/180),zb(c)?_=CT.innerTextLayout(t.rotation,null!=b?b:t.rotation,h):(_=function(t,e,n,i){var r,o,a=no(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return io(a-vT/2)?(o=l?"bottom":"top",r="center"):io(a-1.5*vT)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*vT&&a>vT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,c,b||0,f),null!=(x=t.raw.axisNameAvailableWidth)&&(x=Math.abs(x/Math.sin(_.rotation)),!isFinite(x)&&(x=null)));var w=p.getFont(),S=i.get("nameTruncate",!0)||{},T=S.ellipsis,M=K(t.raw.nameTruncateMaxWidth,S.maxWidth,x),I=s.nameMarginLevel||0,C=new Tl({x:v.x,y:v.y,rotation:_.rotation,silent:CT.isLabelSilent(i),style:ap(p,{text:u,font:w,overflow:"truncate",width:M,ellipsis:T,fill:p.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:p.get("align")||_.textAlign,verticalAlign:p.get("verticalAlign")||_.textVerticalAlign}),z2:1});if(Uh({el:C,componentModel:i,itemName:u}),C.__fullText=u,C.anid="name",i.get("triggerEvent")){var k=CT.makeAxisEventDataBase(i);k.targetType="axisName",k.name=u,Ml(C).eventData=k}o.add(C),C.updateTransform(),e.nameEl=C;var D=l.nameLayout=hS({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:zb(c)?yT[I]:mT[I]});if(l.nameLocation=c,r.add(C),C.decomposeTransform(),t.shouldNameMoveOverlap&&D){var A=n.ensureRecord(i);n.resolveAxisNameOverlap(t,n,i,D,y,A)}}}};function AT(t,e,n,i,r,o,a,s){RT(e)||function(t,e,n,i,r,o){var a=r.axis,s=K(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new Ar;n.add(l);var u=Dw(i);if(s&&!a.scale.isBlank()){var c=r.getModel("axisLabel"),h=a.getViewLabels(u),p=(K(t.raw.labelRotate,c.get("rotate"))||0)*vT/180,d=CT.innerTextLayout(t.rotation,p,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),y=1/0,m=-1/0;P(h,(function(t,e){var n,i=t.tick,s=t.formattedLabel,u=t.rawLabel,p=c,_=Hb(a.scale,i);if(f&&f[_]){var x=f[_];U(x)&&x.textStyle&&(p=new kp(x.textStyle,c,r.ecModel))}var b=p.getTextColor()||r.get(["axisLine","lineStyle","color"]),w=p.getShallow("align",!0)||d.textAlign,S=$(p.getShallow("alignMinLabel",!0),w),T=$(p.getShallow("alignMaxLabel",!0),w),M=p.getShallow("verticalAlign",!0)||p.getShallow("baseline",!0)||d.textVerticalAlign,I=$(p.getShallow("verticalAlignMinLabel",!0),M),C=$(p.getShallow("verticalAlignMaxLabel",!0),M),k=10+((null===(n=i.time)||void 0===n?void 0:n.level)||0);y=Math.min(y,k),m=Math.max(m,k);var D=new Tl({x:0,y:0,rotation:0,silent:CT.isLabelSilent(r),z2:k,style:ap(p,{text:s,align:0===e?S:e===h.length-1?T:w,verticalAlign:0===e?I:e===h.length-1?C:M,fill:V(b)?b("category"===a.type?u:"value"===a.type?_+"":_,e):b})});D.anid="label_"+_;var A=_T(D);if(A.labelInfo=t,A.layoutRotation=d.rotation,Uh({el:D,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:u,tickIndex:e}}),v){var L=CT.makeAxisEventDataBase(r);L.targetType="axisLabel",L.value=u,L.tickIndex=e;var P=t.tick.break;if(P){var O=P.parsedBreak;L.break={start:O.vmin,end:O.vmax}}"category"===a.type&&(L.dataIndex=_),Ml(D).eventData=L,P&&function(t,e,n,i){n.on("click",(function(n){var r={type:gT,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};r[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(r)}))}(r,o,D,P)}g.push(D),l.add(D)}));var _=O(g,(function(t){return{label:t,priority:_T(t).labelInfo.tick.break?t.z2+(m-y+1):t.z2,defaultAttr:{ignore:t.ignore}}}));NT(e,_,l,u)}else NT(e,[],l,u)}(t,e,r,s,i,a);var l=e.labelLayoutList;!function(t,e,n,i){var r=e.get(["axisLabel","margin"]);P(n,(function(n,o){var a=hS(n);if(a){var s=a.label,l=_T(s);a.suggestIgnore=s.ignore,s.ignore=!1,tr(BT,zT);var u=e.axis;BT.x=u.dataToCoord(Hb(u.scale,l.labelInfo.tick)),BT.y=t.labelOffset+t.labelDirection*r,BT.rotation=l.layoutRotation,i.add(BT),BT.updateTransform(),i.remove(BT),BT.decomposeTransform(),tr(s,BT),s.markRedraw(),uS(a,!0),hS(a)}}))}(t,i,l,o),function(t,e,n){var i=Vp();if(i){var r=i.retrieveAxisBreakPairs(n,(function(t){return t&&_T(t.label).labelInfo.tick.break}),!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==o&&"auto"!==o||P(r,(function(i){fT().adjustBreakLabelPair(t.axis.inverse,e,[hS(n[i[0]]),hS(n[i[1]])])}))}}(i,t.rotation,l);var u=t.optionHideOverlap;!function(t,e,n){var i=t.axis,r=t.get(["axisLabel","customValues"]);if(!function(t){return"category"===t.type&&0===Bb(t.getLabelModel())}(i)){var o=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),s=e.length;l(o,0,1),l(a,s-1,s-2)}function l(t,o,a){var s=hS(e[o]),l=hS(e[a]),u=i.scale;if(s&&l){if(null==t){if(!n&&r)return;var c=_T(s.label).labelInfo.tick;if(tb(u)&&c.notNice||nb(u)&&c.offInterval)return void LT(s.label)}if(!1===t||s.suggestIgnore)LT(s.label);else if(l.suggestIgnore)LT(l.label);else{var h=.1;if(!n){var p=[0,0,0,0];s=fS({marginForce:p},s),l=fS({marginForce:p},l)}vS(s,l,null,{touchThreshold:h})&&LT(t?l.label:s.label)}}}}(i,l,u),u&&function(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort((function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority}));for(var i=0;i<t.length;i++){var r=hS(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(vS(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}(N(l,(function(t){return t&&!t.label.ignore}))),function(t,e,n,i){var r,o=n.axis,a=e.ensureRecord(n),s=[],l=ET(t.axisName)&&zb(t.nameLocation);P(i,(function(t){var e=hS(t);if(e&&!e.label.ignore){s.push(e);var n=a.transGroup;l&&(n.transform?ae(wT,n.transform):ee(wT),e.transform&&ie(wT,wT,e.transform),Le.copy(ST,e.localRect),ST.applyTransform(wT),r?r.union(ST):Le.copy(r=new Le(0,0,0,0),ST))}}));var u=Math.abs(a.dirVec.x)>.1?"x":"y",c=a.transGroup[u];if(s.sort((function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)})),l&&r){var h=o.getExtent(),p=Math.min(h[0],h[1]),d=Math.max(h[0],h[1])-p;r.union(new Le(p,0,d,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,n,i,l)}function LT(t){t&&(t.ignore=!0)}function PT(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(It(a,a,e),It(s,s,e));var c=new zc({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Oh(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c);var h=xT(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return o}function OT(t,e,n){if(RT(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),NT(t,null,null,null))}return!0}function RT(t){return!!t.labelLayoutList}function NT(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var BT=new ul,zT=new ul;function ET(t){return!!t}const FT=CT;function VT(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[c.onZero]=Math.max(Math.min(d,p[1]),p[0])}r.position=["y"===l?p[c[s]]:u[0],"x"===l?p[c[s]]:u[3]],r.rotation=Math.PI/2*("x"===l?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?p[c[a]]-p[c.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),K(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-f:f,r.z2=1,r}function HT(){var t;t=GT,rw.liPosMinGap=t}function GT(t,e,n){var i,r=ut(),o=n.serUids,a=n.liPosMinGap,s=e.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,h=Gg(c);function p(n){ew(t,e.sers,(function(t){var e=t.getRawData(),i=e.getDimensionIndex(e.mapDimension(s.dim));i>=0&&n(i,t,e.getStore())}))}var d=0;if(p((function(t,e,n){r.set(e.uid,1),o&&o.hasKey(e.uid)||(i=!0),d+=n.count()})),o&&o.keys().length===r.keys().length||(i=!0),i||null==a){BS(WT,d);var f=0;p((function(t,e,n){for(var i=0,r=n.count();i<r;++i){var o=n.get(t,i);!isFinite(o)||c&&!Wg(h,o)||(u&&(o=l.transformIn(o,null)),WT.arr[f++]=o)}}));var g=WT.typed?WT.arr.subarray(0,f):(WT.arr.length=f,WT.arr);WT.typed?g.sort():Qr(g);for(var v=1/0,y=1;y<f;++y){var m=g[y]-g[y-1];m>0&&m<v&&(v=m)}n.liPosMinGap=e.liPosMinGap=go(v)?v:f>0?Zb:qb,n.serUids=r}else e.liPosMinGap=a}var WT=BS({ctor:RS},50);function UT(t,e){return t+Xb+e}function XT(t){return HT(),{liPosMinGap:!nb(t.scale)}}var YT="bar",ZT={left:0,right:0,top:0,bottom:0},qT=["25%","25%"],jT="cartesian2d",KT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var i=ef(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&tf(e.outerBounds,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&tf(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:ZT,outerBoundsContain:"all",outerBoundsClampWidth:qT[0],outerBoundsClampHeight:qT[1],backgroundColor:hf.color.transparent,borderWidth:1,borderColor:hf.color.neutral30},e}(af);const $T=KT;var QT=qo(),JT="__ec_stack_";function tM(t){return t.get("stack")||JT+t.seriesIndex}function eM(t){return t.pipelineContext&&t.pipelineContext.large}var nM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getInitialData=function(t,e){return Px(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)P(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)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,p=0;p<i.length;p++){var d=i[p].coord,f=p===i.length-1?i[p-1].tickValue+h:i[p].tickValue;if(f===s){c=d;break}if(f<s)u=d;else if(null!=u&&f>s){c=(d+u)/2;break}1===p&&(h=f-i[0].tickValue)}null==c&&(u?u&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Ev);Ev.registerClass(nM);const iM=nM;var rM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.getInitialData=function(){return Px(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.__preparePipelineContext=function(t,e){var n=ta(this,t,e);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series."+YT,e.dependencies=["grid","polar"],e.defaultOption=Lp(iM.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:hf.color.primary,borderWidth:2}},realtimeSort:!1}),e}(iM);const oM=rM;var aM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},sM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return n(e,t),e.prototype.getDefaultShape=function(){return new aM},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=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,p=c?u-l<h:l-u<h;p||(l=u-(c?h:-h));var d=Math.cos(l),f=Math.sin(l),g=Math.cos(u),v=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,!c)):t.moveTo(d*o+n,f*o+i),t.arc(n,i,o,l,u,!c),t.arc(g*s+n,v*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&t.arc(n,i,r,u,l,c)},e}(qs);const lM=sM;function uM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function cM(t,e,n){return e*Math.cos(t)*(n?1:-1)}function hM(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;F(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:O(i,(function(t){return dr(t,r)}))}}var pM=Math.max,dM=Math.min,fM=function(t){function e(){var e=t.call(this)||this;return e.type=YT,e._isFirstFrame=!0,e}return n(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){Yh(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 c=t.isAnimationEnabled()?t:null,h=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);h&&this._enableRealtimeSort(h,a,n);var p=t.get("clip",!0)||h,d=l.getArea();o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=wM[l.type](a,t);if(!e)return null;var n=function(t,e,n){var i="polar"===t.type?Sc:ul;return new i({shape:DM(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",y):n.setShape("cornerRadius",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=wM[l.type](a,e,n);if(i&&(g&&w(e),a.hasValue(e)&&bM[l.type](i))){var s=!1;p&&(s=gM[l.type](d,i));var v=vM[l.type](t,a,e,i,r,c,u.model,!1,f);h&&(v.forceLabelAnimation=!0),TM(v,a,e,n,i,t,r,"polar"===l.type),x?v.attr({shape:i}):h?yM(h,c,v,i,e,r,!1,!1):vh(v,{shape:i},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=wM[l.type](a,e,i);if(S){if(g){var T=void 0;0===_.length?T=w(n):((T=_[n]).useStyle(v.getItemStyle()),"cartesian2d"===l.type?T.setShape("r",y):T.setShape("cornerRadius",y),m[e]=T);var M=wM[l.type](a,e);gh(T,{shape:DM(r,M,l)},c,e)}var I=s.getItemGraphicEl(n);if(a.hasValue(e)&&bM[l.type](S)){var C=!1;if(p&&(C=gM[l.type](d,S))&&o.remove(I),I&&("sector"===I.type&&f||"sausage"===I.type&&!f)&&(I&&xh(I,t,n),I=null),I?bh(I):I=vM[l.type](t,a,e,S,r,c,u.model,!0,f),h&&(I.forceLabelAnimation=!0),b){var k=I.getTextContent();if(k){var D=pp(k);null!=D.prevValue&&(D.prevValue=D.value)}}else TM(I,a,e,i,S,t,r,"polar"===l.type);x?I.attr({shape:S}):h?yM(h,c,I,S,e,r,!0,b):gh(I,{shape:S},t,e,null),a.setItemGraphicEl(e,I),I.ignore=C,o.add(I)}else o.remove(I)}})).remove((function(e){var n=s.getItemGraphicEl(e);n&&xh(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Ar);S.removeAll();for(var T=0;T<m.length;++T)S.add(m[T]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),CM(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),CM(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&function(t,e,n,i,r){return t?"polar"===t.type?XS(t,e,n):"cartesian2d"===t.type?US(t,e,n,i,r):null:null}(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 i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:O(i,(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?Number.MIN_VALUE: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){xh(e,t,Ml(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=YT,e}(Kv),gM={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=pM(e.x,t.x),s=dM(e.x+e.width,r),l=pM(e.y,t.y),u=dM(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>r?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=dM(e.r,t.r),o=pM(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},vM={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new ul({shape:C({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?lM:Sc,c=new u({shape:i,z2:1});c.name="item";var h,p,d=SM(r);if(c.calculateTextPosition=(h=d,p=({isRoundCap:u===lM}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return fr(t,e,n);var r=h(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,d=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,y=p?Math.abs(u-c)/2:0,m=Math.cos,_=Math.sin,x=s+u*m(f),b=l+u*_(f),w="left",S="top";switch(r){case"startArc":x=s+(c-o)*m(v),b=l+(c-o)*_(v),w="center",S="top";break;case"insideStartArc":x=s+(c+o)*m(v),b=l+(c+o)*_(v),w="center",S="bottom";break;case"startAngle":x=s+d*m(f)+uM(f,o+y,!1),b=l+d*_(f)+cM(f,o+y,!1),w="right",S="middle";break;case"insideStartAngle":x=s+d*m(f)+uM(f,-o+y,!1),b=l+d*_(f)+cM(f,-o+y,!1),w="left",S="middle";break;case"middle":x=s+d*m(v),b=l+d*_(v),w="center",S="middle";break;case"endArc":x=s+(u+o)*m(v),b=l+(u+o)*_(v),w="center",S="bottom";break;case"insideEndArc":x=s+(u-o)*m(v),b=l+(u-o)*_(v),w="center",S="top";break;case"endAngle":x=s+d*m(g)+uM(g,o+y,!0),b=l+d*_(g)+cM(g,o+y,!0),w="left",S="middle";break;case"insideEndAngle":x=s+d*m(g)+uM(g,-o+y,!0),b=l+d*_(g)+cM(g,-o+y,!0),w="right",S="middle";break;default:return fr(t,e,n)}return(t=t||{}).x=x,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};c.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?gh:vh)(c,{shape:g},o)}return c}};function yM(t,e,n,i,r,o,a,s){var l,u;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?gh:vh)(n,{shape:l},e,r,null),(a?gh:vh)(n,{shape:u},e?t.baseAxis.model:null,r)}function mM(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var _M=["x","y","width","height"],xM=["cx","cy","r","startAngle","endAngle"],bM={cartesian2d:function(t){return!mM(t,_M)},polar:function(t){return!mM(t,xM)}},wM={cartesian2d:function(t,e,n){var i=t.getItemLayout(e);if(!i)return null;var r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function SM(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function TM(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;C(u,hM(i.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var h=i.getShallow("cursor");h&&t.attr("cursor",h);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?function(t,e){return 0===t.height?e.getOtherAxis(e.getBaseAxis()).inverse?"bottom":"top":t.height>0?"bottom":"top"}(r,o.coordinateSystem):function(t,e){return 0===t.width?e.getOtherAxis(e.getBaseAxis()).inverse?"left":"right":t.width>=0?"right":"left"}(r,o.coordinateSystem),d=op(i);rp(t,d,{labelFetcher:o,labelDataIndex:n,defaultText:_S(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=t.getTextContent();if(s&&f){var g=i.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,i){if(W(i))t.setTextConfig({rotation:i});else if(F(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===g?p:g,SM(a),i.get(["label","rotate"]))}!function(t,e,n,i){if(t){var r=pp(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)}}(f,d,o.getRawValue(n),(function(t){return xS(e,t)}));var v=i.getModel(["emphasis"]);Lu(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Ru(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",P(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var MM=function(){},IM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return n(e,t),e.prototype.getDefaultShape=function(){return new MM},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}(qs);function CM(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints"),c=i?Jo(t):0;if(u){var h=new IM({shape:{points:u},incremental:c,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 p=new IM({shape:{points:r.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,e.add(p),p.useStyle(r.getVisual("style")),p.style.stroke=null,Ml(p).seriesIndex=t.seriesIndex,t.get("silent")||(p.on("mousedown",kM),p.on("mousemove",kM)),n&&n.push(p)}var kM=ty((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,c=0,h=o.length/3;c<h;c++){var p=3*c;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[c]}return-1}(this,t.offsetX,t.offsetY);Ml(this).dataIndex=e>=0?e:null}),30,!1);function DM(t,e,n){if(ZS(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const AM=fM;var LM=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}();const PM=LM;var OM,RM="pie",NM=Bo(),BM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new PM(z(this.getData,this),z(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return function(t,e,n){e=F(e)&&{coordDimensions:e}||C({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=Tx(i,e).dimensions,o=new Sx(r,t);return o.initData(i,n),o}(this,{coordDimensions:["value"],encodeDefaulter:E(xf,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=NM(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=function(t,e){var n=R(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Wr(10,e),r=O(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=O(r,(function(t){return Hr(t)})),s=R(a,(function(t,e){return t+e}),0),l=O(r,(function(t,e){return t-a[e]}));s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return O(a,(function(t){return t/i}))}(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Mo(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."+RM,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ev);OM={fullType:BM.type,getCoord2:function(t){return t.getShallow("center")}},Bd.set(OM.fullType,{getCoord2:void 0}).getCoord2=OM.getCoord2;const zM=BM;var EM=Math.PI/180;function FM(t,e,n,i,r,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var p=t[h].label.x-u;t[h].linePoints[1][0]+=p,t[h].label.x=u}(function(t,e,n,i,r){var o=t.length,a=Sh[e],s=Th[e];if(o<2)return!1;t.sort((function(t,e){return t.rect[a]-e.rect[a]}));for(var l,u=0,c=!1,h=0,p=0;p<o;p++){var d=t[p],f=d.rect;(l=f[a]-u)<0&&(f[a]-=l,d.label[a]-=l,c=!0),h+=Math.max(-l,0),u=f[a]+f[s]}h>0&&r&&b(-h/o,0,o);var g,v,y=t[0],m=t[o-1];function _(){g=y.rect[a]-n,v=i-m.rect[a]-m.rect[s]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){b(i*n,0,o);var r=i+t;r<0&&w(-r*n,1)}else w(-t*n,1)}}function b(e,n,i){0!==e&&(c=!0);for(var r=n;r<i;r++){var o=t[r];o.rect[a]+=e,o.label[a]+=e}}function w(e,n){for(var i=[],r=0,l=1;l<o;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[a]-u[a]-u[s],0);i.push(c),r+=c}if(r){var h=Math.min(Math.abs(e)/r,n);if(e>0)for(l=0;l<o-1;l++)b(i[l]*h,0,l+1);else for(l=o-1;l>0;l--)b(-i[l-1]*h,l,o)}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(o-1)),i=0;i<o-1;i++)if(e>0?b(n,0,i+1):b(-n,o-i-1,o),(t-=n)<=0)return}return _(),g<0&&w(-g,.8),v<0&&w(v,.8),_(),x(g,v,1),x(v,g,-1),_(),g<0&&S(-g),v<0&&S(v),c})(t,1,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,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*r,p=i+l.len,f=Math.abs(h)<p?Math.sqrt(c*c/(1-h*h/p/p)):p;u.rB=f,u.maxY=c}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),c=i+l.len,h=c*c,p=Math.sqrt(Math.abs((1-u*u/a)*h)),d=e+(p+l.len2)*r,f=d-l.label.x;VM(l,l.targetTextWidth-f*r,!0),l.label.x=d}}}function VM(t,e,n){if(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,c=o.width+(a?0:l);if(e<c||n){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,d=e<c?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",d)}HM(o,i)}}}function HM(t,e){WM.rect=t,pS(WM,e,GM)}var GM={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},WM={};function UM(t){return"center"===t.position}function XM(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*EM,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=i.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),x=y.get("alignTo"),b=jr(y.get("edgeDistance"),u),w=y.get("bleedMargin");null==w&&(w=Math.min(u,p)>200?10:2);var S=v.getModel("labelLine"),T=S.get("length");T=jr(T,u);var M=S.get("length2");if(M=jr(M,u),Math.abs(h.endAngle-h.startAngle)<a)return P(f.states,d),f.ignore=!0,void(g&&(P(g.states,d),g.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(f)){var I,C,k,D,A=(h.startAngle+h.endAngle)/2,L=Math.cos(A),O=Math.sin(A);e=h.cx,n=h.cy;var R="inside"===m||"inner"===m;if("center"===m)I=h.cx,C=h.cy,D="center";else{var N=(R?(h.r+h.r0)/2*L:h.r*L)+e,B=(R?(h.r+h.r0)/2*O:h.r*O)+n;if(I=N+3*L,C=B+3*O,!R){var z=N+L*(T+l-h.r),E=B+O*(T+l-h.r),F=z+(L<0?-1:1)*M;I="edge"===x?L<0?c+b:c+u-b:F+(L<0?-_:_),C=E,k=[[N,B],[z,E],[F,E]]}D=R?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var V=Math.PI,H=0,G=y.get("rotate");if(W(G))H=G*(V/180);else if("center"===m)H=0;else if("radial"===G||!0===G)H=L<0?-A+V:-A;else if("tangential"===G||"tangential-noflip"===G&&"outside"!==m&&"outer"!==m){var U=Math.atan2(L,O);U<0&&(U=2*V+U),O>0&&"tangential-noflip"!==G&&(U=V+U),H=U-V}if(o=!!H,f.x=I,f.y=C,f.rotation=H,f.setStyle({verticalAlign:"middle"}),R){f.setStyle({align:D});var X=f.states.select;X&&(X.x+=f.x,X.y+=f.y)}else{var Y=new Le(0,0,0,0);HM(Y,f),r.push({label:f,labelLine:g,position:m,len:T,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new le(L,O),linePoints:k,textAlign:D,labelDistance:_,labelAlignTo:x,edgeDistance:b,bleedMargin:w,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:R})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;UM(t[p])||(d.x<e?(c=Math.min(c,d.x),l.push(t[p])):(h=Math.max(h,d.x),u.push(t[p])))}for(p=0;p<t.length;p++)if(!UM(v=t[p])&&v.linePoints){if(null!=v.labelStyleWidth)continue;d=v.label;var f=v.linePoints,g=void 0;g="edge"===v.labelAlignTo?d.x<e?f[2][0]-v.labelDistance-a-v.edgeDistance:a+r-v.edgeDistance-f[2][0]-v.labelDistance:"labelLine"===v.labelAlignTo?d.x<e?c-a-v.bleedMargin:a+r-h-v.bleedMargin:d.x<e?d.x-a-v.bleedMargin:a+r-d.x-v.bleedMargin,v.targetTextWidth=g,VM(v,g,!1)}for(FM(u,e,n,i,1,0,o,0,s,h),FM(l,e,n,i,-1,0,o,0,s,c),p=0;p<t.length;p++){var v;if(!UM(v=t[p])&&v.linePoints){d=v.label,f=v.linePoints;var y="edge"===v.labelAlignTo,m=d.style.padding,_=m?m[1]+m[3]:0,x=d.style.backgroundColor?0:_,b=v.rect.width+x,w=f[1][0]-f[2][0];y?d.x<e?f[2][0]=a+v.edgeDistance+b+v.labelDistance:f[2][0]=a+r-v.edgeDistance-b-v.labelDistance:(d.x<e?f[2][0]=d.x+v.labelDistance:f[2][0]=d.x-v.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=d.y}}}(r,e,n,l,u,p,c,h);for(var f=0;f<r.length;f++){var g=r[f],v=g.label,y=g.labelLine,m=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:g.textAlign}),m&&(P(v.states,d),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(y){var x=g.linePoints;m||!x?(P(y.states,d),y.ignore=!0):(nS(x,g.minTurnAngle),iS(x,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:x}),v.__hostTarget.textGuideLineConfig={anchor:new le(x[0][0],x[0][1])})}}}var YM=2*Math.PI,ZM=Math.PI/180,qM=function(t,e){return{seriesType:t,overallReset:e}}(RM,(function(t,e){t.eachSeriesByType(RM,(function(t){var n=t.getData(),i=n.mapDimension("value"),r=qd(t,e),o=r.cx,a=r.cy,s=r.r,l=r.r0,u=r.viewRect,c=-t.get("startAngle")*ZM,h=t.get("endAngle"),p=t.get("padAngle")*ZM;h="auto"===h?c-YM:-h*ZM;var d=t.get("minAngle")*ZM+p,f=0;n.each(i,(function(t){!isNaN(t)&&f++}));var g=n.getSum(i),v=Math.PI/(g||f)*2,y=t.get("clockwise"),m=t.get("roseType"),_=t.get("stillShowZeroSum"),x=n.getDataExtent(i);x[0]=0;var b=y?1:-1,w=[c,h],S=b*p/2;Ts(w,!y),c=w[0],h=w[1];var T=jM(t);T.startAngle=c,T.endAngle=h,T.clockwise=y,T.cx=o,T.cy=a,T.r=s,T.r0=l;var M=Math.abs(h-c),I=M,C=0,k=c;if(n.setLayout({viewRect:u,r:s}),n.each(i,(function(t,e){var i;if(isNaN(t))n.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:o,cy:a,r0:l,r:m?NaN:s});else{(i="area"!==m?0===g&&_?v:t*v:M/f)<d?(i=d,I-=d):C+=t;var r=k+b*i,u=0,c=0;p>i?c=u=k+b*i/2:(u=k+S,c=r-S),n.setItemLayout(e,{angle:i,startAngle:u,endAngle:c,clockwise:y,cx:o,cy:a,r0:l,r:m?qr(t,x,[l,s]):s}),k=r}})),I<YM&&f)if(I<=.001){var D=M/f;n.each(i,(function(t,e){if(!isNaN(t)){var i=n.getItemLayout(e);i.angle=D;var r=0,o=0;D<p?o=r=c+b*(e+.5)*D:(r=c+b*e*D+S,o=c+b*(e+1)*D-S),i.startAngle=r,i.endAngle=o}}))}else v=I/C,k=c,n.each(i,(function(t,e){if(!isNaN(t)){var i=n.getItemLayout(e),r=i.angle===d?d:t*v,o=0,a=0;r<p?a=o=k+b*r/2:(o=k+S,a=k+b*r-S),i.startAngle=o,i.endAngle=a,k+=b*r}}))}))})),jM=Bo(),KM=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new Tl;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return n(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=C(hM(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(vh(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===c?(r.shape.r=l.r0,vh(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),vh(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,gh(r,{shape:{endAngle:l.endAngle}},o,e))}else bh(r),gh(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),Ru(r,a);var h=(l.startAngle+l.endAngle)/2,p=o.get("selectedOffset"),d=Math.cos(h)*p,f=Math.sin(h)*p,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=C({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},hM(s.getModel("itemStyle"),l)),C(r.ensureState("select"),{x:d,y:f,shape:hM(a.getModel(["select","itemStyle"]),l)}),C(r.ensureState("blur"),{shape:hM(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&C(v.ensureState("select"),{x:d,y:f}),C(y.ensureState("select"),{x:d,y:f}),Lu(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;rp(i,op(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=r.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Oc,this.setTextGuideLine(h)),function(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Zl.length;l++){var u=Zl[l],c=e[u],h="normal"===u;if(c){var p=c.get("show");if((h?s:$(r.states[u]&&r.states[u].ignore,s))||!$(p,a)){var d=h?i:i&&i.states[u];d&&(d.ignore=!0),i&&rS(i,!0,u,c);continue}i||(i=new Oc,t.setTextGuideLine(i),h||!s&&a||rS(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),rS(i,!1,u,c)}}if(i){k(i.style,n),i.style.fill=null;var f=o.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=oS}}else i&&t.removeTextGuideLine()}(this,function(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Yl.length;i++){var r=Yl[i];n[r]=t.getModel([r,e])}return n}(r),{stroke:s,opacity:Q(o.get(["lineStyle","opacity"]),l,1)})}},e}(Sc),$M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=RM,e.ignoreLabelLineUpdate=!0,e}return n(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=jM(t),h=new Sc({shape:M(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}o.diff(a).add((function(t){var e=new KM(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){xh(a.getItemGraphicEl(e),t,e)})).execute(),XM(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},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=RM,e}(Kv);const QM=$M;var JM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return n(e,t),e.prototype.getInitialData=function(t,e){return Px(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:hf.color.primary}},universalTransition:{divideShape:"clone"}},e}(Ev);const tI=JM;var eI=function(){},nI=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return n(e,t),e.prototype.getDefaultShape=function(){return new eI},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,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;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],h=i[n++];isNaN(c)||isNaN(h)||u&&!u.contain(c,h)||(a.x=c-r[0]/2,a.y=h-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,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+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,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],p=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(p,s),u=Math.max(p,u)}t=this._rect=new Le(a-r/2,s-o/2,l-a+r,u-s+o)}return t},e}(qs),iI=function(){function t(){this.group=new Ar}return t.prototype.updateData=function(t,e){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=this._data;if(e){var n=e.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var e=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;n=new Float32Array(n.buffer,i,e)}t.setShape("points",n),t.reset(),t.stopAnimation()}))}},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n,i){var r=this._newAdded[0],o=e.getLayout("points"),a=r&&r.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),r.endIndex=t.end,r.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=n,u.setShape({points:o}),this._setCommon(u,e,i)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new nI({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=sm(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=Ml(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}();const rI=iI;var oI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,aI(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(),Jo(e),aI(e)),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished)return{update:!0};var r=sT("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(aI(t))},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new rI:new DS,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}(Kv);function aI(t){return{clipShape:YS(t)}}const sI=oI;var lI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Vo).models[0]},e.type="cartesian2dAxis",e}(af);A(lI,Wb);var uI={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:hf.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:hf.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:hf.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[hf.color.backgroundTint,hf.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:hf.color.neutral00,borderColor:hf.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},cI=I({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},uI),hI=I({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:hf.color.axisMinorSplitLine,width:1}}},uI);const pI={category:cI,value:hI,time:I({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},hI),log:k({logBase:10},hI)};function dI(t,e,i,r){P(Db,(function(o,a){var s=I(I({},pI[a],!0),r,!0),l=function(t){function i(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return n(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Jd(this),i=n?ef(t):{};I(t,e.getTheme().get(a+"Axis")),I(t,this.getDefaultOption()),t.type=fI(t),n&&tf(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Ex.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.prototype.updateAxisBreaks=function(t){var e=fT();return e?e.updateModelAxisBreak(this,t):{breaks:[]}},i.type=e+"Axis."+a,i.defaultOption=s,i}(i);t.registerComponentModel(l)})),t.registerSubTypeDefaulter(e+"Axis",fI)}function fI(t){return t.type||(t.data?"category":"value")}var gI=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 O(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),N(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}(),vI=["x","y"];function yI(t){return("interval"===t.type||"time"===t.type)&&!Wp(t)}var mI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=jT,e.dimensions=vI,e}return n(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(yI(t)&&yI(e)){var n=qx(t,null),i=qx(e,null),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,c=r[0]-n[0]*l,h=r[1]-i[0]*u,p=this._transform=[l,0,0,u,c,h];this._invTransform=ae([],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 Le(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 It(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,n){if(n=n||[],this._invTransform)return It(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 Le(i,r,o,a)},e}(gI);function _I(t,e){var n,i,r,o=t.scale,a=t.model,s=mw(o,a,a.ecModel,t,null),l=eb(o),u=eb(e)?e.intervalStub:e,c=l?o.intervalStub:o,h=o.base,p=u.getTicks(),d=u.getTicks({expandToNicedExtent:!0}),f=p.length-1;if(1===f)n=i=0,r=1;else if(2===f){var g=Fr(p[0].value-p[1].value),v=Fr(p[1].value-p[2].value);n=i=0,g===v?r=2:(r=1,g<v?n=g/v:i=v/g)}else{var y=u.getConfig().interval;n=(1-(p[0].value-d[0].value)/y)%1,i=(1-(d[f].value-p[f].value)/y)%1,r=f-(n?1:0)-(i?1:0)}var m,_,x,b,w,S,T=s.zoomFixMM,M=T[0]||T[1],I=[s.fixMM[0]||M,s.fixMM[1]||M],C=o.getExtent(),k=c.getExtent(),D=ab(k,I);function A(t){for(var e,n,i,r,o=0;o<50&&!t();o++)x=l?x*Er(h,2):(n=void 0,i=void 0,r=void 0,n=so(e=x),i=Wr(10,n),(r=Vr(e/i))?2===r?r=3:3===r?r=5:r*=2:r=1,$r(r*i,-n)),b=ib(x)}function L(){m=$r(S-x*n,b)}function P(){_=$r(w+x*i,b)}function O(){S=n?$r(m+x*n,b):m}function R(){w=i?$r(_-x*i,b):_}if(I[0]&&I[1]){m=D[0],_=D[1],x=(_-m)/(r+n+i);var N=t.getExtent(),B=Fr(N[1]-N[0]);b=function(t,e,n){var i=Fr(t[1]-t[0]);if(!isFinite(i)||0===i)return NaN;var r=Ur(2*Fr(n||1)*Fr(i))/Xr,o=Ur(Fr(e))/Xr,a=Er(0,Gr(-r+o));return isFinite(a)||(a=NaN),a}([_,m],B,.5/r),O(),R(),go(b)&&(x=$r(x,b))}else{var z=D[1]-D[0];x=l?Er(ao(z),1):uo(z/r,lo),b=ib(x),I[0]?(m=D[0],A((function(){if(O(),w=$r(S+x*r,b),P(),_>=D[1])return!0}))):I[1]?(_=D[1],A((function(){if(R(),S=$r(w-x*r,b),L(),m<=D[0])return!0}))):A((function(){S=$r(Gr(D[0]/x)*x,b),w=$r(Hr(D[1]/x)*x,b);var t=Vr((w-S)/x);if(t<=r){var e=r-t,n=void 0,i=s.incl0||l;if(i&&0===D[0])n=[0,e];else if(i&&0===D[1])n=[e,0];else{var o=Hr(e/2);n=e%2==0?[o,o]:m+_<D[0]+D[1]?[o,o+1]:[o+1,o]}if(S=$r(S-x*n[0],b),w=$r(w+x*n[1],b),L(),P(),m<=D[0]&&_>=D[1])return!0}}))}Vb(o,I,k,[m,_],C,{interval:x,intervalCount:r,intervalPrecision:b,niceExtent:[S,w]})}var xI=[[3,1],[0,2]],bI=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vI,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){for(var e=B(t),n=[],i=e.length-1;i>=0;i--){var r=t[+e[i]];r.__alignTo?n.push(r):bw(r)}P(n,(function(t){var e,n;e=t,n=t.__alignTo,Wp(e.scale)||Wp(n.scale)||n.scale.getTicks().length<2?bw(t):_I(t,t.__alignTo.scale)}))}P(this._axesList,(function(t){gw(t,1);var e=t.scale;nb(e)&&e.setSortInfo(t.model.get("categorySortInfo"))})),i(n.x),i(n.y);var r={};P(n.x,(function(t){wI(n,"y",t,r)})),P(n.y,(function(t){wI(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=$d(t,e),r=this._rect=jd(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(MI(o,r),!n){var l=function(t,e,n,i,r){var o=new bT(DI);return P(n,(function(n){return P(n,(function(n){if(Eb(n.model)){var a=!i;n.axisBuilder=function(t,e,n,i,r,o){for(var a=VT(t,n),s=!1,l=!1,u=0;u<e.length;u++)Qx(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new FT(n,i,a,r)}(t,e,n.model,r,o,a)}}))})),o}(r,a,o,s,e),u=void 0;if(s)u=CI(r.clone(),"axisLabel",null,r,o,l,i);else{var c=function(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=jd(t.get("outerBounds",!0)||ZT,n.refContainer));var o,a=t.get("outerBoundsContain",!0);o=null==a||"auto"===a||D(["all","axisLabel"],a)<0?"all":a;var s=[Kr($(t.get("outerBoundsClampWidth",!0),qT[0]),e.width),Kr($(t.get("outerBoundsClampHeight",!0),qT[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}(t,r,i),h=c.outerBoundsRect,p=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(u=CI(h,p,d,r,o,l,i))}kI(r,o,kw.determine,null,u,i),P(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]}U(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",Vo).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Vo).models[0],a=t.gridModel,s=this._coordsList;return i?D(s,e=i.coordinateSystem)<0&&(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",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(function(t,e){return t.getCoordSysModel()===e}(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,c=(null!=(u=n.get("type"))&&(pt(Db,u)||Rx.getClass(u))||(u="value"),u),h=new pT(e,function(t,e,n){var i;switch(Vp()&&(i=Fb(t,e,n)),e){case"category":return new cb({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Sb({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:i});case"log":return new kb({logBase:t.get("logBase"),breakOption:i});case"value":return new db({breakOption:i});default:return new(Rx.getClass(e)||db)({})}}(n,c,!0),[0,0],c,l);h.onBand=Gb(h.scale,n),h.inverse=n.get("inverse"),n.axis=h,h.model=n,h.grid=r,h.index=i,r._axesList.push(h),a[e][i]=h,s[e]++}}}this._axesMap=a,P(a.x,(function(e,n){P(a.y,(function(r,o){var a="x"+n+"y"+o,s=new mI(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))})),TI(a.x),TI(a.y)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return P(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);D(e,r)<0&&e.push(r),D(n,o)<0&&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),P(a._axesList,(function(e){var n,i;n=e,i=t.dimIdxMap,fw(n).dimIdxInCoord=i.get(n.dim)}))})),e.eachSeries((function(t){var e,n;!function(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var o=Hd(e),a=o.kind,s=o.coordSysType;if(r&&a!==Fd&&(a=Fd,s=n),a===Ed||s!==n)return Ed;var l=i(n,e);l&&(a===Fd?e.coordinateSystem=l:e.boxCoordinateSystem=l)}({targetModel:t,coordSysType:jT,coordSysProvider:function(){var i=function(t){var e={xAxisModel:null,yAxisModel:null};return P(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Vo).models[0];e[i]=o})),e}(t),r=i.xAxisModel,o=i.yAxisModel;return e=r.axis,n=o.axis,r.getCoordSysModel().coordinateSystem.getCartesian(r.componentIndex,o.componentIndex)}}),e&&n&&(ow(e,t,jT),ow(n,t,jT))}),this),i},t.dimensions=vI,t.dimIdxMap=ax(vI),t}();function wI(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)SI(s,o[l])&&(r=o[l]);else for(var u in o)if(pt(o,u)&&SI(s,o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function SI(t,e){if(!e)return!1;var n=function(t,e,n){var i=n?qx(t,null):t.getExtentUnsafe(Fx,null),r=i[0],o=i[1];return Zo(r,o)?r===e||o===e?Pb:r<e&&o>e?Lb:Ob:Ob}(e.scale,0,!1),i=e&&"category"!==e.type&&"time"!==e.type&&n!==Ob;return i&&"auto"===t&&function(t){return Ab(t).noOnMyZero}(e)&&(i=!1),i}function TI(t){for(var e,n=B(t),i=[],r=n.length-1;r>=0;r--){var o=t[+n[r]];Qx(o.scale)&&null==Fb(o.model,o.type,!0)&&(o.model.get("alignTicks")&&null==o.model.get("interval")?i.push(o):e=o)}e||(e=i.pop()),e&&P(i,(function(t){t.__alignTo=e}))}function MI(t,e){P(t.x,(function(t){return II(t,e.x,e.width)})),P(t.y,(function(t){return II(t,e.y,e.height)}))}function II(t,e,n){var i=[0,n],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e)}function CI(t,e,n,i,r,o,a){kI(i,r,kw.estimate,e,!1,a);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=null==function(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]}(s,(function(t){return t>0}));return Hh(i,s,!0,!0,n),MI(r,i),l;function u(t){P(r[Sh[t]],(function(e){if(Eb(e.model)){var n=o.ensureRecord(e.model),i=n.labelInfoList;if(i)for(var r=0;r<i.length;r++){var a=i[r],s=e.scale.normalize(Hb(e.scale,_T(a.label).labelInfo.tick));s=1===t?1-s:s,c(a.rect,t,s),c(a.rect,1-t,NaN)}var l=n.nameLayout;l&&(s=zb(n.nameLocation)?.5:NaN,c(l.rect,t,s),c(l.rect,1-t,NaN))}}))}function c(e,n,i){var r=t[Sh[n]]-e[Sh[n]],o=e[Th[n]]+e[Sh[n]]-(t[Th[n]]+t[Sh[n]]);r=h(r,1-i),o=h(o,i);var a=xI[n][0],l=xI[n][1];s[a]=Er(s[a],r),s[l]=Er(s[l],o)}function h(t,e){return t>0&&!j(e)&&e>1e-4&&(t/=e),t}}function kI(t,e,n,i,r,o){var a=n===kw.determine;P(e,(function(e){return P(e,(function(e){Eb(e.model)&&(function(t,e,n){var i=VT(e,n);t.updateCfg(i)}(e.axisBuilder,t,e.model),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))}))}));var s={x:0,y:0};function l(e){s[Sh[1-e]]=t[Th[e]]<=.5*o.refContainer[Th[e]]?0:1-e==1?2:1}l(0),l(1),P(e,(function(t,e){return P(t,(function(t){Eb(t.model)&&(("all"===i||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))}))}))}var DI=function(t,e,n,i,r,o){var a="x"===n.axis.dim?"y":"x";TT(t,0,0,i,r,o),zb(t.nameLocation)||P(e.recordMap[a],(function(t){t&&t.labelInfoList&&t.dirVec&&IT(t.labelInfoList,t.dirVec,i,r)}))};const AI=bI;function LI(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];P(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=NI(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(P(n.getAxes(),E(d,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&P(p.baseAxes,E(d,!h||"cross",c)),h&&P(p.otherAxes,E(d,"cross",!1))}}function d(i,s,c){var h=c.model.getModel("axisPointer",r),p=h.get("show");if(p&&("auto"!==p||i||RI(h))){null==s&&(s=h.get("triggerTooltip")),h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};P(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=M(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&k(l,c.textStyle)}}return t.model.getModel("axisPointer",new kp(s,n,i))}(c,u,r,e,i,s):h;var d=h.get("snap"),f=h.get("triggerEmphasis"),g=NI(c.model),v=s||d||"category"===c.type,y=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:v,snap:d,useHandle:RI(h),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(PI(o[i+"AxisId"],n.id)||PI(o[i+"AxisIndex"],n.componentIndex)||PI(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=m){var _=a[m]||(a[m]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=o[m].mapper,y.linkGroup=_}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&P(t.coordSysAxesInfo[NI(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function PI(t,e){return"all"===t||F(t)&&D(t,e)>=0||t===e}function OI(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[NI(t)]}function RI(t){return!!t.get(["handle","show"])}function NI(t){return t.type+"||"+t.id}var BI={},zI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=OI(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=RI(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent();(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=OI(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){BI[t]=e},e.getAxisPointerClass=function(t){return t&&BI[t]},e.type="axis",e}(Vv);const EI=zI;var FI=Bo(),VI=["splitArea","splitLine","minorSplitLine","breakArea"],HI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return n(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new Ar,this.group.add(this._axisGroup),Eb(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),P(VI,(function(t){e.get([t,"show"])&&GI[t](this,this._axisGroup,e,e.getCoordSysModel(),i)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||zh(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r))},e.prototype.remove=function(){FI(this).splitAreaColors=null},e.type="cartesianAxis",e}(EI),GI={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=!1!==a.get("showMinLine"),c=!1!==a.get("showMaxLine");l=F(l)?l:[l];for(var h=i.coordinateSystem.getRect(),p=o.isHorizontal(),d=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],y=s.getLineStyle(),m=0;m<f.length;m++){var _=o.toGlobalCoord(f[m].coord);if((0!==m||u)&&(m!==f.length-1||c)){var x=f[m].tickValue;p?(g[0]=_,g[1]=h.y,v[0]=_,v[1]=h.y+h.height):(g[0]=h.x,g[1]=_,v[0]=h.x+h.width,v[1]=_);var b=d++%l.length,w=new zc({anid:null!=x?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:k({stroke:l[b]},y),silent:!0});Oh(w.shape,y.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine").getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],p=a.getLineStyle(),d=0;d<u.length;d++)for(var f=0;f<u[d].length;f++){var g=o.toGlobalCoord(u[d][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new zc({anid:"minor_line_"+u[d][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:p,silent:!0});Oh(v.shape,p.lineWidth),e.add(v)}},splitArea:function(t,e,n,i,r){!function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=FI(t).splitAreaColors,p=ut(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){d=(g+(c-1)*f)%c;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();for(s=F(s)?s:[s],f=1;f<u.length;f++){var m=r.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=m-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,v=x+(w=m-x));var S=u[f-1].tickValue;null!=S&&p.set(S,d),e.add(new ul({anid:null!=S?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:k({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}FI(t).splitAreaColors=p}}}(t,e,n,i)},breakArea:function(t,e,n,i,r){var o=fT(),a=n.axis.scale;o&&"ordinal"!==a.type&&o.rectCoordBuildBreakAxis(e,t,n,i.coordinateSystem.getRect(),r)}},WI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="xAxis",e}(HI),UI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=WI.type,e}return n(e,t),e.type="yAxis",e}(HI),XI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return n(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ul({shape:t.coordinateSystem.getRect(),style:k({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Vv),YI={offset:0};function ZI(t){t.registerComponentView(XI),t.registerComponentModel($T),t.registerCoordinateSystem("cartesian2d",AI),dI(t,"x",lI,YI),dI(t,"y",lI,YI),t.registerComponentView(WI),t.registerComponentView(UI),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}var qI=zc.prototype,jI=Gc.prototype,KI=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function $I(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}n(e,t)}(KI);const QI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return n(e,t),e.prototype.getDefaultStyle=function(){return{stroke:hf.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new KI},e.prototype.buildPath=function(t,e){$I(e)?qI.buildPath.call(this,t,e):jI.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return $I(this.shape)?qI.pointAt.call(this,t):jI.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=$I(e)?[e.x2-e.x1,e.y2-e.y1]:jI.tangentAt.call(this,t);return bt(n,n)},e}(qs);var JI=["fromSymbol","toSymbol"];function tC(t){return"_"+t+"Type"}function eC(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"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=lm(r);return i+l+um(a||0,l)+(o||"")+(s||"")}function nC(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"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=lm(r),u=um(a||0,l),c=sm(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function iC(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var rC=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return n(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=t.getItemLayout(e),o=t.getItemVisual(e,"z2"),a=function(t){var e=new QI({name:"line",subPixelOptimize:!0});return iC(e.shape,t),e}(r);a.shape.percent=0,vh(a,{z2:$(o,0),shape:{percent:1}},i,e),this.add(a),P(JI,(function(n){var i=nC(n,t,e);this.add(i),this[tC(n)]=eC(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};iC(a.shape,o),gh(r,a,i,e),P(JI,(function(n){var i=eC(n,t,e),r=tC(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=nC(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,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),d=p.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),s=p.getModel(["select","lineStyle"]).getLineStyle(),u=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),l=op(p)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,P(JI,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Yl.length;n++){var i=Yl[n],o=r.getState(i);if(o){var a=o.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 v=i.getRawValue(e);rp(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||hf.color.neutral99,defaultOpacity:f.opacity,defaultText:(null==v?t.getName(e):isFinite(v)?$r(v,10):v)+""});var y=this.getTextContent();if(y){var m=l.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=m.get("position")||"middle";var _=m.get("distance");F(_)||(_=[_,_]),y.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),Lu(this,c,h,u)},e.prototype.highlight=function(){yu(this)},e.prototype.downplay=function(){mu(this)},e.prototype.updateLayout=function(t,e){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");iC(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=_t([],u,l);if(bt(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,p=void 0,d=i.__labelDistance,f=d[0]*r,g=d[1]*r,v=s/2,y=a.tangentAt(v),m=[y[1],-y[0]],_=a.pointAt(v);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var x=y[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var w=void 0;switch(i.__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(i.__position){case"end":i.x=c[0]*f+u[0],i.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*x+l[0],i.y=l[1]+w,h=y[0]<0?"right":"left",i.originX=-f*x,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*x+u[0],i.y=u[1]+w,h=y[0]>=0?"right":"left",i.originX=f*x,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||h})}}}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}(Ar);const oC=rC;function aC(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:op(e)}}function sC(t){return isNaN(t[0])||isNaN(t[1])}function lC(t){return t&&!sC(t[0])&&!sC(t[1])}const uC=function(){function t(t){this.group=new Ar,this._LineCtor=t||oC}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=aC(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=aC(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=n,t.ensureState("emphasis").hoverLayer=2)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++)if(lC(e.getItemLayout(r))){var o=new this._LineCtor(e,r,this._seriesScope);o.traverse(i),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Yh(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(lC(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);lC(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}();var cC={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},hC=B(cC);R(Ji,(function(t,e){return t[e]=1,t}),{}),Ji.join(", ");var pC=["","style","shape","extra"],dC=Bo();function fC(t,e,n,i,r){var o=t+"Animation",a=dh(t,i,r)||{},s=dC(e).userDuring;return a.duration>0&&(a.during=s?z(xC,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),C(a,n[o]),a}function gC(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=dC(t),u=e.style;l.userDuring=e.during;var c={},h={};if(function(t,e,n){for(var i=0;i<hC.length;i++){var r=hC[i],o=cC[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<Ji.length;i++){var s=Ji[i];null!=e[s]&&(n[s]=e[s])}}(0,e,h),"compound"===t.type)for(var p=t.shape.paths,d=e.shape.paths,f=0;f<d.length;f++)wC("shape",d[f],p[f]);else wC("shape",e,h),wC("extra",e,h);if(!o&&s&&(function(t,e,n){for(var i=e.transition,r=yC(i)?Ji:To(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];n[a]=s}}}(t,e,c),bC("shape",t,e,c),bC("extra",t,e,c),function(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!yC(a)){var l=To(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=o[f=l[u]];r[f]=c}}else if(t.getAnimationStyleProps&&(yC(s)||yC(a)||D(s,"style")>=0)){var h=t.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var d=B(n);for(u=0;u<d.length;u++){var f;p[f=d[u]]&&(c=o[f],r[f]=c)}}}}}}(t,e,u,c)),h.style=u,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,h,a),function(t,e){pt(e,"silent")&&(t.silent=e.silent),pt(e,"ignore")&&(t.ignore=e.ignore),t instanceof Ya&&pt(e,"invisible")&&(t.invisible=e.invisible),t instanceof qs&&pt(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),s)if(o){var g={};P(pC,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(g[t]=g[t]||{}),C(t?g[t]:g,n.enterFrom))}));var v=fC("enter",t,e,n,r);v.duration>0&&t.animateFrom(g,v)}else!function(t,e,n,i,r){if(r){var o=fC("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,c);vC(t,e),u?t.dirty():t.markRedraw()}function vC(t,e){for(var n=dC(t).leaveToProps,i=0;i<pC.length;i++){var r=pC[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=dC(t).leaveToProps={}),r&&(n[r]=n[r]||{}),C(r?n[r]:n,o.leaveTo))}}function yC(t){return"all"===t}var mC={},_C={setTransform:function(t,e){return mC.el[t]=e,this},getTransform:function(t){return mC.el[t]},setShape:function(t,e){var n=mC.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=mC.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=mC.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=mC.el.style;if(e)return e[t]},setExtra:function(t,e){return(mC.el.extra||(mC.el.extra={}))[t]=e,this},getExtra:function(t){var e=mC.el.extra;if(e)return e[t]}};function xC(){var t=this,e=t.el;if(e){var n=dC(e).userDuring,i=t.userDuring;n===i?(mC.el=e,i(_C)):t.el=t.userDuring=null}}function bC(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),yC(l))C(o,a);else for(var u=To(l),c=0;c<u.length;c++){var h=a[d=u[c]];o[d]=h}else if(yC(s)||D(s,t)>=0){!o&&(o=i[t]={});var p=B(a);for(c=0;c<p.length;c++){var d;h=a[d=p[c]],SC(r[d],h)&&(o[d]=h)}}}}}function wC(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=B(i),a=0;a<o.length;a++){var s=o[a];r[s]=ci(i[s])}}function SC(t,e){return L(t)?t!==e:null!=t&&isFinite(t)}var TC=Bo(),MC=["percent","easing","shape","style","extra"];function IC(t,e,n){if(n.isAnimationEnabled()&&e)if(F(e))P(e,(function(e){IC(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=dh("enter",n,0);r=o&&o.duration}if(i&&r){var a=TC(t);P(pC,(function(n){var o;n&&!t[n]||(i.sort((function(t,e){return t.percent-e.percent})),P(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var u=B(l);if(n||(u=N(u,(function(t){return D(MC,t)<0}))),u.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;P(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,l,u,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing))}))}}}var CC=Bo(),kC=M,DC=z,AC=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=E(LC,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Ar,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);NC(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&Ww(i).w>a)return!0;if(o){var s=OI(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[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 o=CC(t).pointerEl=new ep[r.type](kC(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=CC(t).labelEl=new Tl(kC(e.label));t.add(r),OC(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=CC(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=CC(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),OC(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Eh(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){$t(t.event)},onmousedown:DC(this._onHandleDragMove,this,0,0),drift:DC(this._onHandleDragMove,this),ondragend:DC(this._onHandleDragEnd,this)}),i.add(r)),NC(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");F(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,ey(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){LC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,RC(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(RC(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(RC(i)),CC(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),ny(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}();function LC(t,e,n,i){PC(CC(n).lastProp,i)||(CC(n).lastProp=i,e?gh(n,i,t):(n.stopAnimation(),n.attr(i)))}function PC(t,e){if(U(t)&&U(e)){var n=!0;return P(e,(function(e,i){n=n&&PC(t[i],e)})),!!n}return t===e}function OC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function RC(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function NC(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)}))}function BC(t,e,n,i,r){var o=zC(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Td(a.get("padding")||0),l=a.getFont(),u=ur(o,l),c=r.position,h=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;"right"===d&&(c[0]-=h),"center"===d&&(c[0]-=h/2);var f=r.verticalAlign;"bottom"===f&&(c[1]-=p),"middle"===f&&(c[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,p,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:ap(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function zC(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Nb(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};P(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),H(a)?o=a.replace("{value}",o):V(a)&&(o=a(s))}return o}function EC(t,e,n){var i=[1,0,0,1,0,0];return oe(i,i,n.rotation),re(i,i,n.position),Nh([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}var FC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=o.getGlobalExtent(),u=VC(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=function(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}(i),p=HC[s](o,c,l,u,i.get("seriesDataIndices"),i.ecModel);p.style=h,t.graphicKey=p.type,t.pointer=p}!function(t,e,n,i,r,o){var a=FT.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),BC(e,i,r,o,{position:EC(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(e,t,VT(a.getRect(),n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=VT(e.axis.grid.getRect(),e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=EC(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=VC(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=zr(a[1],u[l]),u[l]=Er(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(AC);function VC(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var HC={line:function(t,e,n,i){var r,o,a;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,i[0]],o=[e,i[1]],a=GC(t),{x1:r[a=a||0],y1:r[1-a],x2:o[a],y2:o[1-a]})}},shadow:function(t,e,n,i,r,o){var a,s,l,u=function(t,e,n){return Ww(t,{fromStat:{sers:O(e,(function(t){return n.getSeriesByIndex(t.seriesIndex)}))},min:1}).w}(t,r,o),c=i[1]-i[0],h=function(t,e,n){return[Er(zr(e[0],e[1]),t-n/2),zr(t+n/2,Er(e[0],e[1]))]}(e,n,u),p=h[0],d=h[1];return{type:"Rect",shape:(a=[p,i[0]],s=[d-p,c],l=GC(t),{x:a[l=l||0],y:a[1-l],width:s[l],height:s[1-l]})}}};function GC(t){return"x"===t.dim?0:1}const WC=FC;var UC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(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:hf.color.border,width:1,type:"dashed"},shadowStyle:{color:hf.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:hf.color.neutral00,padding:[5,7,5,7],backgroundColor:hf.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:hf.color.accent40,throttle:40}},e}(af);const XC=UC;var YC=Bo(),ZC=P;function qC(t,e,n){if(!r.node){var i=e.getZr();YC(i).records||(YC(i).records={}),function(t,e){function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);ZC(YC(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}YC(t).initialized||(YC(t).initialized=!0,n("click",E(KC,"click")),n("mousemove",E(KC,"mousemove")),n("mousewheel",E(KC,"mousewheel")),n("globalout",jC))}(i,e),(YC(i).records[t]||(YC(i).records[t]={})).handler=n}}function jC(t,e,n){t.handler("leave",null,n)}function KC(t,e,n,i){e.handler(t,n,i)}function $C(t,e){if(!r.node){var n=e.getZr();(YC(n).records||{})[t]&&(YC(n).records[t]=null)}}var QC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";qC("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){$C("axisPointer",e)},e.prototype.dispose=function(t,e){$C("axisPointer",e)},e.type="axisPointer",e}(Vv);const JC=QC;function tk(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=No(o,t);if(null==a||a<0||F(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h=u.dim,p="x"===c||"radius"===c?1:0,d=o.mapDimension(h),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(O(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var ek=Bo();function nk(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||z(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){sk(r)&&(r=tk({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=sk(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||sk(r),p={},d={},f={list:[],map:{}},g={showPointer:E(rk,d),showTooltip:E(ok,f)};P(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);P(s.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}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&ik(t,a,g,!1,p)}}))}));var v={};return P(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&P(n.axesInfo,(function(e,i){var r=d[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,ak(e),ak(t)))),v[t.key]=o}}))})),P(v,(function(t,e){ik(c[e],t,g,!0,p)})),function(t,e,n){var i=n.axesInfo=[];P(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(d,c,p),function(t,e,n,i){if(!sk(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=ek(i)[r]||{},a=ek(i)[r]={};P(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&P(n.seriesDataIndices,(function(t){a[t.seriesIndex+"|"+t.dataIndex]=t}))}));var s=[],l=[];function u(t){return{seriesIndex:t.seriesIndex,dataIndex:t.dataIndex}}P(o,(function(t,e){!a[e]&&l.push(u(t))})),P(a,(function(t,e){!o[e]&&s.push(u(t))})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),p}}function ik(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return P(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(h,t,n);c=p.dataIndices,u=p.nestestValue}else{if(!(c=e.indicesOfNearest(i,h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(go(u)){var d=t-u,f=Math.abs(d);f<=a&&((f<a||d>=0&&s<0)&&(a=f,s=d,r=u,o.length=0),P(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&C(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function rk(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ok(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=NI(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function ak(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 sk(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function lk(t){EI.registerAxisPointerClass("CartesianAxisPointer",WC),t.registerComponentModel(XC),t.registerComponentView(JC),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=LI(t,e)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},nk)}function uk(t,e){var n;return P(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var ck=["transition","enterFrom","leaveTo"],hk=ck.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function pk(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?ck:hk,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var dk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return n(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Do(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];P(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=C({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(I(r,i,!0),tf(r,i,{ignoreSize:!0}),nf(n,r),pk(n,r),pk(n,r,"shape"),pk(n,r,"style"),pk(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[uk(e,["left","right"]),uk(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))}),this),n.elements=N(r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){P(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(af),fk={path:null,compoundPath:null,group:Ar,image:el,text:Tl},gk=Bo(),vk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(){this._elMap=ut()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");P(e,(function(e){var a=Po(e.id,null),s=null!=a?n.get(a):null,l=Po(e.parentId,null),u=null!=l?n.get(l):i,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var p=e.textContent,d=e.textConfig;if(h&&function(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||pt(t,"text")))}(h,c,!!d,!!p)){var f=function(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},pt(a,"text")&&(o.text=a.text),pt(a,"rich")&&(o.rich=a.rich),pt(a,"textFill")&&(o.fill=a.textFill),pt(a,"textStroke")&&(o.stroke=a.textStroke),pt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),pt(a,"fontSize")&&(o.fontSize=a.fontSize),pt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),pt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=pt(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),pt(a,"textPosition")&&(i.position=a.textPosition),pt(a,"textOffset")&&(i.offset=a.textOffset),pt(a,"textRotation")&&(i.rotation=a.textRotation),pt(a,"textDistance")&&(i.distance=a.textDistance)}return qS(o,t),P(o.rich,(function(t){qS(t,t)})),{textConfig:i,textContent:r}}(h,c,!0);!d&&f.textConfig&&(d=e.textConfig=f.textConfig),!p&&f.textContent&&(p=f.textContent)}var g=function(t){return t=C({},t),P(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ud),(function(e){delete t[e]})),t}(e),v=e.$action||"merge",y="merge"===v,m="replace"===v;if(y){var _=s;(I=!s)?_=mk(a,u,e.type,n):(_&&(gk(_).isNew=!1),function(t){t.stopAnimation("keyframe"),t.attr(TC(t))}(_)),_&&(gC(_,g,t,{isInit:I}),xk(_,e,r,o))}else if(m){_k(s,e,n,t);var x=mk(a,u,e.type,n);x&&(gC(x,g,t,{isInit:!0}),xk(x,e,r,o))}else"remove"===v&&(vC(s,e),_k(s,e,n,t));var b=n.get(a);if(b&&p)if(y){var w=b.getTextContent();w?w.attr(p):b.setTextContent(new Tl(p))}else m&&b.setTextContent(new Tl(p));if(b){var S=e.clipPath;if(S){var T=S.type,M=void 0,I=!1;if(y){var k=b.getClipPath();M=(I=!k||gk(k).type!==T)?yk(T):k}else m&&(I=!0,M=yk(T));b.setClipPath(M),gC(M,S,t,{isInit:I}),IC(M,S.keyframeAnimation,t)}var D=gk(b);b.setTextConfig(d),D.option=e,function(t,e,n){var i=Ml(t).eventData;t.silent||t.ignore||i||(i=Ml(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}(b,t,e),Uh({el:b,componentModel:t,itemName:b.name,itemTooltipOption:e.tooltip}),IC(b,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++)if((f=null!=(d=Po((p=n[l]).id,null))?r.get(d):null)&&f.isGroup){var u=(g=f.parent)===i,c=gk(f),h=gk(g);c.width=jr(c.option.width,u?o:h.width)||0,c.height=jr(c.option.height,u?a:h.height)||0}for(l=n.length-1;l>=0;l--){var p,d,f;if(f=null!=(d=Po((p=n[l]).id,null))?r.get(d):null){var g=f.parent,v=(h=gk(g),{}),y=Qd(f,p,g===i?{width:o,height:a}:{width:h.width,height:h.height},null,{hv:p.hv,boundingMode:p.bounding},v);if(!gk(f).isNew&&y){for(var m=p.transition,_={},x=0;x<s.length;x++){var b=s[x],w=v[b];m&&(yC(m)||D(m,b)>=0)?_[b]=w:f[b]=w}gh(f,_,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){_k(n,gk(n).option,e,t._lastGraphicModel)})),this._elMap=ut()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Vv);function yk(t){var e=new(pt(fk,t)?fk[t]:Ch(t))({});return gk(e).type=t,e}function mk(t,e,n,i){var r=yk(n);return e.add(r),i.set(t,r),gk(r).id=t,gk(r).isNew=!0,r}function _k(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){_k(t,e,n,i)})),function(t,e,n,i){if(t){var r=t.parent,o=dC(t).leaveToProps;if(o){var a=fC("update",t,e,n,0);a.done=function(){r&&r.remove(t),i&&i()},t.animateTo(o,a)}else r&&r.remove(t),i&&i()}}(t,e,i),n.removeKey(gk(t).id))}function xk(t,e,n,i){t.isGroup||P([["cursor",Ya.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];pt(e,i)?t[i]=$(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),P(B(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=V(i)?i:null}})),pt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var bk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:hf.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:hf.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:hf.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:hf.color.tertiary,fontSize:14}},e}(af);const wk=bk;function Sk(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Tk(t){if(r.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var Mk=Tk(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Ik(t,e){if(!t)return e;e=Sd(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var Ck=Ik(Tk(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),kk=Ik(Mk,"transform"),Dk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(r.transform3dSupported?"will-change:transform;":"");function Ak(t,e,n){var i=t.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!r.transformSupported)return n?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var a=r.transform3dSupported,s="translate"+(a?"3d":"")+"("+i+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+kk+":"+s+";":[["top",0],["left",0],[Mk,s]]}function Lk(t,e,n,i){var o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),u=t.get("shadowColor"),c=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),p=t.getModel("textStyle"),d=Mv(t,"html"),f=c+"px "+h+"px "+l+"px "+u;return o.push("box-shadow:"+f),e&&a>0&&o.push(function(t,e,n){var i="cubic-bezier(0.23,1,0.32,1)",o="",a="";return n&&(a="opacity"+(o=" "+t/2+"s "+i)+",visibility"+o),e||(o=" "+t+"s "+i,a+=(a.length?",":"")+(r.transformSupported?""+kk+o:",left"+o+",top"+o)),Ck+":"+a}(a,n,i)),s&&o.push("background-color:"+s),P(["width","color","radius"],(function(e){var n="border-"+e,i=Sd(n),r=t.get(i);null!=r&&o.push(n+":"+r+("color"===e?"":"px"))})),o.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont());var r=$(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+r+"px");var o=t.get("textShadowColor"),a=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return o&&a&&e.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),P(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(p)),null!=d&&o.push("padding:"+Td(d).join("px ")+"px"),o.join(";")+";"}function Pk(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&function(t,e,n,i,r){Ft(Et,e,i,r,!0)&&Ft(t,n,Et[0],Et[1])}(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 Ok=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,r.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=e.appendTo,a=o&&(H(o)?document.querySelector(o):Z(o)?o:V(o)&&o(t.getDom()));Pk(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!s._enterable){var e=i.handler;Kt(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=Dk+Lk(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Ak(r[0],r[1],!0)+"border-color:"+Dd(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(H(r)&&"item"===n.get("trigger")&&!Sk(n)&&(a=function(t,e,n){if(!H(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Dd(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),u="",c=kk+":";D(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var h=a*Math.PI/180,p=l+r,d=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(u+=";"+s+":-"+Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-p)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),H(t))o.innerHTML=t+a;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var s=0;s<t.length;s++)Z(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(Pk(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style;P(Ak(n[0],n[1]),(function(t){i[t[0]]=t[1]}))}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",r.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(z(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function n(t){var e=t[zt];e&&(e.clearMarkers&&e.clearMarkers(),delete t[zt])}t&&n(t),e&&n(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}();const Rk=Ok;function Nk(t){return Math.max(0,t)}function Bk(t){var e=Nk(t.shadowBlur||0),n=Nk(t.shadowOffsetX||0),i=Nk(t.shadowOffsetY||0);return{left:Nk(e-n),right:Nk(e+n),top:Nk(e-i),bottom:Nk(e+i)}}function zk(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const Ek=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),zk(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;U(t)&&xo(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Tl({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Mv(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),P(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Bk(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;zk(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=Nk(r.borderWidth||0),a=Bk(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(z(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();var Fk=new ul({shape:{x:-1,y:-1,width:2,height:2}}),Vk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(t,e){if(!r.node&&e.getDom()){var n,i=t.getComponent("tooltip"),o=this._renderMode="auto"===(n=i.get("renderMode"))?r.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===o?new Ek(e):new Rk(e,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!r.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")?ey(this,"_updatePosition",50,"fixRate"):ny(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");qC("itemTooltip",this._api,z((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("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!r.node&&n.getDom()){var o=Gk(i,n);this._ticket="";var a=i.dataByCoordSys,s=function(t,e,n){var i=Fo(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Ho(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Ml(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}(i,e,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var u=Fk;u.x=i.x,u.y=i.y,u.update(),Ml(u).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:u},o)}else if(a)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var c=tk(i,e),h=c.point[0],p=c.point[1];null!=h&&null!=p&&this._tryShow({offsetX:h,offsetY:p,target:c.el,position:i.position,positionDefault:"bottom"},o)}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},o))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(Gk(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"===Hk([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=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===Ml(n).ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,Wy(n,(function(t){if(t.tooltipDisabled)return r=o=null,!0;r||o||(null!=Ml(t).dataIndex?r=t:null!=Ml(t).tooltipConfig&&(o=t))}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=z(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=Hk([e.tooltipOption],i),a=this._renderMode,s=[],l=vv("section",{blocks:[],noHeader:!0}),u=[],c=new Iv;P(t,(function(t){P(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,o=e.axis,h=o.scale.parse(r);if(e&&null!=r){var p=zC(r,o,n,t.seriesDataIndices,t.valueLabelOpt),d=vv("section",{header:p,noHeader:!nt(p),sortBlocks:!0,blocks:[]});l.blocks.push(d),P(t.seriesDataIndices,(function(r){var o=n.getSeriesByIndex(r.seriesIndex),l=r.dataIndexInside,f=o.getDataParams(l);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Nb(e.axis,{value:h}),f.axisValueLabel=p,f.marker=c.makeTooltipMarker("item",Dd(f.color),a);var g=Bg(o.formatTooltip(l,!0,null)),v=g.frag;if(v){var y=Hk([o],i).get("valueFormatter");d.blocks.push(y?C({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,p=o.get("order"),d=wv(l,c,a,p,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var f="richText"===a?"\n\n":"<br/>",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Ml(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,p=t.positionDefault,d=Hk([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),f=d.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new Iv;g.marker=v.makeTooltipMarker("item",Dd(g.color),h);var y=Bg(s.formatTooltip(l,!1,u)),m=d.get("order"),_=d.get("valueFormatter"),x=y.frag,b=x?wv(_?C({valueFormatter:_},x):x,v,h,m,i.get("useUTC"),d.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,b,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=Ml(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;H(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=M(o)).content=Wt(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=Hk(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),p=Math.random()+"",d=new Iv;this._showOrMove(c,(function(){var n=M(c.get("formatterParams")||{});this._showTooltipContent(c,h,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,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(c)if(H(c)){var d=t.ecModel.get("useUTC"),f=F(n)?n[0]:n;h=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(h=od(f.axisValue,h,d)),h=kd(h,n,!0)}else if(V(c)){var g=z((function(e,i){e===this._ticket&&(u.setContent(i,l,t,p,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,h=c(n,i,g)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||F(e)?{color:i||r}:F(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),V(e)&&(e=e([n,i],o,r.el,p,{viewSize:[s,l],contentSize:u.slice()})),F(e))n=jr(e[0],s),i=jr(e[1],l);else if(U(e)){var d=e;d.width=u[0],d.height=u[1];var f=jd(d,{width:s,height:l});n=f.x,i=f.y,c=null,h=null}else if(H(e)&&a){var g=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,c=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+c/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+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}(e,p,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=Wk(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=Wk(h)?u[1]/2:"bottom"===h?u[1]:0),Sk(t)&&(g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&P(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&P(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&P(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&P(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,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!r.node&&e.getDom()&&(ny(this,"_updatePosition"),this._tooltipContent.dispose(),$C("itemTooltip",e),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(Vv);function Hk(t,e,n){var i,r=e.ecModel;n?(i=new kp(n,r,r),i=new kp(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof kp&&(a=a.get("tooltip",!0)),H(a)&&(a={formatter:a}),a&&(i=new kp(a,i,r)))}return i}function Gk(t,e){return t.dispatchAction||z(e.dispatchAction,e)}function Wk(t){return"center"===t||"middle"===t}const Uk=Vk;var Xk=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 n(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:hf.size.m,backgroundColor:hf.color.transparent,borderColor:hf.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:hf.color.primary},subtextStyle:{fontSize:12,color:hf.color.quaternary}},e}(af),Yk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=$(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Tl({style:ap(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Tl({style:ap(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!p&&!f,h.silent=!d&&!f,p&&l.on("click",(function(){Ad(p,"_"+t.get("target"))})),d&&h.on("click",(function(){Ad(d,"_"+t.get("subtarget"))})),Ml(l).eventData=Ml(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=jd(v,$d(t,n).refContainer,t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=i.getBoundingRect();var _=y.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new ul({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Vv);function Zk(t){Mo(t,"label",["show"])}var qk=Bo(),jk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return n(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(r.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=qk(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&Zk(n),P(n.data,(function(t){t instanceof Array?(Zk(t[0]),Zk(t[1])):Zk(t)})),C(o=this.createMarkerModelFromSeries(n,this,e),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),qk(t)[r]=o):qk(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return vv("section",{header:this.name,blocks:[vv("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.prototype.getDataParams=function(t,e){var n=Ng.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return qk(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(af);A(jk,Ng.prototype);const Kk=jk;function $k(t,e,n,i,r,o,a){var s=[],l=Ax(e,r)?e.getCalculationInfo("stackResultDimension"):r,u=nD(e,l,t),c=e.hostModel.indicesOfNearest(n,l,u)[0];s[o]=e.get(i,c),s[a]=e.get(l,c);var h=e.get(r,c),p=Jr(e.get(r,c));return(p=Math.min(p,20))>=0&&(s[a]=+s[a].toFixed(p)),[s,h]}var Qk={min:E($k,"min"),max:E($k,"max"),average:E($k,"average"),median:E($k,"median")};function Jk(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!F(e.coord)&&F(r)){var o=tD(e,n,i,t);if((e=M(e)).type&&Qk[e.type]&&o.baseAxis&&o.valueAxis){var a=D(r,o.baseAxis.dim),s=D(r,o.valueAxis.dim),l=Qk[e.type](n,o.valueAxis.dim,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&F(r))for(var u=e.coord,c=0;c<2;c++)Qk[u[c]]&&(u[c]=nD(n,n.mapDimension(r[c]),u[c]));else{e.coord=[];var h=t.getBaseAxis();if(h&&e.type&&Qk[e.type]){var p=i.getOtherAxis(h);p&&(e.value=nD(n,n.mapDimension(p.dim),e.type))}}return e}}function tD(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function eD(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)}function nD(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var iD=Bo(),rD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.init=function(){this.markerGroupMap=ut()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){iD(t).keep=!1})),e.eachSeries((function(t){var r=Kk.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!iD(t).keep&&i.group.remove(t.group)})),function(t,e,n){t.eachSeries((function(t){var i=Kk.getMarkerModelFromSeries(t,n),r=e.get(t.id);if(i&&r&&r.group){var o=$h(i),a=o.z,s=o.zlevel;Qh(r.group,a,s)}}))}(e,r,this.type)},e.prototype.markKeep=function(t){iD(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;P(t,(function(t){var i=Kk.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?_u(t):xu(t))}))}))},e.type="marker",e}(Vv);const oD=rD;var aD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(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}(Kk);const sD=aD;var lD=Bo(),uD=function(t,e,n,i){var r,o=t.getData();if(F(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=K(i.yAxis,i.xAxis);else{var u=tD(i,o,e,t);s=u.valueAxis,l=nD(o,Lx(o,u.valueDataDim),a)}var c="x"===s.dim?0:1,h=1-c,p=M(i),d={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,d.coord[h]=1/0;var f=n.get("precision");f>=0&&W(l)&&(l=+l.toFixed(Math.min(f,20))),p.coord[c]=d.coord[c]=l,r=[p,d,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[Jk(t,r[0]),Jk(t,r[1]),C({},r[2])];return g[2].type=g[2].type||null,I(g[2],g[0]),I(g[2],g[1]),g};function cD(t){return!isNaN(t)&&!isFinite(t)}function hD(t,e,n,i){var r=1-t,o=i.dimensions[t];return cD(e[r])&&cD(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function pD(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(hD(1,n,i,t)||hD(0,n,i,t)))return!0}return eD(t,e[0])&&eD(t,e[1])}function dD(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=jr(s.get("x"),r.getWidth()),u=jr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),p=t.get(c[1],e);o=a.dataToPoint([h,p])}if(ZS(a,"cartesian2d")){var d=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions,cD(t.get(c[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):cD(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var fD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=Kk.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=lD(e).from,o=lD(e).to;r.each((function(e){dD(r,e,!0,t,n),dD(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new uC);this.group.add(l.group);var u=function(t,e,n){var i;i=t?O(t&&t.dimensions,(function(t){var n=e.getData();return C(C({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Sx(i,n),o=new Sx(i,n),a=new Sx([],n),s=O(n.get("data"),E(uD,e,t,n));t&&(s=N(s,E(pD,t)));var l,u=(l=i,!!t?function(t,e,n,i){return Vg(i<2?t.coord&&t.coord[i]:t.value,l[i])}:function(t,e,n,i){return Vg(t.value,l[i])});return r.initData(O(s,(function(t){return t[0]})),null,u),o.initData(O(s,(function(t){return t[1]})),null,u),a.initData(O(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=u.from,h=u.to,p=u.line;lD(e).from=c,lD(e).to=h,e.setData(p);var d=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function y(e,n,r){var o=e.getItemModel(n);dD(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Hy(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:$(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:$(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:$(o.get("symbolSize"),f[r?0:1]),symbol:$(o.get("symbol",!0),d[r?0:1]),style:s})}F(d)||(d=[d,d]),F(f)||(f=[f,f]),F(g)||(g=[g,g]),F(v)||(v=[v,v]),u.from.each((function(t){y(c,t,!0),y(h,t,!1)})),p.each((function(t){var e=p.getItemModel(t),n=e.getModel("lineStyle").getLineStyle();p.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]);var i=e.get("z2");null==n.stroke&&(n.stroke=c.getItemVisual(t,"style").fill),p.setItemVisual(t,{z2:$(i,0),fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:n})})),l.updateData(p),u.line.eachItemGraphicEl((function(t){Ml(t).dataModel=e,t.traverse((function(t){Ml(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(oD);const gD=fD;var vD=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 n(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"]),F(e)&&P(e,(function(t,i){H(t)&&(t={type:t}),e[i]=I(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,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&&Oo(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=ut(),o=O(i,(function(t){return(H(t)||W(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new kp(t,this,this.ecModel))}),this);this._data=N(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&P(this._data,(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;P(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;P(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])&&D(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:hf.size.m,align:"auto",backgroundColor:hf.color.transparent,borderColor:hf.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:hf.color.disabled,inactiveBorderColor:hf.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:hf.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:hf.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:hf.color.tertiary,borderWidth:1,borderColor:hf.color.border},emphasis:{selectorLabel:{show:!0,color:hf.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(af);const yD=vD;var mD=E,_D=P,xD=Ar,bD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return n(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new xD),this.group.add(this._selectorGroup=new xD),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"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=$d(t,n).refContainer,u=t.getBoxLayoutParams(),c=t.get("padding"),h=jd(u,l,c),p=this.layoutInner(t,r,h,i,a,s),d=jd(k({width:p.width,height:p.height},u),l,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(t,e){var n=Td(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new ul({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})}(p,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,o,a){var s=this.getContentGroup(),l=ut(),u=e.get("selectedMode"),c=e.get("triggerEvent"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),_D(e.getData(),(function(r,o){var a=this,p=r.get("name");if(!this.newlineDisabled&&(""===p||"\n"===p)){var d=new xD;return d.newline=!0,void s.add(d)}var f=n.getSeriesByName(p)[0];if(!l.get(p))if(f){var g=f.getData(),v=g.getVisual("legendLineStyle")||{},y=g.getVisual("legendIcon"),m=g.getVisual("style"),_=this._createItem(f,p,o,r,e,t,v,m,y,u,i);_.on("click",mD(wD,p,null,i,h)).on("mouseover",mD(SD,f.name,null,i,h)).on("mouseout",mD(TD,f.name,null,i,h)),n.ssr&&_.eachChild((function(t){var e=Ml(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),c&&_.eachChild((function(t){a.packEventData(t,e,f,o,p)})),l.set(p,!0)}else n.eachRawSeries((function(a){var s=this;if(!l.get(p)&&a.legendVisualProvider){var d=a.legendVisualProvider;if(!d.containName(p))return;var f=d.indexOfName(p),g=d.getItemVisual(f,"style"),v=d.getItemVisual(f,"legendIcon"),y=jn(g.fill);y&&0===y[3]&&(y[3]=.2,g=C(C({},g),{fill:Jn(y,"rgba")}));var m=this._createItem(a,p,o,r,e,t,{},g,v,u,i);m.on("click",mD(wD,null,p,i,h)).on("mouseover",mD(SD,null,p,i,h)).on("mouseout",mD(TD,null,p,i,h)),n.ssr&&m.eachChild((function(t){var e=Ml(t);e.seriesIndex=a.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),c&&m.eachChild((function(t){s.packEventData(t,e,a,o,p)})),l.set(p,!0)}}),this)}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype.packEventData=function(t,e,n,i,r){var o={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:r,seriesIndex:n.seriesIndex};Ml(t).eventData=o},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();_D(t,(function(t){var i=t.type,r=new Tl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});o.add(r),rp(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Au(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,c){var h=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon"),m=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),_D(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Em(h,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var 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[c];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}}(l=y||l||"roundRect",i,a,s,h,f,c),_=new xD,x=i.getModel("textStyle");if(!V(t.getLegendIcon)||y&&"inherit"!==y){var b="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(function(t){var e=t.icon||"roundRect",n=sm(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=hf.color.neutral00,n.style.lineWidth=2),n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:b,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?p+5:-5,S=o,T=r.get("formatter"),M=e;H(T)&&T?M=T.replace("{name}",null!=e?e:""):V(T)&&(M=T(e));var I=f?x.getTextColor():i.get("inactiveColor");_.add(new Tl({style:ap(x,{text:M,x:w,y:d/2,fill:I,align:S,verticalAlign:"middle"},{inheritColor:I})}));var C=new ul({shape:_.getBoundingRect(),style:{fill:"transparent"}}),k=i.getModel("tooltip");return k.get("show")&&Uh({el:C,componentModel:r,itemName:e,itemTooltipOption:k.option}),_.add(C),_.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(_),Au(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Zd(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){Zd("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,f=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?h[d]+=l[f]+p:u[d]+=c[f]+p,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+p+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Vv);function wD(t,e,n,i){TD(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),SD(t,e,n,i)}function SD(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function TD(t,e,n,i){n.usingTHL()||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}const MD=bD;function ID(t,e,n){var i="allSelect"===t||"inverseSelect"===t,r={},o=[];n.eachComponent({mainType:"legend",query:e},(function(n){i?n[t]():n[t](e.name),CD(n,r),o.push(n.componentIndex)}));var a={};return n.eachComponent("legend",(function(t){P(r,(function(e,n){t[e?"select":"unSelect"](n)})),CD(t,a)})),i?{selected:a,legendIndex:o}:{name:e.name,selected:a}}function CD(t,e){var n=e||{};return P(t.getData(),(function(e){var i=e.get("name");if("\n"!==i&&""!==i){var r=t.isSelected(i);pt(n,i)?n[i]=n[i]&&r:n[i]=r}})),n}var kD=ea((function(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 DD(t){t.registerComponentModel(yD),t.registerComponentView(MD),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,kD),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",E(ID,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",E(ID,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",E(ID,"inverseSelect")),t.registerAction("legendSelect","legendselected",E(ID,"select")),t.registerAction("legendUnSelect","legendunselected",E(ID,"unSelect"))}(t)}var AD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return n(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=ef(e);t.prototype.init.call(this,e,n,i),LD(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),LD(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Lp(yD.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:hf.color.accent50,pageIconInactiveColor:hf.color.accent10,pageIconSize:15,pageTextStyle:{color:hf.color.tertiary},animationDurationUpdate:800}),e}(yD);function LD(t,e,n){var i=[1,1];i[t.getOrient().index]=0,tf(e,n,{type:"box",ignoreSize:!!i})}const PD=AD;var OD=Ar,RD=["width","height"],ND=["x","y"],BD=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 n(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new OD),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new OD)},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,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=F(c)?c:[c,c];d("pagePrev",0);var p=n.getModel("pageTextStyle");function d(t,e){var i=t+"DataIndex",o=Eh(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:z(l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new Tl({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=RD[s],u=ND[s],c=RD[1-s],h=ND[1-s];r&&Zd("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=M(n);r&&(g[l]=n[l]-d[l]-p);var v=this._layoutContentAndController(t,i,g,s,l,c,h,u);if(r){if("end"===o)f[s]+=v[l]+p;else{var y=d[l]+p;f[s]-=y,v[u]-=y}v[l]+=d[l]+p,f[1-s]+=v[h]+v[c]/2-d[c]/2,v[c]=Math.max(v[c],d[c]),v[h]=Math.min(v[h],d[h]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Zd(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Zd("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=h[r]>n[r],f=[-h.x,-h.y];e||(f[i]=l[s]);var g=[0,0],v=[-p.x,-p.y],y=$(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?v[i]+=n[r]-p[r]:g[i]+=p[r]+y),v[1-i]+=h[o]/2-p[o]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var m={x:0,y:0};if(m[r]=d?n[r]:h[r],m[o]=Math.max(h[o],p[o]),m[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],d){var _={x:0,y:0};_[r]=Math.max(n[r]-p[r]-y,0),_[o]=m[o],u.setClipPath(new ul({shape:_})),u.__rectSize=_[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&gh(l,{x:x.contentPosition[0],y:x.contentPosition[1]},d?t:null),this._updatePageInfoView(t,x),m},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;P(["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"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",H(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=RD[r],a=ND[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-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,v=d,y=null;f<=c;++f)(!(y=m(l[f]))&&v.e>g.s+i||y&&!_(y,g.s))&&(g=v.i>g.i?v:y)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),v=y;for(f=s-1,g=d,v=d,y=null;f>=-1;--f)(y=m(l[f]))&&_(v,y.s)||!(g.i<v.i)||(v=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=y;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){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;var e,n},e.type="legend.scroll",e}(MD);const zD=BD;function ED(t){Mw(DD),t.registerComponentModel(PD),t.registerComponentView(zD),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}var FD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return n(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new sv(this),lv(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),lv(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Nl},e}(af),VD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return n(e,t),e.type="dataset",e}(Vv);function HD(t,e,n){var i=u.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}function GD(t){return!t.__cursors.get(0)}function WD(t){var e=t.__cursors.get(0);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var UD=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.zlevel=0,o.zlevel2=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__prevIdx={startIdx:0,endIdx:0},i=i||Hi,"string"==typeof e?r=HD(e,n,i):U(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(ht(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return n(e,t),e.prototype.afterBrush=function(){this.__prevIdx=WD(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=HD("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=this.maxRepaintRectCount,a=!1,s=new Le(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===r.length)(e=new Le(0,0,0,0)).copy(t),r.push(e);else{for(var e,n=!1,i=1/0,l=0,u=0;u<r.length;++u){var c=r[u];if(c.intersect(t)){var h=new Le(0,0,0,0);h.copy(c),h.union(t),r[u]=h,n=!0;break}if(a){s.copy(t),s.union(c);var p=t.width*t.height,d=c.width*c.height,f=s.width*s.height-p-d;f<i&&(i=f,l=u)}}a&&(r[l].union(t),n=!0),n||((e=new Le(0,0,0,0)).copy(t),r.push(e)),a||(a=r.length>=o)}}for(var u=WD(this),c=u.startIdx;c<u.endIdx;++c)if(g=t[c]){var h=g.shouldBePainted(n,i,!0,!0);(v=g.__isRendered&&(g.__dirty&$e||!h)?g.getPrevPaintRect():null)&&l(v);var p=h&&(g.__dirty&$e||!g.__isRendered)?g.getPaintRect():null;p&&l(p)}var d,f=this.__prevIdx;for(c=f.startIdx;c<f.endIdx;++c){var g,v;h=(g=e[c])&&g.shouldBePainted(n,i,!0,!0),!g||h&&g.__zr||!g.__isRendered||(v=g.getPrevPaintRect())&&l(v)}do{for(d=!1,c=0;c<r.length;)if(r[c].isZero())r.splice(c,1);else{for(var y=c+1;y<r.length;)r[c].intersect(r[y])?(d=!0,r[c].union(r[y]),r.splice(y,1)):y++;c++}}while(d);return this._paintRects=r,r},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,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,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var h=this.domBack;function p(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;q(e)?(a=(e.global||e.__width===i&&e.__height===o)&&e.__canvasGradient||hm(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=bm(r,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(h,t,n,i,o),r.restore())}!n||s?p(0,0,o,a):n.length&&P(n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(Ot);const XD=UD;var YD=1e5,ZD=314159,qD=void 0;function jD(t,e,n,i){var r=new XD(t,e,e.dpr);return r.zlevel=n,r.zlevel2=i,r.__builtin__=!0,KD(r),r}function KD(t){t.__cursorStack=[],t.__cursors=ut()}function $D(t,e){for(var n=t.__cursorStack,i=0;i<n.length;i++)e(t.__cursors.get(n[i]))}function QD(t,e){var n=t.layers;return n[e]||(n[e]=new Array(3))}function JD(t,e,n){for(var i=t.layerStack,r=0;r<i.length;r++){var o=i[r].zl,a=i[r].zl2,s=t.layers[o][a];n&&(n&tA&&!s.__builtin__||n&eA&&s.__builtin__||n&nA&&s===t.hoverlayer)||e(s,o,a,r)}}var tA=1,eA=2,nA=4,iA=tA|nA,rA=function(){function t(t,e,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();if(this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||Hi,this._singleCanvas=r,this.root=t,t.style&&(ht(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],r){var o=t,a=o.width,s=o.height;null!=n.width&&(a=n.width),null!=n.height&&(s=n.height),this.dpr=n.devicePixelRatio||1,o.width=a*this.dpr,o.height=s*this.dpr,this._width=a,this._height=s;var l=jD(o,this,ZD,0);l.initContext(),this._insertLayer(l,ZD,0,!0),this._domRoot=t}else{this._width=dm(t,0,n),this._height=dm(t,1,n);var u=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(u)}}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,n=$((e=t&&!U(t)?{paintAll:!!t}:t||{}).refresh,!0),i=$(e.refreshHover,!1);if(i&&(this._hoverLayerDirty=2),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var r=this.storage.getDisplayList(!0);this._updateLayerStatus(r,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(r,o,this._redrawId);var a=this._backgroundColor;return JD(this._i,(function(t,e,n,i){t.refresh&&t.refresh(0===i?a:null)}),eA),this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=qD,n!==qD&&(e||2!==n||(e=this._i.hoverlayer=this._ensureLayer(YD)),e)){e.clear();for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=0,a=t.length;o<a;o++){var s=t[o];if(s.__inHover){i||(i=e.ctx).save();var l=s.__hoverStyle,u=void 0;l&&(u=s.style,s.style=l),Om(i,s,r),l&&(s.style=u)}}i&&(Rm(i,r),i.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(YD)},t.prototype.paintOne=function(t,e){Pm(t,e)},t.prototype._paintList=function(t,e,n){if(this._redrawId===n){var i=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),i)JD(this._i,(function(t){t.afterBrush&&t.afterBrush()}),iA),this._paintHoverList(t);else{var r=this;on((function(){r._paintList(t,e,n)}))}}},t.prototype._compositeManually=function(){var t=this._ensureLayer(ZD).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),JD(this._i,(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}),tA)},t.prototype._doPaintList=function(t,e){var n=this,i=!0;return JD(this._i,(function(r){var o=!1;if($D(r,(function(t){(t.drawIdx<t.endIdx||t.notClearIdx>=0)&&(o=!0)})),o||r.__dirty){var a=n._opts.useDirtyRect&&!GD(r)?r.createRepaintRects(t,e,n._width,n._height):null,s=n._i.layerStack[0],l=!0;if(r.__dirty){l=!1,r.__dirty=!1;var u=r.zlevel===s.zl&&r.zlevel2===s.zl2?n._backgroundColor:null;r.clear(!1,u,a)}$D(r,(function(e){var o=n._paintPerCursor(r,e,t,a,l);i=i&&o}))}}),iA),r.wxa&&JD(this._i,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),i},t.prototype._paintPerCursor=function(t,e,n,i,r){var o=t.ctx;if(i)if(i.length)for(var a=this.dpr,s=0;s<i.length;++s){var l=i[s];o.save(),o.beginPath(),o.rect(l.x*a,l.y*a,l.width*a,l.height*a),o.clip(),this._paintPerCursorInRect(t,e,n,l,r),o.restore()}else e.drawIdx=e.endIdx;else o.save(),this._paintPerCursorInRect(t,e,n,null,r),o.restore();return e.drawIdx>=e.endIdx},t.prototype._paintPerCursorInRect=function(t,e,n,i,r){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:r}},a=t.ctx,s=GD(t),l=s&&u.getTime(),c=e.drawIdx,h=e.notClearIdx,p=h>=0?Math.min(h,c):c;p<e.endIdx;p++){var d=n[p];if(!(p<c)||d.notClear){if(d.__inHover&&(this._hoverLayerDirty=2),null!=i){var f=d.getPaintRect();f&&f.intersect(i)&&(Om(a,d,o),d.setPrevPaintRect(f))}else Om(a,d,o);if(s&&u.getTime()-l>15){p++;break}}}Rm(a,o),e.drawIdx=Math.max(p,c)},t.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},t.prototype._ensureLayer=function(t,e,n){e=e||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(t=ZD,e=0);var r=QD(this._i,t)[e];return r||(r=jD("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&I(r,this._layerConfig[t],!0),(n||i&&t!==ZD)&&(r.virtual=!0),this._insertLayer(r,t,e,!1),r.initContext()),r},t.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},t.prototype._insertLayer=function(t,e,n,i){var r=this._i,o=r.layers,a=r.layerStack,s=this._domRoot,l=null;if((!o[e]||!o[e][n])&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(t)){for(var u=a.length,c=0;c<u&&(a[c].zl<e||a[c].zl===e&&a[c].zl2<n);)c++;if(c>0&&(l=QD(r,a[c-1].zl)[a[c-1].zl2]),a.splice(c,0,{zl:e,zl2:n}),QD(r,e)[n]=t,!i&&!t.virtual)if(l){var h=l.dom;h.nextSibling?s.insertBefore(t.dom,h.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom);t.painter||(t.painter=this)}},t.prototype.eachLayer=function(t,e){return JD(this._i,(function(n,i){t.call(e,n,i)}))},t.prototype.eachBuiltinLayer=function(t,e){return JD(this._i,(function(n,i){t.call(e,n,i)}),tA)},t.prototype.eachOtherLayer=function(t,e){return JD(this._i,(function(n,i){t.call(e,n,i)}),eA)},t.prototype.getLayers=function(){var t={};return JD(this._i,(function(e,n,i){t[e.id]=e})),t},t.prototype._updateLayerStatus=function(t,e){var n,i=this;if(i._singleCanvas)for(var r=1;r<t.length;r++)if((g=t[r]).zlevel!==t[r-1].zlevel||g.incremental){i._needsManuallyCompositing=!0;break}JD(i._i,(function(t){t.__dirty=!1,$D(t,(function(t){t.used=!1,t.endIdxNew=0,t.notClearIdx=-1}))}),iA);for(var o,a,s,l,u,c=null,h=null,p=!1,d=0,f=t.length;d<f;d++){var g,v=(g=t[d]).zlevel,y=g.incremental,m=void 0;if(n!==v&&(n=v,p=!1),y?(p=!0,m=1):m=p?2:0,c&&v===c.zlevel&&m===c.zlevel2||(h=null,(c=i._ensureLayer(v,m)).__builtin__)){if(!(h&&y===h.key||(a=y,s=void 0,l=void 0,u=void 0,l=(o=c).__cursors,u=+a,(h=l.get(u)||(o.__cursorStack.push(u),l.set(u,((s={key:u}).startIdx=s.drawIdx=s.endIdx=s.endIdxNew=0,s.used=!1,s.first=s.last=NaN,s.notClearIdx=-1,s)))).used)))if(h.used=!0,e||h.first!==g.id)c.__dirty=!0,h.first=g.id,h.startIdx=h.drawIdx=d,h.endIdx=d+1;else{var _=d-h.startIdx;h.startIdx=d,h.drawIdx+=_,h.endIdx+=_}h.endIdxNew=d+1,g.__dirty&$e&&!g.__inHover&&((!y||!g.notClear&&d<h.drawIdx)&&(c.__dirty=!0),y&&g.notClear&&h.notClearIdx<0&&(h.notClearIdx=d))}else T("ZLevel "+v+" has been used by unknown layer "+c.id)}JD(i._i,(function(e){for(var n=e.__cursorStack,r=e.__cursors,o=n.length-1;o>=0;o--){var a=r.get(n[o]);if(a.used){var s=a.endIdxNew;(GD(e)?s<a.drawIdx:s!==a.endIdx||!s||t[s-1].id!==a.last)&&(e.__dirty=!0),a.endIdx=a.endIdxNew,a.last=s?t[s-1].id:NaN}else e.__dirty=!0,r.removeKey(n[o]),n.splice(o,1)}e.__dirty&&($D(e,(function(t){t.drawIdx=t.startIdx})),i._hoverLayerDirty===qD&&(i._hoverLayerDirty=1))}),iA)},t.prototype.clear=function(){return JD(this._i,(function(t){t.clear(),KD(t)}),tA),this},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,JD(this._i,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?I(n[t],e,!0):n[t]=e,JD(this._i,(function(t,e){I(t,n[e],!0)}))}},t.prototype.delLayer=function(t){for(var e=this._i.layerStack,n=this._i.layers,i=e.length-1;i>=0;i--){var r=e[i];if(r.zl===t){var o=n[t][r.zl2];if(o.__builtin__)continue;if(e.splice(i,1),n[t][r.zl2]=void 0,!o.virtual){var a=o.dom.parentNode;a&&a.removeChild(o.dom)}}}},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;null!=t&&(i.width=t),null!=e&&(i.height=e),t=dm(r,0,i),e=dm(r,1,i),n.style.display="",this._width===t&&e===this._height||(n.style.width=t+"px",n.style.height=e+"px",JD(this._i,(function(n){n.resize(t,e)})),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this._ensureLayer(ZD).resize(t,e)}return this},t.prototype.clearLayer=function(t){P(this._i.layers[t],(function(t){t&&!t.__builtin__&&t.clear()}))},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[314159][0].dom;var e=new XD("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;JD(this._i,(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Om(n,u,o)}Rm(n,o)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const oA=rA}}}));