chatlab-cli 0.24.1 → 0.25.0

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 (60) hide show
  1. package/dist/{chunk-N5DGZQB4.mjs → chunk-4OMV4VNH.mjs} +567 -97
  2. package/dist/chunk-4OMV4VNH.mjs.map +1 -0
  3. package/dist/{chunk-CIIQ3S2X.mjs → chunk-CIBTUWAE.mjs} +7 -7
  4. package/dist/{chunk-43XWYC3M.mjs → chunk-E65ABM3C.mjs} +168 -72
  5. package/dist/chunk-E65ABM3C.mjs.map +1 -0
  6. package/dist/{chunk-ZL322NVL.mjs → chunk-FSHVDWI2.mjs} +109 -44
  7. package/dist/chunk-FSHVDWI2.mjs.map +1 -0
  8. package/dist/{chunk-QY6P2YS7.mjs → chunk-GNT5G74Z.mjs} +2 -2
  9. package/dist/{chunk-QJI6AOAT.mjs → chunk-TCPXAX3F.mjs} +2 -2
  10. package/dist/cli.mjs +2 -2
  11. package/dist/{http-TPX74BLK.mjs → http-PMNZ42EN.mjs} +6 -6
  12. package/dist/{import-B745DRHD.mjs → import-OP7R4CYY.mjs} +4 -4
  13. package/dist/index.mjs +6 -6
  14. package/dist/{mcp-YWAVG5XW.mjs → mcp-ABXNFUJO.mjs} +3 -3
  15. package/dist/{stream-import-OPALPVWF.mjs → stream-import-L6RJHH4L.mjs} +3 -3
  16. package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-BUwpIerl.js +161 -0
  17. package/dist-web/assets/{EChartWordcloud-VpNJDurs.js → EChartWordcloud-CzhfrEF_.js} +1 -1
  18. package/dist-web/assets/{MessageExportModal-CSfaY25B.js → MessageExportModal-BAJKWX4y.js} +1 -1
  19. package/dist-web/assets/{electron-BUeXfvxT.js → electron-CZt36wW5.js} +1 -1
  20. package/dist-web/assets/electron-CwERrTWp.js +1 -0
  21. package/dist-web/assets/{fetch-DzNuFdFM.js → fetch-BxFAkm7O.js} +1 -1
  22. package/dist-web/assets/{fetch-BohUj3CQ.js → fetch-CgBIWyAo.js} +1 -1
  23. package/dist-web/assets/{fetch-B2q6973s.js → fetch-D4p9vj1A.js} +1 -1
  24. package/dist-web/assets/{fetch-Ck3tjoLa.js → fetch-DD1EGRKV.js} +1 -1
  25. package/dist-web/assets/{fetch-BtHwWs8A.js → fetch-DO8lty7_.js} +1 -1
  26. package/dist-web/assets/{fetch-BGMRmQx0.js → fetch-DXfZysDf.js} +1 -1
  27. package/dist-web/assets/{fetch-DypPduyQ.js → fetch-GMkMBzBS.js} +1 -1
  28. package/dist-web/assets/{fetch-RDFt3hmp.js → fetch-JzVEwamn.js} +1 -1
  29. package/dist-web/assets/{fetch-CARsBVl0.js → fetch-qoGEVjNg.js} +1 -1
  30. package/dist-web/assets/{fetch-BneHn5qk.js → fetch-yWwp067l.js} +1 -1
  31. package/dist-web/assets/{index-Bvlj3dMn.js → index-BrS_VrIY.js} +1 -1
  32. package/dist-web/assets/index-C1t-kzfo.css +1 -0
  33. package/dist-web/assets/{index-DCWvD-4L.js → index-Cvlw0RLu.js} +2 -2
  34. package/dist-web/assets/index-DABpUm3J.js +9 -0
  35. package/dist-web/assets/{index-C5LrQG3N.js → index-DvWI6Yqa.js} +4 -4
  36. package/dist-web/assets/{index-BvaWRM6_.js → index-O0PG26_v.js} +1 -1
  37. package/dist-web/assets/index-OsjX5hXw.js +173 -0
  38. package/dist-web/assets/vendor-echarts-CITQeskI.js +11 -0
  39. package/dist-web/assets/{vendor-echarts-wordcloud-CZ9gsX8l.js → vendor-echarts-wordcloud-B1kQMklB.js} +1 -1
  40. package/dist-web/assets/{vendor-nuxt-ui-BYU7dz8t.js → vendor-nuxt-ui-C_8CsH6e.js} +1 -1
  41. package/dist-web/assets/{vendor-reka-ui-CnB0mMNX.js → vendor-reka-ui-CIMXwvEp.js} +1 -1
  42. package/dist-web/assets/{web-CXPkmhis.js → web-4rtrAcLu.js} +1 -1
  43. package/dist-web/index.html +4 -4
  44. package/package.json +1 -1
  45. package/dist/chunk-43XWYC3M.mjs.map +0 -1
  46. package/dist/chunk-N5DGZQB4.mjs.map +0 -1
  47. package/dist/chunk-ZL322NVL.mjs.map +0 -1
  48. package/dist-web/assets/DebugToolsPanel.vue_vue_type_script_setup_true_lang-BBDrsJfe.js +0 -161
  49. package/dist-web/assets/electron-BynNUuEA.js +0 -1
  50. package/dist-web/assets/index-BRwEubUe.js +0 -173
  51. package/dist-web/assets/index-DB-iqXzV.css +0 -1
  52. package/dist-web/assets/index-DS1rzk1I.js +0 -8
  53. package/dist-web/assets/vendor-echarts-C5u62NnM.js +0 -11
  54. /package/dist/{chunk-CIIQ3S2X.mjs.map → chunk-CIBTUWAE.mjs.map} +0 -0
  55. /package/dist/{chunk-QY6P2YS7.mjs.map → chunk-GNT5G74Z.mjs.map} +0 -0
  56. /package/dist/{chunk-QJI6AOAT.mjs.map → chunk-TCPXAX3F.mjs.map} +0 -0
  57. /package/dist/{http-TPX74BLK.mjs.map → http-PMNZ42EN.mjs.map} +0 -0
  58. /package/dist/{import-B745DRHD.mjs.map → import-OP7R4CYY.mjs.map} +0 -0
  59. /package/dist/{mcp-YWAVG5XW.mjs.map → mcp-ABXNFUJO.mjs.map} +0 -0
  60. /package/dist/{stream-import-OPALPVWF.mjs.map → stream-import-L6RJHH4L.mjs.map} +0 -0
@@ -0,0 +1,11 @@
1
+ import{r as gn,m as X,i as $,a as N,b as le,e as we,c as Qs,d as K,f as q,g as T,h as dt,j as ue,k as _m,l as F,n as Q,P as Ve,o as _f,p as Hn,q as Ie,s as J,t as Sm,u as xm,Z as Gt,v as bm,w as G,x as ie,T as ua,y as Wn,z as Ct,A as rd,B as ad,C as Ae,D as nd,E as Un,F as wm,G as Tm,H as Cm,I as j,J as xo,K as id,S as Nr,R as tu,L as Ca,M as vr,N as fe,O as or,Q as ru,U as au,V as od,W as oe,X as Mm,Y as nu,_ as sd,$ as ge,a0 as Dm,a1 as pe,a2 as ld,a3 as Vr,a4 as Yn,a5 as se,a6 as gt,a7 as Xe,a8 as de,a9 as ha,aa as Qe,ab as Me,ac as Z,ad as Gi,ae as Am,af as st,ag as Js,ah as Lm,ai as Im,aj as Fi,ak as Pm,al as Zn,am as Sf,an as Fo,ao as km,ap as yn,aq as Ir,ar as Rm,as as ud,at as xf,au as Ho,av as fd,aw as Em,ax as Om,ay as Ja,az as Bm,aA as bf,aB as wf,aC as Nm,aD as Vm,aE as cd,aF as Er,aG as Tf,aH as vd,aI as Cf,aJ as sr,aK as Ye,aL as Li,aM as Wo,aN as hd,aO as zm,aP as ar,aQ as Xn,aR as Gm,aS as Fm,aT as fa,aU as Mf,aV as Hm,aW as el,aX as Wm,aY as Um,aZ as Ym,a_ as Zm,a$ as mn,b0 as Xm,b1 as dd,b2 as $m,b3 as Df,b4 as Km,b5 as qm,b6 as jm}from"./vendor-zrender-DFl4U2Oe.js";var tl=function(r,t){return tl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},tl(r,t)};function H(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tl(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Af=1e-4,pd=20;function Qm(r){return r.replace(/^\s+|\s+$/g,"")}var _n=Math.min,je=Math.max,bt=Math.abs;function ve(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var re=Jm;function Jm(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return rl(r,t,e)}function rl(r,t,e){return $(r)?Qm(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function ke(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),pd),r=(+r).toFixed(t),e?r:+r}function Ar(r){return r.sort(function(t,e){return t-e}),r}function kt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return e0(r)}function e0(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function gd(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(bt(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function t0(r,t){var e=gn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=X(r,function(v){return(isNaN(v)?0:v)/e*a*100}),i=a*100,o=X(n,function(v){return Math.floor(v)}),s=gn(o,function(v,d){return v+d},0),l=X(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return X(o,function(v){return v/a})}function r0(r,t){var e=Math.max(kt(r),kt(t)),a=r+t;return e>pd?a:ke(a,e)}function yd(r){var t=Math.PI*2;return(r%t+t)%t}function Hi(r){return r>-Af&&r<Af}var a0=/^(?:(\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 zr(r){if(r instanceof Date)return r;if($(r)){var t=a0.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function n0(r){return Math.pow(10,iu(r))}function iu(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function md(r,t){var e=iu(r),a=Math.pow(10,e),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Lf(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Wi(r){var t=parseFloat(r);return t==r&&(t!==0||!$(r)||r.indexOf("x")<=0)?t:NaN}function i0(r){return!isNaN(Wi(r))}function _d(){return Math.round(Math.random()*9)}function Sd(r,t){return t===0?r:Sd(t,r%t)}function If(r,t){return r==null?t:t==null?r:r*t/Sd(r,t)}var o0="[ECharts] ",s0=typeof console<"u"&&console.warn&&console.log;function l0(r,t,e){s0&&console[r](o0+t)}function xd(r,t){l0("error",r)}function Be(r){throw new Error(r)}function Pf(r,t,e){return(t-r)*e+r}var bd="series\0",u0="\0_ec_\0";function Le(r){return r instanceof Array?r:r==null?[]:[r]}function Ui(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var kf=["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 $n(r){return K(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function f0(r){return K(r)&&!(r instanceof Array)}function c0(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=q();T(t,function(l,u){if(!K(l)){t[u]=null;return}});var s=v0(r,o,e);return(a||n)&&h0(s,r,o,t),a&&d0(s,t),a||n?p0(s,t,n):i&&g0(s,t),y0(s),s}function v0(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||Sn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function h0(r,t,e,a){T(a,function(n,i){if(!(!n||n.id==null)){var o=ln(n.id),s=e.get(o);if(s!=null){var l=r[s];dt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function d0(r,t){T(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!Sn(e)&&!Sn(i)&&wd("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function p0(r,t,e){T(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||Sn(n.existing)||n.existing&&a.id!=null&&!wd("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function g0(r,t){T(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function y0(r){var t=q();T(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),T(r,function(e){var a=e.newOption;dt(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),T(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(K(i)){if(o.name=i.name!=null?ln(i.name):n?n.name:bd+a,n)o.id=ln(n.id);else if(i.id!=null)o.id=ln(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function wd(r,t,e){var a=it(t[r],null),n=it(e[r],null);return a!=null&&n!=null&&a===n}function ln(r){return it(r,"")}function it(r,t){return r==null?t:$(r)?r:le(r)||Qs(r)?r+"":t}function ou(r){var t=r.name;return!!(t&&t.indexOf(bd))}function Sn(r){return r&&r.id!=null&&ln(r.id).indexOf(u0)===0}function m0(r,t,e){T(r,function(a){var n=a.newOption;K(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=_0(t,n,a.existing,e))})}function _0(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function S0(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=it(o[u].seriesId,null);if(c==null)return;for(var h=Le(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var y=h[d];v&&v[y]?v[y]=null:(s[c]||(s[c]={}))[y]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Or(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?X(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?X(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ae(){var r="__ec_inner_"+x0++;return function(t){return t[r]||(t[r]={})}}var x0=_d();function Uo(r,t,e){var a=su(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var c=Ma(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function su(r,t){var e;if($(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=q(),i={},o=!1;return T(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ue(t.includeMainTypes,f)<0)){o=o||!!f;var h=n.get(f)||n.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ge={useDefault:!0,enableAll:!1,enableNone:!1},b0={useDefault:!1,enableAll:!0,enableNone:!0};function Ma(r,t,e,a){a=a||Ge;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s}function Td(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function w0(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function T0(r){return r==="auto"?we.domSupported?"html":"richText":r||"html"}function Cd(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(le(a)){var o=Pf(e||0,a,n);return ke(o,i?Math.max(kt(e||0),kt(a)):t)}else{if($(a))return n<1?e:a;for(var s=[],l=e,u=a,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Pf(v,d,n);s[c]=ke(o,i?Math.max(kt(v),kt(d)):t)}}return s}}var C0=".",yr="___EC__COMPONENT__CONTAINER___",Md="___EC__EXTENDED_CLASS___";function wt(r){var t={main:"",sub:""};if(r){var e=r.split(C0);t.main=e[0]||"",t.sub=e[1]||""}return t}function M0(r){dt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function D0(r){return!!(r&&r[Md])}function lu(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return A0(a)?n=(function(i){H(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(e.$constructor||a).apply(this,arguments)},_m(n,this)),F(n.prototype,e),n[Md]=!0,n.extend=this.extend,n.superCall=P0,n.superApply=k0,n.superClass=a,n}}function A0(r){return Q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Dd(r,t){r.extend=t.extend}var L0=Math.round(Math.random()*10);function I0(r){var t=["__\0is_clz",L0++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function P0(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function k0(r,t,e){return this.superClass.prototype[t].apply(r,e)}function bo(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){M0(n),a.prototype.type=n;var i=wt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==yr){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[yr]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=wt(a),i=[],o=t[n.main];return o&&o[yr]?T(o,function(s,l){l!==yr&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=wt(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return T(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=wt(a),i=t[n.main];return i&&i[yr]};function e(a){var n=t[a.main];return(!n||!n[yr])&&(n=t[a.main]={},n[yr]=!0),n}}function xn(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ue(n,l)>=0||i&&ue(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var R0=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],E0=xn(R0),O0=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return E0(this,t,e)},r})(),te=ae(),B0=function(r,t,e,a){if(a){var n=te(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=te(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Rf=1,Ef={},Ad=ae(),uu=ae(),fu=0,wo=1,To=2,$e=["emphasis","blur","select"],Yi=["normal","emphasis","blur","select"],N0=10,V0=9,Pr="highlight",Ii="downplay",Zi="select",al="unselect",Xi="toggleSelect",cu="selectchanged";function Xr(r){return r!=null&&r!=="none"}function Co(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Ld(r){Co(r,"emphasis",To)}function Id(r){r.hoverState===To&&Co(r,"normal",fu)}function vu(r){Co(r,"blur",wo)}function Pd(r){r.hoverState===wo&&Co(r,"normal",fu)}function z0(r){r.selected=!0}function G0(r){r.selected=!1}function Of(r,t,e){t(r,e)}function Ft(r,t,e){Of(r,t,e),r.isGroup&&r.traverse(function(a){Of(a,t,e)})}function Bf(r,t){switch(t){case"emphasis":r.hoverState=To;break;case"normal":r.hoverState=fu;break;case"blur":r.hoverState=wo;break;case"select":r.selected=!0}}function F0(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function H0(r,t,e,a){var n=e&&ue(e,"select")>=0,i=!1;if(r instanceof Ve){var o=Ad(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Xr(s)||Xr(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=F({},a),u=F({},u),u.fill=s):!Xr(u.fill)&&Xr(s)?(i=!0,a=F({},a),u=F({},u),u.fill=_f(s)):!Xr(u.stroke)&&Xr(l)&&(i||(a=F({},a),u=F({},u)),u.stroke=_f(l)),a.style=u}}if(a&&a.z2==null){i||(a=F({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??N0)}return a}function W0(r,t,e){if(e&&e.z2==null){e=F({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??V0)}return e}function U0(r,t,e){var a=ue(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:F0(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=F({},e),o=F({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Yo(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return H0(this,r,t,e);if(r==="blur")return U0(this,r,e);if(r==="select")return W0(this,r,e)}return e}function kd(r){r.stateProxy=Yo;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Yo),e&&(e.stateProxy=Yo)}function Nf(r,t){!Bd(r,t)&&!r.__highByOuter&&Ft(r,Ld)}function Vf(r,t){!Bd(r,t)&&!r.__highByOuter&&Ft(r,Id)}function bn(r,t){r.__highByOuter|=1<<(t||0),Ft(r,Ld)}function wn(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ft(r,Id)}function Y0(r){Ft(r,vu)}function Rd(r){Ft(r,Pd)}function Ed(r){Ft(r,z0)}function Od(r){Ft(r,G0)}function Bd(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Nd(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=uu(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){Pd(u)}),s&&e.push(i)),o.isBlured=!1}),T(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function nl(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Rd(h)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(y){y.__highByOuter&&f&&t==="self"||vu(y)}),Hn(t))i(u.getData(),t);else if(K(t))for(var d=Ie(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),uu(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=a.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function il(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){uu(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){vu(i)})}}}function Z0(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=Or(n,t);i=(N(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=te(o);nl(a,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&nl(a,f,c,e)}}}function hu(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(te(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function X0(r,t,e){var a=te(r),n=hu(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&il(a.componentMainType,a.componentIndex,e),T(i,function(s){return Nf(s,t)})):(nl(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&il(a.componentMainType,a.componentIndex,e),Nf(r,t))}function $0(r,t,e){Nd(e);var a=te(r),n=hu(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?T(n,function(i){return Vf(i,t)}):Vf(r,t)}function K0(r,t,e){if(sl(t)){var a=t.dataType,n=r.getData(a),i=Or(n,t);N(i)||(i=[i]),r[t.type===Xi?"toggleSelect":t.type===Zi?"select":"unselect"](i,a)}}function zf(r){var t=r.getAllData();T(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?Ed(i):Od(i)})})}function q0(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();T(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function $i(r,t,e){du(r,!0),Ft(r,kd),Q0(r,t,e)}function j0(r){du(r,!1)}function Vt(r,t,e,a){a?j0(r):$i(r,t,e)}function Q0(r,t,e){var a=te(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Gf=["emphasis","blur","select"],J0={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ma(r,t,e,a){e=e||"itemStyle";for(var n=0;n<Gf.length;n++){var i=Gf[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=o[J0[e]]()}}function du(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function ol(r){return!!(r&&r.__highDownDispatcher)}function e_(r){var t=Ef[r];return t==null&&Rf<=32&&(t=Ef[r]=Rf++),t}function sl(r){var t=r.type;return t===Zi||t===al||t===Xi}function Ff(r){var t=r.type;return t===Pr||t===Ii}function t_(r){var t=Ad(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var r_=ae();function pu(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;a?(u=J(a.duration,200),f=J(a.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),Q(c)&&(c=c(e,n)),Q(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function gu(r,t,e,a,n,i,o){var s=!1,l;Q(n)?(o=i,i=n,n=null):K(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=pu(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function xe(r,t,e,a,n,i){gu("update",r,t,e,a,n,i)}function Re(r,t,e,a,n,i){gu("enter",r,t,e,a,n,i)}function da(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Ki(r,t,e,a,n,i){da(r)||gu("leave",r,t,e,a,n,i)}function Hf(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),Ki(r,{style:{opacity:0}},t,e,a)}function un(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Hf(n,t,e,a)}):Hf(r,t,e,a)}function Tn(r){r_(r).oldStyle=r.style}var ll={},Jt=["x","y"],_a=["width","height"];function a_(r){return Ve.extend(r)}var n_=Cm;function i_(r,t){return n_(r,t)}function yt(r,t){ll[r]=t}function ul(r){if(ll.hasOwnProperty(r))return ll[r]}function Cn(r,t,e,a){var n=bm(r,t);return e&&(a==="center"&&(e=zd(e,n.getBoundingRect())),Gd(n,e)),n}function Vd(r,t,e){var a=new Gt({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(zd(t,i))}}});return a}function zd(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var fl=Sm;function Gd(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function Mn(r,t){return wm(r,r,{lineWidth:t}),r}function o_(r,t){return Tm(r,r,t),r}var s_=xm;function fn(r,t){for(var e=rd([]);r&&r!==t;)ad(e,r.getLocalTransform(),e),r=r.parent;return e}function nr(r,t,e){return t&&!Hn(t)&&(t=ua.getLocalTransform(t)),e&&(t=Wn([],t)),Ct([],r,t)}function yu(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:bt(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:bt(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=nr(i,t,e),bt(i[0])>bt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Wf(r){return!r.isGroup}function l_(r){return r.shape!=null}function Fd(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Wf(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return l_(o)&&(s.shape=j(o.shape)),s}var i=a(r);t.traverse(function(o){if(Wf(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),xe(o,l,e,te(o).dataIndex)}}})}function u_(r,t){return X(r,function(e){var a=e[0];a=je(a,t.x),a=_n(a,t.x+t.width);var n=e[1];return n=je(n,t.y),n=_n(n,t.y+t.height),[a,n]})}function f_(r,t){var e=je(r.x,t.x),a=_n(r.x+r.width,t.x+t.width),n=je(r.y,t.y),i=_n(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function mu(r,t,e){var a=F({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ie(n,e),new Gt(a)):Cn(r.replace("path://",""),a,e,"center")}function c_(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(Hd(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function Hd(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,c=s-i,h=Zo(f,c,l,u);if(v_(h))return!1;var v=r-n,d=t-i,p=Zo(v,d,l,u)/h;if(p<0||p>1)return!1;var y=Zo(v,d,f,c)/h;return!(y<0||y>1)}function Zo(r,t,e,a){return r*a-e*t}function v_(r){return r<=1e-6&&r>=-1e-6}function Dn(r,t,e,a,n){return t==null||(le(t)?he[0]=he[1]=he[2]=he[3]=t:(he[0]=t[0],he[1]=t[1],he[2]=t[2],he[3]=t[3]),a&&(he[0]=je(0,he[0]),he[1]=je(0,he[1]),he[2]=je(0,he[2]),he[3]=je(0,he[3])),e&&(he[0]=-he[0],he[1]=-he[1],he[2]=-he[2],he[3]=-he[3]),Uf(r,he,"x","width",3,1,n&&n[0]||0),Uf(r,he,"y","height",0,2,n&&n[1]||0)),r}var he=[0,0,0,0];function Uf(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=je(0,_n(o,l)),r[a]<o?(r[a]=o,r[e]+=t[n]>=0?-t[n]:t[i]>=0?l+t[i]:bt(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function Mo(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=$(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&T(Ie(l),function(f){G(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=te(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ie({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function cl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Gr(r,t){if(r)if(N(r))for(var e=0;e<r.length;e++)cl(r[e],t);else cl(r,t)}function _u(r){return!r||bt(r[1])<ti&&bt(r[2])<ti||bt(r[0])<ti&&bt(r[3])<ti}var ti=1e-5;function An(r,t){return r?Ae.copy(r,t):t.clone()}function Su(r,t){return t?nd(r||Un(),t):void 0}function Ln(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function h_(r){var t=-1/0,e=1/0;cl(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function Wd(r,t,e){Ud(r,t,e,-1/0)}function Ud(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=je(Ud(s[l],t,e,a),a);else r.z=t,r.zlevel=e,a=je(r.z2||0,a);if(n&&(n.z=t,n.zlevel=e,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}yt("circle",xo);yt("ellipse",id);yt("sector",Nr);yt("ring",tu);yt("polygon",Ca);yt("polyline",vr);yt("rect",fe);yt("line",or);yt("bezierCurve",ru);yt("arc",au);const Yd=Object.freeze(Object.defineProperty({__proto__:null,Arc:au,BezierCurve:ru,BoundingRect:Ae,Circle:xo,CompoundPath:od,Ellipse:id,Group:oe,Image:Gt,IncrementalDisplayable:Mm,Line:or,LinearGradient:nu,OrientedBoundingRect:sd,Path:Ve,Point:ge,Polygon:Ca,Polyline:vr,RadialGradient:Dm,Rect:fe,Ring:tu,Sector:Nr,Text:pe,WH:_a,XY:Jt,applyTransform:nr,calcZ2Range:h_,clipPointsByRect:u_,clipRectByRect:f_,createIcon:mu,ensureCopyRect:An,ensureCopyTransform:Su,expandOrShrinkRect:Dn,extendPath:i_,extendShape:a_,getShapeClass:ul,getTransform:fn,groupTransition:Fd,initProps:Re,isBoundingRectAxisAligned:_u,isElementRemoved:da,lineLineIntersect:Hd,linePolygonIntersect:c_,makeImage:Vd,makePath:Cn,mergePath:fl,registerShape:yt,removeElement:Ki,removeElementWithFadeOut:un,resizePath:Gd,retrieveZInfo:Ln,setTooltipConfig:Mo,subPixelOptimize:s_,subPixelOptimizeLine:Mn,subPixelOptimizeRect:o_,transformDirection:yu,traverseElements:Gr,traverseUpdateZ:Wd,updateProps:xe},Symbol.toStringTag,{value:"Module"}));var Do={};function Zd(r,t){for(var e=0;e<$e.length;e++){var a=$e[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function vl(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=Q(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<$e.length;u++){var f=$e[u],c=t[f];l[f]=J(a?a.getFormattedLabel(n,f,null,i,c&&c.get("formatter")):null,s)}return l}function hr(r,t,e,a){e=e||Do;for(var n=r instanceof pe,i=!1,o=0;o<Yi.length;o++){var s=t[Yi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new pe,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=vl(e,t),f=t.normal,c=!!f.getShallow("show"),h=De(f,a&&a.normal,e,!1,!n);h.text=u.normal,n||r.setTextConfig(qi(f,e,!1));for(var o=0;o<$e.length;o++){var v=$e[o],s=t[v];if(s){var d=l.ensureState(v),p=!!J(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=De(s,a&&a[v],e,!0,!n),d.style.text=u[v],!n){var y=r.ensureState(v);y.textConfig=qi(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),e.enableTextSetter&&(Da(l).setLabelText=function(g){var m=vl(e,t,g);Zd(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Mt(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<$e.length;a++){var n=$e[a];e[n]=r.getModel([n,t])}return e}function De(r,t,e,a,n){var i={};return d_(i,r,e,a,n),t&&F(i,t),i}function qi(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=J(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(a.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(a.layoutRect=t.layoutRect),a}function d_(r,t,e,a,n){e=e||Do;var i=t.ecModel,o=i&&i.option.textStyle,s=p_(t),l;if(s){l={};var u="richInheritPlainLabel",f=J(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=t.getModel(["rich",c]);$f(l[c]={},h,o,t,f,e,a,n,!1,!0)}}l&&(r.rich=l);var v=t.get("overflow");v&&(r.overflow=v);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,y=t.get("minMargin");if(y!=null)y=le(y)?y/2:0,p.margin=[y,y,y,y],p.__marginType=ca.minMargin;else{var g=t.get("textMargin");g!=null&&(p.margin=ld(g),p.__marginType=ca.textMargin)}$f(r,t,o,null,null,e,a,n,!0,!1)}function p_(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Do).rich;if(e){t=t||{};for(var a=Ie(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var Yf=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Zf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Xf=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function $f(r,t,e,a,n,i,o,s,l,u){e=!o&&e||Do;var f=i&&i.inheritColor,c=t.getShallow("color"),h=t.getShallow("textBorderColor"),v=J(t.getShallow("opacity"),e.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||e.color,h=h||e.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=J(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var p=J(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var y=J(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<Yf.length;g++){var m=Yf[g],_=n!==!1&&a?Vr(t.getShallow(m),a.getShallow(m),e[m]):J(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var g=0;g<Zf.length;g++){var m=Zf[g],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var g=0;g<Xf.length;g++){var m=Xf[g],_=t.getShallow(m);_!=null&&(r[m]=_)}var b=t.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Xd(r,t){var e=t&&t.getModel("textStyle");return Yn([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Da=ae();function g_(r,t,e,a){if(r){var n=Da(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function y_(r,t,e,a,n){var i=Da(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=J(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=Cd(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=vl({labelDataIndex:t,labelFetcher:n,defaultText:o?o(c):c+""},i.statesModels,c);Zd(r,h)}r.percent=0,(i.prevValue==null?Re:xe)(r,{percent:1},a,t,null,u)}var ca={minMargin:1,textMargin:2},m_=["textStyle","color"],Xo=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$o=new pe,__=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(m_):null)},r.prototype.getFont=function(){return Xd({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Xo.length;a++)e[Xo[a]]=this.getShallow(Xo[a]);return $o.useStyle(e),$o.update(),$o.getBoundingRect()},r})(),$d=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],S_=xn($d),x_=(function(){function r(){}return r.prototype.getLineStyle=function(t){return S_(this,t)},r})(),Kd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],b_=xn(Kd),w_=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return b_(this,t,e)},r})(),ye=(function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){se(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(j(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!we.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r})();lu(ye);I0(ye);gt(ye,x_);gt(ye,w_);gt(ye,O0);gt(ye,__);var T_=Math.round(Math.random()*10);function Ao(r){return[r||"",T_++].join("_")}function C_(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=wt(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=wt(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function M_(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(T(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),T(d.successor,p?g:y)}T(h,function(){var m="";throw new Error(m)});function y(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function g(m){h[m]=!0,y(m)}};function e(i){var o={},s=[];return T(i,function(l){var u=a(o,l),f=u.originalDeps=t(l),c=n(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),T(c,function(h){ue(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);ue(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return T(i,function(l){ue(o,l)>=0&&s.push(l)}),s}}function Aa(r,t){return se(se({},r,!0),t,!0)}const D_={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:". "}}}},A_={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 ji="ZH",xu="EN",pa=xu,Pi={},bu={},qd=we.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||pa).toUpperCase();return r.indexOf(ji)>-1?ji:pa})():pa;function jd(r,t){r=r.toUpperCase(),bu[r]=new ye(t),Pi[r]=t}function L_(r){if($(r)){var t=Pi[r.toUpperCase()]||{};return r===ji||r===xu?j(t):se(j(t),j(Pi[pa]),!1)}else return se(j(r),j(Pi[pa]),!1)}function hl(r){return bu[r]}function I_(){return bu[pa]}jd(xu,D_);jd(ji,A_);var P_=null;function Qi(){return P_}var wu=1e3,Tu=wu*60,cn=Tu*60,nt=cn*24,Kf=nt*365,k_={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})/},ki={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},R_="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ri="{yyyy}-{MM}-{dd}",qf={year:"{yyyy}",month:"{yyyy}-{MM}",day:ri,hour:ri+" "+ki.hour,minute:ri+" "+ki.minute,second:ri+" "+ki.second,millisecond:R_},kr=["year","month","day","hour","minute","second","millisecond"],E_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function O_(r){return!$(r)&&!Q(r)?B_(r):r}function B_(r){r=r||{};var t={},e=!0;return T(kr,function(a){e&&(e=r[a]==null)}),T(kr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=kr[s],u=K(i)&&!N(i)?i[l]:i,f=void 0;N(u)?(f=u.slice(),o=f[0]||""):$(u)?(o=u,f=[o]):(o==null?o=ki[a]:k_[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function Yt(r,t){return r+="","0000".substr(0,t-r.length)+r}function vn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function N_(r){return r===vn(r)}function V_(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Lo(r,t,e,a){var n=zr(r),i=n[Qd(e)](),o=n[Cu(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Mu(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Du(e)](),c=(f-1)%12+1,h=n[Au(e)](),v=n[Lu(e)](),d=n[Iu(e)](),p=f>=12?"pm":"am",y=p.toUpperCase(),g=a instanceof ye?a:hl(a||qd)||I_(),m=g.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Yt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Yt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Yt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Yt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Yt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Yt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Yt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Yt(d,3)).replace(/{S}/g,d+"")}function z_(r,t,e,a,n){var i=null;if($(e))i=e;else if(Q(e)){var o={time:r.time,level:r.time.level},s=Qi();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Ji(r.value,n);i=e[f][f][0]}}return Lo(new Date(r.value),i,n,a)}function Ji(r,t){var e=zr(r),a=e[Cu(t)]()+1,n=e[Mu(t)](),i=e[Du(t)](),o=e[Au(t)](),s=e[Lu(t)](),l=e[Iu(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function dl(r,t,e){switch(t){case"year":r[Jd(e)](0);case"month":r[ep(e)](1);case"day":r[tp(e)](0);case"hour":r[rp(e)](0);case"minute":r[ap(e)](0);case"second":r[np(e)](0)}return r}function Qd(r){return r?"getUTCFullYear":"getFullYear"}function Cu(r){return r?"getUTCMonth":"getMonth"}function Mu(r){return r?"getUTCDate":"getDate"}function Du(r){return r?"getUTCHours":"getHours"}function Au(r){return r?"getUTCMinutes":"getMinutes"}function Lu(r){return r?"getUTCSeconds":"getSeconds"}function Iu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function G_(r){return r?"setUTCFullYear":"setFullYear"}function Jd(r){return r?"setUTCMonth":"setMonth"}function ep(r){return r?"setUTCDate":"setDate"}function tp(r){return r?"setUTCHours":"setHours"}function rp(r){return r?"setUTCMinutes":"setMinutes"}function ap(r){return r?"setUTCSeconds":"setSeconds"}function np(r){return r?"setUTCMilliseconds":"setMilliseconds"}function ip(r){if(!i0(r))return $(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function op(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Kn=ld;function pl(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Yn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?zr(r):r;if(isNaN(+l)){if(s)return"-"}else return Lo(l,a,e)}if(t==="ordinal")return Qs(r)?n(r):le(r)&&i(r)?r+"":"-";var u=Wi(r);return i(u)?ip(u):Qs(r)?n(r):typeof r=="boolean"?r+"":"-"}var jf=["a","b","c","d","e","f","g"],Ko=function(r,t){return"{"+r+(t??"")+"}"};function sp(r,t,e){N(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=jf[i];r=r.replace(Ko(o),Ko(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Ko(jf[l],s),e?Xe(u):u)}return r}function F_(r,t,e){return T(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function H_(r,t){var e=$(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Xe(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Xe(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function BA(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Br(r,t){return t=t||"transparent",$(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Qf(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Ri={},qo={},qn=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Ri),this._normalMasterList=a(qo);function a(n,i){var o=[];return T(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){T(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Ri[t]=e;return}qo[t]=e},r.get=function(t){return qo[t]||Ri[t]},r})();function W_(r){return!!Ri[r]}var gl={coord:1,coord2:2};function U_(r){lp.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var lp=q();function Y_(r){var t=r.getShallow("coord",!0),e=gl.coord;if(t==null){var a=lp.get(r.type);a&&a.getCoord2&&(e=gl.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var Pt={none:0,dataCoordSys:1,boxCoordSys:2};function Z_(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=Pt.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=Pt.dataCoordSys,i||(n=Pt.none)):a==="box"&&(n=Pt.boxCoordSys,!i&&!W_(e)&&(n=Pt.none))}return{coordSysType:e,kind:n}}function Pu(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=Z_(t),o=i.kind,s=i.coordSysType;if(n&&o!==Pt.dataCoordSys&&(o=Pt.dataCoordSys,s=e),o===Pt.none||s!==e)return!1;var l=a(e,t);return l?(o===Pt.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var X_=function(r,t){var e=t.getReferringComponents(r,Ge).models[0];return e&&e.coordinateSystem},Ei=T,$_=["left","right","top","bottom","width","height"],Lr=[["width","left","right"],["height","top","bottom"]];function ku(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(h?-h.y+f.y:0);d=o+y,d>n||l.newline?(i+=s+e,o=0,d=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var ga=ku;de(ku,"vertical");de(ku,"horizontal");function K_(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function q_(r,t){var e=dr(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===en.point)i=e.refPoint,n=Ke(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];n=Ke(a,e.refContainer),i=e.boxCoordFrom===gl.coord2?e.refPoint:[re(s[0],n.width)+n.x,re(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function j_(r,t){var e=q_(r,t),a=e.viewRect,n=e.center,i=r.get("radius");N(i)||(i=[0,i]);var o=re(a.width,t.getWidth()),s=re(a.height,t.getHeight()),l=Math.min(o,s),u=re(i[0],l/2),f=re(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function Ke(r,t,e){e=Kn(e||0);var a=t.width,n=t.height,i=re(r.left,a),o=re(r.top,n),s=re(r.right,a),l=re(r.bottom,n),u=re(r.width,a),f=re(r.height,n),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(f)&&(f=n-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new Ae((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function Q_(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n<e&&l?(s.width=t.height*e,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),Ke(s,t)}var en={rect:1,point:2};function dr(r,t,e){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=Y_(r),u=l.coord,f=l.from;if(o.dataToLayout){i=en.rect,s=f;var c=o.dataToLayout(u);a=c.contentRect||c.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=en.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=en.rect),i===en.rect&&(a||(a={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function J_(r,t,e,a,n,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Ke(ie({width:o.width,height:o.height},t),e,a),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function eS(r,t){return r[Lr[t][0]]!=null||r[Lr[t][1]]!=null&&r[Lr[t][2]]!=null}function In(r){var t=r.layoutMode||r.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function zt(r,t,e){var a=e&&e.ignoreSize;!N(a)&&(a=[a,a]);var n=o(Lr[0],0),i=o(Lr[1],1);l(Lr[0],r,n),l(Lr[1],r,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(Ei(u,function(m){v[m]=r[m]}),Ei(u,function(m){G(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),a[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var y=0;y<u.length;y++){var g=u[y];if(!G(c,g)&&G(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){Ei(u,function(h){f[h]=c[h]})}}function Fr(r){return tS({},r)}function tS(r,t){return t&&r&&Ei($_,function(e){G(t,e)&&(r[e]=t[e])}),r}var rS=ae(),ne=(function(r){H(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=Ao("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=In(this),i=n?Fr(e):{},o=a.getTheme();se(e,o.get(this.mainType)),se(e,this.getDefaultOption()),n&&zt(e,i,n)},t.prototype.mergeOption=function(e,a){se(this.option,e,!0);var n=In(this);n&&zt(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!D0(e))return e.defaultOption;var a=rS(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=se(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Ma(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return K_(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(ye);Dd(ne,ye);bo(ne);C_(ne);M_(ne,aS);function aS(r){var t=[];return T(ne.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return wt(e).main}),r!=="dataset"&&ue(t,"dataset")<=0&&t.unshift("dataset"),t}var O={color:{},darkColor:{},size:{}},_e=O.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)"};F(_e,{primary:_e.neutral80,secondary:_e.neutral70,tertiary:_e.neutral60,quaternary:_e.neutral50,disabled:_e.neutral20,border:_e.neutral30,borderTint:_e.neutral20,borderShade:_e.neutral40,background:_e.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:_e.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:_e.neutral70,axisLineTint:_e.neutral40,axisTick:_e.neutral70,axisTickMinor:_e.neutral60,axisLabel:_e.neutral70,axisSplitLine:_e.neutral15,axisMinorSplitLine:_e.neutral05});for(var mr in _e)if(_e.hasOwnProperty(mr)){var Jf=_e[mr];mr==="theme"?O.darkColor.theme=_e.theme.slice():mr==="highlight"?O.darkColor.highlight="rgba(255,231,130,0.4)":mr.indexOf("accent")===0?O.darkColor[mr]=ha(Jf,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):O.darkColor[mr]=ha(Jf,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}O.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var up="";typeof navigator<"u"&&(up=navigator.platform||"");var $r="rgba(0, 0, 0, 0.2)",fp=O.color.theme[0],nS=ha(fp,null,null,.9);const iS={darkMode:"auto",colorBy:"series",color:O.color.theme,gradientColor:[nS,fp],aria:{decal:{decals:[{color:$r,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$r,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$r,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$r,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$r,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$r,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:up.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 cp=q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),et="original",He="arrayRows",lt="objectRows",mt="keyedColumns",ir="typedArray",vp="unknown",ht="column",Hr="row",Oe={Must:1,Might:2,Not:3},hp=ae();function oS(r){hp(r).datasetMap=q()}function sS(r,t,e){var a={},n=Ru(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=hp(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),T(r,function(p,y){var g=K(p)?p:r[y]={name:p};g.type==="ordinal"&&f==null&&(f=y,c=d(g)),a[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(r,function(p,y){var g=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(a[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===y)v(a[g],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(a[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,y,g){for(var m=0;m<g;m++)p.push(y+m)}function d(p){var y=p.dimsDef;return y?y.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function lS(r,t,e){var a={},n=Ru(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===lt||i===mt)&&T(o,function(f,c){(K(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=pp(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var y=p===Oe.Not;if(y&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!y&&h[f.n]===Oe.Not)&&(f.n=v),g(f)&&h[f.n]!==Oe.Not)return f;y||(p===Oe.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function g(m){return m.v!=null&&m.n!=null}return g(f)?f:g(c)?c:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function Ru(r){var t=r.get("data",!0);if(!t)return Ma(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ge).models[0]}function uS(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Ma(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ge).models}function dp(r,t){return pp(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function pp(r,t,e,a,n,i){var o,s=5;if(Qe(r))return Oe.Not;var l,u;if(a){var f=a[i];K(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?Oe.Must:Oe.Not;if(t===He){var c=r;if(e===Hr){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[n+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[n+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===lt){var p=r;if(!l)return Oe.Not;for(var v=0;v<p.length&&v<s;v++){var y=p[v];if(y&&(o=S(y[l]))!=null)return o}}else if(t===mt){var g=r;if(!l)return Oe.Not;var h=g[l];if(!h||Qe(h))return Oe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===et)for(var m=r,v=0;v<m.length&&v<s;v++){var y=m[v],_=$n(y);if(!N(_))return Oe.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=$(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?Oe.Might:Oe.Not;if(x&&b!=="-")return Oe.Must}return Oe.Not}var fS=q();function cS(r,t,e){var a=fS.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var ec=ae();ae();var Eu=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=Le(this.get("color",!0)),i=this.get("colorLayer",!0);return hS(this,ec,n,i,t,e,a)},r.prototype.clearColorPalette=function(){dS(this,ec)},r})();function vS(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function hS(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:vS(a,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function dS(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var ai,Ra,tc,rc="\0_ec_inner",pS=1,Ou=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new ye(i),this._locale=new ye(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=ic(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,ic(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?tc(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=a&&a.replaceMergeMainTypeMap;oS(this),T(e,function(c,h){c!=null&&(ne.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?j(c):se(n[h],c,!0))}),u&&u.each(function(c,h){ne.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ne.topologicalTravel(s,ne.getAllClassMainTypes(),f,this);function f(c){var h=cS(this,c,Le(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=c0(v,h,d);m0(p,c,ne),n[c]=null,i.set(c,null),o.set(c,0);var y=[],g=[],m=0,_;T(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=c==="series",M=ne.getClass(c,S.keyInfo.subType,!D);if(!M)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===M)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=F({componentIndex:b},S.keyInfo);x=new M(w,this,this,A),F(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(y.push(x.option),g.push(x),m++):(y.push(void 0),g.push(void 0))},this),n[c]=y,i.set(c,g),o.set(c,m),c==="series"&&ai(this)}this._seriesIndices||ai(this)},t.prototype.getOption=function(){var e=j(this.option);return T(e,function(a,n){if(ne.hasClass(n)){for(var i=Le(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Sn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[rc],e},t.prototype.setTheme=function(e){this._theme=new ye(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(Le(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=ac("id",i,s):o!=null?l=ac("name",o,s):l=Me(s,function(u){return!!u}),nc(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):Me(this._componentsMap.get(n),function(u){return!!u});return l(nc(o,e));function s(u){var f=n+"Index",c=n+"Id",h=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:n,index:u[f],id:u[c],name:u[h]}:null}function l(u){return e.filter?Me(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(Q(e)){var o=a,s=e;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=$(e)?i.get(e):K(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=it(e,null);return Me(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Me(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Ra(this),T(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){T(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Ra(this),T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return T(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Ra(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Ra(this);var n=[];T(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=q(n)},t.prototype.restoreData=function(e){ai(this);var a=this._componentsMap,n=[];a.each(function(i,o){ne.hasClass(o)&&n.push(o)}),ne.topologicalTravel(n,ne.getAllClassMainTypes(),function(i){T(a.get(i),function(o){o&&(i!=="series"||!gS(o,e))&&o.restoreData()})})},t.internalField=(function(){ai=function(e){var a=e._seriesIndices=[];T(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=q(a)},Ra=function(e){},tc=function(e,a){e.option={},e.option[rc]=pS,e._componentsMap=q({series:[]}),e._componentsCount=q();var n=a.aria;K(n)&&n.enabled==null&&(n.enabled=!0),yS(a,e._theme.option),se(a,iS,!1),e._mergeOption(a,null)}})(),t})(ye);function gS(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function yS(r,t){var e=r.color&&!r.colorLayer;T(t,function(a,n){n==="colorLayer"&&e||n==="color"&&r.color||ne.hasClass(n)||(typeof a=="object"?r[n]=r[n]?se(r[n],a,!1):j(a):r[n]==null&&(r[n]=a))})}function ac(r,t,e){if(N(t)){var a=q();return T(t,function(i){if(i!=null){var o=it(i,null);o!=null&&a.set(i,!0)}}),Me(e,function(i){return i&&a.get(i[r])})}else{var n=it(t,null);return Me(e,function(i){return i&&n!=null&&i[r]===n})}}function nc(r,t){return t.hasOwnProperty("subType")?Me(r,function(e){return e&&e.subType===t.subType}):r}function ic(r){var t=q();return r&&T(Le(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}gt(Ou,Eu);var mS=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gp=(function(){function r(t){T(mS,function(e){this[e]=Z(t[e],t)},this)}return r})(),_S=/^(min|max)?(.+)$/,SS=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(T(Le(t.series),function(o){o&&o.data&&Qe(o.data)&&Gi(o.data)}),T(Le(t.dataset),function(o){o&&o.source&&Qe(o.source)&&Gi(o.source)})),t=j(t);var n=this._optionBackup,i=xS(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],j(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=j(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)bS(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!TS(o,this._currentMediaIndices)&&(s=X(o,function(f){return j(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function xS(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&N(u)&&T(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),T(l,function(v){return h(v)}),T(a,function(v){return h(v.option)});function h(v){T(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function bS(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return T(r,function(i,o){var s=o.match(_S);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wS(a[u],i,l)||(n=!1)}}),n}function wS(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function TS(r,t){return r.join(",")===t.join(",")}var ut=T,Pn=K,oc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function jo(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=oc.length;e<a;e++){var n=oc[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?se(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?se(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function ze(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,ie(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function tn(r){ze(r,"itemStyle"),ze(r,"lineStyle"),ze(r,"areaStyle"),ze(r,"label"),ze(r,"labelLine"),ze(r,"upperLabel"),ze(r,"edgeLabel")}function be(r,t){var e=Pn(r)&&r[t],a=Pn(e)&&e.textStyle;if(a)for(var n=0,i=kf.length;n<i;n++){var o=kf[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function at(r){r&&(tn(r),be(r,"label"),r.emphasis&&be(r.emphasis,"label"))}function CS(r){if(Pn(r)){jo(r),tn(r),be(r,"label"),be(r,"upperLabel"),be(r,"edgeLabel"),r.emphasis&&(be(r.emphasis,"label"),be(r.emphasis,"upperLabel"),be(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(jo(t),at(t));var e=r.markLine;e&&(jo(e),at(e));var a=r.markArea;a&&at(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Qe(i))for(var o=0;o<i.length;o++)at(i[o]);T(r.categories,function(u){tn(u)})}if(n&&!Qe(n))for(var o=0;o<n.length;o++)at(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)at(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)N(l[o])?(at(l[o][0]),at(l[o][1])):at(l[o]);r.type==="gauge"?(be(r,"axisLabel"),be(r,"title"),be(r,"detail")):r.type==="treemap"?(ze(r.breadcrumb,"itemStyle"),T(r.levels,function(u){tn(u)})):r.type==="tree"&&tn(r.leaves)}}function At(r){return N(r)?r:r?[r]:[]}function sc(r){return(N(r)?r[0]:r)||{}}function MS(r,t){ut(At(r.series),function(a){Pn(a)&&CS(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ut(e,function(a){ut(At(r[a]),function(n){n&&(be(n,"axisLabel"),be(n.axisPointer,"label"))})}),ut(At(r.parallel),function(a){var n=a&&a.parallelAxisDefault;be(n,"axisLabel"),be(n&&n.axisPointer,"label")}),ut(At(r.calendar),function(a){ze(a,"itemStyle"),be(a,"dayLabel"),be(a,"monthLabel"),be(a,"yearLabel")}),ut(At(r.radar),function(a){be(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),ut(At(r.geo),function(a){Pn(a)&&(at(a),ut(At(a.regions),function(n){at(n)}))}),ut(At(r.timeline),function(a){at(a),ze(a,"label"),ze(a,"itemStyle"),ze(a,"controlStyle",!0);var n=a.data;N(n)&&T(n,function(i){K(i)&&(ze(i,"label"),ze(i,"itemStyle"))})}),ut(At(r.toolbox),function(a){ze(a,"iconStyle"),ut(a.feature,function(n){ze(n,"iconStyle")})}),be(sc(r.axisPointer),"label"),be(sc(r.tooltip).axisPointer,"label")}function DS(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function AS(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function lc(r){r&&T(LS,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var LS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],IS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Qo=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ea(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Qo.length;e++){var a=Qo[e][1],n=Qo[e][0];t[a]!=null&&(t[n]=t[a])}}function uc(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function fc(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function PS(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function yp(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&yp(r[e].children,t)}function mp(r,t){MS(r,t),r.series=Le(r.series),T(r.series,function(e){if(K(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),uc(e.label);var n=e.data;if(n&&!Qe(n))for(var i=0;i<n.length;i++)uc(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=DS(e,"pointer.color");o!=null&&AS(e,"itemStyle.color",o)}else if(a==="bar"){Ea(e),Ea(e.backgroundStyle),Ea(e.emphasis);var n=e.data;if(n&&!Qe(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(Ea(n[i]),Ea(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),fc(e),yp(e.data,fc)}else a==="graph"||a==="sankey"?PS(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ie(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),lc(e)}}),r.dataRange&&(r.visualMap=r.dataRange),T(IS,function(e){var a=r[e];a&&(N(a)||(a=[a]),T(a,function(n){lc(n)}))})}function kS(r){var t=q();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var a=e[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),T(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),RS(e)}})}function RS(r){T(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,y=e-1;y>=0;y--){var g=r[y];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=r0(h,m),p=m;break}}}return a[0]=h,a[1]=p,a})})}var Io=(function(){function r(t){this.data=t.data||(t.sourceFormat===mt?{}:[]),this.sourceFormat=t.sourceFormat||vp,this.seriesLayoutBy=t.seriesLayoutBy||ht,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&dp(this,a)===Oe.Must&&(n.type="ordinal")}}return r})();function Bu(r){return r instanceof Io}function yl(r,t,e){e=e||_p(r);var a=t.seriesLayoutBy,n=OS(r,e,a,t.sourceHeader,t.dimensions),i=new Io({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:j(t)});return i}function Nu(r){return new Io({data:r,sourceFormat:Qe(r)?ir:et})}function ES(r){return new Io({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:j(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function _p(r){var t=vp;if(Qe(r))t=ir;else if(N(r)){r.length===0&&(t=He);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(N(n)||Qe(n)){t=He;break}else if(K(n)){t=lt;break}}}}else if(K(r)){for(var i in r)if(G(r,i)&&Hn(r[i])){t=mt;break}}return t}function OS(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:cc(n),startIndex:o,dimensionsDetectedCount:i};if(t===He){var s=r;a==="auto"||a==null?vc(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},e,s,10):o=le(a)?a:a?1:0,!n&&o===1&&(n=[],vc(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Hr?s.length:s[0]?s[0].length:null}else if(t===lt)n||(n=BS(r));else if(t===mt)n||(n=[],T(r,function(u,f){n.push(f)}));else if(t===et){var l=$n(r[0]);i=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:cc(n),dimensionsDetectedCount:i}}function BS(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ie(e)}function cc(r){if(r){var t=q();return X(r,function(e,a){e=K(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function vc(r,t,e,a){if(t===Hr)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function Sp(r){var t=r.sourceFormat;return t===lt||t===mt}var _r,Sr,xr,br,hc,dc,xp=(function(){function r(t,e){var a=Bu(t)?t:Nu(t);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===ir&&(this._offset=0,this._dimSize=e,this._data=n),dc(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;dc=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=hc[Vu(u,f)];if(F(o,v),u===ir)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=bp(u,f);o.getItem=Z(d,null,s,c,h);var p=wp(u,f);o.count=Z(p,null,s,c,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},a=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],y=s-o,g=l[h],m=0;m<y;m++){var _=f[m*c+h];g[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};hc=(t={},t[He+"_"+ht]={pure:!0,appendData:i},t[He+"_"+Hr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[lt]={pure:!0,appendData:i},t[mt]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[et]={appendData:i},t[ir]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),ni=function(r){N(r)||xd("series.data or dataset.source must be an array.")};_r={},_r[He+"_"+ht]=ni,_r[He+"_"+Hr]=ni,_r[lt]=ni,_r[mt]=function(r,t){for(var e=0;e<t.length;e++){var a=t[e].name;a==null&&xd("dimension name must not be null/undefined.")}},_r[et]=ni;var pc=function(r,t,e,a){return r[a]},NS=(Sr={},Sr[He+"_"+ht]=function(r,t,e,a){return r[a+t]},Sr[He+"_"+Hr]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},Sr[lt]=pc,Sr[mt]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},Sr[et]=pc,Sr);function bp(r,t){var e=NS[Vu(r,t)];return e}var gc=function(r,t,e){return r.length},VS=(xr={},xr[He+"_"+ht]=function(r,t,e){return Math.max(0,r.length-t)},xr[He+"_"+Hr]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},xr[lt]=gc,xr[mt]=function(r,t,e){var a=e[0].name,n=a!=null?r[a]:null;return n?n.length:0},xr[et]=gc,xr);function wp(r,t){var e=VS[Vu(r,t)];return e}var Jo=function(r,t,e){return r[t]},zS=(br={},br[He]=Jo,br[lt]=function(r,t,e){return r[e]},br[mt]=Jo,br[et]=function(r,t,e){var a=$n(r);return a instanceof Array?a[t]:a},br[ir]=Jo,br);function Tp(r){var t=zS[r];return t}function Vu(r,t){return r===He?r+"_"+t:r}function Sa(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Tp(i)(a,o,s)}else{var l=a;return i===et&&(l=$n(a)),l}}}}var GS=/\{@(.+?)\}/g,FS=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=a.userOutput&&a.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:i,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&N(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(Q(i))return l.status=e,l.dimensionIndex=n,i(l);if($(i)){var f=sp(i,l);return f.replace(GS,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Sa(s,t,d);if(o&&N(o.interpolatedValue)){var y=s.getDimensionIndex(d);y>=0&&(p=o.interpolatedValue[y])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Sa(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r})();function yc(r){var t,e;return K(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function hn(r){return new HS(r)}var HS=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(c||v<d)){var p=this._progress;if(N(p))for(var y=0;y<p.length;y++)this._doProgress(p[y],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){mc.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:mc.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),N(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),mc=(function(){var r,t,e,a,n,i={reset:function(l,u,f,c){t=l,r=u,e=f,a=c,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}})();function Oi(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!le(r)&&r!=null&&r!=="-"&&(r=+zr(r)),r==null||r===""?NaN:Number(r))}q({number:function(r){return parseFloat(r)},time:function(r){return+zr(r)},trim:function(r){return $(r)?Yn(r):r}});var WS=(function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=le(t)?t:Wi(t),n=le(e)?e:Wi(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=$(t),l=$(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),US=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Oi(t,e)},r})();function YS(r,t){var e=new US,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ht&&Be(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(p,y){var g=p.name,m={index:y,name:g,displayName:p.displayName};if(s.push(m),g!=null){var _="";G(l,g)&&Be(_),l[g]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=bp(n,ht);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(a,i,s,p)},e.getRawData=Z(ZS,null,r)),e.cloneRawData=Z(XS,null,r);var h=wp(n,ht);e.count=Z(h,null,a,i,s);var v=Tp(n);e.retrieveValue=function(p,y){var g=c(a,i,s,p);return d(g,y)};var d=e.retrieveValueFromItem=function(p,y){if(p!=null){var g=s[y];if(g)return v(p,y,g.name)}};return e.getDimensionInfo=Z($S,null,s,l),e.cloneAllDimensionInfo=Z(KS,null,s),e}function ZS(r){var t=r.sourceFormat;if(!zu(t)){var e="";Be(e)}return r.data}function XS(r){var t=r.sourceFormat,e=r.data;if(!zu(t)){var a="";Be(a)}if(t===He){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===lt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(F({},e[i]));return n}}function $S(r,t,e){if(e!=null){if(le(e)||!isNaN(e)&&!G(t,e))return r[e];if(G(t,e))return t[e]}}function KS(r){return j(r)}var Cp=q();function qS(r){r=j(r);var t=r.type,e="";t||Be(e);var a=t.split(":");a.length!==2&&Be(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,Cp.set(t,r)}function jS(r,t,e){var a=Le(r),n=a.length,i="";n||Be(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=QS(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function QS(r,t,e,a){var n="";t.length||Be(n),K(r)||Be(n);var i=r.type,o=Cp.get(i);o||Be(n);var s=X(t,function(u){return YS(u,o)}),l=Le(o.transform({upstream:s[0],upstreamList:s,config:j(r.config)}));return X(l,function(u,f){var c="";K(u)||Be(c),u.data||Be(c);var h=_p(u.data);zu(h)||Be(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:ht,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:ht,sourceHeader:0,dimensions:u.dimensions};return yl(u.data,v,null)})}function zu(r){return r===He||r===lt}var Po="undefined",JS=typeof Uint32Array===Po?Array:Uint32Array,ex=typeof Uint16Array===Po?Array:Uint16Array,Mp=typeof Int32Array===Po?Array:Int32Array,_c=typeof Float64Array===Po?Array:Float64Array,Dp={float:_c,int:Mp,ordinal:Array,number:Array,time:_c},es;function Kr(r){return r>65535?JS:ex}function qr(){return[1/0,-1/0]}function tx(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Sc(r,t,e,a,n){var i=Dp[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var ml=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=es[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],Sp(n),this._dimensions=X(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new Dp[e||"float"](this._rawCount),this._rawExtent[i]=qr(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=qr());for(var l=i[t],u=o;u<s;u++){var f=a[u]=e.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=n[u];Sc(a,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=n[d],p=es.arrayRows.call(this,t[v]||c,f.property,v,d);a[d][h]=p;var y=o[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=qr()),Sc(i,f,c.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],y=this._dimValueGetter(h,u[d],v,d);p[v]=y;var g=l[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Kr(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Kr(a._rawCount),o=new i(n),s=[],l=t.length,u=0,f=t[0],c=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=c[f][d];v=e(p,h)}else{for(var y=0;y<l;y++)s[y]=c[t[y]][d];s[y]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Ie(t),i=n.length;if(!i)return this;var o=e.count(),s=Kr(e._rawCount),l=new s(o),u=0,f=n[0],c=t[f][0],h=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var y=v[n[0]],g=0;g<a;g++){var m=y[g];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var y=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],g=0;g<a;g++){var m=y[g],x=_[g];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g<o;g++){var w=e.getRawIndex(g),m=v[n[0]][w];(m>=c&&m<=h||isNaN(m))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var D=!0,w=e.getRawIndex(g),M=0;M<i;M++){var A=n[M],m=v[A][w];(m<t[A][0]||m>t[A][1])&&(D=!1)}D&&(l[u++]=e.getRawIndex(g))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=qr();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=n[e[v]][h];l[o]=c;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],y=d[f],g=u[p],m=n[p];m&&(m[h]=y),y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Kr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),y=Math.min(d+l*2,o),g=(y+p)/2,m=0,_=p;_<y;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=y-p;var x=d,w=Math.min(d+l,o),D=d-1,M=i[u];f=-1,h=x;for(var A=-1,C=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){C++,A<0&&(A=S);continue}c=Math.abs((D-g)*(b-M)-(D-_)*(m-M)),c>f&&(f=c,h=S)}C>0&&C<w-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(Kr(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var y=0;y<p;y++){var g=this.getRawIndex(f+y),m=o[g];m<h&&(h=m,c=f+y),m>d&&(d=m,v=f+y)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=qr(),h=new(Kr(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var y=this.getRawIndex(d+p);s[p]=u[y]}var g=a(s),m=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=qr();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),c=e[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&gn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?tx(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=j(this._extent),t._rawExtent=j(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,a,n,i){return Oi(e[i],this._dimensions[i])}es={arrayRows:t,objectRows:function(e,a,n,i){return Oi(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Oi(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}})(),r})(),Ap=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(ii(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Qe(s)?ir:et,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=J(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=J(c.sourceHeader,h.sourceHeader),p=J(c.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=y?[yl(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=g.get("source",!0);n=[yl(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&bc(i)}var o,s=[],l=[];return T(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&bc(c),s.push(f),l.push(u._getVersionSign())}),a?o=jS(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[ES(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];ii(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new ml,s.initData(new xp(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ii(t)){var e=Ru(t);return e?[e.getSourceManager()]:[]}else return X(uS(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(ii(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r})();function xc(r){var t=r.option.transform;t&&Gi(r.option.transform)}function ii(r){return r.mainType==="series"}function bc(r){throw new Error(r)}var rx="line-height:1";function Lp(r){var t=r.lineHeight;return t==null?rx:"line-height:"+Xe(t+"")+"px"}function Ip(r,t){var e=r.color||O.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||O.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Xe(a+"")+"px;color:"+Xe(e)+";font-weight:"+Xe(n+""),valueStyle:"font-size:"+Xe(o+"")+"px;color:"+Xe(i)+";font-weight:"+Xe(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var ax=[0,10,20,30],nx=["",`
2
+ `,`
3
+
4
+ `,`
5
+
6
+
7
+ `];function lr(r,t){return t.type=r,t}function _l(r){return r.type==="section"}function Pp(r){return _l(r)?ix:ox}function kp(r){if(_l(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return T(r.blocks,function(n){var i=kp(n);i>=t&&(t=i+ +(a&&(!i||_l(n)&&!n.noHeader)))}),t}return 0}function ix(r,t,e,a){var n=t.noHeader,i=sx(kp(t)),o=[],s=t.blocks||[];dt(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(G(u,l)){var f=new WS(u[l],null);s.sort(function(p,y){return f.evaluate(p.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(p,y){var g=t.valueFormatter,m=Pp(p)(g?F(F({},r),{valueFormatter:g}):r,p,y>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):Sl(a,o.join(""),n?e:i.html);if(n)return c;var h=pl(t.header,"ordinal",r.useUTC),v=Ip(a,r.renderMode).nameStyle,d=Lp(a);return r.renderMode==="richText"?Rp(r,h,v)+i.richText+c:Sl(a,'<div style="'+v+";"+d+';">'+Xe(h)+"</div>"+c,e)}function ox(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],X(S,function(b,x){return pl(b,N(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||O.color.secondary,n),h=i?"":pl(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,y=!s&&i,g=Ip(a,n),m=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":Rp(r,h,m))+(o?"":fx(r,d,p,y,_)):Sl(a,(s?"":c)+(i?"":lx(h,!s,m))+(o?"":ux(d,p,y,_)),e)}}function wc(r,t,e,a,n,i){if(r){var o=Pp(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function sx(r){return{html:ax[r],richText:nx[r]}}function Sl(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=Lp(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function lx(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Xe(r)+"</span>"}function ux(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+i+";"+a+'">'+X(r,function(o){return Xe(o)}).join("&nbsp;&nbsp;")+"</span>"}function Rp(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function fx(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,i)}function Ep(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Br(a)}function Op(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var ts=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=_d()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=H_({color:e,type:t,renderMode:a,markerId:n});return $(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};N(e)?T(e,function(i){return F(a,i)}):F(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r})();function Bp(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=N(s),u=Ep(t,e),f,c,h,v;if(o>1||l&&!o){var d=cx(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=f=Sa(n,e,i[0]),c=p.type}else v=f=l?s[0]:s;var y=ou(t),g=y&&t.name||"",m=n.getName(e),_=a?g:m;return lr("section",{header:g,noHeader:a||!y,sortParam:v,blocks:[lr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Yn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function cx(r,t,e,a,n){var i=t.getData(),o=gn(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?T(a,function(c){f(Sa(i,e,c),c)}):T(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(lr("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Zt=ae();function oi(r,t){return r.getName(t)||r.getId(t)}var vx="__universalTransitionEnabled",Ne=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=hn({count:dx,reset:px}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Zt(this).sourceManager=new Ap(this);i.prepareSource();var o=this.getInitialData(e,n);Cc(o,this),this.dataTask.context.data=o,Zt(this).dataBeforeProcessed=o,Tc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=In(this),i=n?Fr(e):{},o=this.subType;ne.hasClass(o)&&(o+="Series"),se(e,a.getTheme().get(this.subType)),se(e,this.getDefaultOption()),Ui(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&zt(e,i,n)},t.prototype.mergeOption=function(e,a){e=se(this.option,e,!0),this.fillDataTextStyle(e.data);var n=In(this);n&&zt(this.option,e,n);var i=Zt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);Cc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Zt(this).dataBeforeProcessed=o,Tc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Qe(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ui(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=xl(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Zt(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=xl(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Zt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return Zt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Zt(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(a,function(d,p){var y=l.dataToCoord(d),g=u-y,m=Math.abs(g);m<=i&&((m<c||m===c&&g>=0&&h<0)&&(c=m,h=g,v=0),g===h&&(f[v++]=p))}),f.length=v,f},t.prototype.formatTooltip=function(e,a,n){return Bp({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(we.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=Eu.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=oi(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Ie(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[oi(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[vx])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=a[f],h=oi(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=a[l-1],h=oi(e,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return ne.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(ne);gt(Ne,FS);gt(Ne,Eu);Dd(Ne,ne);function Tc(r){var t=r.name;ou(r)||(r.name=hx(r)||t)}function hx(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return T(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function dx(r){return r.model.getRawData().count()}function px(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),gx}function gx(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Cc(r,t){T(Am(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,de(yx,t))})}function yx(r,t){var e=xl(r);return e&&e.setOutputEnd((t||this).count()),t}function xl(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var We=(function(){function r(){this.group=new oe,this.uid=Ao("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();lu(We);bo(We);function Gu(){var r=ae();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Np=ae(),mx=Gu(),Ee=(function(){function r(){this.group=new oe,this.uid=Ao("viewChart"),this.renderTask=hn({plan:_x,reset:Sx}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Dc(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Dc(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Gr(this.group,t)},r.markUpdateMethod=function(t,e){Np(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function Mc(r,t,e){r&&ol(r)&&(t==="emphasis"?bn:wn)(r,e)}function Dc(r,t,e){var a=Or(r,t),n=t&&t.highlightKey!=null?e_(t.highlightKey):null;a!=null?T(Le(a),function(i){Mc(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){Mc(i,e,n)})}lu(Ee);bo(Ee);function _x(r){return mx(r.model)}function Sx(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&Np(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),xx[l]}var xx={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},eo="\0__throttleOriginMethod",Ac="\0__throttleRate",Lc="\0__throttleType";function Fu(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=f||t,y=f||e;f=null,s=a-(y?n:i)-p,clearTimeout(o),y?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function ko(r,t,e,a){var n=r[t];if(n){var i=n[eo]||n,o=n[Lc],s=n[Ac];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=Fu(i,e,a==="debounce"),n[eo]=i,n[Lc]=a,n[Ac]=e}return n}}function to(r,t){var e=r[t];e&&e[eo]&&(e.clear&&e.clear(),r[t]=e[eo])}var Ic=ae(),Pc={itemStyle:xn(Kd,!0),lineStyle:xn($d,!0)},bx={lineStyle:"stroke",itemStyle:"fill"};function Vp(r,t){var e=r.visualStyleMapper||Pc[t];return e||(console.warn("Unknown style type '"+t+"'."),Pc.itemStyle)}function zp(r,t){var e=r.visualDrawType||bx[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var wx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Vp(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=zp(r,a),u=o[l],f=Q(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),y=F({},o);y[l]=f(p),v.setItemVisual(d,"style",y)}}}},Oa=new ye,Tx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Vp(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Oa.option=l[a];var u=n(Oa),f=o.ensureUniqueItemVisual(s,"style");F(f,u),Oa.option.decal&&(o.setItemVisual(s,"decal",Oa.option.decal),Oa.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Cx={performRawSeries:!0,overallReset:function(r){var t=q();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),Ic(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Ic(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=zp(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},si=Math.PI;function Mx(r,t){t=t||{},ie(t,{text:"loading",textColor:O.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:O.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new oe,a=new fe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new pe({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new fe({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new au({shape:{startAngle:-si/2,endAngle:-si/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:si*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:si*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Gp=(function(){function r(t,e,a,n){this._stageTaskMap=q(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=q();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;T(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";dt(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;T(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(y){s(n,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(y){y.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(y,g){s(n,y)&&y.dirty();var m=o.getPerformArgs(y,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(y.context.model),o.updatePayload(y,a),y.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||hn({plan:Px,reset:kx,count:Ex}));v.context={model:c,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||hn({reset:Dx});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";dt(!t.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,T(a.getSeries(),d));function d(p){var y=p.uid,g=l.set(y,s&&s.get(y)||(h=!0,hn({reset:Ax,onDirty:Ix})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return Q(t)&&(t={overallReset:t,seriesType:Ox(t)}),t.uid=Ao("stageHandler"),e&&(t.visualType=e),t},r})();function Dx(r){r.overallReset(r.ecModel,r.api,r.payload)}function Ax(r){return r.overallProgress&&Lx}function Lx(){this.agent.dirty(),this.getDownstream().dirty()}function Ix(){this.agent&&this.agent.dirty()}function Px(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function kx(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Le(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?X(t,function(e,a){return Fp(a)}):Rx}var Rx=Fp(0);function Fp(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function Ex(r){return r.data.count()}function Ox(r){ro=null;try{r(kn,Hp)}catch{}return ro}var kn={},Hp={},ro;Wp(kn,Ou);Wp(Hp,gp);kn.eachSeriesByType=kn.eachRawSeriesByType=function(r){ro=r};kn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ro=r.subType)};function Wp(r,t){for(var e in t.prototype)r[e]=st}var U=O.darkColor,Bx=U.background,Ba=function(){return{axisLine:{lineStyle:{color:U.axisLine}},splitLine:{lineStyle:{color:U.axisSplitLine}},splitArea:{areaStyle:{color:[U.backgroundTint,U.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:U.axisMinorSplitLine}},axisLabel:{color:U.axisLabel},axisName:{}}},kc={label:{color:U.secondary},itemStyle:{borderColor:U.borderTint},dividerLineStyle:{color:U.border}},Up={darkMode:!0,color:U.theme,backgroundColor:Bx,axisPointer:{lineStyle:{color:U.border},crossStyle:{color:U.borderShade},label:{color:U.tertiary}},legend:{textStyle:{color:U.secondary},pageTextStyle:{color:U.tertiary}},textStyle:{color:U.secondary},title:{textStyle:{color:U.primary},subtextStyle:{color:U.quaternary}},toolbox:{iconStyle:{borderColor:U.accent50}},tooltip:{backgroundColor:U.neutral20,defaultBorderColor:U.border,textStyle:{color:U.tertiary}},dataZoom:{borderColor:U.accent10,textStyle:{color:U.tertiary},brushStyle:{color:U.backgroundTint},handleStyle:{color:U.neutral00,borderColor:U.accent20},moveHandleStyle:{color:U.accent40},emphasis:{handleStyle:{borderColor:U.accent50}},dataBackground:{lineStyle:{color:U.accent30},areaStyle:{color:U.accent20}},selectedDataBackground:{lineStyle:{color:U.accent50},areaStyle:{color:U.accent30}}},visualMap:{textStyle:{color:U.secondary},handleStyle:{borderColor:U.neutral30}},timeline:{lineStyle:{color:U.accent10},label:{color:U.tertiary},controlStyle:{color:U.accent30,borderColor:U.accent30}},calendar:{itemStyle:{color:U.neutral00,borderColor:U.neutral20},dayLabel:{color:U.tertiary},monthLabel:{color:U.secondary},yearLabel:{color:U.secondary}},matrix:{x:kc,y:kc,backgroundColor:{borderColor:U.axisLine},body:{itemStyle:{borderColor:U.borderTint}}},timeAxis:Ba(),logAxis:Ba(),valueAxis:Ba(),categoryAxis:Ba(),line:{symbol:"circle"},graph:{color:U.theme},gauge:{title:{color:U.secondary},axisLine:{lineStyle:{color:[[1,U.neutral05]]}},axisLabel:{color:U.axisLabel},detail:{color:U.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:U.background}},radar:(function(){var r=Ba();return r.axisName={color:U.axisLabel},r.axisLine.lineStyle.color=U.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:U.neutral20,textStyle:{color:U.secondary}},emphasis:{itemStyle:{color:U.neutral30}}}},sunburst:{itemStyle:{borderColor:U.background}},map:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},label:{color:U.tertiary},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}}},geo:{itemStyle:{borderColor:U.border,areaColor:U.neutral10},emphasis:{label:{color:U.primary},itemStyle:{areaColor:U.highlight}},select:{label:{color:U.primary},itemStyle:{color:U.highlight}}}};Up.categoryAxis.splitLine.show=!1;var Nx=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if($(t)){var i=wt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),bl=["symbol","symbolSize","symbolRotate","symbolOffset"],Rc=bl.concat(["symbolKeepAspect"]),Vx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<bl.length;o++){var s=bl[o],l=r.get(s);Q(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(F({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Ie(n);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var y=u[p];c.setItemVisual(h,y,n[y](v,d))}}return{dataEach:i?f:null}}},zx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<Rc.length;s++){var l=Rc[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function Yp(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Zp(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function Gx(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function Fx(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=F({},n),o.dispatchAction(F(n,{type:a[1],seriesIndex:e(i,n)}))})})}function jr(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=Or(c,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:N(h)?c.getName(h[0]):c.getName(h),selected:$(l)?l:F({},l)})}})}function Hx(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(jr("map","selectchanged",t,n,a),jr("pie","selectchanged",t,n,a)):a.fromAction==="select"?(jr("map","selected",t,n,a),jr("pie","selected",t,n,a)):a.fromAction==="unselect"&&(jr("map","unselected",t,n,a),jr("pie","unselected",t,n,a))})}function va(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var Wx=Ve.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),Ux=Ve.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),Yx=Ve.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*v,l+s+h*v,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),Zx=Ve.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),Xx={line:or,rect:fe,roundRect:fe,square:fe,circle:xo,diamond:Ux,pin:Yx,arrow:Zx,triangle:Wx},$x={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},ao={};T(Xx,function(r,t){ao[t]=new r});var Kx=Ve.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Js(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=ao[a];n||(a="rect",n=ao[a]),$x[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function qx(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||O.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Je(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Vd(r.slice(8),new Ae(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=Cn(r.slice(7),{},new Ae(t,e,a,n),o?"center":"cover"):l=new Kx({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=qx,i&&l.setColor(i),l}function Ro(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Eo(r,t){if(r!=null)return N(r)||(r=[r,r]),[re(r[0],t[0])||0,re(J(r[1],r[0]),t[1])||0]}var rs=new Lm,Ec=new Im(100),Oc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function no(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&rs.delete(r);var i=rs.get(r);if(i)return i;var o=ie(r,{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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,rs.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<Oc.length;++h){var v=o[Oc[h]];if(v!=null&&!N(v)&&!$(v)&&!le(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(n?"-svg":"");var p=Ec.get(d);p&&(n?u.svgElement=p:u.image=p)}var y=$p(o.dashArrayX),g=jx(o.dashArrayY),m=Xp(o.symbol),_=Qx(y),S=Kp(g),b=!n&&Fi.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),D;b&&(b.width=w.width*e,b.height=w.height*e,D=b.getContext("2d")),A(),c&&Ec.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function M(){for(var C=1,I=0,L=_.length;I<L;++I)C=If(C,_[I]);for(var E=1,I=0,L=m.length;I<L;++I)E=If(E,m[I].length);C*=E;var P=S*_.length*m.length;return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function A(){D&&(D.clearRect(0,0,b.width,b.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,b.width,b.height)));for(var C=0,I=0;I<g.length;++I)C+=g[I];if(C<=0)return;for(var L=-S,E=0,P=0,k=0;L<w.height;){if(E%2===0){for(var V=P/2%m.length,R=0,B=0,z=0;R<w.width*2;){for(var W=0,I=0;I<y[k].length;++I)W+=y[k][I];if(W<=0)break;if(B%2===0){var Y=(1-o.symbolSize)*.5,ee=R+y[k][B]*Y,me=L+g[E]*Y,Te=y[k][B]*o.symbolSize,Ht=g[E]*o.symbolSize,Yr=z/2%m[V].length;Wt(ee,me,Te,Ht,m[V][Yr])}R+=y[k][B],++z,++B,B===y[k].length&&(B=0)}++k,k===y.length&&(k=0)}L+=g[E],++P,++E,E===g.length&&(E=0)}function Wt(Ia,Pa,Qn,Jn,ei){var gr=n?1:e,Ut=Je(ei,Ia*gr,Pa*gr,Qn*gr,Jn*gr,o.color,o.symbolKeepAspect);if(n){var Dt=a.painter.renderOneToVNode(Ut);Dt&&x.children.push(Dt)}else Pm(D,Ut)}}}}function Xp(r){if(!r||r.length===0)return[["rect"]];if($(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!$(r[e])){t=!1;break}if(t)return Xp([r]);for(var a=[],e=0;e<r.length;++e)$(r[e])?a.push([r[e]]):a.push(r[e]);return a}function $p(r){if(!r||r.length===0)return[[0,0]];if(le(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!le(r[a])){e=!1;break}if(e)return $p([r]);for(var n=[],a=0;a<r.length;++a)if(le(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=X(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function jx(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(le(r)){var t=Math.ceil(r);return[t,t]}var e=X(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function Qx(r){return X(r,function(t){return Kp(t)})}function Kp(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function Jx(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=no(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=no(n,t)}}})}var ft=new Zn,qp={};function eb(r,t){qp[r]=t}function tb(r){return qp[r]}var jp={};function rb(r,t){jp[r]=t}function ab(r){return jp[r]}var nb=1,ib=800,ob=900,sb=1e3,lb=2e3,ub=5e3,Qp=1e3,fb=1100,Hu=2e3,Jp=3e3,cb=4e3,Oo=4500,vb=4600,hb=5e3,db=6e3,eg=7e3,pb={PROCESSOR:{FILTER:sb,SERIES_FILTER:ib,STATISTIC:ub},VISUAL:{LAYOUT:Qp,PROGRESSIVE_LAYOUT:fb,GLOBAL:Hu,CHART:Jp,POST_CHART_LAYOUT:vb,COMPONENT:cb,BRUSH:hb,CHART_ITEM:Oo,ARIA:db,DECAL:eg}},Ce="__flagInMainProcess",li="__mainProcessVersion",Pe="__pendingUpdate",as="__needsUpdateStatus",Bc=/^[a-zA-Z0-9_]+$/,ns="__connectUpdateStatus",Nc=0,gb=1,yb=2;function tg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return ag(this,r,t)}}function rg(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ag(this,r,t)}}function ag(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Zn.prototype[t].apply(r,e)}var ng=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Zn),ig=ng.prototype;ig.on=rg("on");ig.off=rg("off");var wr,is,ui,Lt,fi,os,ss,Qr,Jr,Vc,zc,ls,Gc,ci,Fc,og,tt,Hc,ea,sg=(function(r){H(t,r);function t(e,a,n){var i=r.call(this,new Nx)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=e;var o="canvas",s="auto",l=!1;i[li]=1,n.ssr;var u=i._zr=Sf(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:J(n.useDirtyRect,l),useCoarsePointer:J(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=Fu(Z(u.flush,u),17),i._updateTheme(a),i._locale=L_(n.locale||qd),i._coordSysMgr=new qn;var f=i._api=Fc(i);function c(h,v){return h.__prio-v.__prio}return Fo(oo,c),Fo(Cl,c),i._scheduler=new Gp(i,f,Cl,oo),i._messageCenter=new ng,i._initEvents(),i.resize=Z(i.resize,i),u.animation.on("frame",i._onframe,i),Vc(u,i),zc(u,i),Gi(i),i}return t.prototype._onframe=function(){if(!this._disposed){Hc(this);var e=this._scheduler;if(this[Pe]){var a=this[Pe].silent;this[Ce]=!0,ea(this);try{wr(this),Lt.update.call(this,null,this[Pe].updateParams)}catch(l){throw this[Ce]=!1,this[Pe]=null,l}this._zr.flush(),this[Ce]=!1,this[Pe]=null,Qr.call(this,a),Jr.call(this,a)}else if(e.unfinished){var n=nb,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),os(this,i),e.performVisualTasks(i),ci(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[Ce]){if(this._disposed){this.id;return}var i,o,s;if(K(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ce]=!0,ea(this),!this._model||a){var l=new SS(this._api),u=this._theme,f=this._model=new Ou;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Ml);var c={seriesTransition:s,optionChanged:!0};if(n)this[Pe]={silent:i,updateParams:c},this[Ce]=!1,this.getZr().wakeUp();else{try{wr(this),Lt.update.call(this,null,c)}catch(h){throw this[Pe]=null,this[Ce]=!1,h}this._ssr||this._zr.flush(),this[Pe]=null,this[Ce]=!1,Qr.call(this,i),Jr.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Ce]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Pe]&&(i==null&&(i=this[Pe].silent),o=this[Pe].updateParams,this[Pe]=null),this[Ce]=!0,ea(this);try{this._updateTheme(e),n.setTheme(this._theme),wr(this),Lt.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ce]=!1,s}this[Ce]=!1,Qr.call(this,i),Jr.call(this,i)}}},t.prototype._updateTheme=function(e){$(e)&&(e=lg[e]),e&&(e=j(e),e&&mp(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||we.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return T(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;T(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(Wc[n]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();T(dn,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,y=Fi.createCanvas(),g=Sf(y,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:p}),a){var m="";return T(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new fe({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),T(h,function(_){var S=new Gt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return fi(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return fi(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return fi(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Uo(n,e);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=Uo(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Yp(s,l,a):Zp(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(mb,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&va(l,function(p){var y=te(p);if(y&&y.dataIndex!=null){var g=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=g&&g.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=F({},y.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;T(Tl,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),Hx(a,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Td(this.getDom(),Uu,"");var a=this,n=a._api,i=a._model;T(a._componentsViews,function(o){o.dispose(i,n)}),T(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete dn[a.id]},t.prototype.resize=function(e){if(!this[Ce]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Pe]&&(i==null&&(i=this[Pe].silent),n=!0,this[Pe]=null),this[Ce]=!0,ea(this);try{n&&wr(this),Lt.update.call(this,{type:"resize",animation:F({duration:0},e&&e.animation)})}catch(o){throw this[Ce]=!1,o}this[Ce]=!1,Qr.call(this,i),Jr.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(K(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!Dl[e]){var n=Dl[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=F({},e);return a.type=wl[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(K(a)||(a={silent:!!a}),!!io[e.type]&&this._model){if(this[Ce]){this._pendingActions.push(e);return}var n=a.silent;ss.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&we.browser.weChat&&this._throttledZrFlush(),Qr.call(this,n),Jr.call(this,n)}},t.prototype.updateLabelLayout=function(){ft.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){wr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),is(c,!0),is(c,!1),h.plan()},is=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,y=h?c._componentsMap:c._chartsMap,g=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var D="_ec_"+x.id+"_"+x.type,M=!w&&y[D];if(!M){var A=wt(x.type),C=h?We.getClass(A.main,A.sub):Ee.getClass(A.sub);M=new C,M.init(v,m),y[D]=M,p.push(M),g.add(M.group)}x.__viewId=M.__id=D,M.__alive=!0,M.__model=x,M.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(M,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),g.remove(b.group),b.dispose(v,m),p.splice(_,1),y[b.__id]===b&&delete y[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ui=function(c,h,v,d,p){var y=c._model;if(y.setUpdatePayload(v),!d){T([].concat(c._componentsViews).concat(c._chartsViews),b);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var m={mainType:d,query:g};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=q(),T(Le(_),function(x){var w=it(x,null);w!=null&&S.set(w,!0)})),y&&y.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(Ff(v))if(x instanceof Ne)v.type===Pr&&!v.notBlur&&!x.get(["emphasis","disabled"])&&Z0(x,v,c._api);else{var D=hu(x.mainType,x.componentIndex,v.name,c._api),M=D.focusSelf,A=D.dispatchers;v.type===Pr&&M&&!v.notBlur&&il(x.mainType,x.componentIndex,c._api),A&&T(A,function(C){v.type===Pr?bn(C):wn(C)})}else sl(v)&&x instanceof Ne&&(K0(x,v,c._api),zf(x),tt(c))},c),y&&y.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,y,c._api,v)}},Lt={prepareAndUpdate:function(c){wr(this),Lt.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,y=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(c),g.restoreData(v,c),g.performSeriesTasks(v),y.create(v,d),g.performDataProcessorTasks(v,c),os(this,v),y.update(v,d),a(v),g.performVisualTasks(v,c);var m=v.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),ls(this,v,d,c,h),ft.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(g,m){if(g!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var y=q();v.eachSeries(function(g){var m=h._chartsMap[g.__viewId];if(m.updateTransform){var _=m.updateTransform(g,v,d,c);_&&_.update&&y.set(g.uid,1)}else y.set(g.uid,1)}),a(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:y}),ci(this,v,d,c,{},y),ft.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Ee.markUpdateMethod(c,"updateView"),a(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),ls(this,h,this._api,c,{}),ft.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Ee.markUpdateMethod(c,"updateVisual"),a(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var y=h.getViewOfComponentModel(p);y&&y.__alive&&y.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),ft.trigger("afterupdate",v,this._api))},updateLayout:function(c){Lt.update.call(this,c)}};function e(c,h,v,d,p){if(c._disposed){c.id;return}for(var y=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Uo(y,v),S=0;S<g.length;S++){var b=g[S];if(b[h]&&(m=b[h](y,_,d,p))!=null)return m}}fi=e,os=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},ss=function(c,h){var v=this,d=this.getModel(),p=c.type,y=c.escapeConnect,g=io[p],m=(g.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&wt(m[0]);this[Ce]=!0,ea(this);var b=[c],x=!1;c.batch&&(x=!0,b=X(c.batch,function(k){return k=ie(F({},k),c),k.batch=null,k}));var w=[],D,M=[],A=g.nonRefinedEventType,C=sl(c),I=Ff(c);if(I&&Nd(this._api),T(b,function(k){var V=g.action(k,d,v._api);if(g.refineEvent?M.push(V):D=V,D=D||F({},k),D.type=A,w.push(D),I){var R=su(c),B=R.queryOptionMap,z=R.mainTypeSpecified,W=z?B.keys()[0]:"series";ui(v,_,k,W),tt(v)}else C?(ui(v,_,k,"series"),tt(v)):S&&ui(v,_,k,S.main,S.sub)}),_!=="none"&&!I&&!C&&!S)try{this[Pe]?(wr(this),Lt.update.call(this,c),this[Pe]=null):Lt[_].call(this,c)}catch(k){throw this[Ce]=!1,k}if(x?D={type:A,escapeConnect:y,batch:w}:D=w[0],this[Ce]=!1,!h){var L=void 0;if(g.refineEvent){var E=g.refineEvent(M,c,d,this._api).eventContent;dt(K(E)),L=ie({type:g.refinedEventType},E),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var P=this._messageCenter;P.trigger(D.type,D),L&&P.trigger(L.type,L)}},Qr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();ss.call(this,v,c)}},Jr=function(c){!c&&this.trigger("updated")},Vc=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Pe]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},zc=function(c,h){c.on("mouseover",function(v){var d=v.target,p=va(d,ol);p&&(X0(p,v,h._api),tt(h))}).on("mouseout",function(v){var d=v.target,p=va(d,ol);p&&($0(p,v,h._api),tt(h))}).on("click",function(v){var d=v.target,p=va(d,function(m){return te(m).dataIndex!=null},!0);if(p){var y=p.selected?"unselect":"select",g=te(p);h._api.dispatchAction({type:y,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=h.concat(v),y,g;Fo(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;y!=null&&(S=Math.max(y,S)),b?(S===y&&b!==g&&S++,g=b):g&&(S===y&&S++,g=""),y=S,_.setZLevel(S)})}}ls=function(c,h,v,d,p){n(h),Gc(c,h,v,d,p),T(c._chartsViews,function(y){y.__alive=!1}),ci(c,h,v,d,p),T(c._chartsViews,function(y){y.__alive||y.remove(h,v)})},Gc=function(c,h,v,d,p,y){T(y||c._componentsViews,function(g){var m=g.__model;u(m,g),g.render(m,h,v,d),l(m,g),f(m,g)})},ci=function(c,h,v,d,p,y){var g=c._scheduler;p=F(p||{},{updatedSeries:h.getSeries()}),ft.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(_,S),y&&y.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),zf(_)}),g.unfinished=m||g.unfinished,ft.trigger("series:layoutlabels",h,v,p),ft.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),ft.trigger("series:afterupdate",h,v,p)},tt=function(c){c[as]=!0,c.getZr().wakeUp()},ea=function(c){c[li]=(c[li]+1)%1e3},Hc=function(c){c[as]&&(c.getZr().storage.traverse(function(h){da(h)||i(h)}),c[as]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===To&&c.states.emphasis?h.push("emphasis"):c.hoverState===wo&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(y){y.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!we.node&&!we.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var g=c._chartsMap[y.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=Ln(c);h.eachRendered(function(d){return Wd(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!da(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),y=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(da(g))return;if(g instanceof Ve&&t_(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=y;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}g.__dirty&&i(g)}})}Fc=function(c){return new((function(h){H(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){bn(d,p),tt(c)},v.prototype.leaveEmphasis=function(d,p){wn(d,p),tt(c)},v.prototype.enterBlur=function(d){Y0(d),tt(c)},v.prototype.leaveBlur=function(d){Rd(d),tt(c)},v.prototype.enterSelect=function(d){Ed(d),tt(c)},v.prototype.leaveSelect=function(d){Od(d),tt(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return c[li]},v})(gp))(c)},og=function(c){function h(v,d){for(var p=0;p<v.length;p++){var y=v[p];y[ns]=d}}T(wl,function(v,d){c._messageCenter.on(d,function(p){if(Wc[c.group]&&c[ns]!==Nc){if(p&&p.escapeConnect)return;var y=c.makeActionFromEvent(p),g=[];T(dn,function(m){m!==c&&m.group===c.group&&g.push(m)}),h(g,Nc),T(g,function(m){m[ns]!==gb&&m.dispatchAction(y)}),h(g,yb)}})})}})(),t})(Zn),Wu=sg.prototype;Wu.on=tg("on");Wu.off=tg("off");Wu.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var mb=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var io={},wl={},Tl={},Cl=[],Ml=[],oo=[],lg={},Dl={},dn={},Wc={},_b=+new Date-0,Uu="_echarts_instance_";function NA(r,t,e){var a=!(e&&e.ssr);if(a){var n=Sb(r);if(n)return n}var i=new sg(r,t,e);return i.id="ec_"+_b++,dn[i.id]=i,a&&Td(r,Uu,i.id),og(i),ft.trigger("afterinit",i),i}function Sb(r){return dn[w0(r,Uu)]}function ug(r,t){lg[r]=t}function fg(r){ue(Ml,r)<0&&Ml.push(r)}function cg(r,t){Zu(Cl,r,t,lb)}function xb(r){Yu("afterinit",r)}function bb(r){Yu("afterupdate",r)}function Yu(r,t){ft.on(r,t)}function Wr(r,t,e){var a,n,i,o,s;Q(t)&&(e=t,t=""),K(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),i=r.refineEvent):(a=r,n=t);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;io[a]||(dt(Bc.test(a)&&Bc.test(n)),i&&dt(n!==a),io[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:e,refineEvent:i},Tl[n]=1,i&&s&&(Tl[u]=1),wl[u]=a)}function wb(r,t){qn.register(r,t)}function Tb(r,t){Zu(oo,r,t,Qp,"layout")}function Ur(r,t){Zu(oo,r,t,Jp,"visual")}var Uc=[];function Zu(r,t,e,a,n){if((Q(t)||K(t))&&(e=t,t=a),!(ue(Uc,e)>=0)){Uc.push(e);var i=Gp.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function vg(r,t){Dl[r]=t}function Cb(r,t,e){var a=tb("registerMap");a&&a(r,t,e)}var Mb=qS;Ur(Hu,wx);Ur(Oo,Tx);Ur(Oo,Cx);Ur(Hu,Vx);Ur(Oo,zx);Ur(eg,Jx);fg(mp);cg(ob,kS);vg("default",Mx);Wr({type:Pr,event:Pr,update:Pr},st);Wr({type:Ii,event:Ii,update:Ii},st);Wr({type:Zi,event:cu,update:Zi,action:st,refineEvent:Xu,publishNonRefinedEvent:!0});Wr({type:al,event:cu,update:al,action:st,refineEvent:Xu,publishNonRefinedEvent:!0});Wr({type:Xi,event:cu,update:Xi,action:st,refineEvent:Xu,publishNonRefinedEvent:!0});function Xu(r,t,e,a){return{eventContent:{selected:q0(e),isFromClick:t.isFromClick||!1}}}ug("default",{});ug("dark",Up);function Na(r){return r==null?0:r.length||1}function Yc(r){return r}var hg=(function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||Yc,this._newKeyGetter=n||Yc,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Na(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],c=Na(u),h=Na(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Na(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Na(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),Db=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Ab(r,t){var e={},a=e.encode={},n=q(),i=[],o=[],s={};T(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;us(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),Ib(v.type)&&(i[0]=h),us(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}cp.each(function(y,g){var m=us(a,g),_=v.otherDims[g];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=X(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var c=a.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new Db(s,t),e}function us(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Lb(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Ib(r){return!(r==="ordinal"||r==="time")}var Bi=(function(){function r(t){this.otherDims={},t!=null&&F(this,t)}return r})(),Pb=ae(),kb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},dg=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=yg(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return J(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Sp(this.source),a=!mg(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=kb[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function pg(r){return r instanceof dg}function gg(r){for(var t=q(),e=0;e<(r||[]).length;e++){var a=r[e],n=K(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function yg(r){var t=Pb(r);return t.dimNameMap||(t.dimNameMap=gg(r.dimensionsDefine))}function mg(r){return r>30}var Va=K,Xt=X,Rb=typeof Int32Array>"u"?Array:Int32Array,Eb="e\0\0",Zc=-1,Ob=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bb=["_approximateExtent"],Xc,vi,za,Ga,fs,Fa,cs,Rn=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;pg(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var c=a[f],h=$(c)?new Bi({name:c}):c instanceof Bi?c:new Bi(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]);var p=f;le(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),n&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=q();T(o,function(g){y.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(le(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof ml&&(i=t),!i){var o=this.dimensions,s=Bu(t)||Hn(t)?new xp(t,o.length):t;i=new ml;var l=Xt(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Ab(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&cs(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ir&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===et;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&f0(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=it(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=it(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)cs(this,f);Xc(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Va(t)?F(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=za(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return vi(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return N(t)?n.getValues(Xt(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?Zc:n},r.prototype.each=function(t,e,a){Q(t)&&(a=e,e=t,t=[]);var n=a||this,i=Xt(Ga(t),this._getStoreDimIndex,this);this._store.each(i,n?Z(e,n):e)},r.prototype.filterSelf=function(t,e,a){Q(t)&&(a=e,e=t,t=[]);var n=a||this,i=Xt(Ga(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Z(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Ie(t);return T(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){Q(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=Xt(Ga(t),this._getStoreDimIndex,this),s=Fa(this);return s._store=this._store.map(o,i?Z(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=Xt(Ga(t),this._getStoreDimIndex,this);this._store.modify(o,i?Z(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=Fa(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=Fa(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=Fa(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new ye(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new hg(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return vi(t,a)},function(a){return vi(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Va(t)?F(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),N(i)?i=i.slice():Va(i)&&(i=F({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Va(e)?F(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Va(t)?F(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?F(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;B0(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Xt(this.dimensions,this._getDimInfo,this),this.hostModel)),fs(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];Q(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(km(arguments)))})},r.internalField=(function(){Xc=function(t){var e=t._invertedIndicesMap;T(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new Rb(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Zc;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},za=function(t,e,a){return it(t._getCategory(e,a),null)},vi=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=za(t,t._idDimIdx,e)),a==null&&(a=Eb+e),a},Ga=function(t){return N(t)||(t=t!=null?[t]:[]),t},Fa=function(t){var e=new r(t._schema?t._schema:Xt(t.dimensions,t._getDimInfo,t),t.hostModel);return fs(e,t),e},fs=function(t,e){T(Ob.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,T(Bb,function(a){t[a]=j(e[a])}),t._calculationInfo=F({},e._calculationInfo)},cs=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=za(t,i,e)),l==null&&o!=null&&(n[e]=l=za(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}})(),r})();function VA(r,t){return Bo(r,t).dimensions}function Bo(r,t){Bu(r)||(r=Nu(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=Vb(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&mg(o),l=a===r.dimensionsDefine,u=l?yg(r):gg(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=q(f),h=new Mp(o),v=0;v<h.length;v++)h[v]=-1;function d(M){var A=h[M];if(A<0){var C=a[M],I=K(C)?C:{name:C},L=new Bi,E=I.name;E!=null&&u.get(E)!=null&&(L.name=L.displayName=E),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var P=i.length;return h[M]=P,L.storeDimIndex=M,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(M,A){var C=Le(M).slice();if(C.length===1&&!$(C[0])&&C[0]<0){c.set(A,!1);return}var I=c.set(A,[]);T(C,function(L,E){var P=$(L)?u.get(L):L;P!=null&&P<o&&(I[E]=P,y(d(P),A,E))})});var p=0;T(e,function(M){var A,C,I,L;if($(M))A=M,L={};else{L=M,A=L.name;var E=L.ordinalMeta;L.ordinalMeta=null,L=F({},L),L.ordinalMeta=E,C=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var P=c.get(A);if(P!==!1){if(P=Le(P),!P.length)for(var k=0;k<(C&&C.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&P.push(p++)}T(P,function(V,R){var B=d(V);if(l&&L.type!=null&&(B.type=L.type),y(ie(B,L),A,R),B.name==null&&C){var z=C[R];!K(z)&&(z={name:z}),B.name=B.displayName=z.name,B.defaultTooltip=z.defaultTooltip}I&&ie(B.otherDims,I)})}});function y(M,A,C){cp.get(A)!=null?M.otherDims[A]=C:(M.coordDim=A,M.coordDimIndex=C,n.set(A,!0))}var g=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=g?m||1:0;var S=g||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)T(i,function(M){b(M)}),i.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),D=w.coordDim;D==null&&(w.coordDim=zb(S,n,_),w.coordDimIndex=0,(!g||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(dp(r,x)===Oe.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return Nb(i),new dg({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Nb(r){for(var t=q(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function Vb(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return T(t,function(i){var o;K(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function zb(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var Gb=(function(){function r(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return r})();function Fb(r){var t=r.get("coordinateSystem"),e=new Gb(t),a=Hb[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Hb={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ge).models[0],i=r.getReferringComponents("yAxis",Ge).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),ta(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),ta(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ge).models[0];t.coordSysDims=["single"],e.set("single",n),ta(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ge).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),ta(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),ta(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();T(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),ta(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",Ge).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function ta(r){return r.get("type")==="category"}function Wb(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Ub(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(T(i,function(m,_){$(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;T(i,function(m){m.coordDim===v&&p++});var y={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(g)):(i.push(y),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Ub(r){return!pg(r.schema)}function xa(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Yb(r,t){return xa(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Zb(r,t){var e=r.get("coordinateSystem"),a=qn.get(e),n;return t&&t.coordSysDims&&(n=X(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Lb(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Xb(r,t,e){var a,n;return e&&T(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function La(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=Nu(r)):(n=a.getSource(),i=n.sourceFormat===et);var o=Fb(t),s=Zb(t,o),l=e.useEncodeDefaulter,u=Q(l)?l:l?de(sS,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=Bo(n,f),h=Xb(c.dimensions,e.createInvertedIndices,o),v=i?null:a.getSharedDataStore(c),d=Wb(t,{schema:c,store:v}),p=new Rn(c,t);p.setCalculationInfo(d);var y=h!=null&&$b(n)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,y),p}function $b(r){if(r.sourceFormat===et){var t=Kb(r.data||[]);return!N($n(t))}}function Kb(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function Al(r){return r.type==="interval"||r.type==="log"}function qb(r,t,e,a,n){var i={},o=i.interval=md(t/e);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=En(o),l=i.niceTickExtent=[ke(Math.ceil(r[0]/o)*o,s),ke(Math.floor(r[1]/o)*o,s)];return jb(l,r),i}function vs(r){var t=Math.pow(10,iu(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ke(e*t)}function En(r){return kt(r)+2}function $c(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function jb(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),$c(r,0,t),$c(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function $u(r,t){return r>=t[0]&&r<=t[1]}var Qb=(function(){function r(){this.normalize=Kc,this.scale=qc}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Z(t.normalize,t),this.scale=Z(t.scale,t)):(this.normalize=Kc,this.scale=qc)},r})();function Kc(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function qc(r,t){return r*(t[1]-t[0])+t[0]}function Ll(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var pr=(function(){function r(t){this._calculator=new Qb,this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();bo(pr);var Jb=0,Il=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Jb,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&X(a,ew);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!$(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r})();function ew(r){return K(r)&&r.value!=null?r.value:r+""}var _g=(function(r){H(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Il({})),N(n)&&(n=new Il({categories:X(n,function(i){return K(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:$(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return $u(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(pr);pr.registerClass(_g);var $t=ke,ur=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return $u(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=En(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=Qi(),l=[];if(!a)return l;e.breakTicks;var u=1e4;n[0]<i[0]&&(e.expandToNicedExtent?l.push({value:$t(i[0]-a,o)}):l.push({value:n[0]}));for(var f=function(d,p){return Math.round((p-d)/a)},c=i[0];c<=i[1];){if(l.push({value:c}),c=$t(c+a,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=$t(c+h*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return n[1]>v&&(e.expandToNicedExtent?l.push({value:$t(v+a,o)}):l.push({value:n[1]})),e.breakTicks,l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/e,v=En(h);u<e-1;){var d=$t(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=Qi();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(y){return y},this._interval,i),n.push(f)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=kt(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=$t(e.value,n,!0);return ip(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=qb(i,o,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval,s=this._intervalPrecision;e.fixMin||(a[0]=$t(Math.floor(a[0]/o)*o,s)),e.fixMax||(a[1]=$t(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t})(pr);pr.registerClass(ur);var Sg=typeof Float32Array<"u",tw=Sg?Float32Array:Array;function Rt(r){return N(r)?Sg?new Float32Array(r):r:new tw(r)}var Pl="__ec_stack_";function xg(r){return r.get("stack")||Pl+r.seriesIndex}function Ku(r){return r.dim+r.index}function rw(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(ie({bandWidth:n,axisKey:a,stackId:Pl+i},r));for(var o=Tg(t),s=[],i=0;i<r.count;i++){var l=o[a][Pl+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function bg(r,t){var e=[];return t.eachSeriesByType(r,function(a){Cg(a)&&e.push(a)}),e}function aw(r){var t={};T(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,y=d.count();p<y;++p){var g=d.get(v,p);t[h]?t[h].push(g):t[h]=[g]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function wg(r){var t=aw(r),e=[];return T(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=re(a.get("barWidth"),s),p=re(a.get("barMaxWidth"),s),y=re(a.get("barMinWidth")||(Mg(a)?.5:1),s),g=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:y,barGap:g,barCategoryGap:m,defaultBarGap:_,axisKey:Ku(i),stackId:xg(a)})}),Tg(e)}function Tg(r){var t={};T(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);var h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return T(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Ie(i).length;s=Math.max(35-l*4,15)+"%"}var u=re(s,o),f=re(a.gap,1),c=a.remainedWidth,h=a.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),T(i,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;T(i,function(g,m){g.width||(g.width=v),p=g,d+=g.width*(1+f)}),p&&(d-=p.width*f);var y=-d/2;T(i,function(g,m){e[n][m]=e[n][m]||{bandWidth:o,offset:y,width:g.width},y+=g.width*(1+f)})}),e}function nw(r,t,e){if(r&&t){var a=r[Ku(t)];return a}}function iw(r,t){var e=bg(r,t),a=wg(e);T(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=xg(n),u=a[Ku(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function ow(r){return{seriesType:r,plan:Gu(),reset:function(t){if(Cg(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=xa(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=sw(n,i),d=Mg(t),p=t.get("barMinHeight")||0,y=f&&e.getDimensionIndex(f),g=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Rt(b*3),w=d&&l&&Rt(b*3),D=d&&Rt(b),M=a.master.getRect(),A=h?M.width:M.height,C,I=S.getStore(),L=0;(C=_.next())!=null;){var E=I.get(c?y:o,C),P=I.get(s,C),k=v,V=void 0;c&&(V=+E-I.get(o,C));var R=void 0,B=void 0,z=void 0,W=void 0;if(h){var Y=a.dataToPoint([E,P]);if(c){var ee=a.dataToPoint([V,P]);k=ee[0]}R=k,B=Y[1]+m,z=Y[0]-k,W=g,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var Y=a.dataToPoint([P,E]);if(c){var ee=a.dataToPoint([P,V]);k=ee[1]}R=Y[0]+m,B=k,z=g,W=Y[1]-k,Math.abs(W)<p&&(W=(W<=0?-1:1)*p)}d?(x[L]=R,x[L+1]=B,x[L+2]=h?z:W,w&&(w[L]=h?M.x:R,w[L+1]=h?B:M.y,w[L+2]=A),D[C]=C):S.setItemLayout(C,{x:R,y:B,width:z,height:W}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:D,largeBackgroundPoints:w,valueAxisHorizontal:h})}}}}}}function Cg(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Mg(r){return r.pipelineContext&&r.pipelineContext.large}function sw(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var lw=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},Dg=(function(r){H(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return Lo(e.value,qf[V_(vn(this._minLevelUnit))]||qf.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return z_(e,a,n,o,i)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=[];if(!a)return i;var o=this.getSetting("useUTC"),s=Ji(n[1],o);i.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=gw(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=Ji(n[1],o);i.push({value:n[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=kr.length-1,c=0;return T(i,function(h){f=Math.min(f,ue(kr,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},t.prototype.calcNiceExtent=function(e){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=nt,a[1]+=nt),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-nt}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=hi.length,s=Math.min(lw(hi,this._approxInterval,0,o),o-1);this._interval=hi[s][1],this._intervalPrecision=En(this._interval),this._minLevelUnit=hi[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return le(e)?e:+zr(e)},t.prototype.contain=function(e){return $u(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t})(ur),hi=[["second",wu],["minute",Tu],["hour",cn],["quarter-day",cn*6],["half-day",cn*12],["day",nt*1.2],["half-week",nt*3.5],["week",nt*7],["month",nt*31],["quarter",nt*95],["half-year",Kf/2],["year",Kf]];function uw(r,t,e,a){return dl(new Date(t),r,a).getTime()===dl(new Date(e),r,a).getTime()}function fw(r,t){return r/=nt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function cw(r){var t=30*nt;return r/=t,r>6?6:r>3?3:r>2?2:1}function vw(r){return r/=cn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function jc(r,t){return r/=t?Tu:wu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function hw(r){return md(r)}function dw(r,t,e){var a=Math.max(0,ue(kr,t)-1);return dl(new Date(r),kr[a],e).getTime()}function pw(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function gw(r,t,e,a,n,i){var o=1e4,s=E_,l=0;function u(L,E,P,k,V,R,B){for(var z=pw(V,L),W=E,Y=new Date(W);W<P&&W<=a[1]&&(B.push({value:W}),!(l++>o));)if(Y[V](Y[k]()+L),W=Y.getTime(),i){var ee=i.calcNiceTickMultiple(W,z);ee>0&&(Y[V](Y[k]()+ee*L),W=Y.getTime())}B.push({value:W,notAdd:!0})}function f(L,E,P){var k=[],V=!E.length;if(!uw(vn(L),a[0],a[1],e)){V&&(E=[{value:dw(a[0],L,e)},{value:a[1]}]);for(var R=0;R<E.length-1;R++){var B=E[R].value,z=E[R+1].value;if(B!==z){var W=void 0,Y=void 0,ee=void 0,me=!1;switch(L){case"year":W=Math.max(1,Math.round(t/nt/365)),Y=Qd(e),ee=G_(e);break;case"half-year":case"quarter":case"month":W=cw(t),Y=Cu(e),ee=Jd(e);break;case"week":case"half-week":case"day":W=fw(t),Y=Mu(e),ee=ep(e),me=!0;break;case"half-day":case"quarter-day":case"hour":W=vw(t),Y=Du(e),ee=tp(e);break;case"minute":W=jc(t,!0),Y=Au(e),ee=rp(e);break;case"second":W=jc(t,!1),Y=Lu(e),ee=ap(e);break;case"millisecond":W=hw(t),Y=Iu(e),ee=np(e);break}z>=a[0]&&B<=a[1]&&u(W,B,z,Y,ee,me,k),L==="year"&&P.length>1&&R===0&&P.unshift({value:P[0].value-W})}}for(var R=0;R<k.length;R++)P.push(k[R])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var y=vn(s[p]);if(N_(s[p])){f(s[p],c[c.length-1]||[],h);var g=s[p+1]?vn(s[p+1]):null;if(y!==g){if(h.length){d=v,h.sort(function(L,E){return L.value-E.value});for(var m=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(m.push(h[_]),S>=a[0]&&S<=a[1]&&v++)}var b=n/t;if(v>b*1.5&&d>b/1.5||(c.push(m),v>b||r===s[p]))break}h=[]}}}for(var x=Me(X(c,function(L){return Me(L,function(E){return E.value>=a[0]&&E.value<=a[1]&&!E.notAdd})}),function(L){return L.length>0}),w=[],D=x.length-1,p=0;p<x.length;++p)for(var M=x[p],A=0;A<M.length;++A){var C=Ji(M[A].value,e);w.push({value:M[A].value,time:{level:D-p,upperTimeUnit:C,lowerTimeUnit:C}})}w.sort(function(L,E){return L.value-E.value});for(var I=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&I.push(w[p]);return I}pr.registerClass(Dg);var kl=ke,yw=Math.floor,mw=Math.ceil,di=Math.pow,pi=Math.log,Ag=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ur,e}return t.prototype.getTicks=function(e){e=e||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,e),o=this.base;return this._originalScale._innerGetBreaks(),X(i,function(s){var l=s.value,u=null,f=di(o,l);l===a[0]&&this._fixMin?u=n[0]:l===a[1]&&this._fixMax&&(u=n[1]);var c;return u!=null&&(f=hs(f,u)),{value:f,break:c}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,a){this._originalScale.setExtent(e,a);var n=Ll(this.base,[e,a]);r.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var e=this.base,a=r.prototype.getExtent.call(this);a[0]=di(e,a[0]),a[1]=di(e,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=hs(a[0],n[0])),this._fixMax&&(a[1]=hs(a[1],n[1])),a},t.prototype.unionExtentFromData=function(e,a){this._originalScale.unionExtentFromData(e,a);var n=Ll(this.base,e.getApproximateExtent(a),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=n0(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[kl(mw(a[0]/i)*i),kl(yw(a[1]/i)*i)];this._interval=i,this._intervalPrecision=En(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=pi(e)/pi(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=pi(e)/pi(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),di(this.base,e)},t.prototype.setBreaksFromOption=function(e){},t.type="log",t})(ur);function hs(r,t){return kl(r,kt(t))}pr.registerClass(Ag);var _w=(function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;Q(o)?this._modelMinNum=gi(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=gi(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(Q(s)?this._modelMaxNum=gi(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=gi(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=N(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[yn(u[0],1),yn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Ir(s)||Ir(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[xw[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=Sw[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),Sw={min:"_determinedMin",max:"_determinedMax"},xw={min:"_dataMin",max:"_dataMax"};function Lg(r,t,e){var a=r.rawExtentInfo;return a||(a=new _w(r,t,e),r.rawExtentInfo=a,a)}function gi(r,t){return t==null?null:Ir(t)?NaN:r.parse(t)}function Ig(r,t){var e=r.type,a=Lg(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=bg("bar",o),l=!1;if(T(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=wg(s),f=bw(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function bw(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=nw(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;T(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function Qc(r,t){var e=t,a=Ig(r,e),n=a.extent,i=e.get("splitNumber");r instanceof Ag&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(Rg(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ww(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new _g({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Dg({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(pr.getClass(t)||ur)}}function Tw(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function jn(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=O_(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if($(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(Q(t)){if(r.type==="category")return function(n,i){return t(so(r,n),n.value-r.scale.getExtent()[0],null)};var a=Qi();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(so(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function so(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function qu(r){var t=r.get("interval");return t??"auto"}function Pg(r){return r.type==="category"&&qu(r.getLabelModel())===0}function kg(r,t){var e={};return T(r.mapDimensionsAll(t),function(a){e[Yb(r,a)]=!0}),Ie(e)}function Cw(r,t,e){t&&T(kg(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}function ba(r){return r==="middle"||r==="center"}function On(r){return r.getShallow("show")}function Rg(r){var t=r.get("breaks",!0);t==null}var Eg=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function zA(r,t){return t=t||{},De(r,null,null,t.state!=="normal")}var Jc=[],Mw={registerPreprocessor:fg,registerProcessor:cg,registerPostInit:xb,registerPostUpdate:bb,registerUpdateLifecycle:Yu,registerAction:Wr,registerCoordinateSystem:wb,registerLayout:Tb,registerVisual:Ur,registerTransform:Mb,registerLoading:vg,registerMap:Cb,registerImpl:eb,PRIORITY:pb,ComponentModel:ne,ComponentView:We,SeriesModel:Ne,ChartView:Ee,registerComponentModel:function(r){ne.registerClass(r)},registerComponentView:function(r){We.registerClass(r)},registerSeriesModel:function(r){Ne.registerClass(r)},registerChartView:function(r){Ee.registerClass(r)},registerCustomSeries:function(r,t){rb(r,t)},registerSubTypeDefaulter:function(r,t){ne.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Rm(r,t)}};function qe(r){if(N(r)){T(r,function(t){qe(t)});return}ue(Jc,r)>=0||(Jc.push(r),Q(r)&&(r={install:r}),r.install(Mw))}var Dw=ae(),pn=ae(),pt={estimate:1,determine:2};function lo(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function Og(r,t){var e=X(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function Aw(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=jn(r),n=r.scale.getExtent(),i=Og(r,e),o=Me(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:X(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?Iw(r,t):kw(r)}function Lw(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=Og(r,a);return{ticks:Me(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?Pw(r,t):{ticks:X(r.scale.getTicks(e),function(o){return o.value})}}function Iw(r,t){var e=r.getLabelModel(),a=Bg(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function Bg(r,t,e){var a=Ew(r),n=qu(t),i=e.kind===pt.estimate;if(!i){var o=Vg(a,n);if(o)return o}var s,l;Q(n)?s=Fg(r,n):(l=n==="auto"?Ow(r,e):n,s=Gg(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return Rl(a,n,u),!0}):Rl(a,n,u),u}function Pw(r,t){var e=Rw(r),a=qu(t),n=Vg(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),Q(a))i=Fg(r,a,!0);else if(a==="auto"){var s=Bg(r,r.getLabelModel(),lo(pt.determine));o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=a,i=Gg(r,o,!0);return Rl(e,a,{ticks:i,tickCategoryInterval:o})}function kw(r){var t=r.scale.getTicks(),e=jn(r);return{labels:X(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var Rw=Ng("axisTick"),Ew=Ng("axisLabel");function Ng(r){return function(e){return pn(e)[r]||(pn(e)[r]={list:[]})}}function Vg(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function Rl(r,t,e){return r.list.push({key:t,value:e}),e}function Ow(r,t){if(t.kind===pt.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return pn(r).autoInterval=e,!0}),e}var a=pn(r).autoInterval;return a??(pn(r).autoInterval=r.calculateCategoryInterval(t))}function Bw(r,t){var e=t.kind,a=Vw(r),n=jn(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,y=0;c<=s[1];c+=u){var g=0,m=0,_=ud(n({value:c}),a.font,"center","top");g=_.width*1.3,m=_.height*1.3,p=Math.max(p,g,7),y=Math.max(y,m,7)}var S=p/v,b=y/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(e===pt.estimate)return t.out.noPxChangeTryDetermine.push(Z(Nw,null,r,x,l)),x;var w=zg(r,x,l);return w??x}function Nw(r,t,e){return zg(r,t,e)==null}function zg(r,t,e){var a=Dw(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function Vw(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Gg(r,t,e){var a=jn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Pg(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(y){var g={value:y};s.push(e?y:{formattedLabel:a(g),rawLabel:n.getLabel(g),tickValue:y,time:void 0,break:void 0})}return s}function Fg(r,t,e){var a=r.scale,n=jn(r),i=[];return T(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var ev=[0,1],Hg=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return gd(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),tv(a,n.count())),ve(t,ev,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),tv(a,n.count()));var i=ve(t,a,ev,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=Lw(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=X(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return zw(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=X(a,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||lo(pt.determine),Aw(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||lo(pt.determine),Bw(this,t)},r})();function tv(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function zw(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;T(t,function(v){v.coord-=u/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&h(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&h(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function h(v,d){return v=ke(v),d=ke(d),c?v>d:v<d}}function GA(r){var t=Ne.extend(r);return Ne.registerClass(t),t}function FA(r){var t=Ee.extend(r);return Ee.registerClass(t),t}var Ha=Math.PI*2,Tr=fd.CMD,Gw=["top","right","bottom","left"];function Fw(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function Hw(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(a-n)%Ha<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var h=a;a=Ja(n),n=Ja(h)}else a=Ja(a),n=Ja(n);a>n&&(n+=Ha);var v=Math.atan2(s,o);if(v<0&&(v+=Ha),v>=a&&v<=n||v+Ha>=a&&v+Ha<=n)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,y=e*Math.cos(n)+r,g=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(y-o)*(y-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=y,l[1]=g,Math.sqrt(_))}function uo(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,c=a-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,y=o[1]=t+d*c;return Math.sqrt((p-n)*(p-n)+(y-i)*(y-i))}function Wg(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var ct=[];function Ww(r,t,e){var a=Wg(t.x,t.y,t.width,t.height,r.x,r.y,ct);return e.set(ct[0],ct[1]),a}function Uw(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(a=f[v],n=f[v+1],i=a,o=n);var p=u;switch(d){case Tr.M:i=f[v++],o=f[v++],a=i,n=o;break;case Tr.L:p=uo(a,n,f[v],f[v+1],c,h,ct,!0),a=f[v++],n=f[v++];break;case Tr.C:p=Om(a,n,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,ct),a=f[v++],n=f[v++];break;case Tr.Q:p=Em(a,n,f[v++],f[v++],f[v],f[v+1],c,h,ct),a=f[v++],n=f[v++];break;case Tr.A:var y=f[v++],g=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+y,l=Math.sin(S)*_+g,v<=1&&(i=s,o=l);var w=(c-y)*_/m+y;p=Hw(y,g,_,S,S+b,x,w,h,ct),a=Math.cos(S+b)*m+y,n=Math.sin(S+b)*_+g;break;case Tr.R:i=a=f[v++],o=n=f[v++];var D=f[v++],M=f[v++];p=Wg(i,o,D,M,c,h,ct);break;case Tr.Z:p=uo(a,n,i,o,c,h,ct,!0),a=i,n=o;break}p<u&&(u=p,e.set(ct[0],ct[1]))}return u}var vt=new ge,ce=new ge,Se=new ge,Tt=new ge,xt=new ge;function rv(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||Gw,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),c=f&&Wn([],f),h=t.get("length2")||0;u&&Se.copy(u);for(var v=0;v<o.length;v++){var d=o[v];Fw(d,0,s,vt,Tt),ge.scaleAndAdd(ce,vt,Tt,h),ce.transform(c);var p=r.getBoundingRect(),y=u?u.distance(ce):r instanceof Ve?Uw(ce,r.path,Se):Ww(ce,p,Se);y<l&&(l=y,ce.transform(f),Se.transform(f),Se.toArray(i[0]),ce.toArray(i[1]),vt.toArray(i[2]))}Ug(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var fo=[],Ze=new ge;function Ug(r,t){if(t<=180&&t>0){t=t/180*Math.PI,vt.fromArray(r[0]),ce.fromArray(r[1]),Se.fromArray(r[2]),ge.sub(Tt,vt,ce),ge.sub(xt,Se,ce);var e=Tt.len(),a=xt.len();if(!(e<.001||a<.001)){Tt.scale(1/e),xt.scale(1/a);var n=Tt.dot(xt),i=Math.cos(t);if(i<n){var o=uo(ce.x,ce.y,Se.x,Se.y,vt.x,vt.y,fo,!1);Ze.fromArray(fo),Ze.scaleAndAdd(xt,o/Math.tan(Math.PI-t));var s=Se.x!==ce.x?(Ze.x-ce.x)/(Se.x-ce.x):(Ze.y-ce.y)/(Se.y-ce.y);if(isNaN(s))return;s<0?ge.copy(Ze,ce):s>1&&ge.copy(Ze,Se),Ze.toArray(r[1])}}}}function Yw(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,vt.fromArray(r[0]),ce.fromArray(r[1]),Se.fromArray(r[2]),ge.sub(Tt,ce,vt),ge.sub(xt,Se,ce);var a=Tt.len(),n=xt.len();if(!(a<.001||n<.001)){Tt.scale(1/a),xt.scale(1/n);var i=Tt.dot(t),o=Math.cos(e);if(i<o){var s=uo(ce.x,ce.y,Se.x,Se.y,vt.x,vt.y,fo,!1);Ze.fromArray(fo);var l=Math.PI/2,u=Math.acos(xt.dot(t)),f=l+u-e;if(f>=l)ge.copy(Ze,Se);else{Ze.scaleAndAdd(xt,s/Math.tan(Math.PI/2-f));var c=Se.x!==ce.x?(Ze.x-ce.x)/(Se.x-ce.x):(Ze.y-ce.y)/(Se.y-ce.y);if(isNaN(c))return;c<0?ge.copy(Ze,ce):c>1&&ge.copy(Ze,Se)}Ze.toArray(r[1])}}}}function ds(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Zw(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=xf(a[0],a[1]),i=xf(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=Ho([],a[1],a[0],o/n),l=Ho([],a[1],a[2],o/i),u=Ho([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function Yg(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<Yi.length;l++){var u=Yi[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:J(n.states[u]&&n.states[u].ignore,s);if(v||!J(h,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&ds(a,!0,u,f);continue}a||(a=new vr,r.setTextGuideLine(a),!c&&(s||!o)&&ds(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),ds(a,!1,u,f)}}if(a){ie(a.style,e),a.style.fill=null;var p=i.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=p||!1,a.buildPath=Zw}}function Zg(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<$e.length;a++){var n=$e[a];e[n]=r.getModel([n,t])}return e}var av=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Xw=1,co=2,Xg=Xw|co;function vo(r,t,e){e=e||Xg,t?r.dirty|=e:r.dirty&=~e}function $g(r,t){return t=t||Xg,r.dirty==null||!!(r.dirty&t)}function fr(r){if(r)return $g(r)&&Kg(r,r.label,r),r}function Kg(r,t,e){var a=t.getComputedTransform();r.transform=Su(r.transform,a);var n=r.localRect=An(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=ca.textMargin);for(var c=0;c<4;c++)ps[c]=f===ca.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===ca.textMargin&&Dn(n,ps,!1,!1);var h=r.rect=An(r.rect,n);return a&&h.applyTransform(a),f===ca.minMargin&&Dn(h,ps,!1,!1),r.axisAligned=_u(a),(r.label=r.label||{}).ignore=t.ignore,vo(r,!1),vo(r,!0,co),r}var ps=[0,0,0,0];function $w(r,t,e){return r.transform=Su(r.transform,e),r.localRect=An(r.localRect,t),r.rect=An(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=_u(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Kw(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var a=r.rect;a&&(a.x+=t.x,a.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function El(r,t){for(var e=0;e<av.length;e++){var a=av[e];r[a]==null&&(r[a]=t[a])}return fr(r)}function nv(r){var t=r.obb;return(!t||$g(r,co))&&(r.obb=t=t||new sd,t.fromBoundingRect(r.localRect,r.transform),vo(r,!1,co)),t}function Ol(r,t,e,a,n){var i=r.length,o=Jt[t],s=_a[t];if(i<2)return!1;r.sort(function(w,D){return w.rect[o]-D.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var h=r[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[i-1],y,g;m(),y<0&&b(-y,.8),g<0&&b(g,.8),m(),_(y,g,1),_(g,y,-1),m(),y<0&&x(-y),g<0&&x(g);function m(){y=d.rect[o]-e,g=a-p.rect[o]-p.rect[s]}function _(w,D,M){if(w<0){var A=Math.min(D,-w);if(A>0){S(A*M,0,i);var C=A+w;C<0&&b(-C*M,1)}else b(-w*M,1)}}function S(w,D,M){w!==0&&(f=!0);for(var A=D;A<M;A++){var C=r[A],I=C.rect;I[o]+=w,C.label[o]+=w}}function b(w,D){for(var M=[],A=0,C=1;C<i;C++){var I=r[C-1].rect,L=Math.max(r[C].rect[o]-I[o]-I[s],0);M.push(L),A+=L}if(A){var E=Math.min(Math.abs(w)/A,D);if(w>0)for(var C=0;C<i-1;C++){var P=M[C]*E;S(P,0,C+1)}else for(var C=i-1;C>0;C--){var P=M[C-1]*E;S(-P,C,i)}}}function x(w){var D=w<0?-1:1;w=Math.abs(w);for(var M=Math.ceil(w/(i-1)),A=0;A<i-1;A++)if(D>0?S(M,0,A+1):S(-M,i-A-1,i),w-=M,w<=0)return}return f}function qw(r){for(var t=0;t<r.length;t++){var e=r[t],a=e.defaultAttr,n=e.labelLine;e.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function qg(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=fr(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(ju(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(n)}}}function ju(r,t,e,a){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,a)?!1:r.axisAligned&&t.axisAligned?!0:nv(r).intersect(nv(t),e,a)}function jw(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Qw(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:jw(a&&a.shape.points)}}var iv=["align","verticalAlign","width","height","fontSize"],Ue=new ua,gs=ae(),Jw=ae();function yi(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var mi=["x","y","rotation"],e1=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();Ae.applyTransform(f,f,u),u?Ue.setLocalTransform(u):(Ue.x=Ue.y=Ue.rotation=Ue.originX=Ue.originY=0,Ue.scaleX=Ue.scaleY=1),Ue.rotation=Ja(Ue.rotation);var c=n.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Ae.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Ue.x,y:Ue.y,scaleX:Ue.scaleX,scaleY:Ue.scaleY,rotation:Ue.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(Q(n)||Ie(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=te(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,S){return function(){rv(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;Q(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(Qw(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=re(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=re(f.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=gs(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<iv.length;p++){var y=iv[p];s.setStyle(y,f[y]!=null?f[y]:u.style[y])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);g=m.getItemModel(o.dataIndex)}s.on("drag",n(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=[];T(this._labelList,function(l){l.defaultAttr.ignore||n.push(El({},l))});var i=Me(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Me(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Ol(i,0,0,e),Ol(o,1,0,a);var s=Me(n,function(l){return l.layoutOption.hideOverlap});qw(s),qg(s)},r.prototype.processLabelsOverall=function(){var t=this;T(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=gs(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=te(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");Yg(t,Zg(s),l),rv(t,c)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!da(t))){var i=gs(a),o=i.oldLayout,s=te(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=e.getData(s.dataType);if(o){a.attr(o);var h=t.prevStates;h&&(ue(h,"select")>=0&&a.attr(i.oldLayoutSelect),ue(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),xe(a,u,e,l)}else if(a.attr(u),!Da(a).valueAnimation){var c=J(a.style.opacity,1);a.style.opacity=0,Re(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};yi(v,u,mi),yi(v,a.states.select,mi)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};yi(d,u,mi),yi(d,a.states.emphasis,mi)}y_(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=Jw(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),xe(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Re(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r})(),ys=ae();function t1(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=ys(e).labelManager;n||(n=ys(e).labelManager=new e1),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=ys(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function r1(r){r.registerPainter("canvas",Bm)}var a1=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return La(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new oe,n=Je("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Je(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=O.color.neutral00,u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.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},t})(Ne);function Bn(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Sa(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(Sa(r,t,e[o]));return i.join(" ")}}function jg(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!N(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var Qu=(function(r){H(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=Je(e,-1,-1,2,2,null,s);l.attr({z2:J(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=n1,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){bn(this.childAt(0))},t.prototype.downplay=function(){wn(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):xe(v,d,s,a),Tn(v)}if(this._updateCommon(e,a,l,n,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Re(v,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,y,g;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,y=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Mt(m),y=_.getShallow("scale"),g=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Eo(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(a,"style"),w=x.fill;if(s instanceof Gt){var D=s.style;s.useStyle(F({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},x))}else s.__isEmptyBrush?s.useStyle(F({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(a,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var C=o&&o.useNameLabel;hr(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(P){return C?e.getName(P):Bn(e,P)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var E=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;L.scaleX=this._sizeX*E,L.scaleY=this._sizeY*E,this.setSymbolScale(1),Vt(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=te(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Ki(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ki(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Ro(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t})(oe);function n1(r,t){this.parent.drift(r,t)}function ms(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function ov(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function sv(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Mt(t),cursorStyle:t.get("cursor")}}var Qg=(function(){function r(t){this.group=new oe,this._SymbolCtor=t||Qu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ov(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=sv(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||a.removeAll(),t.diff(i).add(function(c){var h=f(c);if(ms(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),a.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!ms(t,d,c,e)){a.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==p)a.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):xe(v,g,n)}a.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=sv(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=ov(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(ms(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Gr(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r})();function Jg(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=i1(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=X(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return xa(t,c[0])&&(h=!0,c[0]=v),xa(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function i1(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:le(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function ey(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function o1(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function s1(r,t,e,a,n,i,o,s){for(var l=o1(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],y=Jg(n,t,o),g=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var D=g[x],M=g[x+1],A=m[w],C=m[w+1];(isNaN(D)||isNaN(M))&&(D=A,M=C),u.push(D,M),f.push(A,C),c.push(e[x],e[x+1]),h.push(a[w],a[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=y.dataDimsForPoint,E=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);w=I*2,u.push(E[0],E[1]),f.push(m[w],m[w+1]);var P=ey(y,n,t,I);c.push(P[0],P[1]),h.push(a[w],a[w+1]),p.push(t.getRawIndex(I));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(Te,Ht){return p[Te]-p[Ht]});for(var k=u.length,V=Rt(k),R=Rt(k),B=Rt(k),z=Rt(k),W=[],_=0;_<d.length;_++){var Y=d[_],ee=_*2,me=Y*2;V[ee]=u[me],V[ee+1]=u[me+1],R[ee]=f[me],R[ee+1]=f[me+1],B[ee]=c[me],B[ee+1]=c[me+1],z[ee]=h[me],z[ee+1]=h[me+1],W[_]=v[Y]}return{current:V,next:R,stackedOnCurrent:B,stackedOnNext:z,status:W}}var Kt=Math.min,qt=Math.max;function Rr(r,t){return isNaN(r)||isNaN(t)}function Bl(r,t,e,a,n,i,o,s,l){for(var u,f,c,h,v,d,p=e,y=0;y<a;y++){var g=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Rr(g,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,m),c=g,h=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],w=t[b*2+1];x===g&&w===m&&y<a;)y++,b+=i,p+=i,x=t[b*2],w=t[b*2+1],g=t[p*2],m=t[p*2+1],_=g-u,S=m-f;var D=y+1;if(l)for(;Rr(x,w)&&D<a;)D++,b+=i,x=t[b*2],w=t[b*2+1];var M=.5,A=0,C=0,I=void 0,L=void 0;if(D>=a||Rr(x,w))v=g,d=m;else{A=x-u,C=w-f;var E=g-u,P=x-g,k=m-f,V=w-m,R=void 0,B=void 0;if(s==="x"){R=Math.abs(E),B=Math.abs(P);var z=A>0?1:-1;v=g-z*R*o,d=m,I=g+z*B*o,L=m}else if(s==="y"){R=Math.abs(k),B=Math.abs(V);var W=C>0?1:-1;v=g,d=m-W*R*o,I=g,L=m+W*B*o}else R=Math.sqrt(E*E+k*k),B=Math.sqrt(P*P+V*V),M=B/(B+R),v=g-A*o*(1-M),d=m-C*o*(1-M),I=g+A*o*M,L=m+C*o*M,I=Kt(I,qt(x,g)),L=Kt(L,qt(w,m)),I=qt(I,Kt(x,g)),L=qt(L,Kt(w,m)),A=I-g,C=L-m,v=g-A*R/B,d=m-C*R/B,v=Kt(v,qt(u,g)),d=Kt(d,qt(f,m)),v=qt(v,Kt(u,g)),d=qt(d,Kt(f,m)),A=g-v,C=m-d,I=g+A*B/R,L=m+C*B/R}r.bezierCurveTo(c,h,v,d,g,m),c=I,h=L}else r.lineTo(g,m)}u=g,f=m,p+=i}return y}var ty=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),l1=(function(r){H(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:O.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new ty},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Rr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Rr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Bl(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=fd.CMD,s,l,u=a==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,y=void 0,g=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],y=i[c++],g=i[c++],m=i[c++];var b=u?bf(s,v,p,g,e,f):bf(l,d,y,m,e,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?wf(l,d,y,m,w):wf(s,v,p,g,w);return u?[e,S]:[S,e]}}s=g,l=m;break}}},t})(Ve),u1=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(ty),f1=(function(r){H(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new u1},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Rr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Rr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Bl(e,n,o,s,s,1,a.smooth,l,a.connectNulls);Bl(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t})(Ve);function ry(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new fe({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=Q(n)?function(y){n(y,c)}:null;Re(c,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return c}function ay(r,t,e){var a=r.getArea(),n=ke(a.r0,1),i=ke(a.r,1),o=new Nr({shape:{cx:ke(r.cx,1),cy:ke(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Re(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function ny(r,t,e,a,n){if(r){if(r.type==="polar")return ay(r,t,e);if(r.type==="cartesian2d")return ry(r,t,e,a,n)}else return null;return null}function Nn(r,t){return r.type===t}function lv(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function uv(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function fv(r,t){var e=uv(r),a=e[0],n=e[1],i=uv(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function cv(r){return le(r)?r:r?.5:0}function c1(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=Rt(a*2),i=0;i<a;i++){var o=ey(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function jt(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function v1(r,t){var e=[],a=r.length,n,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=Nm(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function h1(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=v1(u,n==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,y=h[v-1].coord+d,g=y-p;if(g<.001)return"transparent";T(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new nu(0,0,0,0,h,!0);return m[n]=p,m[n+"2"]=y,m}}}function d1(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&p1(i,t))){var o=t.mapDimension(i.dim),s={};return T(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function p1(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Qu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function g1(r,t){return isNaN(r)||isNaN(t)}function y1(r){for(var t=r.length/2;t>0&&g1(r[t*2-2],r[t*2-1]);t--);return t-1}function vv(r,t){return[r[t*2],r[t*2+1]]}function m1(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function iy(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<$e.length;t++)if(r.get([$e[t],"endLabel","show"]))return!0;return!1}function _s(r,t,e,a){if(Nn(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=iy(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=ry(t,e,a,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return ay(t,e,a)}function _1(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var S1=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new oe,a=new Qg;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=Z(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,y=this._lineGroup,g=!a.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=Jg(i,s,_),b=m&&c1(i,s,S),x=e.get("showSymbol"),w=e.get("connectNulls"),D=x&&!c&&d1(e,s,i),M=this._data;M&&M.eachItemGraphicEl(function(Te,Ht){Te.__temp&&(o.remove(Te),M.setItemGraphicEl(Ht,null))}),x||v.remove(),o.add(y);var A=c?!1:e.get("step"),C;i&&i.getArea&&e.get("clip",!0)&&(C=i.getArea(),C.width!=null?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var I=h1(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&A===this._step))x&&v.updateData(s,{isIgnore:D,clipShape:C,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,C),A&&(b&&(b=jt(b,f,i,A,w)),f=jt(f,null,i,A,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Br(I)),y.setClipPath(_s(this,i,!0,e));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Br(I));var L=y.getClipPath();if(L){var E=_s(this,i,!1,e);Re(L,{shape:E.shape},e)}else y.setClipPath(_s(this,i,!0,e));x&&v.updateData(s,{isIgnore:D,clipShape:C,disableAnimation:!0,getSymbolPoint:function(Te){return[f[Te*2],f[Te*2+1]]}}),(!lv(this._stackedOnPoints,b)||!lv(this._points,f))&&(g?this._doUpdateAnimation(s,b,i,n,A,_,w):(A&&(b&&(b=jt(b,f,i,A,w)),f=jt(f,null,i,A,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var P=e.getModel("emphasis"),k=P.get("focus"),V=P.get("blurScope"),R=P.get("disabled");if(d.useStyle(ie(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),ma(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}te(d).seriesIndex=e.seriesIndex,Vt(d,k,V,R);var z=cv(e.get("smooth")),W=e.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:W,connectNulls:w}),p){var Y=s.getCalculationInfo("stackedOnSeries"),ee=0;p.useStyle(ie(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(ee=cv(Y.get("smooth"))),p.setShape({smooth:z,stackedOnSmooth:ee,smoothMonotone:W,connectNulls:w}),ma(p,e,"areaStyle"),te(p).seriesIndex=e.seriesIndex,Vt(p,k,V,R)}var me=this._changePolyState;s.eachItemGraphicEl(function(Te){Te&&(Te.onHoverStateChange=me)}),this._polyline.onHoverStateChange=me,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){te(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Or(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new Qu(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ee.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Or(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ee.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Bf(this._polyline,e),a&&Bf(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new l1({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new f1({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=Q(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var y=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(y);i?(g=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,m=S.r,_=b[0])}else{var x=n;i?(g=x.x,m=x.x+x.width,_=v.x):(g=x.y+x.height,m=x.y,_=v.y)}var w=m===g?0:(_-g)/(m-g);l&&(w=1-w);var D=Q(c)?c(d):f*w+h,M=p.getSymbolPath(),A=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:D}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(iy(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=y1(l);f>=0&&(hr(s,Mt(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?jg(o,v):Bn(o,c)},enableTextSetter:!0},_1(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,y=l.getBaseAxis(),g=y.isHorizontal(),m=y.inverse,_=a.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),w=g?"x":"y",D=m1(c,S,w),M=D.range,A=M[1]-M[0],C=void 0;if(A>=1){if(A>1&&!v){var I=vv(c,M[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(C=h.getRawValue(M[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=h.getRawValue(M[0]),E=h.getRawValue(M[1]);o&&(C=Cd(n,d,L,E,D.t))}i.lastFrameIndex=M[0]}else{var P=e===1||i.lastFrameIndex>0?M[0]:0,I=vv(c,P);o&&(C=h.getRawValue(P)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var k=Da(u);typeof k.setLabelText=="function"&&k.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=s1(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,y=h.stackedOnNext;if(o&&(d=jt(h.stackedOnCurrent,h.current,n,o,l),v=jt(h.current,null,n,o,l),y=jt(h.stackedOnNext,h.next,n,o,l),p=jt(h.next,null,n,o,l)),fv(v,p)>3e3||f&&fv(d,y)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),xe(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),xe(f,{shape:{stackedOnPoints:y}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,D=0;D<m.length;D++){var M=m[D].el,A=m[D].ptIdx*2;M.x=w[A],M.y=w[A+1],M.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Ee);function x1(r,t){return{seriesType:r,plan:Gu(),reset:function(e){var a=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,!!n){var i=X(n.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),o=i.length,s=a.getCalculationInfo("stackResultDimension");xa(a,i[0])&&(i[0]=s),xa(a,i[1])&&(i[1]=s);var l=a.getStore(),u=a.getDimensionIndex(i[0]),f=a.getDimensionIndex(i[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=Rt(v*o),p=[],y=[],g=c.start,m=0;g<c.end;g++){var _=void 0;if(o===1){var S=l.get(u,g);_=n.dataToPoint(S,null,y)}else p[0]=l.get(u,g),p[1]=l.get(f,g),_=n.dataToPoint(p,null,y);d[m++]=_[0],d[m++]=_[1]}h.setLayout("points",d)}}}}}}var b1={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},w1=function(r){return Math.round(r.length/2)};function oy(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;$(i)?d=b1[i]:Q(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,w1))}}}}}function HA(r){r.registerChartView(S1),r.registerSeriesModel(a1),r.registerLayout(x1("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,oy("line"))}var Nl=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return La(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)T(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),y=o[v],g=a[v]==="x1"||a[v]==="y1";if(g&&!p&&(y+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===y){_=x;break}else if(w<y)m=x;else if(m!=null&&w>y){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Ne);Ne.registerClass(Nl);var T1=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return La(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Aa(Nl.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:O.color.primary,borderWidth:2}},realtimeSort:!1}),t})(Nl),C1=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),hv=(function(r){H(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new C1},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),y=Math.sin(f),g=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+n,y*o+i),e.arc(p*u+n,y*u+i,l,-Math.PI+f,f,!h)):e.moveTo(p*s+n,y*s+i),e.arc(n,i,s,f,c,!h),e.arc(g*u+n,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(n,i,o,c,f,h)},t})(Ve);function M1(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Js(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,y=u.endAngle,g=(p+y)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),w="left",D="top";switch(s){case"startArc":b=f+(v-l)*_(g),x=c+(v-l)*S(g),w="center",D="top";break;case"insideStartArc":b=f+(v+l)*_(g),x=c+(v+l)*S(g),w="center",D="bottom";break;case"startAngle":b=f+d*_(p)+_i(p,l+m,!1),x=c+d*S(p)+Si(p,l+m,!1),w="right",D="middle";break;case"insideStartAngle":b=f+d*_(p)+_i(p,-l+m,!1),x=c+d*S(p)+Si(p,-l+m,!1),w="left",D="middle";break;case"middle":b=f+d*_(g),x=c+d*S(g),w="center",D="middle";break;case"endArc":b=f+(h+l)*_(g),x=c+(h+l)*S(g),w="center",D="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),x=c+(h-l)*S(g),w="center",D="top";break;case"endAngle":b=f+d*_(y)+_i(y,l+m,!0),x=c+d*S(y)+Si(y,l+m,!0),w="left",D="middle";break;case"insideEndAngle":b=f+d*_(y)+_i(y,-l+m,!0),x=c+d*S(y)+Si(y,-l+m,!0),w="right",D="middle";break;default:return Js(a,n,i)}return a=a||{},a.x=b,a.y=x,a.align=w,a.verticalAlign=D,a}}function D1(r,t,e,a){if(le(a)){r.setTextConfig({rotation:a});return}else if(N(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function _i(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Si(r,t,e){return t*Math.cos(r)*(e?1:-1)}function rn(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;N(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(a,function(i){return yn(i,n)})}}var Ss=Math.max,xs=Math.min;function A1(r,t){var e=r.getArea&&r.getArea();if(Nn(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var L1=(function(r){H(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){Gr(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=I1(e,u);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",!0)||v,p=A1(u,s);o.removeClipPath();var y=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function D(C){var I=xi[u.type](s,C);if(!I)return null;var L=N1(u,c,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[C]=L,L}s.diff(l).add(function(C){var I=s.getItemModel(C),L=xi[u.type](s,C,I);if(L&&(g&&D(C),!(!s.hasValue(C)||!mv[u.type](L)))){var E=!1;d&&(E=dv[u.type](p,L));var P=pv[u.type](e,s,C,L,c,h,f.model,!1,y);v&&(P.forceLabelAnimation=!0),_v(P,s,C,I,L,e,c,u.type==="polar"),x?P.attr({shape:L}):v?gv(v,h,P,L,C,c,!1,!1):Re(P,{shape:L},e,C),s.setItemGraphicEl(C,P),o.add(P),P.ignore=E}}).update(function(C,I){var L=s.getItemModel(C),E=xi[u.type](s,C,L);if(E){if(g){var P=void 0;b.length===0?P=D(I):(P=b[I],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[C]=P);var k=xi[u.type](s,C),V=ly(c,k,u);xe(P,{shape:V},h,C)}var R=l.getItemGraphicEl(I);if(!s.hasValue(C)||!mv[u.type](E)){o.remove(R);return}var B=!1;d&&(B=dv[u.type](p,E),B&&o.remove(R));var z=R&&(R.type==="sector"&&y||R.type==="sausage"&&!y);if(z&&(R&&un(R,e,I),R=null),R?Tn(R):R=pv[u.type](e,s,C,E,c,h,f.model,!0,y),v&&(R.forceLabelAnimation=!0),w){var W=R.getTextContent();if(W){var Y=Da(W);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else _v(R,s,C,L,E,e,c,u.type==="polar");x?R.attr({shape:E}):v?gv(v,h,R,E,C,c,!0,w):xe(R,{shape:E},e,C,null),s.setItemGraphicEl(C,R),R.ignore=B,o.add(R)}}).remove(function(C){var I=l.getItemGraphicEl(C);I&&un(I,e,C)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new oe);M.removeAll();for(var A=0;A<S.length;++A)M.add(S[A]);o.add(M),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),xv(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),xv(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&ny(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:a(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){un(i,e,te(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Ee),dv={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Ss(t.x,r.x),s=xs(t.x+t.width,n),l=Ss(t.y,r.y),u=xs(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>n?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=xs(t.r,r.r),i=Ss(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},pv={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new fe({shape:F({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?hv:Nr,f=new u({shape:a,z2:1});f.name="item";var c=sy(n);if(f.calculateTextPosition=M1(c,{isRoundCap:u===hv}),i){var h=f.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?xe:Re)(f,{shape:d},i)}return f}};function I1(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function gv(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?xe:Re)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?xe:Re)(e,{shape:u},f,n)}function yv(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var P1=["x","y","width","height"],k1=["cx","cy","r","startAngle","endAngle"],mv={cartesian2d:function(r){return!yv(r,P1)},polar:function(r){return!yv(r,k1)}},xi={cartesian2d:function(r,t,e){var a=r.getItemLayout(t);if(!a)return null;var n=e?E1(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function R1(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function sy(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function _v(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=rn(a.getModel("itemStyle"),f,!0);F(f,c),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Mt(a);hr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Bn(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var y=a.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,D1(r,y==="outside"?v:y,sy(o),a.get(["label","rotate"]))}g_(p,d,i.getRawValue(e),function(m){return jg(t,m)});var g=a.getModel(["emphasis"]);Vt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),ma(r,a),R1(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function E1(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var O1=(function(){function r(){}return r})(),Sv=(function(r){H(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new O1},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t})(Ve);function xv(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new Sv({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var c=new Sv({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(n.getVisual("style")),c.style.stroke=null,te(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",bv),c.on("mousemove",bv)),e&&e.push(c)}var bv=Fu(function(r){var t=this,e=B1(t,r.offsetX,r.offsetY);te(t).dataIndex=e>=0?e:null},30,!1);function B1(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function ly(r,t,e){if(Nn(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function N1(r,t,e){var a=r.type==="polar"?Nr:fe;return new a({shape:ly(t,e,r),silent:!0,z2:0})}function WA(r){r.registerChartView(L1),r.registerSeriesModel(T1),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,de(iw,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ow("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,oy("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var wv=Math.PI*2,bi=Math.PI/180;function V1(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=j_(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,h=-a.get("startAngle")*bi,v=a.get("endAngle"),d=a.get("padAngle")*bi;v=v==="auto"?h-wv:-v*bi;var p=a.get("minAngle")*bi,y=p+d,g=0;n.each(i,function(V){!isNaN(V)&&g++});var m=n.getSum(i),_=Math.PI/(m||g)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var D=S?1:-1,M=[h,v],A=D*d/2;Vm(M,!S),h=M[0],v=M[1];var C=uy(a);C.startAngle=h,C.endAngle=v,C.clockwise=S,C.cx=s,C.cy=l,C.r=u,C.r0=f;var I=Math.abs(v-h),L=I,E=0,P=h;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(V,R){var B;if(isNaN(V)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?B=m===0&&x?_:V*_:B=I/g,B<y?(B=y,L-=y):E+=V;var z=P+D*B,W=0,Y=0;d>B?(W=P+D*B/2,Y=W):(W=P+A,Y=z-A),n.setItemLayout(R,{angle:B,startAngle:W,endAngle:Y,clockwise:S,cx:s,cy:l,r0:f,r:b?ve(V,w,[f,u]):u}),P=z}),L<wv&&g)if(L<=.001){var k=I/g;n.each(i,function(V,R){if(!isNaN(V)){var B=n.getItemLayout(R);B.angle=k;var z=0,W=0;k<d?(z=h+D*(R+1/2)*k,W=z):(z=h+D*R*k+A,W=h+D*(R+1)*k-A),B.startAngle=z,B.endAngle=W}})}else _=L/E,P=h,n.each(i,function(V,R){if(!isNaN(V)){var B=n.getItemLayout(R),z=B.angle===y?y:V*_,W=0,Y=0;z<d?(W=P+D*z/2,Y=W):(W=P+A,Y=P+D*z-A),B.startAngle=W,B.endAngle=Y,P+=D*z}})})}var uy=ae();function fy(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var z1=Math.PI/180;function Tv(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function f(p){for(var y=p.rB,g=y*y,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),b=a+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/g)*x)),D=t+(w+_.len2)*n,M=D-_.label.x,A=_.targetTextWidth-M*n;cy(_,A,!0),_.label.x=D}}function c(p){for(var y={list:[],maxY:0},g={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?g:y,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*n,w=a+_.len,D=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=D,S.maxY=b}S.list.push(_)}f(y),f(g)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}Ol(r,1,l,l+o)&&c(r)}function G1(r,t,e,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;bs(r[h])||(v.x<t?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!bs(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,y=void 0;d.labelAlignTo==="edge"?v.x<t?y=p[2][0]-d.labelDistance-o-d.edgeDistance:y=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?y=f-o-d.bleedMargin:y=o+n-c-d.bleedMargin:v.x<t?y=v.x-o-d.bleedMargin:y=o+n-v.x-d.bleedMargin,d.targetTextWidth=y,cy(d,y,!1)}}Tv(u,t,e,a,1,n,i,o,s,c),Tv(l,t,e,a,-1,n,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!bs(d)&&d.linePoints){var v=d.label,p=d.linePoints,g=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];g?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function cy(r,t,e){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(t<f||e){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var h=t-l,v=t<f?h:e?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",v)}vy(i,a)}}}function vy(r,t){Cv.rect=r,Kg(Cv,t,F1)}var F1={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Cv={};function bs(r){return r.position==="center"}function H1(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*z1,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),D=w.shape,M=w.getTextContent(),A=w.getTextGuideLine(),C=t.getItemModel(x),I=C.getModel("label"),L=I.get("position")||C.get(["emphasis","label","position"]),E=I.get("distanceToLabelLine"),P=I.get("alignTo"),k=re(I.get("edgeDistance"),u),V=I.get("bleedMargin");V==null&&(V=Math.min(u,h)>200?10:2);var R=C.getModel("labelLine"),B=R.get("length");B=re(B,u);var z=R.get("length2");if(z=re(z,u),Math.abs(D.endAngle-D.startAngle)<o){T(M.states,v),M.ignore=!0,A&&(T(A.states,v),A.ignore=!0);return}if(d(M)){var W=(D.startAngle+D.endAngle)/2,Y=Math.cos(W),ee=Math.sin(W),me,Te,Ht,Yr;a=D.cx,n=D.cy;var Wt=L==="inside"||L==="inner";if(L==="center")me=D.cx,Te=D.cy,Yr="center";else{var Ia=(Wt?(D.r+D.r0)/2*Y:D.r*Y)+a,Pa=(Wt?(D.r+D.r0)/2*ee:D.r*ee)+n;if(me=Ia+Y*3,Te=Pa+ee*3,!Wt){var Qn=Ia+Y*(B+l-D.r),Jn=Pa+ee*(B+l-D.r),ei=Qn+(Y<0?-1:1)*z,gr=Jn;P==="edge"?me=Y<0?f+k:f+u-k:me=ei+(Y<0?-E:E),Te=gr,Ht=[[Ia,Pa],[Qn,Jn],[ei,gr]]}Yr=Wt?"center":P==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var Ut=Math.PI,Dt=0,ka=I.get("rotate");if(le(ka))Dt=ka*(Ut/180);else if(L==="center")Dt=0;else if(ka==="radial"||ka===!0){var ym=Y<0?-W+Ut:-W;Dt=ym}else if(ka==="tangential"&&L!=="outside"&&L!=="outer"){var Zr=Math.atan2(Y,ee);Zr<0&&(Zr=Ut*2+Zr);var mm=ee>0;mm&&(Zr=Ut+Zr),Dt=Zr-Ut}if(i=!!Dt,M.x=me,M.y=Te,M.rotation=Dt,M.setStyle({verticalAlign:"middle"}),Wt){M.setStyle({align:Yr});var Go=M.states.select;Go&&(Go.x+=M.x,Go.y+=M.y)}else{var zo=new Ae(0,0,0,0);vy(zo,M),e.push({label:M,labelLine:A,position:L,len:B,len2:z,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ge(Y,ee),linePoints:Ht,textAlign:Yr,labelDistance:E,labelAlignTo:P,edgeDistance:k,bleedMargin:V,rect:zo,unconstrainedWidth:zo.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:Wt})}}),!i&&r.get("avoidLabelOverlap")&&G1(e,a,n,l,u,h,f,c);for(var p=0;p<e.length;p++){var y=e[p],g=y.label,m=y.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:y.textAlign}),_&&(T(g.states,v),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(m){var b=y.linePoints;_||!b?(T(m.states,v),m.ignore=!0):(Ug(b,y.minTurnAngle),Yw(b,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new ge(b[0][0],b[0][1])})}}}var W1=(function(r){H(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new pe;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),f=e.getItemLayout(a),c=F(rn(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Re(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Re(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Re(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,xe(o,{shape:{endAngle:f.endAngle}},s,a))}else Tn(o),xe(o,{shape:c},s,a);o.useStyle(e.getItemVisual(a,"style")),ma(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,y=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=F({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},rn(u.getModel("itemStyle"),f)),F(o.ensureState("select"),{x:p,y,shape:rn(l.getModel(["select","itemStyle"]),f)}),F(o.ensureState("blur"),{shape:rn(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&F(m.ensureState("select"),{x:p,y}),F(_.ensureState("select"),{x:p,y}),Vt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;hr(i,Mt(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new vr,this.setTextGuideLine(v)),Yg(this,Zg(o),{stroke:u,opacity:Vr(s.get(["lineStyle","opacity"]),f,1)})}},t})(Nr),U1=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=uy(e),v=new Nr({shape:j(h)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new W1(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var y=s.getItemGraphicEl(p);y.updateData(o,d,u),y.off("click"),l.add(y),o.setItemGraphicEl(d,y)}).remove(function(d){var p=s.getItemGraphicEl(d);un(p,e,d)}).execute(),H1(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t})(Ee);function hy(r,t,e){t=N(t)&&{coordDimensions:t}||F({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=Bo(a,t).dimensions,i=new Rn(n,r);return i.initData(a,e),i}var Ju=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),Y1=ae(),dy=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ju(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return hy(this,{coordDimensions:["value"],encodeDefaulter:de(lS,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=Y1(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=t0(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ui(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t})(Ne);U_({fullType:dy.type,getCoord2:function(r){return r.getShallow("center")}});function Z1(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(le(o)&&!isNaN(o)&&o<0)})}}}function UA(r){r.registerChartView(U1),r.registerSeriesModel(dy),Fx("pie",r.registerAction),r.registerLayout(de(V1,"pie")),r.registerProcessor(fy("pie")),r.registerProcessor(Z1("pie"))}var py={left:0,right:0,top:0,bottom:0},ho=["25%","25%"],X1=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=Fr(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&zt(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&zt(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:py,outerBoundsContain:"all",outerBoundsClampWidth:ho[0],outerBoundsClampHeight:ho[1],backgroundColor:O.color.transparent,borderWidth:1,borderColor:O.color.neutral30},t})(ne),Vl=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ge).models[0]},t.type="cartesian2dAxis",t})(ne);gt(Vl,Eg);var gy={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:O.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:O.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:O.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[O.color.backgroundTint,O.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:O.color.neutral00,borderColor:O.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},$1=se({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},gy),ef=se({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:O.color.axisMinorSplitLine,width:1}}},gy),K1=se({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ef),q1=ie({logBase:10},ef);const yy={category:$1,value:ef,time:K1,log:q1};var j1={value:1,category:1,time:1,log:1},Q1=null;function J1(){return Q1}function Mv(r,t,e,a){T(j1,function(n,i){var o=se(se({},yy[i],!0),a,!0),s=(function(l){H(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=In(this),v=h?Fr(f):{},d=c.getTheme();se(f,d.get(i+"Axis")),se(f,this.getDefaultOption()),f.type=Dv(f),h&&zt(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Il.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Dv)}function Dv(r){return r.type||(r.data?"category":"value")}var eT=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Me(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),zl=["x","y"];function Av(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var tT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=zl,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!Av(e)||!Av(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-n[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=Wn([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Ae(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ct(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return Ct(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Ae(i,o,s,l)},t})(eT),rT=(function(r){H(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Hg),aT="expandAxisBreak",er=Math.PI,nT=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],iT=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Vn=ae(),my=ae(),_y=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r})();function oT(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=tf(r.axisName)&&ba(r.nameLocation);T(a,function(d){var p=fr(d);if(!(!p||p.label.ignore)){o.push(p);var y=i.transGroup;l&&(y.transform?Wn(Wa,y.transform):rd(Wa),p.transform&&ad(Wa,Wa,p.transform),Ae.copy(wi,p.localRect),wi.applyTransform(Wa),s?s.union(wi):Ae.copy(s=new Ae(0,0,0,0),wi))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new Ae(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Wa=Un(),wi=new Ae(0,0,0,0),Sy=function(r,t,e,a,n,i){if(ba(r.nameLocation)){var o=i.stOccupiedRect;o&&xy($w({},o,i.transGroup.transform),a,n)}else by(i.labelInfoList,i.dirVec,a,n)};function xy(r,t,e){var a=new ge;ju(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&Kw(t,a)}function by(r,t,e,a){for(var n=ge.dot(a,t)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||xy(s,e,a)}}var Ot=(function(){function r(t,e,a,n){this.group=new oe,this._axisModel=t,this._api=e,this._local={},this._shared=n||new _y(Sy),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,a=e.getDefaultOption?e.getDefaultOption():{},n=J(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=J(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:J(t.nameDirection,1),tickDirection:J(t.tickDirection,1),labelDirection:J(t.labelDirection,1),labelOffset:J(t.labelOffset,0),silent:J(t.silent,!0),axisName:n,nameLocation:Vr(e.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:tf(n)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new oe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new ge(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var a=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(sT,function(n){t[n]&&lT[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,e||{})}),this},r.innerTextLayout=function(t,e,a){var n=yd(e-t),i,o;return Hi(n)?(o=a>0?"top":"bottom",i="center"):Hi(n-er)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<er?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),sT=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],lT={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(Ct(f,f,u),Ct(c,c,u));var v=F({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())J1().buildAxisBreakLine(a,n,i,d);else{var p=new or(F({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));Mn(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var y=a.get(["axisLine","symbol"]);if(y!=null){var g=a.get(["axisLine","symbolSize"]);$(y)&&(y=[y,y]),($(g)||le(g))&&(g=[g,g]);var m=Eo(a.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];T([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(y[x]!=="none"&&y[x]!=null){var w=Je(y[x],-_/2,-S/2,_,S,v.stroke,!0),D=b.r+b.offset,M=h?c:f;w.attr({rotation:b.rotate,x:M[0]+D*Math.cos(r.rotation),y:M[1]-D*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=Iv(t,n,s);l&&Lv(r,t,e,a,n,i,o,pt.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Iv(t,n,s);l&&Lv(r,t,e,a,n,i,o,pt.determine);var u=vT(r,n,i,a);cT(r,t.labelLayoutList,u),hT(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(tf(u)){var f=r.nameLocation,c=r.nameDirection,h=a.getModel("nameTextStyle"),v=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,y=new ge(0,0),g=new ge(0,0);f==="start"?(y.x=d[0]-p*v,g.x=-p):f==="end"?(y.x=d[1]+p*v,g.x=p):(y.x=(d[0]+d[1])/2,y.y=r.labelOffset+c*v,g.y=c);var m=Un();g.transform(cd(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*er/180);var S,b;ba(f)?S=Ot.innerTextLayout(r.rotation,_??r.rotation,c):(S=uT(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),w=a.get("nameTruncate",!0)||{},D=w.ellipsis,M=Er(r.raw.nameTruncateMaxWidth,w.maxWidth,b),A=s.nameMarginLevel||0,C=new pe({x:y.x,y:y.y,rotation:S.rotation,silent:Ot.isLabelSilent(a),style:De(h,{text:u,font:x,overflow:"truncate",width:M,ellipsis:D,fill:h.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Mo({el:C,componentModel:a,itemName:u}),C.__fullText=u,C.anid="name",a.get("triggerEvent")){var I=Ot.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,te(C).eventData=I}i.add(C),C.updateTransform(),t.nameEl=C;var L=l.nameLayout=fr({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:ba(f)?nT[A]:iT[A]});if(l.nameLocation=f,n.add(C),C.decomposeTransform(),r.shouldNameMoveOverlap&&L){var E=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,g,E)}}}};function Lv(r,t,e,a,n,i,o,s){Ty(t)||dT(r,t,n,s,a,o);var l=t.labelLayoutList;pT(r,a,l,i),r.rotation;var u=r.optionHideOverlap;fT(a,l,u),u&&qg(Me(l,function(f){return f&&!f.label.ignore})),oT(r,e,a,l)}function uT(r,t,e,a){var n=yd(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Hi(n-er/2)?(o=l?"bottom":"top",i="center"):Hi(n-er*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<er*1.5&&n>er/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function fT(r,t,e){if(Pg(r.axis))return;function a(s,l,u){var f=fr(t[l]),c=fr(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){an(f.label);return}if(c.suggestIgnore){an(c.label);return}var h=.1;if(!e){var v=[0,0,0,0];f=El({marginForce:v},f),c=El({marginForce:v},c)}ju(f,c,null,{touchThreshold:h})&&an(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function cT(r,t,e){r.showMinorTicks||T(t,function(a){if(a&&a.label.ignore)for(var n=0;n<e.length;n++){var i=e[n],o=my(i),s=Vn(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){an(i);return}}})}function an(r){r&&(r.ignore=!0)}function wy(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Ct(o,o,t),Ct(s,s,t));var f=new or({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Mn(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var c=my(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function vT(r,t,e,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=wy(u,e.transform,l,ie(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function hT(r,t,e,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ie(l.getLineStyle(),ie(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=wy(s[c],e.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)t.add(h[v])}}function Iv(r,t,e){if(Ty(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(t.remove(r.labelGroup),Gl(r,null,null,null))}return!0}function dT(r,t,e,a,n,i){var o=n.axis,s=Er(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new oe;e.add(l);var u=lo(a);if(!s||o.scale.isBlank()){Gl(t,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),h=(Er(r.raw.labelRotate,f.get("rotate"))||0)*er/180,v=Ot.innerTextLayout(r.rotation,h,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],y=n.get("triggerEvent"),g=1/0,m=-1/0;T(c,function(S,b){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,D=S.formattedLabel,M=S.rawLabel,A=f;if(d&&d[w]){var C=d[w];K(C)&&C.textStyle&&(A=new ye(C.textStyle,f,n.ecModel))}var I=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,E=J(A.getShallow("alignMinLabel",!0),L),P=J(A.getShallow("alignMaxLabel",!0),L),k=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,V=J(A.getShallow("verticalAlignMinLabel",!0),k),R=J(A.getShallow("verticalAlignMaxLabel",!0),k),B=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);g=Math.min(g,B),m=Math.max(m,B);var z=new pe({x:0,y:0,rotation:0,silent:Ot.isLabelSilent(n),z2:B,style:De(A,{text:D,align:b===0?E:b===c.length-1?P:L,verticalAlign:b===0?V:b===c.length-1?R:k,fill:Q(I)?I(o.type==="category"?M:o.type==="value"?w+"":w,b):I})});z.anid="label_"+w;var W=Vn(z);if(W.break=S.break,W.tickValue=w,W.layoutRotation=v.rotation,Mo({el:z,componentModel:n,itemName:D,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:M,tickIndex:b}}),y){var Y=Ot.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=M,Y.tickIndex=b,S.break&&(Y.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(Y.dataIndex=w),te(z).eventData=Y,S.break&&yT(n,i,z,S.break)}p.push(z),l.add(z)});var _=X(p,function(S){return{label:S,priority:Vn(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}});Gl(t,_,l,u)}function Ty(r){return!!r.labelLayoutList}function Gl(r,t,e,a){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=a}function pT(r,t,e,a){var n=t.get(["axisLabel","margin"]);T(e,function(i,o){var s=fr(i);if(s){var l=s.label,u=Vn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Tf(It,gT),It.x=t.axis.dataToCoord(u.tickValue),It.y=r.labelOffset+r.labelDirection*n,It.rotation=u.layoutRotation,a.add(It),It.updateTransform(),a.remove(It),It.decomposeTransform(),Tf(l,It),l.markRedraw(),vo(s,!0),fr(s)}})}var It=new fe,gT=new fe;function tf(r){return!!r}function yT(r,t,e,a){e.on("click",function(n){var i={type:aT,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function po(r,t,e){e=e||{};var a=t.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}n.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?h[f[o]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Er(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function mT(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Pv(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ge).models[0];t[a]=i}),t}function _T(r,t,e,a,n,i){for(var o=po(r,e),s=!1,l=!1,u=0;u<t.length;u++)Al(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new Ot(e,a,o,n)}function ST(r,t,e){var a=po(t,e);r.updateCfg(a)}function Cy(r,t,e){var a=ur.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(e),l=Ig(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;r.type==="log"&&(u=Ll(r.base,u,!0)),r.setBreaksFromOption(Rg(t)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=a.getExtent.call(r);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=a.getInterval.call(r),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=vs(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=vs(v),d=u[1]-v*o;else{var y=r.getTicks().length-1;y>o&&(v=vs(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=ke(p-g),d<0&&u[0]>=0?(d=0,p=ke(g)):p>0&&u[1]<=0&&(p=0,d=-ke(g))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+v*m,p+v*_),a.setInterval.call(r,v),(m||_)&&a.setNiceExtent.call(r,d+v,p-v)}var kv=[[3,1],[0,2]],xT=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zl,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Ie(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Al(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Qc(p,d),Al(p)&&(s=v))}f.length&&(s||(s=f.pop(),Qc(s.scale,s.model)),T(f,function(y){Cy(y.scale,y.model,s.scale)}))}}n(a.x),n(a.y);var i={};T(a.x,function(o){Rv(a,"y",o,i)}),T(a.y,function(o){Rv(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=dr(t,e),i=this._rect=Ke(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(My(o,i),!a){var u=wT(i,s,o,l,e),f=void 0;if(l)f=Bv(i.clone(),"axisLabel",null,i,o,u,n);else{var c=TT(t,i,n),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=Bv(h,v,d,i,o,u,n))}Dy(i,o,pt.determine,null,f,n)}T(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}K(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ge).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ge).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ue(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,c){T(s.y,function(h,v){var d="x"+c+"y"+v,p=new tT(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(ws(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new rT(f,ww(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(mT(n)){var i=Pv(n),o=i.xAxisModel,s=i.yAxisModel;if(!ws(o,e)||!ws(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),c=l.getAxis("y");a(u,f),a(u,c)}},this);function a(n,i){T(kg(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return T(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ue(e,i)<0&&e.push(i),ue(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){Pu({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=Pv(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=zl,r})();function ws(r,t){return r.getCoordSysModel()===t}function Rv(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Ev(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Ev(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function Ev(r){return r&&r.type!=="category"&&r.type!=="time"&&Tw(r)}function bT(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}function My(r,t){T(r.x,function(e){return Ov(e,t.x,t.width)}),T(r.y,function(e){return Ov(e,t.y,t.height)})}function Ov(r,t,e){var a=[0,e],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),bT(r,t)}function Bv(r,t,e,a,n,i,o){Dy(a,n,pt.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=vd(s,function(h){return h>0})==null;return Dn(a,s,!0,!0,e),My(n,a),l;function u(h){T(n[Jt[h]],function(v){if(On(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var y=0;y<p.length;y++){var g=p[y],m=v.scale.normalize(Vn(g.label).tickValue);m=h===1?1-m:m,f(g.rect,h,m),f(g.rect,1-h,NaN)}var _=d.nameLayout;if(_){var m=ba(d.nameLocation)?.5:NaN;f(_.rect,h,m),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=r[Jt[v]]-h[Jt[v]],y=h[_a[v]]+h[Jt[v]]-(r[_a[v]]+r[Jt[v]]);p=c(p,1-d),y=c(y,d);var g=kv[v][0],m=kv[v][1];s[g]=je(s[g],p),s[m]=je(s[m],y)}function c(h,v){return h>0&&!Ir(v)&&v>1e-4&&(h/=v),h}}function wT(r,t,e,a,n){var i=new _y(CT);return T(e,function(o){return T(o,function(s){if(On(s.model)){var l=!a;s.axisBuilder=_T(r,t,s.model,n,i,l)}})}),i}function Dy(r,t,e,a,n,i){var o=e===pt.determine;T(t,function(u){return T(u,function(f){On(f.model)&&(ST(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Jt[1-u]]=r[_a[u]]<=i.refContainer[_a[u]]*.5?0:1-u===1?2:1}T(t,function(u,f){return T(u,function(c){On(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function TT(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=Ke(r.get("outerBounds",!0)||py,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||ue(["all","axisLabel"],i)<0?o="all":o=i;var s=[rl(J(r.get("outerBoundsClampWidth",!0),ho[0]),t.width),rl(J(r.get("outerBoundsClampHeight",!0),ho[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var CT=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";Sy(r,t,e,a,n,i),ba(r.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&by(s.labelInfoList,s.dirVec,a,n)})};function MT(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return DT(e,r,t),e.seriesInvolved&&LT(e,r),e}function DT(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];T(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=zn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(T(s.getAxes(),de(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&T(d.baseAxes,de(p,v?"cross":!0,h)),v&&T(d.otherAxes,de(p,"cross",!1))}function p(y,g,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!y&&!Fl(_))){g==null&&(g=_.get("triggerTooltip")),_=y?AT(m,c,n,t,y,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=zn(m.model),D=g||b||m.type==="category",M=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:D,snap:b,useHandle:Fl(_),seriesModels:[],linkGroup:null};u[w]=M,r.seriesInvolved=r.seriesInvolved||D;var A=IT(i,m);if(A!=null){var C=o[A]||(o[A]={axesInfo:{}});C.axesInfo[w]=M,C.mapper=i[A].mapper,M.linkGroup=C}}}})}function AT(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(h){l[h]=j(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ie(u,c.textStyle)}}return r.model.getModel("axisPointer",new ye(l,e,a))}function LT(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[zn(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function IT(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Ts(i[a+"AxisId"],e.id)||Ts(i[a+"AxisIndex"],e.componentIndex)||Ts(i[a+"AxisName"],e.name))return n}}function Ts(r,t){return r==="all"||N(r)&&ue(r,t)>=0||r===t}function PT(r){var t=rf(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=Fl(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function rf(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[zn(r)]}function kT(r){var t=rf(r);return t&&t.axisPointerModel}function Fl(r){return!!r.get(["handle","show"])}function zn(r){return r.type+"||"+r.id}var Nv={},Ay=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&PT(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=kT(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){Nv[e]=a},t.getAxisPointerClass=function(e){return e&&Nv[e]},t.type="axis",t})(We),Hl=ae();function RT(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=Hl(r).splitAreaColors,h=q(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var y=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(_=y,S=l.y,b=m-_,x=l.height,y=_+b):(_=l.x,S=y,b=l.width,x=m-S,y=S+x);var w=u[d-1].tickValue;w!=null&&h.set(w,v),t.add(new fe({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:ie({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}Hl(r).splitAreaColors=h}}}function ET(r){Hl(r).splitAreaColors=null}var OT=["splitArea","splitLine","minorSplitLine","breakArea"],Ly=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),!!On(e)){this._axisGroup.add(e.axis.axisBuilder.group),T(OT,function(l){e.get([l,"show"])&&BT[l](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Fd(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){ET(this)},t.type="cartesianAxis",t})(Ay),BT={splitLine:function(r,t,e,a,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=N(l)?l:[l];for(var c=a.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],y=[],g=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;h?(p[0]=_,p[1]=c.y,y[0]=_,y[1]=c.y+c.height):(p[0]=c.x,p[1]=_,y[0]=c.x+c.width,y[1]=_);var b=v++%l.length,x=new or({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:y[0],y2:y[1]},style:ie({stroke:l[b]},g),silent:!0});Mn(x.shape,g.lineWidth),t.add(x)}}}},minorSplitLine:function(r,t,e,a,n){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var y=i.toGlobalCoord(f[d][p].coord);u?(c[0]=y,c[1]=l.y,h[0]=y,h[1]=l.y+l.height):(c[0]=l.x,c[1]=y,h[0]=l.x+l.width,h[1]=y);var g=new or({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});Mn(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,a,n){RT(r,t,e,a)},breakArea:function(r,t,e,a,n){e.axis.scale}},Iy=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(Ly),NT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Iy.type,e}return t.type="yAxis",t})(Ly),VT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new fe({shape:e.coordinateSystem.getRect(),style:ie({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(We),Vv={offset:0};function zT(r){r.registerComponentView(VT),r.registerComponentModel(X1),r.registerCoordinateSystem("cartesian2d",xT),Mv(r,"x",Vl,Vv),Mv(r,"y",Vl,Vv),r.registerComponentView(Iy),r.registerComponentView(NT),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function GT(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();T(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=zv(f)?f:Gv(n)})}),e.each(function(o){var s=vd(a[o],function(l){return zv(l)})||Gv(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function zv(r){return!isNaN(r[0])&&!isNaN(r[1])}function Gv(r){return[r.cx,r.cy]}function FT(r){var t=r.polar;if(t){N(t)||(t=[t]);var e=[];T(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],N(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}T(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var HT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Ro(h.getItemVisual(v,"symbolSize")),y=Je(d,-1,-1,2,2),g=h.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:g*Math.PI/180||0}),y}}function f(h,v,d,p,y,g){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,y);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Yd[g?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,y)):_.setPosition(v[m]),d.add(_))}}function c(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new Ca,p=new vr,y={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),Re(d,y,e,h),Re(p,y,e,h);var g=new oe,m=new oe;g.add(p),g.add(d),g.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,g)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),y=d.childAt(1),g=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,g,s,h,!1),Tn(y),Tn(p),xe(p,m,e),xe(y,m,e),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),y=h.childAt(1),g=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(ie(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),ma(p,d,"lineStyle"),ma(y,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=b,T(["emphasis","select","blur"],function(w){var D=d.getModel([w,"areaStyle"]),M=D.isEmpty()&&D.parentModel.isEmpty();y.ensureState(w).ignore=M&&b;var A=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=A;var C=D.getAreaStyle();y.ensureState(w).style=C;var I=d.getModel([w,"itemStyle"]).getItemStyle();g.eachChild(function(L){L.ensureState(w).style=j(I)})}),y.useStyle(ie(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");g.eachChild(function(w){if(w instanceof Gt){var D=w.style;w.useStyle(F({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var M=s.getStore().get(s.getDimensionIndex(w.__dimIdx),v);(M==null||isNaN(M))&&(M=""),hr(w,Mt(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:w.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),Vt(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(Ee),WT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ju(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return hy(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=Ep(this,e);return lr("section",{header:u,sortBlocks:!0,blocks:X(s,function(c){var h=i.get(i.mapDimension(c.dim),e);return lr("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(X(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Ne),Ua=yy.value;function Ti(r,t){return ie({show:t},r)}var UT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=X(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ie({color:d.color},l));var y=se(j(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if($(f)){var g=y.name;y.name=f.replace("{value}",g??"")}else Q(f)&&(y.name=f(y.name,y));var m=new ye(y,null,this.ecModel);return gt(m,Eg.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:O.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:se({lineStyle:{color:O.color.neutral20}},Ua.axisLine),axisLabel:Ti(Ua.axisLabel,!1),axisTick:Ti(Ua.axisTick,!1),splitLine:Ti(Ua.splitLine,!0),splitArea:Ti(Ua.splitArea,!0),indicator:[]},t})(ne),YT=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=X(i,function(s){var l=s.model.get("showName")?s.name:"",u=new Ot(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});T(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=N(h)?h:[h],p=N(v)?v:[v],y=[],g=[];function m(P,k,V){var R=V%k.length;return P[R]=P[R]||[],R}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(y,d,x);y[w].push(new xo({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(g,p,x);g[w].push(new tu({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var D,M=X(n,function(P,k){var V=P.getTicksCoords();return D=D==null?V.length-1:Math.min(V.length-1,D),X(V,function(R){return a.coordToPoint(R.coord,k)})}),A=[],x=0;x<=D;x++){for(var C=[],I=0;I<n.length;I++)C.push(M[I][x]);if(C[0]&&C.push(C[0].slice()),f){var w=m(y,d,x);y[w].push(new vr({shape:{points:C}}))}if(c&&A){var w=m(g,p,x-1);g[w].push(new Ca({shape:{points:C.concat(A)}}))}A=C.slice().reverse()}var L=l.getLineStyle(),E=u.getAreaStyle();T(g,function(P,k){this.group.add(fl(P,{style:ie({stroke:"none",fill:p[k%p.length]},E),silent:!0}))},this),T(y,function(P,k){this.group.add(fl(P,{style:ie({fill:"none",stroke:d[k%d.length]},L),silent:!0}))},this)},t.type="radar",t})(We),ZT=(function(r){H(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t})(Hg),XT=(function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=X(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new ZT(o,new ur);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=dr(t,e).refContainer,n=t.get("center"),i=Math.min(a.width,a.height)/2;this.cx=re(n[0],a.width)+a.x,this.cy=re(n[1],a.height)+a.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");($(o)||le(o))&&(o=[0,o]),this.r0=re(o[0],i),this.r=re(o[1],i),T(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;T(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();T(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new ur;o.setExtent(0,i),o.setInterval(1),T(a,function(s,l){Cy(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function $T(r){r.registerCoordinateSystem("radar",XT),r.registerComponentModel(UT),r.registerComponentView(YT),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function YA(r){qe($T),r.registerChartView(HT),r.registerSeriesModel(WT),r.registerLayout(GT),r.registerProcessor(fy("radar")),r.registerPreprocessor(FT)}var KT=ae();function Fv(r,t){return!!KT(r)[t]}Wr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},st);var qT={axisPointer:1,tooltip:1,brush:1};function jT(r,t,e){var a=t.getComponentByElement(r.topTarget);if(!a||a===e||qT.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===e)return!1;var i=Ln(a),o=Ln(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var Py=(function(r){H(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=Z(a._mousedownHandler,a),i=Z(a._mousemoveHandler,a),o=Z(a._mouseupHandler,a),s=Z(a._mousewheelHandler,a),l=Z(a._pinchHandler,a);return a.enable=function(u,f){var c=f.zInfo,h=Ln(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:J(c.z2,-1/0)},y=F({},f.triggerInfo);this._opt=ie(F({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:y}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Za(e,"mousedown",n,p),Za(e,"mousemove",i,p),Za(e,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Za(e,"mousewheel",s,p),Za(e,"pinch",l,p)))},a.disable=function(){this._enabled=!1,Xa(e,"mousedown",n),Xa(e,"mousemove",i),Xa(e,"mouseup",o),Xa(e,"mousewheel",s),Xa(e,"pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,a,n){var i=this._opt,o=i.zInfoParsed;if(jT(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,a,n)),u&&s.isInClip&&!s.isInClip(e,a,n)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,a,n,i){var o=e.target;if(!o&&this._checkPointer(e,a,n))return"grab";if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Cf(e)||Ya(e))){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this._checkPointer(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var a=this._zr;if(!(e.gestureEvent==="pinch"||Fv(a,"globalPan")||Ya(e))){var n=e.offsetX,i=e.offsetY;if(!this._dragging||!Ni("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&sr(e.event),e.__ecRoamConsumed=!0,Hv(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!Ya(e)){var a=this._zr;if(!Cf(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&a.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!Ya(e)){var a=Ni("zoomOnMouseWheel",e,this._opt),n=Ni("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Fv(this._zr,"globalPan")||Ya(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(sr(i.event),i.__ecRoamConsumed=!0,Hv(e,a,n,i,o))},t})(Zn);function Ya(r){return r.__ecRoamConsumed}var QT=ae();function No(r){var t=QT(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Za(r,t,e,a){for(var n=No(r),i=n.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:a}),JT(r,t)}function Xa(r,t,e){for(var a=No(r),n=a.roam[t]||[],i=0;i<n.length;i++)if(n[i].listener===e){n.splice(i,1),n.length||eC(r,t);return}}function JT(r,t){var e=No(r);e.uniform[t]||r.on(t,e.uniform[t]=function(a){var n=e.roam[t];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function eC(r,t){var e=No(r),a=e.uniform;a[t]&&(r.off(t,a[t]),a[t]=null)}function Hv(r,t,e,a,n){n.isAvailableBehavior=Z(Ni,null,e,a),r.trigger(t,n)}function Ni(r,t,e){var a=e[r];return!r||a&&(!$(a)||t.event[a+"Key"])}function tC(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function rC(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=t,o=af(o,i);var s=o/r.zoom;r.zoom=o,ky(n,e,a,s),n.dirty()}function Wv(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function aC(r,t,e){var a=r.getZoom(),n=r.getCenter(),i=t.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,r.setCenter(Wv(r,o))),i!=null&&(i=af(a*i,e)/a,ky(r,t.originX,t.originY,i),r.updateTransform(),r.setCenter(Wv(r,o)),r.setZoom(i*a)),{center:r.getCenter(),zoom:r.getZoom()}}function ky(r,t,e,a){r.x-=(t-r.x)*(a-1),r.y-=(e-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a}function af(r,t){if(t){var e=t.min||0,a=t.max||1/0;r=Math.max(Math.min(a,r),e)}return r}var Uv=Ct,Ry=(function(r){H(t,r);function t(e,a){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ua,n._rawTransformable=new ua,n.name=e,n._opt=a,n}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new Ae(e,a,n,i),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new Ae(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ae(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e){var a=this._opt;a&&a.api&&a.ecModel&&a.ecModel.getShallow("legacyViewCoordSysCenterBase")&&e&&(e=[re(e[0],a.api.getWidth()),re(e[1],a.api.getWidth())]),this._centerOption=j(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=af(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,a=this._rect;e&&a&&(this._center=[re(e[0],a.width,a.x),re(e[1],a.height,a.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=Ct([],s,n),o=Ct([],o,n),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),nd(this.transform||(this.transform=[]),a.transform||Un()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Wn(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new ua;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Uv(n,e,i):Ye(n,e)},t.prototype.pointToData=function(e,a,n){n=n||[];var i=this.invTransform;return i?Uv(n,e,i):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,a,n){var i=Yv(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=Yv(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t})(ua);function Yv(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var ot=ae();function nC(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Ey(t,e,r),T(e,function(a){T(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,de(iC,r))})}),t.wrapMethod("cloneShallow",de(sC,r)),T(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,de(oC,r))}),dt(e[t.dataType]===t)}function iC(r,t){if(fC(this)){var e=F({},ot(this).datas);e[this.dataType]=t,Ey(t,e,r)}else nf(t,this.dataType,ot(this).mainData,r);return t}function oC(r,t){return r.struct&&r.struct.update(),t}function sC(r,t){return T(ot(t).datas,function(e,a){e!==t&&nf(e.cloneShallow(),a,t,r)}),t}function lC(r){var t=ot(this).mainData;return r==null||t==null?t:ot(t).datas[r]}function uC(){var r=ot(this).mainData;return r==null?[{data:r}]:X(Ie(ot(r).datas),function(t){return{type:t,data:ot(r).datas[t]}})}function fC(r){return ot(r).mainData===r}function Ey(r,t,e){ot(r).datas={},T(t,function(a,n){nf(a,n,r,e)})}function nf(r,t,e,a){ot(e).datas[t]=r,ot(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=lC,r.getLinkedDataAll=uC}var Gn=T,cC=K,go=-1,Fe=(function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=j(t);this.type=a,this.mappingMethod=e,this._normalizeData=dC[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Cs(n),vC(n)):e==="category"?n.categories?hC(n):Cs(n,!0):(dt(e!=="linear"||n.dataExtent),Cs(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},r.listVisualTypes=function(){return Ie(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){K(t)?T(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=N(t)?[]:K(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Gn(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(N(t))t=t.slice();else if(cC(t)){var e=[];Gn(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||$(l)&&l===t+"")return o;a&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Mi(c[1],t,f[1]))return o}else if(f[1]===1/0){if(Mi(c[0],f[0],t))return o}else if(Mi(c[0],f[0],t)&&Mi(c[1],t,f[1]))return o;a&&h(f[0],o),a&&h(f[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function h(v,d){var p=Math.abs(v-t);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:$a("color"),getColorMapper:function(){var t=this.option;return Z(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),nn.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=Wo(e,t.parsedVisual,n),i?n:Li(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Li(Wo(t,this.option.parsedVisual),"rgba")},category:nn,piecewise:function(t,e){var a=Ul.call(this,e);return a==null&&(a=Li(Wo(t,this.option.parsedVisual),"rgba")),a},fixed:Cr}},colorHue:Ci(function(t,e){return ha(t,e)}),colorSaturation:Ci(function(t,e){return ha(t,null,e)}),colorLightness:Ci(function(t,e){return ha(t,null,null,e)}),colorAlpha:Ci(function(t,e){return zm(t,e)}),decal:{applyVisual:$a("decal"),_normalizedToVisual:{linear:null,category:nn,piecewise:null,fixed:null}},opacity:{applyVisual:$a("opacity"),_normalizedToVisual:Wl([0,1])},liftZ:{applyVisual:$a("liftZ"),_normalizedToVisual:{linear:Cr,category:Cr,piecewise:Cr,fixed:Cr}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:Zv,category:nn,piecewise:function(t,e){var a=Ul.call(this,e);return a==null&&(a=Zv.call(this,t)),a},fixed:Cr}},symbolSize:{applyVisual:$a("symbolSize"),_normalizedToVisual:Wl([0,1])}},r})();function vC(r){var t=r.pieceList;r.hasSpecialVisual=!1,T(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function hC(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Gn(t,function(o,s){e[o]=s}),!N(a)){var n=[];K(a)?Gn(a,function(o,s){var l=e[s];n[l??go]=o}):n[go]=a,a=Oy(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function Cs(r,t){var e=r.visual,a=[];K(e)?Gn(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),Oy(r,a)}function Ci(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Wl([0,1])}}function Zv(r){var t=this.option.visual;return t[Math.round(ve(r,[0,1],[0,t.length-1],!0))]||{}}function $a(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function nn(r){var t=this.option.visual;return t[this.option.loop&&r!==go?r%t.length:r]}function Cr(){return this.option.visual[0]}function Wl(r){return{linear:function(t){return ve(t,r,this.option.visual,!0)},category:nn,piecewise:function(t,e){var a=Ul.call(this,e);return a==null&&(a=ve(t,r,this.option.visual,!0)),a},fixed:Cr}}function Ul(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=Fe.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function Oy(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=X(t,function(e){var a=hd(e);return a||[0,0,0,1]})),t}var dC={linear:function(r){return ve(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Fe.findPieceIndex(r,t,!0);if(e!=null)return ve(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??go},fixed:st};function Mi(r,t,e){return r?t<=e:t<e}function pC(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){le(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function gC(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&a.setItemVisual(o,f[c],h)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){$(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");F(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)n.setItemVisual(o,c[h],a.getItemVisual(l,c[h]))}})})}function Di(r){return r instanceof Array||(r=[r,r]),r}function yC(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),n=Di(t.get("edgeSymbol")),i=Di(t.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=Di(s.getShallow("symbol",!0)),f=Di(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=a.ensureUniqueItemVisual(o,"style");switch(F(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var Yl="-->",Vo=function(r){return r.get("autoCurveness")||null},By=function(r,t){var e=Vo(r),a=20,n=[];if(le(e))a=e;else if(N(e)){r.__curvenessList=e;return}t>a&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Fn=function(r,t,e){var a=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,a,n].join(Yl)},Ny=function(r){var t=r.split(Yl);return[t[0],t[2],t[1]].join(Yl)},mC=function(r,t){var e=Fn(r.node1,r.node2,t);return t.__edgeMap[e]},_C=function(r,t){var e=Zl(Fn(r.node1,r.node2,t),t),a=Zl(Fn(r.node2,r.node1,t),t);return e+a},Zl=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function SC(r){Vo(r)&&(r.__curvenessList=[],r.__edgeMap={},By(r))}function xC(r,t,e,a){if(Vo(e)){var n=Fn(r,t,e),i=e.__edgeMap,o=i[Ny(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function of(r,t,e,a){var n=Vo(t),i=N(n);if(!n)return null;var o=mC(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=_C(r,t);By(t,u),r.lineStyle=r.lineStyle||{};var f=Fn(r.node1,r.node2,t),c=t.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=Ny(f),d=Zl(v,t),p=c[s+d+h];return a?i?n&&n[0]===0?(d+h)%2?p:-p:((d%2?0:1)+h)%2?p:-p:(d+h)%2?p:-p:c[s+d+h]}function Vy(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),sf(e,r)}}function sf(r,t){r.eachEdge(function(e,a){var n=Vr(e.getModel().get(["lineStyle","curveness"]),-of(e,t,a,!0),0),i=ar(e.node1.getLayout()),o=ar(e.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),e.setLayout(s)})}function bC(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var i=e.getData(),o=[];T(n.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}sf(i.graph,e)}else(!a||a==="none")&&Vy(e)})}function on(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,n=t.getZoom(),i=(n-1)*e+1;return i/a}function sn(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var Xv=Math.PI,Ms=[];function lf(r,t,e,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(e){var h=n.pointToData(a),v=h[0],d=h[1],p=[v-l,d-u];Xn(p,p),Gm(p,p,f),e.setLayout([l+p[0],u+p[1]],!0);var y=r.get(["circular","rotateLabel"]);zy(e,y,l,u)}wC[t](r,s,o,f,l,u,c),s.eachEdge(function(g,m){var _=Vr(g.getModel().get(["lineStyle","curveness"]),of(g,r,m),0),S=ar(g.node1.getLayout()),b=ar(g.node2.getLayout()),x,w=(S[0]+b[0])/2,D=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+D*(1-_)]),g.setLayout([S,b,x])})}}}var wC={value:function(r,t,e,a,n,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=h})},symbolSize:function(r,t,e,a,n,i,o){var s=0;Ms.length=o;var l=on(r);t.eachNode(function(c){var h=sn(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/a);isNaN(v)&&(v=Xv/2),Ms[c.dataIndex]=v,s+=v*2});var u=(2*Xv-s)/o/2,f=0;t.eachNode(function(c){var h=u+Ms[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=h})}};function zy(r,t,e,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");F(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function TC(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&lf(t,"symbolSize")})}var ra=el;function CC(r,t,e){for(var a=r,n=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<a.length;f++){var c=a[f];c.p||(c.p=Fm(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=ar(c.p),c.edges=null}var h=e.friction==null?.6:e.friction,v=h,d,p;return{warmUp:function(){v=h*.8},setFixed:function(y){a[y].fixed=!0},setUnfixed:function(y){a[y].fixed=!1},beforeStep:function(y){d=y},afterStep:function(y){p=y},step:function(y){d&&d(a,n);for(var g=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;fa(g,x.p,b.p);var w=Mf(g)-S.d,D=x.w/(b.w+x.w);isNaN(D)&&(D=0),Xn(g,g),!b.fixed&&ra(b.p,b.p,g,D*w*v),!x.fixed&&ra(x.p,x.p,g,-(1-D)*w*v)}}for(var _=0;_<m;_++){var M=a[_];M.fixed||(fa(g,l,M.p),ra(M.p,M.p,g,u*v))}for(var _=0;_<m;_++)for(var b=a[_],A=_+1;A<m;A++){var x=a[A];fa(g,x.p,b.p);var w=Mf(g);w===0&&(Hm(g,Math.random()-.5,Math.random()-.5),w=1);var C=(b.rep+x.rep)/w/w;!b.fixed&&ra(b.pp,b.pp,g,C),!x.fixed&&ra(x.pp,x.pp,g,-C)}for(var I=[],_=0;_<m;_++){var M=a[_];M.fixed||(fa(I,M.p,M.pp),ra(M.p,M.p,I,v),Ye(M.pp,M.p))}v=v*.992;var L=v<.01;p&&p(a,n,L),y&&y(L)}}}function MC(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):!l||l==="none"?Vy(t):l==="circular"&&lf(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=N(c)?c:[c,c],d=N(h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=ve(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),y=o.mapArray("value",function(_,S){var b=n.getEdgeByIndex(S),x=ve(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),D=Vr(b.getModel().get(["lineStyle","curveness"]),-of(b,t,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:D,ignoreForceLayout:w.get("ignoreForceLayout")}}),g=e.getBoundingRect(),m=CC(p,y,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Ye(_[b].p,n.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||n.getNodeByIndex(x).setLayout(_[x].p),a[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var D=S[x],M=n.getEdgeByIndex(x),A=D.n1.p,C=D.n2.p,I=M.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Ye(I[0],A),Ye(I[1],C),+D.curveness&&(I[2]=[(A[0]+C[0])/2-(A[1]-C[1])*D.curveness,(A[1]+C[1])/2-(C[0]-A[0])*D.curveness]),M.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=a,m.step()}else t.forceLayout=null})}function DC(r,t,e){var a=dr(r,t),n=F(r.getBoxLayoutParams(),{aspect:e}),i=Ke(n,a.refContainer);return Q_(r,i,e)}function AC(r,t){var e=[];return r.eachSeriesByType("graph",function(a){Pu({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];Wm(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=DC(a,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=new Ry(null,{api:t,ecModel:r});return v.zoomLimit=a.get("scaleLimit"),v.setBoundingRect(s[0],s[1],c,h),v.setViewRect(f.x,f.y,f.width,f.height),v.setCenter(a.get("center")),v.setZoom(a.get("zoom")),e.push(v),v}}),e}var $v=or.prototype,Ds=ru.prototype,Gy=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Gy);function As(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Fy=(function(r){H(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:O.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Gy},t.prototype.buildPath=function(e,a){As(a)?$v.buildPath.call(this,e,a):Ds.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return As(this.shape)?$v.pointAt.call(this,e):Ds.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=As(a)?[a.x2-a.x1,a.y2-a.y1]:Ds.tangentAt.call(this,e);return Xn(n,n)},t})(Ve),Ls=["fromSymbol","toSymbol"];function Kv(r){return"_"+r+"Type"}function qv(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Ro(n),u=Eo(o||0,l);return a+l+u+(i||"")+(s||"")}function jv(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Ro(n),u=Eo(o||0,l),f=Je(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function LC(r){var t=new Fy({name:"line",subPixelOptimize:!0});return Xl(t.shape,r),t}function Xl(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var IC=(function(r){H(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=e.getItemVisual(a,"z2"),l=LC(o);l.shape.percent=0,Re(l,{z2:J(s,0),shape:{percent:1}},i,a),this.add(l),T(Ls,function(u){var f=jv(u,e,a);this.add(f),this[Kv(u)]=qv(u,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};Xl(l.shape,s),xe(o,l,i,a),T(Ls,function(u){var f=qv(u,e,a),c=Kv(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=jv(u,e,a);this.add(h)}this[c]=f},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,h=n&&n.focus,v=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),v=p.get("blurScope"),f=Mt(d)}var y=e.getItemVisual(a,"style"),g=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(Ls,function(x){var w=this.childOfName(x);if(w){w.setColor(g),w.style.opacity=y.opacity;for(var D=0;D<$e.length;D++){var M=$e[D],A=o.getState(M);if(A){var C=A.style||{},I=w.ensureState(M),L=I.style||(I.style={});C.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=C.stroke),C.opacity!=null&&(L.opacity=C.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);hr(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,e.dataType)}},inheritColor:g||O.color.neutral99,defaultOpacity:y.opacity,defaultText:(m==null?e.getName(a):isFinite(m)?ke(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");N(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Vt(this,h,v,c)},t.prototype.highlight=function(){bn(this)},t.prototype.downplay=function(){wn(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");Xl(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=fa([],c,f);Xn(h,h);function v(A,C){var I=A.__specifiedRotation;if(I==null){var L=l.tangentAt(C);A.attr("rotation",(C===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else A.attr("rotation",I)}if(a&&(a.setPosition(f),v(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(c),v(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,y=i.__labelDistance,g=y[0]*o,m=y[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var D=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(D=Math.PI+D),i.rotation=D}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=m,p="top";break;default:M=0,p="middle"}switch(i.__position){case"end":i.x=h[0]*g+c[0],i.y=h[1]*m+c[1],d=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*g+f[0],i.y=-h[1]*m+f[1],d=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*w+f[0],i.y=f[1]+M,d=S[0]<0?"right":"left",i.originX=-g*w,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+M,d="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*w+c[0],i.y=c[1]+M,d=S[0]>=0?"right":"left",i.originX=g*w,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t})(oe),PC=(function(){function r(t){this.group=new oe,this._LineCtor=t||IC}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Qv(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Qv(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!kC(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(Is(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Gr(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(Is(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!Is(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r})();function kC(r){return r.animators&&r.animators.length>0}function Qv(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Mt(t)}}function Jv(r){return isNaN(r[0])||isNaN(r[1])}function Is(r){return r&&!Jv(r[0])&&!Jv(r[1])}var Ps=[],ks=[],Rs=[],aa=Ym,Es=Zm,eh=Math.abs;function th(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){Ps[0]=aa(a[0],n[0],i[0],f),Ps[1]=aa(a[1],n[1],i[1],f);var c=eh(Es(Ps,t)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;ks[0]=aa(a[0],n[0],i[0],s),ks[1]=aa(a[1],n[1],i[1],s),Rs[0]=aa(a[0],n[0],i[0],v),Rs[1]=aa(a[1],n[1],i[1],v);var c=Es(ks,t)-l;if(eh(c)<.01)break;var d=Es(Rs,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Os(r,t){var e=[],a=Um,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[ar(u[0]),ar(u[1])],u[2]&&u.__original.push(ar(u[2])));var h=u.__original;if(u[2]!=null){if(Ye(n[0],h[0]),Ye(n[1],h[2]),Ye(n[2],h[1]),f&&f!=="none"){var v=sn(s.node1),d=th(n,h[0],v*t);a(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(c&&c!=="none"){var v=sn(s.node2),d=th(n,h[1],v*t);a(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}Ye(u[0],n[0]),Ye(u[1],n[2]),Ye(u[2],n[1])}else{if(Ye(i[0],h[0]),Ye(i[1],h[1]),fa(o,i[1],i[0]),Xn(o,o),f&&f!=="none"){var v=sn(s.node1);el(i[0],i[0],o,v*t)}if(c&&c!=="none"){var v=sn(s.node2);el(i[1],i[1],o,-v*t)}Ye(u[0],i[0]),Ye(u[1],i[1])}})}var RC=ae();function EC(r){if(r)return RC(r).bridge}function rh(r){return r.type==="view"}var OC=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Qg,i=new PC,o=this.group,s=new oe;this._controller=new Py(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(rh(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(c):xe(this._mainGroup,c,e)}Os(e.getGraph(),on(e));var h=e.getData();u.updateData(h);var v=e.getEdgeData();f.updateData(v),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var y=e.get("layout");h.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var D=w.get("draggable");D&&x.on("drag",function(A){switch(y){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),h.setItemLayout(b,[x.x,x.y]);break;case"circular":h.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),lf(e,"symbolSize",S,[A.offsetX,A.offsetY]),i.updateLayout(e);break;default:h.setItemLayout(b,[x.x,x.y]),sf(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(D,!!w.get("cursor"));var M=w.get(["emphasis","focus"]);M==="adjacency"&&(te(x).focus=S.getAdjacentDataIndices())}}),h.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(te(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=h.getLayout("cx"),_=h.getLayout("cy");h.graph.eachNode(function(S){zy(S,g,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!rh(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!e||e.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(tC(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(rC(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),Os(e.getGraph(),on(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=on(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(Os(e.getGraph(),on(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=EC(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new oe,l=n.group.children(),u=i.group.children(),f=new oe,c=new oe;s.add(c),s.add(f);for(var h=0;h<l.length;h++){var v=l[h],d=v.children()[0],p=v.x,y=v.y,g=j(d.shape),m=F(g,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:y-d.scaleY/2}),_=j(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var h=0;h<u.length;h++){var v=u[h],b=v.children()[0],_=j(b.style),m=j(b.shape),x=new Fy({style:_,shape:m,z2:151});f.add(x)}o.bridge.renderContent({api:a,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},t.type="graph",t})(Ee);function na(r){return"_EC_"+r}var BC=(function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[na(t)]){var n=new Mr(t,e);return n.hostGraph=this,this.nodes.push(n),a[na(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[na(t)]},r.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(le(t)&&(t=this.nodes[t]),le(e)&&(e=this.nodes[e]),t instanceof Mr||(t=n[na(t)]),e instanceof Mr||(e=n[na(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new Hy(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Mr&&(t=t.id),e instanceof Mr&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Mr||(e=this._nodesMap[na(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(n,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r})(),Mr=(function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=q(),e=q(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,e.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,h=f.length,v=void 0,d=void 0;c<h;c++)v=f[c],d=v.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(v.node1))}for(l=0;l<s.length;){var p=s[l];l++,e.set(p.dataIndex,!0);for(var y=p.outEdges,c=0,g=y.length,m=void 0,_=void 0;c<g;c++)m=y[c],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r})(),Hy=(function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=q(),e=q();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,e.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),a.push(f.node1))}for(i=0;i<n.length;){var h=n[i];i++,e.set(h.dataIndex,!0);for(var v=h.outEdges,l=0,u=v.length,d=void 0,p=void 0;l<u;l++)d=h.outEdges[l],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r})();function Wy(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}gt(Mr,Wy("hostGraph","data"));gt(Hy,Wy("hostGraph","edgeData"));function NC(r,t,e,a,n){for(var i=new BC(a),o=0;o<r.length;o++)i.addNode(Er(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(Er(it(f.id,null),c+" > "+h)),u++)}var v=e.get("coordinateSystem"),d;if(v==="cartesian2d"||v==="polar"||v==="matrix")d=La(r,e);else{var p=qn.get(v),y=p?p.dimensions||[]:[];ue(y,"value")<0&&y.concat(["value"]);var g=Bo(r,{coordDimensions:y,encodeDefine:e.getEncode()}).dimensions;d=new Rn(g,e),d.initData(r)}var m=new Rn(["value"],e);return m.initData(l,s),n&&n(d,m),nC({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var VC=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ju(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Ui(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){SC(this);var s=NC(i,n,this,!0,l);return T(s.edges,function(u){xC(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,y=d.getShallow("category"),g=p[y];return g&&(g.parentModel=d.parentModel,d.parentModel=g),d});var c=ye.prototype.getModel;function h(d,p){var y=c.call(this,d,p);return y.resolveParentPath=v,y}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=v,d.getModel=h,d});function v(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),lr("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=Bp({series:this,dataIndex:e,multipleSeries:a});return c},t.prototype._updateCategoriesData=function(){var e=X(this.option.categories||[],function(n){return n.value!=null?n:F({value:0},n)}),a=new Rn(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:O.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:O.color.primary}}},t})(Ne);function ZA(r){r.registerChartView(OC),r.registerSeriesModel(VC),r.registerProcessor(pC),r.registerVisual(gC),r.registerVisual(yC),r.registerLayout(bC),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,TC),r.registerLayout(MC),r.registerCoordinateSystem("graphView",{dimensions:Ry.dimensions,create:AC}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},st),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},st),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,s=aC(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}function wa(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=ia(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=ia(s,[0,o]),n=i=ia(s,[n,i]),a=0}t[0]=ia(t[0],e),t[1]=ia(t[1],e);var l=Bs(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=ia(t[a],f);var c;return c=Bs(t,a),n!=null&&(c.sign!==l.sign||c.span<n)&&(t[1-a]=t[a]+l.sign*n),c=Bs(t,a),i!=null&&c.span>i&&(t[1-a]=t[a]+c.sign*i),t}function Bs(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ia(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var zC=256,GC=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Fi.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=a;for(var d=0;d<v;++d){var p=t[d],y=p[0],g=p[1],m=p[2],_=n(m);h.globalAlpha=_,h.drawImage(s,y-f,g-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,D=this.minOpacity,M=this.maxOpacity,A=M-D;x<w;){var _=b[x+3]/256,C=Math.floor(_*(zC-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*A+D),b[x++]=I[C],b[x++]=I[C+1],b[x++]=I[C+2],b[x++]=I[C+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Fi.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=O.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function FC(r,t,e){var a=r[1]-r[0];t=X(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function HC(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function ah(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var WC=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):ah(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(ah(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Gr(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=Nn(s,"cartesian2d"),u=Nn(s,"matrix"),f,c,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var y=this.group,g=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),x=Mt(e),w=e.getModel("emphasis"),D=w.get("focus"),M=w.get("blurScope"),A=w.get("disabled"),C=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=n;I<i;I++){var L=void 0,E=g.getItemVisual(I,"style");if(l){var P=g.get(C[0],I),k=g.get(C[1],I);if(isNaN(g.get(C[2],I))||isNaN(P)||isNaN(k)||P<h[0]||P>h[1]||k<v[0]||k>v[1])continue;var V=s.dataToPoint([P,k]);L=new fe({shape:{x:V[0]-f/2,y:V[1]-c/2,width:f,height:c},style:E})}else if(u){var R=s.dataToLayout([g.get(C[0],I),g.get(C[1],I)]).rect;if(Ir(R.x))continue;L=new fe({z2:1,shape:R,style:E})}else{if(isNaN(g.get(C[1],I)))continue;var B=s.dataToLayout([g.get(C[0],I)]),R=B.contentRect||B.rect;if(Ir(R.x)||Ir(R.y))continue;L=new fe({z2:1,shape:R,style:E})}if(g.hasItemOption){var z=g.getItemModel(I),W=z.getModel("emphasis");m=W.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),b=z.get(["itemStyle","borderRadius"]),D=W.get("focus"),M=W.get("blurScope"),A=W.get("disabled"),x=Mt(z)}L.shape.r=b;var Y=e.getRawValue(I),ee="-";Y&&Y[2]!=null&&(ee=Y[2]+""),hr(L,x,{labelFetcher:e,labelDataIndex:I,defaultOpacity:E.opacity,defaultText:ee}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Vt(L,D,M,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),y.add(L),g.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new GC;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),y=d-h,g=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,D,M){var A=e.dataToPoint([w,D]);return A[0]-=h,A[1]-=v,A.push(M),A}),S=n.getExtent(),b=n.type==="visualMap.continuous"?HC(S,n.option.range):FC(S,n.getPieceList(),n.option.selected);u.update(_,y,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Gt({style:{width:y,height:g,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t})(Ee),UC=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return La(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=qn.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:O.color.primary}}},t})(Ne);function XA(r){r.registerChartView(WC),r.registerSeriesModel(UC)}var nh={color:"fill",borderColor:"stroke"},YC={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Bt=ae(),ZC=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return La(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Bt(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Ne);function XC(r,t){return t=t||[0,0],X(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function $C(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(XC,r)}}}function KC(r,t){return t=t||[0,0],X([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function qC(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:Z(KC,r)}}}function jC(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function QC(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(jC,r)}}}function JC(r,t){return t=t||[0,0],X(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function eM(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Z(JC,r)}}}function tM(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function rM(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function aM(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||G(r,"text")))}function nM(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},G(a,"text")&&(o.text=a.text),G(a,"rich")&&(o.rich=a.rich),G(a,"textFill")&&(o.fill=a.textFill),G(a,"textStroke")&&(o.stroke=a.textStroke),G(a,"fontFamily")&&(o.fontFamily=a.fontFamily),G(a,"fontSize")&&(o.fontSize=a.fontSize),G(a,"fontStyle")&&(o.fontStyle=a.fontStyle),G(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=G(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),G(a,"textPosition")&&(n.position=a.textPosition),G(a,"textOffset")&&(n.offset=a.textOffset),G(a,"textRotation")&&(n.rotation=a.textRotation),G(a,"textDistance")&&(n.distance=a.textDistance)}return ih(o,r),T(o.rich,function(l){ih(l,l)}),{textConfig:n,textContent:i}}function ih(r,t){t&&(t.font=t.textFont||t.font,G(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),G(t,"textAlign")&&(r.align=t.textAlign),G(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),G(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),G(t,"textWidth")&&(r.width=t.textWidth),G(t,"textHeight")&&(r.height=t.textHeight),G(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),G(t,"textPadding")&&(r.padding=t.textPadding),G(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),G(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),G(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),G(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),G(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),G(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),G(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function oh(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||O.color.neutral99;sh(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||O.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||O.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,T(t.rich,function(s){sh(s,s)}),a}function sh(r,t){t&&(G(t,"fill")&&(r.textFill=t.fill),G(t,"stroke")&&(r.textStroke=t.fill),G(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),G(t,"font")&&(r.font=t.font),G(t,"fontStyle")&&(r.fontStyle=t.fontStyle),G(t,"fontWeight")&&(r.fontWeight=t.fontWeight),G(t,"fontSize")&&(r.fontSize=t.fontSize),G(t,"fontFamily")&&(r.fontFamily=t.fontFamily),G(t,"align")&&(r.textAlign=t.align),G(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),G(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),G(t,"width")&&(r.textWidth=t.width),G(t,"height")&&(r.textHeight=t.height),G(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),G(t,"padding")&&(r.textPadding=t.padding),G(t,"borderColor")&&(r.textBorderColor=t.borderColor),G(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),G(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),G(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),G(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),G(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),G(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),G(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),G(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),G(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),G(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Uy={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lh=Ie(Uy);gn(mn,function(r,t){return r[t]=1,r},{});mn.join(", ");var yo=["","style","shape","extra"],Ta=ae();function uf(r,t,e,a,n){var i=r+"Animation",o=pu(r,a,n)||{},s=Ta(t).userDuring;return o.duration>0&&(o.during=s?Z(cM,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,e[i]),o}function iM(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=Ta(r),u=t.style;l.userDuring=t.during;var f={},c={};if(hM(r,t,c),r.type==="compound")for(var h=r.shape.paths,v=t.shape.paths,d=0;d<v.length;d++){var p=v[d];Ns("shape",p,h[d])}else Ns("shape",t,c),Ns("extra",t,c);if(!i&&s&&(vM(r,t,f),uh("shape",r,t,f),uh("extra",r,t,f),dM(r,t,u,f)),c.style=u,sM(r,c,o),uM(r,t),s)if(i){var y={};T(yo,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(y[m]=y[m]||{}),F(m?y[m]:y,_.enterFrom))});var g=uf("enter",r,t,e,n);g.duration>0&&r.animateFrom(y,g)}else lM(r,t,n||0,e,f);oM(r,t),u?r.dirty():r.markRedraw()}function oM(r,t){for(var e=Ta(r).leaveToProps,a=0;a<yo.length;a++){var n=yo[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=Ta(r).leaveToProps={}),n&&(e[n]=e[n]||{}),F(n?e[n]:e,i.leaveTo))}}function ff(r,t,e,a){if(r){var n=r.parent,i=Ta(r).leaveToProps;if(i){var o=uf("update",r,t,e,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function ya(r){return r==="all"}function sM(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function lM(r,t,e,a,n){if(n){var i=uf("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function uM(r,t){G(t,"silent")&&(r.silent=t.silent),G(t,"ignore")&&(r.ignore=t.ignore),r instanceof dd&&G(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ve&&G(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var _t={},fM={setTransform:function(r,t){return _t.el[r]=t,this},getTransform:function(r){return _t.el[r]},setShape:function(r,t){var e=_t.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=_t.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=_t.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=_t.el.style;if(t)return t[r]},setExtra:function(r,t){var e=_t.el.extra||(_t.el.extra={});return e[r]=t,this},getExtra:function(r){var t=_t.el.extra;if(t)return t[r]}};function cM(){var r=this,t=r.el;if(t){var e=Ta(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}_t.el=t,a(fM)}}function uh(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),ya(l))F(o,i);else for(var u=Le(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(ya(s)||ue(s,r)>=0){!o&&(o=a[r]={});for(var v=Ie(i),f=0;f<v.length;f++){var c=v[f],h=i[c];pM(n[c],h)&&(o[c]=h)}}}}}function Ns(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=Ie(a),o=0;o<i.length;o++){var s=i[o];n[s]=Xm(a[s])}}function vM(r,t,e){for(var a=t.transition,n=ya(a)?mn:Le(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function hM(r,t,e){for(var a=0;a<lh.length;a++){var n=lh[a],i=Uy[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<mn.length;a++){var s=mn[a];t[s]!=null&&(e[s]=t[s])}}function dM(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!ya(o)){var l=Le(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],c=n[f];i[f]=c}}else if(r.getAnimationStyleProps&&(ya(s)||ya(o)||ue(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Ie(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=n[f];i[f]=c}}}}}}}function pM(r,t){return Hn(r)?r!==t:r!=null&&isFinite(r)}var Yy=ae(),gM=["percent","easing","shape","style","extra"];function yM(r){r.stopAnimation("keyframe"),r.attr(Yy(r))}function Zy(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(N(t)){T(t,function(s){Zy(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=pu("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Yy(r);T(yo,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),T(a,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=Ie(c);if(s||(h=Me(h,function(p){return ue(gM,p)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;T(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var Nt="emphasis",tr="normal",cf="blur",vf="select",cr=[tr,Nt,cf,vf],Vs={normal:["itemStyle"],emphasis:[Nt,"itemStyle"],blur:[cf,"itemStyle"],select:[vf,"itemStyle"]},zs={normal:["label"],emphasis:[Nt,"label"],blur:[cf,"label"],select:[vf,"label"]},mM=["x","y"],_M="e\0\0",rt={normal:{},emphasis:{},blur:{},select:{}},SM={cartesian2d:$C,geo:qC,single:QC,polar:eM,calendar:tM,matrix:rM};function $l(r){return r instanceof Ve}function Kl(r){return r instanceof dd}function xM(r,t){t.copyTransform(r),Kl(t)&&Kl(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,$l(t)&&$l(r)&&t.setShape(r.shape))}var bM=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=fh(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(c){Gs(n,null,c,u(c,i),e,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&ff(h,Bt(h).option,e)}).update(function(c,h){var v=o.getItemGraphicEl(h);Gs(n,v,c,u(c,i),e,l,s)}).execute();var f=e.get("clip",!0)?ny(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=fh(a,s,n,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var h=Gs(null,null,c,l(c,o),a,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){Gr(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t})(Ee);function hf(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Ky(a);e=Cn(i,null,n,a.layout||"center"),Bt(e).customPathData=i}else if(t==="image")e=new Gt({}),Bt(e).customImagePath=r.style.image;else if(t==="text")e=new pe({});else if(t==="group")e=new oe;else if(t==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";Be(o)}var s=X(a.paths,function(f){if(f.type==="path")return Cn(f.shape.pathData,f,null);var c=ul(f.type);if(!c){var h="";Be(h)}return new c});e=new od({shape:{paths:s}})}else{var l=ul(t);if(!l){var o="";Be(o)}e=new l}return Bt(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function df(r,t,e,a,n,i,o){yM(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=mM);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;G(u,"textFill")&&(u.fill=u.textFill),G(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=$l(t)?l.decal:null;r&&c&&(c.dirty=!0,f=no(c,r)),l.__decalPattern=f}if(Kl(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}iM(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Zy(t,a.keyframeAnimation,i)}function Xy(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),kd(i)}}function wM(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<cr.length;s++)TM(a,t,cr[s])}}function TM(r,t,e){var a=e===tr,n=a?t:mo(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function fh(r,t,e,a){var n=r.get("renderItem");if(typeof n=="string"){var i=ab(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):SM[o.type](o));for(var l=ie({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:D,visual:C,barLayout:I,currentSeriesIndices:L,font:E},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:CM(r.getData()),itemPayload:r.get("itemPayload")||{}},f,c,h={},v={},d={},p={},y=0;y<cr.length;y++){var g=cr[y];d[g]=r.getModel(Vs[g]),p[g]=r.getModel(zs[g])}function m(P){return P===f?c||(c=t.getItemModel(P)):t.getItemModel(P)}function _(P,k){return t.hasItemOption?P===f?h[k]||(h[k]=m(P).getModel(Vs[k])):m(P).getModel(Vs[k]):d[k]}function S(P,k){return t.hasItemOption?P===f?v[k]||(v[k]=m(P).getModel(zs[k])):m(P).getModel(zs[k]):p[k]}return function(P,k){return f=P,c=null,h={},v={},n&&n(ie({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:k?k.type:null},u),l)};function b(P,k){return k==null&&(k=f),t.getStore().get(t.getDimensionIndex(P||0),k)}function x(P,k){k==null&&(k=f),P=P||0;var V=t.getDimensionInfo(P);if(!V){var R=t.getDimensionIndex(P);return R>=0?t.getStore().get(R,k):void 0}var B=t.get(V.name,k),z=V&&V.ordinalMeta;return z?z.categories[B]:B}function w(P,k){k==null&&(k=f);var V=t.getItemVisual(k,"style"),R=V&&V.fill,B=V&&V.opacity,z=_(k,tr).getItemStyle();R!=null&&(z.fill=R),B!=null&&(z.opacity=B);var W={inheritColor:$(R)?R:O.color.neutral99},Y=S(k,tr),ee=De(Y,null,W,!1,!0);ee.text=Y.getShallow("show")?J(r.getFormattedLabel(k,tr),Bn(t,k)):null;var me=qi(Y,W,!1);return A(P,z),z=oh(z,ee,me),P&&M(z,P),z.legacy=!0,z}function D(P,k){k==null&&(k=f);var V=_(k,Nt).getItemStyle(),R=S(k,Nt),B=De(R,null,null,!0,!0);B.text=R.getShallow("show")?Vr(r.getFormattedLabel(k,Nt),r.getFormattedLabel(k,tr),Bn(t,k)):null;var z=qi(R,null,!0);return A(P,V),V=oh(V,B,z),P&&M(V,P),V.legacy=!0,V}function M(P,k){for(var V in k)G(k,V)&&(P[V]=k[V])}function A(P,k){P&&(P.textFill&&(k.textFill=P.textFill),P.textPosition&&(k.textPosition=P.textPosition))}function C(P,k){if(k==null&&(k=f),G(nh,P)){var V=t.getItemVisual(k,"style");return V?V[nh[P]]:null}if(G(YC,P))return t.getItemVisual(k,P)}function I(P){if(o.type==="cartesian2d"){var k=o.getBaseAxis();return rw(ie({axis:k},P))}}function L(){return e.getCurrentSeriesIndices()}function E(P){return Xd(P,e)}}function CM(r){var t={};return T(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Gs(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=pf(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Vt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function pf(r,t,e,a,n,i){var o=-1,s=t;t&&$y(t,a,n)&&(o=ue(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=hf(a),s&&xM(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),rt.normal.cfg=rt.normal.conOpt=rt.emphasis.cfg=rt.emphasis.conOpt=rt.blur.cfg=rt.blur.conOpt=rt.select.cfg=rt.select.conOpt=null,rt.isLegacy=!1,DM(u,e,a,n,l,rt),MM(u,e,a,n,l),df(r,u,e,a,rt,n,l),G(a,"info")&&(Bt(u).info=a.info);for(var f=0;f<cr.length;f++){var c=cr[f];if(c!==tr){var h=mo(a,c),v=gf(a,h,c);Xy(c,u,h,v,rt)}}return wM(u,a,n),a.type==="group"&&AM(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function $y(r,t,e){var a=Bt(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&kM(i)&&Ky(i)!==a.customPathData||n==="image"&&G(o,"image")&&o.image!==a.customImagePath}function MM(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&$y(o,i,a)&&(o=null),o||(o=hf(i),r.setClipPath(o)),df(null,o,t,i,null,a,n)}}function DM(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){ch(e,null,i),ch(e,Nt,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=hf(o),r.setTextContent(f)),df(null,f,t,o,null,a,n);for(var c=o&&o.style,h=0;h<cr.length;h++){var v=cr[h];if(v!==tr){var d=i[v].conOpt;Xy(v,f,d,gf(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function ch(r,t,e){var a=t?mo(r,t):r,n=t?gf(r,a,Nt):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?mo(s,t):s:null;if(n&&(e.isLegacy||aM(n,i,!!o,!!l))){e.isLegacy=!0;var u=nM(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function mo(r,t){return t?r?r[t]:null:r}function gf(r,t,e){var a=t&&t.style;return a==null&&e===Nt&&r&&(a=r.styleEmphasis),a}function AM(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){IM({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),pf(r,h,e,c,n,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);LM(t,d,n)}}}function LM(r,t,e){t&&ff(t,Bt(r).option,e)}function IM(r){new hg(r.oldChildren,r.newChildren,vh,vh,r).add(hh).update(hh).remove(PM).execute()}function vh(r,t){var e=r&&r.name;return e??_M+t}function hh(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;pf(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function PM(r){var t=this.context,e=t.oldChildren[r];e&&ff(e,Bt(e).option,t.seriesModel)}function Ky(r){return r&&(r.pathData||r.d)}function kM(r){return r&&(G(r,"pathData")||G(r,"d"))}function $A(r){r.registerChartView(bM),r.registerSeriesModel(ZC)}var Dr=ae(),dh=j,Fs=Z,RM=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new oe,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var h=de(ph,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}yh(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=rf(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Dr(t).pointerEl=new Yd[i.type](dh(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Dr(t).labelEl=new pe(dh(e.label));t.add(i),gh(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Dr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Dr(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),gh(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=mu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){sr(u.event)},onmousedown:Fs(this._onHandleDragMove,this,0,0),drift:Fs(this._onHandleDragMove,this),ondragend:Fs(this._onHandleDragEnd,this)}),a.add(n)),yh(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");N(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,ko(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){ph(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Hs(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Hs(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Hs(n)),Dr(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),to(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function ph(r,t,e,a){qy(Dr(e).lastProp,a)||(Dr(e).lastProp=a,t?xe(e,a,r):(e.stopAnimation(),e.attr(a)))}function qy(r,t){if(K(r)&&K(t)){var e=!0;return T(t,function(a,n){e=e&&qy(r[n],a)}),!!e}else return r===t}function gh(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Hs(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function yh(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function EM(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function OM(r,t,e,a,n){var i=e.get("value"),o=jy(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Kn(s.get("padding")||0),u=s.getFont(),f=ud(o,u),c=n.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),BM(c,h,v,a);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:De(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function BM(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function jy(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:so(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?i=o.replace("{value}",i):Q(o)&&(i=o(s))}return i}function Qy(r,t,e){var a=Un();return cd(a,a,e.rotation),$m(a,a,e.position),nr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function NM(r,t,e,a,n,i){var o=Ot.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),OM(t,a,n,i,{position:Qy(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function VM(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function zM(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var GM=(function(r){H(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=mh(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=EM(i),v=FM[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=po(l.getRect(),n);NM(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=po(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Qy(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=mh(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(RM);function mh(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var FM={line:function(r,t,e){var a=VM([t,e[0]],[t,e[1]],_h(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:zM([t-a/2,e[0]],[a,n],_h(r))}}};function _h(r){return r.dim==="x"?0:1}var HM=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:O.color.border,width:1,type:"dashed"},shadowStyle:{color:O.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:O.color.neutral00,padding:[5,7,5,7],backgroundColor:O.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:O.color.accent40,throttle:40}},t})(ne),Et=ae(),WM=T;function Jy(r,t,e){if(!we.node){var a=t.getZr();Et(a).records||(Et(a).records={}),UM(a,t);var n=Et(a).records[r]||(Et(a).records[r]={});n.handler=e}}function UM(r,t){if(Et(r).initialized)return;Et(r).initialized=!0,e("click",de(Sh,"click")),e("mousemove",de(Sh,"mousemove")),e("globalout",ZM);function e(a,n){r.on(a,function(i){var o=XM(t);WM(Et(r).records,function(s){s&&n(s,i,o.dispatchAction)}),YM(o.pendings,t)})}}function YM(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function ZM(r,t,e){r.handler("leave",null,e)}function Sh(r,t,e,a){t.handler(r,e,a)}function XM(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function ql(r,t){if(!we.node){var e=t.getZr(),a=(Et(e).records||{})[r];a&&(Et(e).records[r]=null)}}var $M=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Jy("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){ql("axisPointer",a)},t.prototype.dispose=function(e,a){ql("axisPointer",a)},t.type="axisPointer",t})(We);function em(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Or(i,r);if(o==null||o<0||N(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(X(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),e=[y.x+y.width/2,y.y+y.height/2]}return{point:e,el:s}}var xh=ae();function KM(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Z(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Vi(n)&&(n=em({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Vi(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||Vi(n),h={},v={},d={list:[],map:{}},p={showPointer:de(jM,v),showTooltip:de(QM,d)};T(s.coordSysMap,function(g,m){var _=l||g.containPoint(n);T(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=rD(u,S);if(!c&&_&&(!u||w)){var D=w&&w.value;D==null&&!l&&(D=x.pointToData(n)),D!=null&&bh(S,D,p,!1,h)}})});var y={};return T(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&T(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var w=x.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,wh(S),wh(g)))),y[g.key]=w}})}),T(y,function(g,m){bh(f[m],g,p,!0,h)}),JM(v,f,h),eD(d,n,r,o),tD(f,o,e),h}}function bh(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=qM(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&F(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function qM(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=c,i.length=0),T(h,function(y){i.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:n}}function jM(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function QM(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=zn(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function JM(r,t,e){var a=e.axesInfo=[];T(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function eD(r,t,e,a){if(Vi(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function tD(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=xh(a)[n]||{},o=xh(a)[n]={};T(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&T(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];T(i,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function rD(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function wh(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Vi(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function tm(r){Ay.registerAxisPointerClass("CartesianAxisPointer",GM),r.registerComponentModel(HM),r.registerComponentView($M),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=MT(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},KM)}function KA(r){qe(zT),qe(tm)}var aD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=Fr(e);r.prototype.init.apply(this,arguments),Th(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),Th(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:O.color.axisLine,width:1,type:"solid"}},itemStyle:{color:O.color.neutral00,borderWidth:1,borderColor:O.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:O.size.s,color:O.color.secondary},monthLabel:{show:!0,position:"start",margin:O.size.s,align:"center",formatter:null,color:O.color.secondary},yearLabel:{show:!0,position:null,margin:O.size.xl,formatter:null,color:O.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(ne);function Th(r,t){var e=r.cellSize,a;N(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=X([0,1],function(i){return eS(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});zt(r,t,{type:"box",ignoreSize:n})}var nD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new fe({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,h=0;c.time<=a.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var y=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new vr({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return $(e)&&e?F_(e,a):Q(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),y={start:a.start.y,end:a.end.y,nameMap:d},g=this._formatterLabel(p,y),m=new pe({z2:30,style:De(o,{text:g}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(a=hl(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),y=0;y<c[h].length-1;y++){var g=c[h][y].slice(),m=this._firstDayOfMonth[y];if(d){var _=this._firstDayPoints[y];g[v]=(_[v]+c[0][y+1][v])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),D=new pe({z2:30,style:F(De(o,{text:w}),this._monthTextPositionControl(g,d,n,u,l)),silent:p});i.add(D)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],f=e[1],c=n==="start";return a==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||$(f)){f&&(a=hl(f)||a);var v=a.get(["time","dayOfWeekShort"]);f=v||X(a.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=re(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var y=s.get("silent"),g=0;g<7;g++){var m=l.getNextNDay(d,g),_=l.dataToCalendarLayout([m.time],!1).center,S=g;S=Math.abs((g+h)%7);var b=new pe({z2:30,style:F(De(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:y});o.add(b)}}},t.type="calendar",t})(We),Ws=864e5,iD=(function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=zr(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];T([0,1],function(c){f(i,c)&&(o[n[c]]=i[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=Ke(o,l);T([0,1],function(c){f(i,c)||(i[c]=u[n[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,a){a=a||[],N(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+Ws))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(t,e);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,Ae.copy(i,n),Dn(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(t,e){var a=this.dataToPoint(t,e);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=Us(e);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(t,e,a){var n=Us(e);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Us(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(N(t)&&t.length===1&&(t=t[0]),N(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Ws)-Math.floor(e[0].time/Ws)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),c=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Pu({targetModel:i,coordSysType:"calendar",coordSysProvider:X_})}),a},r.dimensions=["time","value"],r})();function Us(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function qA(r){r.registerComponentModel(aD),r.registerComponentView(nD),r.registerCoordinateSystem("calendar",iD)}var Ch=["x","y","radius","angle","single"],oD=["cartesian2d","polar","singleAxis"];function sD(r){var t=r.get("coordinateSystem");return ue(oD,t)>=0}function rr(r){return r+"Axis"}function lD(r,t){var e=q(),a=[],n=q();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return a}function rm(r){var t=r.ecModel,e={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(rr(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Ys=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),_o=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=Mh(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=Mh(e);se(this.option,e,!0),se(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=q(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return T(Ch,function(n){var i=this.getReferringComponents(rr(n),b0);if(i.specified){a=!0;var o=new Ys;T(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new Ys;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Ge).models[0];v&&T(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Ge).models[0]&&h.add(d.componentIndex)})}}}i&&T(Ch,function(u){if(i){var f=n.findComponents({mainType:rr(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new Ys;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(rr(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){T(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(rr(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;T(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(ne);function Mh(r){var t={};return T(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var am=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t})(We),la=T,Dh=Ar,uD=(function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(sD(e)){var a=rr(this._dimName),n=e.getReferringComponents(a,Ge).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return j(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;la(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=n.parse(ve(d,o,e))):(u=!0,p=p==null?e[v]:n.parse(p),d=ve(p,e,o)),l[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),Dh(l),Dh(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,d,p,y){var g=y?"Span":"ValueSpan";wa(0,h,d,"all",f["min"+g],f["max"+g]);for(var m=0;m<2;m++)v[m]=ve(h[m],d,p,!0),y&&(v[m]=n.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=fD(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;la(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=X(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,y,g=0;g<f.length;g++){var m=c.get(h[g],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(y=!0),S&&(d=!0),b&&(p=!0)}return y&&d&&p})}else la(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});la(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;la(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ve(a[0]+o,a,[0,100],!0):i!=null&&(o=ve(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=gd(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function fD(r,t,e){var a=[1/0,-1/0];la(e,function(o){Cw(a,o.getData(),t)});var n=r.getAxisModel(),i=Lg(n.axis.scale,n,a).calculate();return[i.min,i.max]}var cD={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(rr(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new uD(n,i,s,r),e.push(o.__dzAxisProxy))});var a=q();return T(e,function(n){T(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function vD(r){r.registerAction("dataZoom",function(t,e){var a=lD(e,t);T(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Ah=!1;function nm(r){Ah||(Ah=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,cD),vD(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function hD(r,t){var e=Kn(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new fe({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var dD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:O.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:O.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:O.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:O.color.tertiary,fontSize:14}},t})(ne);function im(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function om(r){if(we.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var sm=om(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),pD=om(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function lm(r,t){if(!r)return t;t=op(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function gD(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var yD=lm(pD,"transition"),yf=lm(sm,"transform"),mD="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(we.transform3dSupported?"will-change:transform;":"");function _D(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function SD(r,t,e){if(!$(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Br(t);var i=_D(e),o=Math.max(Math.round(n)*1.5,6),s="",l=yf+":",u;ue(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function xD(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(we.transformSupported?""+yf+n:",left"+n+",top"+n)),yD+":"+i}function Lh(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!we.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=we.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+yf+":"+o+";":[["top",0],["left",0],[sm,o]]}function bD(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=J(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),T(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function wD(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=Op(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+v),t&&i>0&&n.push(xD(i,e,a)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(d){var p="border-"+d,y=op(p),g=r.get(y);g!=null&&n.push(p+":"+g+(d==="color"?"":"px"))}),n.push(bD(c)),h!=null&&n.push("padding:"+Kn(h).join("px ")+"px"),n.join(";")+";"}function Ih(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&qm(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var TD=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,we.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&($(i)?document.querySelector(i):Df(i)?i:Q(i)&&i(t.getDom()));Ih(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Km(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=gD(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=mD+wD(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Lh(i[0],i[1],!0)+("border-color:"+Br(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(i)&&a.get("trigger")==="item"&&!im(a)&&(s=SD(a,n,i)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l<t.length;l++)Df(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(Ih(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Lh(a[0],a[1]);T(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",we.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.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())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;jm(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var a=e.parentNode;a&&a.removeChild(e)}this.el=this._container=null},r})(),CD=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),kh(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;K(t)&&Be(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new pe({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:Op(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=Ph(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;kh(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Qt(i.borderWidth||0),s=Ph(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.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())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Qt(r){return Math.max(0,r)}function Ph(r){var t=Qt(r.shadowBlur||0),e=Qt(r.shadowOffsetX||0),a=Qt(r.shadowOffsetY||0);return{left:Qt(t-e),right:Qt(t+e),top:Qt(t-a),bottom:Qt(t+a)}}function kh(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var MD=new fe({shape:{x:-1,y:-1,width:2,height:2}}),DD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(we.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=T0(n.get("renderMode"));this._tooltipContent=i==="richText"?new CD(a):new TD(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(we.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?ko(this,"_updatePosition",50,"fixRate"):to(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Jy("itemTooltip",this._api,Z(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||we.node||!n.getDom())){var o=Rh(i,n);this._ticket="";var s=i.dataByCoordSys,l=PD(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=MD;f.x=i.x,f.y=i.y,f.update(),te(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var c=em(i,a),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(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))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Rh(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),c=Ka([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=te(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;va(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(te(f).dataIndex!=null?l=f:te(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=Z(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Ka([a.tooltipOption],i),l=this._renderMode,u=[],f=lr("section",{blocks:[],noHeader:!0}),c=[],h=new ts;T(e,function(m){T(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=jy(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=lr("section",{header:x,noHeader:!Yn(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),T(_.seriesDataIndices,function(D){var M=n.getSeriesByIndex(D.seriesIndex),A=D.dataIndexInside,C=M.getDataParams(A);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=so(S.axis,{value:b}),C.axisValueLabel=x,C.marker=h.makeTooltipMarker("item",Br(C.color),l);var I=yc(M.formatTooltip(A,!0,null)),L=I.frag;if(L){var E=Ka([M],i).get("valueFormatter");w.blocks.push(E?F({valueFormatter:E},L):L)}I.text&&c.push(I.text),u.push(C)}})}})}),f.blocks.reverse(),c.reverse();var v=a.position,d=s.get("order"),p=wc(f,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var y=l==="richText"?`
8
+
9
+ `:"<br/>",g=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=te(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=Ka([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=p.get("trigger");if(!(y!=null&&y!=="item")){var g=u.getDataParams(f,c),m=new ts;g.marker=m.makeTooltipMarker("item",Br(g.color),v);var _=yc(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?wc(b?F({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,D="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,g,D,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=te(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if($(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=j(l),l.content=Xe(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=Ka(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),y=Math.random()+"",g=new ts;this._showOrMove(d,function(){var m=j(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,y,e.offsetX,e.offsetY,e.position,a,g)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(h)if($(h)){var y=e.ecModel.get("useUTC"),g=N(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=Lo(g.axisValue,v,y)),v=sp(v,n,!0)}else if(Q(h)){var _=Z(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||N(a))return{color:i||o};if(!N(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),N(a))n=re(a[0],u),i=re(a[1],f);else if(K(a)){var p=a;p.width=c[0],p.height=c[1];var y=Ke(p,{width:u,height:f});n=y.x,i=y.y,h=null,v=null}else if($(a)&&l){var g=ID(a,d,c,e.get("borderWidth"));n=g[0],i=g[1]}else{var g=AD(n,i,o,u,f,h?null:20,v?null:20);n=g[0],i=g[1]}if(h&&(n-=Eh(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=Eh(v)?c[1]/2:v==="bottom"?c[1]:0),im(e)){var g=LD(n,i,o,u,f);n=g[0],i=g[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&T(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],y=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===y.length,o&&T(p,function(g,m){var _=y[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&T(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){we.node||!a.getDom()||(to(this,"_updatePosition"),this._tooltipContent.dispose(),ql("itemTooltip",a))},t.type="tooltip",t})(We);function Ka(r,t,e){var a=t.ecModel,n;e?(n=new ye(e,a,a),n=new ye(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ye&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new ye(o,n,a)))}return n}function Rh(r,t){return r.dispatchAction||Z(t.dispatchAction,t)}function AD(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function LD(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ID(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function Eh(r){return r==="center"||r==="middle"}function PD(r,t,e){var a=su(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Ma(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=te(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function jA(r){qe(tm),r.registerComponentModel(dD),r.registerComponentView(DD),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},st),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},st)}var Oh=T;function Bh(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Nh(r,t,e){var a={};return Oh(t,function(i){var o=a[i]=n();Oh(r[i],function(s,l){if(Fe.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Fe(u),l==="opacity"&&(u=j(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Fe(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function kD(r,t,e){var a;T(e,function(n){t.hasOwnProperty(n)&&Bh(t[n])&&(a=!0)}),a&&T(e,function(n){t.hasOwnProperty(n)&&Bh(t[n])?r[n]=j(t[n]):delete r[n]})}function RD(r,t,e,a){var n={};return T(r,function(i){var o=Fe.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return Yp(s,c,b)}function f(b,x){Gx(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,c):c,p=e(d),y=t[p],g=n[p],m=0,_=g.length;m<_;m++){var S=g[m];y[S]&&y[S].applyVisual(d,u,f)}}}}}var ED=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:O.size.m,backgroundColor:O.color.transparent,borderColor:O.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:O.color.primary},subtextStyle:{fontSize:12,color:O.color.quaternary}},t})(ne),OD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=J(e.get("textBaseline"),e.get("textVerticalAlign")),f=new pe({style:De(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new pe({style:De(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),y=e.get("triggerEvent",!0);f.silent=!d&&!y,v.silent=!p&&!y,d&&f.on("click",function(){Qf(d,"_"+e.get("target"))}),p&&v.on("click",function(){Qf(p,"_"+e.get("subtarget"))}),te(f).eventData=te(v).eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=dr(e,n),S=Ke(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var x=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var D=new fe({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(D)}},t.type="title",t})(We);function QA(r){r.registerComponentModel(ED),r.registerComponentView(OD)}var BD=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},jl=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),N(a)&&T(a,function(i,o){$(i)&&(i={type:i}),a[o]=se(i,BD(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):f=!0}else f=!0;f&&ou(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=q(),s=X(i,function(l){return($(l)||le(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ye(l,this,this.ecModel))},this);this._data=Me(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;T(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;T(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;T(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&ue(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:O.size.m,align:"auto",backgroundColor:O.color.transparent,borderColor:O.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:O.color.disabled,inactiveBorderColor:O.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:O.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:O.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:O.color.tertiary,borderWidth:1,borderColor:O.color.border},emphasis:{selectorLabel:{show:!0,color:O.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(ne),oa=de,Ql=T,Ai=oe,um=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ai),this.group.add(this._selectorGroup=new Ai),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var f=dr(e,n).refContainer,c=e.getBoxLayoutParams(),h=e.get("padding"),v=Ke(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=Ke(ie({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hD(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=q(),c=a.get("selectedMode"),h=a.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Ql(a.getData(),function(d,p){var y=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
10
+ `)){var m=new Ai;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),D=this._createItem(_,g,p,d,a,e,b,w,x,c,i);D.on("click",oa(Vh,g,null,i,v)).on("mouseover",oa(Jl,_.name,null,i,v)).on("mouseout",oa(eu,_.name,null,i,v)),n.ssr&&D.eachChild(function(M){var A=te(M);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),h&&D.eachChild(function(M){y.packEventData(M,a,_,p,g)}),f.set(g,!0)}else n.eachRawSeries(function(M){var A=this;if(!f.get(g)&&M.legendVisualProvider){var C=M.legendVisualProvider;if(!C.containName(g))return;var I=C.indexOfName(g),L=C.getItemVisual(I,"style"),E=C.getItemVisual(I,"legendIcon"),P=hd(L.fill);P&&P[3]===0&&(P[3]=.2,L=F(F({},L),{fill:Li(P,"rgba")}));var k=this._createItem(M,g,p,d,a,e,{},L,E,c,i);k.on("click",oa(Vh,null,g,i,v)).on("mouseover",oa(Jl,null,g,i,v)).on("mouseout",oa(eu,null,g,i,v)),n.ssr&&k.eachChild(function(V){var R=te(V);R.seriesIndex=M.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&k.eachChild(function(V){A.packEventData(V,a,M,p,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};te(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();Ql(e,function(u){var f=u.type,c=new pe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);hr(c,{normal:h,emphasis:v},{defaultText:u.title}),$i(c)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),y=o.isSelected(a),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=ND(f,i,l,u,v,y,h),b=new Ai,x=i.getModel("textStyle");if(Q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(VD({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var D=s==="left"?d+5:-5,M=s,A=o.get("formatter"),C=a;$(A)&&A?C=A.replace("{name}",a??""):Q(A)&&(C=A(a));var I=y?x.getTextColor():i.get("inactiveColor");b.add(new pe({style:De(x,{text:C,x:D,y:p/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new fe({shape:b.getBoundingRect(),style:{fill:"transparent"}}),E=i.getModel("tooltip");return E.get("show")&&Mo({el:L,componentModel:o,itemName:a,itemTooltipOption:E.option}),b.add(L),b.eachChild(function(P){P.silent=!0}),L.silent=!c,this.getContentGroup().add(b),$i(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ga(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ga("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,y=p===0?"width":"height",g=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[y]+d:c[p]+=h[y]+d,v[1-p]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[y]=f[y]+d+h[y],_[g]=Math.max(f[g],h[g]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(We);function ND(r,t,e,a,n,i,o){function s(y,g){y.lineWidth==="auto"&&(y.lineWidth=g.lineWidth>0?2:0),Ql(y,function(m,_){y[_]==="inherit"&&(y[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:no(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function VD(r){var t=r.icon||"roundRect",e=Je(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=O.color.neutral00,e.style.lineWidth=2),e}function Vh(r,t,e,a){eu(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Jl(r,t,e,a)}function fm(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function Jl(r,t,e,a){fm(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function eu(r,t,e,a){fm(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function zD(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function qa(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),zh(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){T(n,function(l,u){s[l?"select":"unSelect"](u)}),zh(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function zh(r,t){var e=t||{};return T(r.getData(),function(a){var n=a.get("name");if(!(n===`
11
+ `||n==="")){var i=r.isSelected(n);G(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function GD(r){r.registerAction("legendToggleSelect","legendselectchanged",de(qa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",de(qa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",de(qa,"inverseSelect")),r.registerAction("legendSelect","legendselected",de(qa,"select")),r.registerAction("legendUnSelect","legendunselected",de(qa,"unSelect"))}function cm(r){r.registerComponentModel(jl),r.registerComponentView(um),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,zD),r.registerSubTypeDefaulter("legend",function(){return"plain"}),GD(r)}var FD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=Fr(e);r.prototype.init.call(this,e,a,n),Gh(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Gh(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Aa(jl.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:O.color.accent50,pageIconInactiveColor:O.color.accent10,pageIconSize:15,pageTextStyle:{color:O.color.tertiary},animationDurationUpdate:800}),t})(jl);function Gh(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,zt(t,e,{type:"box",ignoreSize:!!n})}var Fh=oe,Zs=["width","height"],Xs=["x","y"],HD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Fh),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Fh)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var f=this._controllerGroup,c=a.get("pageIconSize",!0),h=N(c)?c:[c,c];d("pagePrev",0);var v=a.getModel("pageTextStyle");f.add(new pe({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,y){var g=p+"DataIndex",m=mu(a.get("pageIcons",!0)[a.getOrient().name][y],{onclick:Z(u._pageGo,u,g,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Zs[u],c=Xs[u],h=Zs[1-u],v=Xs[1-u];o&&ga("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),y=[-p.x,-p.y],g=j(n);o&&(g[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(e,i,g,u,f,h,v,c);if(o){if(s==="end")y[u]+=m[f]+d;else{var _=p[f]+d;y[u]-=_,m[c]-=_}m[f]+=p[f]+d,y[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ga(e.get("orient"),f,e.get("itemGap"),i?n.width:null,i?null:n.height),ga("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],y=[-v.x,-v.y];a||(y[i]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:g[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(y),c.setPosition(g),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new fe({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&xe(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=a[c]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Zs[o],l=Xs[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var y=u+1,g=p,m=p,_=null;y<=h;++y)_=S(f[y]),(!_&&m.e>g.s+i||_&&!b(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var y=u-1,g=p,m=p,_=null;y>=-1;--y)_=S(f[y]),(!_||!b(m,_.s))&&g.i<m.i&&(m=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(x){if(x){var w=x.getBoundingRect(),D=w[l]+x[l];return{s:D,e:D+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t})(um);function WD(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function UD(r){qe(cm),r.registerComponentModel(FD),r.registerComponentView(HD),WD(r)}function JA(r){qe(cm),qe(UD)}var YD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Aa(_o.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(_o),mf=ae();function ZD(r,t,e){mf(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function XD(r,t){for(var e=mf(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||vm(e,o))}}}function vm(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function $D(r,t){var e={model:t,containsPoint:de(qD,t),dispatchAction:de(KD,r),dataZoomInfoMap:null,controller:null},a=e.controller=new Py(r.getZr());return T(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function KD(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function qD(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function jD(r,t,e){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function QD(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=mf(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=q());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=rm(i);T(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,$D(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=q());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){vm(n,i);return}var f=jD(l,i,e);o.enable(f.controlType,f.opt),ko(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var JD=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),ZD(n,e,{pan:Z($s.pan,this),zoom:Z($s.zoom,this),scrollMove:Z($s.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){XD(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(am),$s={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Ks[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wa(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Hh(function(r,t,e,a,n,i){var o=Ks[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Hh(function(r,t,e,a,n,i){var o=Ks[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Hh(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(wa(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Ks={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function eA(r){nm(r),r.registerComponentModel(YD),r.registerComponentView(JD),QD(r)}var tA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Aa(_o.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:O.color.accent10,borderRadius:0,backgroundColor:O.color.transparent,dataBackground:{lineStyle:{color:O.color.accent30,width:.5},areaStyle:{color:O.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:O.color.accent40,width:.5},areaStyle:{color:O.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:O.color.neutral00,borderColor:O.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:O.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:O.color.tertiary},brushSelect:!0,brushStyle:{color:O.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:O.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t})(_o),ja=fe,rA=1,qs=30,aA=7,Qa="horizontal",Wh="vertical",nA=5,iA=["line","bar","candlestick","scatter"],oA={easing:"cubicOut",duration:100,delay:0},sA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),ko(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){to(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?aA:0,o=dr(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Qa?{right:o.width-s.x-s.width,top:o.height-qs-l-i,width:s.width,height:qs}:{right:l,top:s.y,width:qs,height:s.height},f=Fr(e.option);T(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var c=Ke(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Wh&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Qa&&!o?{scaleY:l?1:-1,scaleX:1}:n===Qa&&o?{scaleY:l?1:-1,scaleX:-1}:n===Wh&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new ja({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new ja({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(e.thisDim),h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var d=[0,a[1]],p=[0,a[0]],y=[[a[0],0],[0,0]],g=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",b=-m,x=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,E){if(x>0&&E%x){S||(b+=m);return}b=S?(+I-c[0])*_:b+m;var P=L==null||isNaN(L)||L==="",k=P?0:ve(L,h,d,!0);P&&!w&&E?(y.push([y[y.length-1][0],0]),g.push([g[g.length-1][0],0])):!P&&w&&(y.push([b,0]),g.push([b,0])),P||(y.push([b,k]),g.push([b,k])),w=P}),u=this._shadowPolygonPts=y,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var D=this.dataZoomModel;function M(I){var L=D.getModel(I?"selectedDataBackground":"dataBackground"),E=new oe,P=new Ca({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new vr({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(P),E.add(k),E}for(var A=0;A<3;A++){var C=M(A===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!n&&!(a!==!0&&ue(iA,u.get("type"))<0)){var f=i.getComponent(rr(o),s).axis,c=lA(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:h}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=a.filler=new ja({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new ja({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:rA,fill:O.color.transparent}})),T([0,1],function(_){var S=l.get("handleIcon");!ao[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Je(S,-1,0,2,2,null,!0);b.attr({cursor:uA(this._orient),draggable:!0,drift:Z(this._onDragMove,this,_),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=re(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),$i(b);var D=l.get("handleColor");D!=null&&(b.style.fill=D),o.add(n[_]=b);var M=l.getModel("textStyle"),A=l.get("handleLabel")||{},C=A.show||!1;e.add(i[_]=new pe({silent:!0,invisible:!C,style:De(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var v=h;if(c){var d=re(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new fe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),y=d*.8,g=a.moveHandleIcon=Je(l.get("moveHandleIcon"),-y/2,-y/2,y,y,O.color.neutral00,!0);g.silent=!0,g.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new fe({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[ve(e[0],[0,100],a,!0),ve(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wa(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?ve(s.minSpan,l,o,!0):null,s.maxSpan!=null?ve(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ar([ve(i[0],o,l,!0),ve(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Ar(n.slice()),o=this._size;T([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new fe,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=Ar(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=fn(n.handles[d].parent,this.group),y=yu(d===0?"right":"left",p),g=this._handleWidth/2+nA,m=nr([h[d]+(d===0?-g:g),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Qa?"middle":y,align:o===Qa?y:"center",text:s[d]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return Q(i)?i(e,s):$(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,sr(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=nr([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new ge(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();wa(0,l,o,0,u.minSpan!=null?ve(u.minSpan,s,o,!0):null,u.maxSpan!=null?ve(u.maxSpan,s,o,!0):null),this._range=Ar([ve(l[0],o,s,!0),ve(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(sr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new ja({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?oA:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=rm(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(am);function lA(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function uA(r){return r==="vertical"?"ns-resize":"ew-resize"}function fA(r){r.registerComponentModel(tA),r.registerComponentView(sA),nm(r)}function eL(r){qe(eA),qe(fA)}var hm={get:function(r,t,e){var a=j((cA[r]||{})[t]);return e&&N(a)?a[a.length-1]:a}},cA={color:{active:["#006edd","#e0ffff"],inactive:[O.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Uh=Fe.mapVisual,vA=Fe.eachVisual,hA=N,Yh=T,dA=Ar,pA=ve,So=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&kD(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Z(e,this),this.controllerVisuals=Nh(this.option.controller,a,e),this.targetVisuals=Nh(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=Ma(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){T(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],N(e)&&(e=e.slice(),u=!0);var f=a?e:u?[c(e[0]),c(e[1])]:c(e);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Q(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=dA([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});se(i,n),se(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){hA(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},Yh(d,function(y,g){if(Fe.isValidType(g)){var m=hm.get(g,"inactive",s);m!=null&&(p[g]=m,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),y=p||"roundRect";Yh(this.stateList,function(g){var m=this.itemSize,_=c[g];_||(_=c[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&j(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&j(v)||(s?m[0]:[m[0],m[0]])),_.symbol=Uh(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var b=-1/0;vA(S,function(x){x>b&&(b=x)}),_.symbolSize=Uh(S,function(x){return pA(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:O.color.transparent,borderColor:O.color.borderTint,contentColor:O.color.theme[0],inactiveColor:O.color.disabled,borderWidth:0,padding:O.size.m,textGap:10,precision:0,textStyle:{color:O.color.secondary}},t})(ne),Zh=[20,140],gA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=Zh[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=Zh[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):N(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Ar((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent(),i=J(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=e)&&(i&&a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=Xh(this,"outOfRange",this.getExtent()),n=Xh(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Aa(So.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:O.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:O.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:O.color.shadow}}),t})(So);function Xh(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var dm=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Kn(a.get("padding")||0),i=e.getBoundingRect();e.add(new fe({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(e)],h=Fe.prepareVisualTypes(c);return T(h,function(v){var d=c[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),Fe.dependsOn(v,a)&&d&&d.applyVisual(e,u,f)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api,i=dr(a,n).refContainer;J_(e,a.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t})(We),$h=[["left","right","width"],["top","bottom","height"]];function pm(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=$h[o],l=[0,null,10],u={},f=0;f<3;f++)u[$h[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:a[s[f]];var c=[["x","width",3],["y","height",0]][o],h=Ke(u,i,a.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function zi(r,t){return T(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var St=ve,yA=T,Kh=Math.min,js=Math.max,mA=12,_A=6,SA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=Z(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Z(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new pe({style:De(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":c),align:v.get("align")||(h==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=pm(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new oe;u.add(f),f.add(n.outOfRange=qh()),f.add(n.inRange=qh(null,s?Qh(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),f.setClipPath(new fe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=a.textStyleModel.getTextRect("国"),h=js(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=Z(this._dragHandle,this,n,!1),u=Z(this._dragHandle,this,n,!0),f=yn(e.get("handleSize"),i[0]),c=Je(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=Qh(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){sr(g.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),du(c,!0),a.add(c);var v=this.visualMapModel.textStyleModel,d=new pe({cursor:h,draggable:!0,drift:l,onmousemove:function(g){sr(g.event)},ondragend:u,style:De(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],y=this._shapes;y.handleThumbs[n]=c,y.handleLabelPoints[n]=p,y.handleLabels[n]=d},t.prototype._createIndicator=function(e,a,n,i,o){var s=yn(e.get("indicatorSize"),n[0]),l=Je(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Gt){var f=l.style;l.useStyle(F({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var c=this.visualMapModel.textStyleModel,h=new pe({silent:!0,invisible:!0,style:De(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:_A)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():jh(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[St(a[0],n,i,!0),St(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];wa(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[St(i[0],o,s,!0),St(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new nu(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new oe(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);yA([0,1],function(c){var h=o[c];h.setStyle("fill",a.handlesColor[c]),h.y=e[c];var v=St(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=nr(n.handleLabelPoints[c],fn(h,this.group));if(this._orient==="horizontal"){var y=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=y}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),d=this.getControllerVisual(e,"symbolSize"),p=St(e,s,u,!0),y=l[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=y;var m=nr(f.indicatorLabelPoint,fn(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:y,y:p,style:{fill:v}},D={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,M),_.animateTo(D,M)}else c.attr(w),_.attr(D);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var C=0;C<A.length;C++)this.api.enterBlur(A[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=Kh(js(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=Kh(js(o[0],e),o[1]);var l=xA(n,s,o),u=[e-l,e+l],f=St(e,o,s,!0),c=[St(u[0],o,s,!0),St(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||jh(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=S0(h,v);this._dispatchHighDown("downplay",zi(d[0],n)),this._dispatchHighDown("highlight",zi(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(va(e.target,function(l){var u=te(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",zi(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=fn(a,i?null:this.group);return N(e)?nr(e,o,n):yu(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(dm);function qh(r,t,e,a){return new Ca({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){sr(n.event)},ondragend:a})}function xA(r,t,e){var a=mA/2,n=r.get("hoverLinkDataSize");return n&&(a=St(n,t,e,!0)/2),a}function jh(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function Qh(r){return r==="vertical"?"ns-resize":"ew-resize"}var bA={type:"selectDataRange",event:"dataRangeSelected",update:"update"},wA=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},TA=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(RD(a.stateList,a.targetVisuals,Z(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(Z(CA,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function CA(r,t,e,a){for(var n=t.targetVisuals[a],i=Fe.prepareVisualTypes(n),o={color:Zp(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var Jh=T;function MA(r){var t=r&&r.visualMap;N(t)||(t=t?[t]:[]),Jh(t,function(e){if(e){sa(e,"splitList")&&!sa(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&N(a)&&Jh(a,function(n){K(n)&&(sa(n,"start")&&!sa(n,"min")&&(n.min=n.start),sa(n,"end")&&!sa(n,"max")&&(n.max=n.end))})}})}function sa(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var ed=!1;function gm(r){ed||(ed=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(bA,wA),T(TA,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(MA))}function DA(r){r.registerComponentModel(gA),r.registerComponentView(SA),gm(r)}var AA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],LA[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=j(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=j(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Fe.listVisualTypes(),i=this.isCategory();T(e.pieces,function(s){T(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),T(a,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&T(this.stateList,function(f){(e[f]||(e[f]={}))[l]=hm.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,T(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;T(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=j(e)},t.prototype.getValueState=function(e){var a=Fe.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Fe.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=e(h,c);f[0]===-1/0?n[0]=v:f[1]===1/0?n[1]=v:a.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=Aa(So.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(So),LA={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),Lf(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;T(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),td(t,r)},pieces:function(r){var t=this.option;T(t.pieces,function(e,a){K(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=e[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Fe.retrieveVisuals(e),r.push(n)},this),td(t,r),Lf(r),T(r,function(e){var a=e.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function td(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var IA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Er(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),T(l.viewPieceList,function(h){var v=h.piece,d=new oe;d.onclick=Z(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=a.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var y=this.visualMapModel.getValueState(p),g=i.get("align")||o;d.add(new pe({style:De(i,{x:g==="right"?-n:s[0]+n,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:g,opacity:J(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),ga(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:zi(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return pm(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new oe,l=this.visualMapModel.textStyleModel;s.add(new pe({style:De(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=Je(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=j(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})(dm);function PA(r){r.registerComponentModel(AA),r.registerComponentView(IA),gm(r)}function tL(r){qe(DA),qe(PA)}var kA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new Ap(this),xc(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),xc(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ht},t})(ne),RA=(function(r){H(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(We);function EA(r){r.registerComponentModel(kA),r.registerComponentView(RA)}qe([r1,EA]);qe(t1);export{$A as A,Rn as S,FA as a,zA as b,VA as c,$i as d,GA as e,fg as f,Ke as g,BA as h,ZA as i,jA as j,JA as k,ve as l,r1 as m,NA as n,XA as o,KA as p,tL as q,Tb as r,YA as s,WA as t,qe as u,UA as v,HA as w,QA as x,eL as y,qA as z};