@weapp-vite/dashboard 6.17.3 → 6.17.4

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 (33) hide show
  1. package/dist/assets/AppEmptyState.js +1 -0
  2. package/dist/assets/AppInsetPanel.js +1 -0
  3. package/dist/assets/AppMetricTile.js +1 -0
  4. package/dist/assets/AppRuntimeBadge.js +1 -0
  5. package/dist/assets/AppSectionHeading.js +1 -0
  6. package/dist/assets/activity.js +5 -6
  7. package/dist/assets/analyze.js +30 -36
  8. package/dist/assets/css.worker-C078mPpn.js +89 -0
  9. package/dist/assets/echarts.js +11 -4
  10. package/dist/assets/editor.worker-Cn2oRESe.js +26 -0
  11. package/dist/assets/html.worker-BO6WuOEO.js +502 -0
  12. package/dist/assets/index.css +2 -1
  13. package/dist/assets/index.js +1 -1
  14. package/dist/assets/json.worker-C4lWBgVJ.js +58 -0
  15. package/dist/assets/monaco.css +1 -1
  16. package/dist/assets/monaco.js +288 -319
  17. package/dist/assets/pages.js +2 -0
  18. package/dist/assets/rolldown-runtime.js +1 -0
  19. package/dist/assets/tokens.js +1 -1
  20. package/dist/assets/{ts.worker-BH9nVgjN.js → ts.worker-CDlTriQ3.js} +253 -237
  21. package/dist/assets/vendor.js +1 -8
  22. package/dist/assets/vue.js +1 -1
  23. package/package.json +3 -3
  24. package/dist/assets/AppInsetPanel.vue_vue_type_script_setup_true_lang.js +0 -1
  25. package/dist/assets/AppMetricTile.vue_vue_type_script_setup_true_lang.js +0 -1
  26. package/dist/assets/AppRuntimeBadge.vue_vue_type_script_setup_true_lang.js +0 -1
  27. package/dist/assets/AppSectionHeading.vue_vue_type_script_setup_true_lang.js +0 -1
  28. package/dist/assets/clipboard.js +0 -1
  29. package/dist/assets/css.worker-DBVD8oXr.js +0 -93
  30. package/dist/assets/editor.worker-CdQrwHl8.js +0 -26
  31. package/dist/assets/html.worker-CwpTb9lJ.js +0 -470
  32. package/dist/assets/index2.js +0 -2
  33. package/dist/assets/json.worker-BoL8UZqY.js +0 -58
@@ -1,10 +1,17 @@
1
- import{_ as $,i as Oc,e as k,a as Y,b as x,c as dt,d as ve,f as P,r as Mn,m as B,g as U,h as N,j as Ce,k as Co,l as R,n as fe,o as z,P as wt,p as Wl,q as li,s as ot,t as W,u as pp,v as gp,T as ui,w as fi,x as Et,y as ci,z as ys,Z as Wr,A as xe,B as Nc,C as Do,D as Me,E as mp,F as ct,G as yp,H as _p,I as Sp,J as H,K as St,L as vi,M as _s,S as Ss,R as xs,N as Un,O as hi,Q as Oe,U as Xr,V as bs,W as di,X as Vc,Y as Re,$ as Bc,a0 as Ts,a1 as zc,a2 as Ae,a3 as Fc,a4 as ye,a5 as ws,a6 as Hc,a7 as Yn,a8 as me,a9 as Zt,aa as qe,ab as xp,ac as _e,ad as He,ae as Pa,af as Ht,ag as bp,ah as Tp,ai as je,aj as we,ak as Gc,al as Uc,am as Cn,an as Io,ao as Ao,ap as Xl,aq as Ei,ar as wp,as as Mp,at as Cp,au as pn,av as Wn,aw as Dp,ax as Ip,ay as Ta,az as Yc,aA as Zl,aB as ki,aC as Wc,aD as Ap,aE as Lp,aF as $l,aG as Hr,aH as Kl,aI as Rp,aJ as Ep,aK as Pi,aL as kp,aM as ql,aN as Ms,aO as Pp,aP as Op,aQ as pi,aR as Lo,aS as Np,aT as Vp,aU as Oi,aV as Ni,aW as Bp,aX as Xc,aY as jl,aZ as zp,a_ as Fp,a$ as Hp,b0 as Gp,b1 as Up,b2 as Yp,b3 as Wp,b4 as Xp,b5 as Zp,b6 as $p,b7 as Kp}from"./vendor.js";var qp=".",qt="___EC__COMPONENT__CONTAINER___",Zc="___EC__EXTENDED_CLASS___";function xt(r){var e={main:"",sub:""};if(r){var t=r.split(qp);e.main=t[0]||"",e.sub=t[1]||""}return e}function jp(r){dt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Qp(r){return!!(r&&r[Zc])}function Cs(r,e){r.$constructor=r,r.extend=function(t){var n=this,a;return Jp(n)?a=(function(i){$(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(t.$constructor||n).apply(this,arguments)},Oc(a,this)),k(a.prototype,t),a[Zc]=!0,a.extend=this.extend,a.superCall=rg,a.superApply=ng,a.superClass=n,a}}function Jp(r){return Y(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function $c(r,e){r.extend=e.extend}var eg=Math.round(Math.random()*10);function tg(r){var e=["__\0is_clz",eg++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function rg(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function ng(r,e,t){return this.superClass.prototype[e].apply(r,t)}function gi(r){var e={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){jp(a),n.prototype.type=a;var i=xt(a);if(!i.sub)e[i.main]=n;else if(i.sub!==qt){var o=t(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=e[n];if(o&&o[qt]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=xt(n),i=[],o=e[a.main];return o&&o[qt]?x(o,function(s,l){l!==qt&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=xt(n);return!!e[a.main]},r.getAllClassMainTypes=function(){var n=[];return x(e,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=xt(n),i=e[a.main];return i&&i[qt]};function t(n){var a=e[n.main];return(!a||!a[qt])&&(a=e[n.main]={},a[qt]=!0),a}}function Gr(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&ve(a,l)>=0||i&&ve(i,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var ag=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ig=Gr(ag),og=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return ig(this,e,t)},r})(),Ql=1e-4,Oa=20;function sg(r){return r.replace(/^\s+|\s+$/g,"")}var it=Math.min,ce=Math.max,nt=Math.abs,Ut=Math.round,mr=Math.floor,Ds=Math.ceil,Zr=Math.pow,Dn=Math.log,Ro=Math.LN10,lg=Math.PI,ug=Math.random;function bt(r,e,t,n){var a=e[0],i=e[1],o=t[0],s=t[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var Ke=fg;function fg(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return cg(r,e,t)}function cg(r,e,t){return P(r)?vg(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function vg(r){return!!sg(r).match(/%$/)}function Ie(r,e,t){return isNaN(e)?t?""+r:+r:(e=it(ce(0,e),Oa),r=(+r).toFixed(e),t?r:+r)}function hg(r,e,t){return e==null&&(e=10),Ie(r,e,t)}function Xn(r){return r.sort(function(e,t){return e-t}),r}function Lt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Ut(r*e)/e===r)return t}return Kc(r)}function Kc(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return ce(0,o-n)}function dg(r,e){var t=mr(Dn(r[1]-r[0])/Ro),n=Ut(Dn(nt(e[1]-e[0]))/Ro),a=it(ce(-t+n,0),Oa);return isFinite(a)?a:Oa}function pg(r,e,t){if(!r[e])return 0;var n=gg(r,t);return n[e]||0}function gg(r,e){var t=Mn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(t===0)return[];for(var n=Zr(10,e),a=B(r,function(v){return(isNaN(v)?0:v)/t*n*100}),i=n*100,o=B(a,function(v){return mr(v)}),s=Mn(o,function(v,d){return v+d},0),l=B(a,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 B(o,function(v){return v/n})}function ir(r,e){var t=ce(Lt(r),Lt(e)),n=r+e;return t>Oa?n:Ie(n,t)}var Eo=Zr(2,53)-1;function Is(r){var e=lg*2;return(r%e+e)%e}function In(r){return r>-Ql&&r<Ql}var mg=/^(?:(\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 Pt(r){if(r instanceof Date)return r;if(P(r)){var e=mg.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Ut(r))}function qc(r){return Zr(10,As(r))}function As(r){if(r===0)return 0;var e=mr(Dn(r)/Ro);return r/Zr(10,e)>=10&&e++,e}var yg=2;function Ls(r,e){var t=As(r),n=Zr(10,t),a=r/n,i;return e===yg?i=1:e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,Ie(r,-t)}function _g(r,e){var t=(r.length-1)*e+1,n=mr(t),a=+r[n-1],i=t-n;return i?a+i*(r[n]-a):a}function ko(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-t),e=a[o],t=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}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 An(r){var e=parseFloat(r);return e==r&&(e!==0||!P(r)||r.indexOf("x")<=0)?e:NaN}function jc(r){return!isNaN(An(r))}function Qc(){return Ut(ug()*9)}function Jc(r,e){return e===0?r:Jc(e,r%e)}function Jl(r,e){return r==null?e:e==null?r:r*e/Jc(r,e)}function kt(r){return r!=null&&isFinite(r)}var Sg="[ECharts] ",xg=typeof console<"u"&&console.warn&&console.log;function bg(r,e,t){xg&&console[r](Sg+e)}function ev(r,e){bg("error",r)}function Ye(r){throw new Error(r)}function eu(r,e,t){return(e-r)*t+r}var tv="series\0",Tg="\0_ec_\0";function Se(r){return r instanceof Array?r:r==null?[]:[r]}function tu(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,a=t.length;n<a;n++){var i=t[n];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var ru=["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 Zn(r){return N(r)&&!R(r)&&!(r instanceof Date)?r.value:r}function wg(r){return N(r)&&!(r instanceof Array)}function Mg(r,e,t){var n=t==="normalMerge",a=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=U();x(e,function(l,u){if(!N(l)){e[u]=null;return}});var s=Cg(r,o,t);return(n||a)&&Dg(s,r,o,e),n&&Ig(s,e),n||a?Ag(s,e,a):i&&Lg(s,e),Rg(s),s}function Cg(r,e,t){var n=[];if(t==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&e.set(i.id,a),n.push({existing:t==="replaceMerge"||Ln(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function Dg(r,e,t,n){x(n,function(a,i){if(!(!a||a.id==null)){var o=_n(a.id),s=t.get(o);if(s!=null){var l=r[s];dt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],n[i]=null}}})}function Ig(r,e){x(e,function(t,n){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||t.id==null)&&!Ln(t)&&!Ln(i)&&rv("name",i,t)){r[a].newOption=t,e[n]=null;return}}})}function Ag(r,e,t){x(e,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Ln(a.existing)||a.existing&&n.id!=null&&!rv("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),i++}})}function Lg(r,e){x(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Rg(r){var e=U();x(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),x(r,function(t){var n=t.newOption;dt(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),x(r,function(t,n){var a=t.existing,i=t.newOption,o=t.keyInfo;if(N(i)){if(o.name=i.name!=null?_n(i.name):a?a.name:tv+n,a)o.id=_n(a.id);else if(i.id!=null)o.id=_n(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function rv(r,e,t){var n=We(e[r],null),a=We(t[r],null);return n!=null&&a!=null&&n===a}function _n(r){return We(r,"")}function We(r,e){return r==null?e:P(r)?r:Ce(r)||Co(r)?r+"":e}function nv(r){var e=r.name;return!!(e&&e.indexOf(tv))}function Ln(r){return r&&r.id!=null&&_n(r.id).indexOf(Tg)===0}function Eg(r,e,t){x(r,function(n){var a=n.newOption;N(a)&&(n.keyInfo.mainType=e,n.keyInfo.subType=kg(e,a,n.existing,t))})}function kg(r,e,t,n){var a=e.type?e.type:t?t.subType:n.determineSubType(r,e);return a}function Pg(r,e){var t={},n={};return a(r||[],t),a(e||[],n,t),[i(t),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=We(o[u].seriesId,null);if(c==null)return;for(var h=Se(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var g=h[d];v&&v[g]?v[g]=null:(s[c]||(s[c]={}))[g]=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 $n(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return R(e.dataIndex)?B(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return R(e.name)?B(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Z(){var r="__ec_inner_"+Og++;return function(e){return e[r]||(e[r]={})}}var Og=Qc();function Vi(r,e,t){var n=Rs(e,t),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=$r(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Rs(r,e){var t;if(P(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var a=U(),i={},o=!1;return x(t,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||e&&e.includeMainTypes&&ve(e.includeMainTypes,f)<0)){o=o||!!f;var h=a.get(f)||a.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var zt={useDefault:!0,enableAll:!1,enableNone:!1};function $r(r,e,t,n){n=n||zt;var a=t.index,i=t.id,o=t.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=r.queryComponents({mainType:e,index:a,id:i,name:o}),s}function Ng(r,e,t){var n={};n[e+"Id"]=r[e+"Id"],n[e+"Index"]=r[e+"Index"],n[e+"Name"]=r[e+"Name"];var a={mainType:e,query:n};return t&&(a.subType=t),a}function av(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function Vg(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function Bg(r){return r==="auto"?fe.domSupported?"html":"richText":r||"html"}function zg(r,e,t,n,a){var i=e==null||e==="auto";if(n==null)return n;if(Ce(n)){var o=eu(t||0,n,a);return Ie(o,i?Math.max(Lt(t||0),Lt(n)):e)}else{if(P(n))return a<1?t:n;for(var s=[],l=t,u=n,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]=(a<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=eu(v,d,a);s[c]=Ie(o,i?Math.max(Lt(v),Lt(d)):e)}}return s}}function _t(){return[1/0,-1/0]}function Fg(r,e){Yt(e)&&e<r[0]&&(r[0]=e)}function Hg(r,e){Yt(e)&&e>r[1]&&(r[1]=e)}function Yt(r){return r!=null&&isFinite(r)}function Na(r,e){return Yt(r)&&Yt(e)&&r<=e}function Gg(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function Ug(r){Na(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Es(r,e,t){var n=U(),a=0;x(r,function(i){var o=e(i),s=n.get(o)||0;t&&t(i,s),!s&&!t&&(r[a++]=i),n.set(o,s+1)}),t||(r.length=a)}function Yg(r){return r.value+""}function Wg(r){return r+""}function Xg(r,e,t){var n=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&n>=t.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function iv(r){return{overallReset:r}}var K=Z(),Zg=function(r,e,t,n){if(n){var a=K(n);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=K(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},mi="undefined",ov="series",sv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qe="original",Ne="arrayRows",gt="objectRows",Mt="keyedColumns",Gt="typedArray",lv="unknown",vt="column",yr="row",$g=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],uv=(function(){function r(e){x($g,function(t){this[t]=z(e[t],e)},this)}return r})();function Kg(r,e){return e.mainType===ov?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var nu=1,au={},fv=Z(),ks=Z(),cv=0,Ps=1,Os=2,Tt=["emphasis","blur","select"],Va=["normal","emphasis","blur","select"],Kn=10,qg=9,cr="highlight",wa="downplay",Ba="select",Po="unselect",za="toggleSelect",Ns="selectchanged";function Tr(r){return r!=null&&r!=="none"}function yi(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function vv(r){yi(r,"emphasis",Os)}function hv(r){r.hoverState===Os&&yi(r,"normal",cv)}function Vs(r){yi(r,"blur",Ps)}function dv(r){r.hoverState===Ps&&yi(r,"normal",cv)}function jg(r){r.selected=!0}function Qg(r){r.selected=!1}function iu(r,e,t){e(r,t)}function Ot(r,e,t){iu(r,e,t),r.isGroup&&r.traverse(function(n){iu(n,e,t)})}function Jg(r,e,t,n){for(var a=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function em(r,e,t,n){var a=t&&ve(t,"select")>=0,i=!1;if(r instanceof wt){var o=fv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Tr(s)||Tr(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=k({},n),u=k({},u),u.fill=s):!Tr(u.fill)&&Tr(s)?(i=!0,n=k({},n),u=k({},u),u.fill=Wl(s)):!Tr(u.stroke)&&Tr(l)&&(i||(n=k({},n),u=k({},u)),u.stroke=Wl(l)),n.style=u}}if(n&&n.z2==null){i||(n=k({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??Kn)}return n}function tm(r,e,t){if(t&&t.z2==null){t=k({},t);var n=r.z2SelectLift;t.z2=r.z2+(n??qg)}return t}function rm(r,e,t){var n=ve(r.currentStates,e)>=0,a=r.style.opacity,i=n?null:Jg(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=k({},t),o=k({opacity:n?a:i.opacity*.1},o),t.style=o),t}function Bi(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return em(this,r,e,t);if(r==="blur")return rm(this,r,t);if(r==="select")return tm(this,r,t)}return t}function Oo(r){r.stateProxy=Bi;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Bi),t&&(t.stateProxy=Bi)}function ou(r,e){!yv(r,e)&&!r.__highByOuter&&Ot(r,vv)}function su(r,e){!yv(r,e)&&!r.__highByOuter&&Ot(r,hv)}function No(r,e){r.__highByOuter|=1<<(e||0),Ot(r,vv)}function Vo(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Ot(r,hv)}function nm(r){Ot(r,Vs)}function pv(r){Ot(r,dv)}function gv(r){Ot(r,jg)}function mv(r){Ot(r,Qg)}function yv(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function _v(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(a,i){var o=ks(i),s=Kg(r,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){dv(u)}),l&&t.push(i)),o.isBlured=!1}),x(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function Bo(r,e,t,n){var a=n.getModel();t=t||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&pv(h)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!h||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Vs(g)}),li(e))i(u.getData(),e);else if(N(e))for(var d=ot(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),ks(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function zo(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){ks(n).isBlured=!0;var a=t.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Vs(i)})}}}function am(r,e,t){var n=r.seriesIndex,a=r.getData(e.dataType);if(a){var i=$n(a,e);i=(R(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=K(o);Bo(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Bo(n,f,c,t)}}}function Bs(r,e,t,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var i=n.getModel().getComponent(r,e);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(K(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function im(r,e,t){var n=K(r),a=Bs(n.componentMainType,n.componentIndex,n.componentHighDownName,t),i=a.dispatchers,o=a.focusSelf;i?(o&&zo(n.componentMainType,n.componentIndex,t),x(i,function(s){return ou(s,e)})):(Bo(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&zo(n.componentMainType,n.componentIndex,t),ou(r,e))}function om(r,e,t){_v(t);var n=K(r),a=Bs(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;a?x(a,function(i){return su(i,e)}):su(r,e)}function sm(r,e,t){if(Ho(e)){var n=e.dataType,a=r.getData(n),i=$n(a,e);R(i)||(i=[i]),r[e.type===za?"toggleSelect":e.type===Ba?"select":"unselect"](i,n)}}function lu(r){var e=r.getAllData();x(e,function(t){var n=t.data,a=t.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?gv(i):mv(i)})})}function lm(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();x(n,function(a){a.data;var i=a.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sv(r,e,t){ur(r,!0),Ot(r,Oo),Fo(r,e,t)}function um(r){ur(r,!1)}function fm(r,e,t,n){n?um(r):Sv(r,e,t)}function Fo(r,e,t){var n=K(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}function ur(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function Rn(r){return!!(r&&r.__highDownDispatcher)}function cm(r){var e=au[r];return e==null&&nu<=32&&(e=au[r]=nu++),e}function Ho(r){var e=r.type;return e===Ba||e===Po||e===za}function uu(r){var e=r.type;return e===cr||e===wa}function vm(r){var e=fv(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}Z();function hm(r,e,t,n,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=W(n.duration,200),f=W(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),Y(c)&&(c=c(t,a)),Y(u)&&(u=u(t));var h={duration:u||0,delay:c,easing:f};return h}else return null}function zs(r,e,t,n,a,i,o){var s=!1,l;Y(a)?(o=i,i=a,a=null):N(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=hm(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):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?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function pr(r,e,t,n,a,i){zs("update",r,e,t,n,a,i)}function En(r,e,t,n,a,i){zs("enter",r,e,t,n,a,i)}function Vr(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function xv(r,e,t,n,a,i){Vr(r)||zs("leave",r,e,t,n,a,i)}function fu(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),xv(r,{style:{opacity:0}},e,t,n)}function dm(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||fu(a,e,t,n)}):fu(r,e,t,n)}var Go={},bv=["x","y"],Tv=["width","height"],wv=0,Mv=1,Cv=2;function Dv(r){return wt.extend(r)}var pm=Sp;function Iv(r,e){return pm(r,e)}function st(r,e){Go[r]=e}function Av(r){if(Go.hasOwnProperty(r))return Go[r]}function _i(r,e,t,n){var a=mp(r,e);return t&&(n==="center"&&(t=Lv(t,a.getBoundingRect())),Hs(a,t)),a}function Fs(r,e,t){var n=new Wr({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var i={width:a.width,height:a.height};n.setStyle(Lv(e,i))}}});return n}function Lv(r,e){var t=e.width/e.height,n=r.height*t,a;n<=r.width?a=r.height:(n=r.width,a=n/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Rv=pp;function Hs(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Gs(r,e){return yp(r,r,{lineWidth:e}),r}function gm(r,e){return _p(r,r,e),r}var mm=gp;function Sn(r,e){for(var t=ci([]);r&&r!==e;)ys(t,r.getLocalTransform(),t),r=r.parent;return t}function Br(r,e,t){return e&&!li(e)&&(e=ui.getLocalTransform(e)),t&&(e=fi([],e)),Et([],r,e)}function Ev(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:nt(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:nt(2*e[4]/e[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Br(i,e,t),nt(i[0])>nt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function cu(r){return!r.isGroup}function ym(r){return r.shape!=null}function _m(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){cu(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ym(o)&&(s.shape=H(o.shape)),s}var i=n(r);e.traverse(function(o){if(cu(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),pr(o,l,t,K(o).dataIndex)}}})}function kv(r,e){return B(r,function(t){var n=t[0];n=ce(n,e.x),n=it(n,e.x+e.width);var a=t[1];return a=ce(a,e.y),a=it(a,e.y+e.height),[n,a]})}function Pv(r,e){var t=ce(r.x,e.x),n=it(r.x+r.width,e.x+e.width),a=ce(r.y,e.y),i=it(r.y+r.height,e.y+e.height);if(n>=t&&i>=a)return{x:t,y:a,width:n-t,height:i-a}}function Us(r,e,t){var n=k({rectHover:!0},e),a=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),xe(a,t),new Wr(n)):_i(r.replace("path://",""),n,t,"center")}function Sm(r,e,t,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(Ov(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ov(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,c=s-i,h=zi(f,c,l,u);if(xm(h))return!1;var v=r-a,d=e-i,p=zi(v,d,l,u)/h;if(p<0||p>1)return!1;var g=zi(v,d,f,c)/h;return!(g<0||g>1)}function zi(r,e,t,n){return r*n-t*e}function xm(r){return r<=1e-6&&r>=-1e-6}function Uo(r,e,t,n,a){return e==null||(Ce(e)?ae[0]=ae[1]=ae[2]=ae[3]=e:(ae[0]=e[0],ae[1]=e[1],ae[2]=e[2],ae[3]=e[3]),n&&(ae[0]=ce(0,ae[0]),ae[1]=ce(0,ae[1]),ae[2]=ce(0,ae[2]),ae[3]=ce(0,ae[3])),t&&(ae[0]=-ae[0],ae[1]=-ae[1],ae[2]=-ae[2],ae[3]=-ae[3]),vu(r,ae,"x","width",3,1,a&&a[0]||0),vu(r,ae,"y","height",0,2,a&&a[1]||0)),r}var ae=[0,0,0,0];function vu(r,e,t,n,a,i,o){var s=e[i]+e[a],l=r[n];r[n]+=s,o=ce(0,it(o,l)),r[n]<o?(r[n]=o,r[t]+=e[a]>=0?-e[a]:e[i]>=0?l+e[i]:nt(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function Ys(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,a=P(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&x(ot(l),function(f){ct(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=K(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Yo(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Nv(r,e){if(r)if(R(r))for(var t=0;t<r.length;t++)Yo(r[t],e);else Yo(r,e)}function Ws(r){return!r||nt(r[1])<Jn&&nt(r[2])<Jn||nt(r[0])<Jn&&nt(r[3])<Jn}var Jn=1e-5;function kn(r,e){return r?Me.copy(r,e):e.clone()}function Xs(r,e){return e?Nc(r||St(),e):void 0}function Pn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function bm(r){var e=-1/0,t=1/0;Yo(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function Vv(r,e,t){Bv(r,e,t,-1/0)}function Bv(r,e,t,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=ce(Bv(s[l],e,t,n),n);else r.z=e,r.zlevel=t,n=ce(r.z2||0,n);if(a&&(a.z=e,a.zlevel=t,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function Tm(r){return r.animation={duration:0},r}function wm(r,e){return e?Nc(gn.transform,e):ci(gn.transform),gn.decomposeTransform(),Do(r,gn),r}var gn=new ui;gn.transform=St();function Mm(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}st("circle",vi);st("ellipse",_s);st("sector",Ss);st("ring",xs);st("polygon",Un);st("polyline",hi);st("rect",Oe);st("line",Xr);st("bezierCurve",bs);st("arc",di);const Cm=Object.freeze(Object.defineProperty({__proto__:null,Arc:di,BezierCurve:bs,BoundingRect:Me,Circle:vi,CompoundPath:Vc,Ellipse:_s,Group:Re,HOVER_LAYER_FOR_INCREMENTAL:Cv,HOVER_LAYER_FROM_THRESHOLD:Mv,HOVER_LAYER_NO:wv,Image:Wr,IncrementalDisplayable:Bc,Line:Xr,LinearGradient:Ts,OrientedBoundingRect:zc,Path:wt,Point:Ae,Polygon:Un,Polyline:hi,RadialGradient:Fc,Rect:Oe,Ring:xs,Sector:Ss,Text:ye,WH:Tv,XY:bv,applyTransform:Br,calcZ2Range:bm,clipPointsByRect:kv,clipRectByRect:Pv,createIcon:Us,decomposeTransform:wm,ensureCopyRect:kn,ensureCopyTransform:Xs,expandOrShrinkRect:Uo,extendPath:Iv,extendShape:Dv,getCurrentCanvasPainter:Mm,getShapeClass:Av,getTransform:Sn,groupTransition:_m,initProps:En,isBoundingRectAxisAligned:Ws,isElementRemoved:Vr,lineLineIntersect:Ov,linePolygonIntersect:Sm,makeImage:Fs,makePath:_i,mergePath:Rv,payloadDisableAnimation:Tm,registerShape:st,removeElement:xv,removeElementWithFadeOut:dm,resizePath:Hs,retrieveZInfo:Pn,setTooltipConfig:Ys,subPixelOptimize:mm,subPixelOptimizeLine:Gs,subPixelOptimizeRect:gm,transformDirection:Ev,traverseElements:Nv,traverseUpdateZ:Vv,updateProps:pr},Symbol.toStringTag,{value:"Module"}));var Si={};function zv(r,e){for(var t=0;t<Tt.length;t++){var n=Tt[t],a=e[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Wo(r,e,t){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=Y(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<Tt.length;u++){var f=Tt[u],c=e[f];l[f]=W(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function Dm(r,e,t,n){t=t||Si;for(var a=r instanceof ye,i=!1,o=0;o<Va.length;o++){var s=e[Va[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new ye,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Wo(t,e),f=e.normal,c=!!f.getShallow("show"),h=Ge(f,n,t,!1,!a);h.text=u.normal,a||r.setTextConfig(hu(f,t,!1));for(var o=0;o<Tt.length;o++){var v=Tt[o],s=e[v];if(s){var d=l.ensureState(v),p=!!W(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Ge(s,n,t,!0,!a),d.style.text=u[v],!a){var g=r.ensureState(v);g.textConfig=hu(s,t,!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(),t.enableTextSetter&&(Zs(l).setLabelText=function(m){var y=Wo(t,e,m);zv(l,y)})}else l&&(l.ignore=!0);r.dirty()}function Im(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<Tt.length;n++){var a=Tt[n];t[a]=r.getModel([a,e])}return t}function Ge(r,e,t,n,a){var i={};return Am(i,r,t,n,a),e&&k(i,e),i}function hu(r,e,t){e=e||{};var n={},a,i=r.getShallow("rotate"),o=W(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function Am(r,e,t,n,a){t=t||Si;var i=e.ecModel,o=i&&i.option.textStyle,s=Lm(e),l;if(s){l={};var u="richInheritPlainLabel",f=W(e.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=e.getModel(["rich",c]);mu(l[c]={},h,o,e,f,t,n,a,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=e.get("minMargin");if(g!=null)g=Ce(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=Pr.minMargin;else{var m=e.get("textMargin");m!=null&&(p.margin=ws(m),p.__marginType=Pr.textMargin)}mu(r,e,o,null,null,t,n,a,!0,!1)}function Lm(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Si).rich;if(t){e=e||{};for(var n=ot(t),a=0;a<n.length;a++){var i=n[a];e[i]=1}}r=r.parentModel}return e}var du=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],pu=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],gu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function mu(r,e,t,n,a,i,o,s,l,u){t=!o&&t||Si;var f=i&&i.inheritColor,c=e.getShallow("color"),h=e.getShallow("textBorderColor"),v=W(e.getShallow("opacity"),t.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||t.color,h=h||t.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=W(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=W(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var g=W(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!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 m=0;m<du.length;m++){var y=du[m],_=a!==!1&&n?Hc(e.getShallow(y),n.getShallow(y),t[y]):W(e.getShallow(y),t[y]);_!=null&&(r[y]=_)}for(var m=0;m<pu.length;m++){var y=pu[m],_=e.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var m=0;m<gu.length;m++){var y=gu[m],_=e.getShallow(y);_!=null&&(r[y]=_)}var b=e.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 Rm(r,e){var t=e&&e.getModel("textStyle");return Yn([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Zs=Z();function Em(r,e,t,n,a){var i=Zs(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=W(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=zg(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=Wo({labelDataIndex:e,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);zv(r,h)}r.percent=0,(i.prevValue==null?En:pr)(r,{percent:1},n,e,null,u)}var Pr={minMargin:1,textMargin:2},km=["textStyle","color"],Fi=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Hi=new ye,Pm=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(km):null)},r.prototype.getFont=function(){return Rm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Fi.length;n++)t[Fi[n]]=this.getShallow(Fi[n]);return Hi.useStyle(t),Hi.update(),Hi.getBoundingRect()},r})(),Fv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Om=Gr(Fv),Nm=(function(){function r(){}return r.prototype.getLineStyle=function(e){return Om(this,e)},r})(),Hv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Vm=Gr(Hv),Bm=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return Vm(this,e,t)},r})(),ee=(function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){me(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var n=this.option,a=n==null?n:n[e];if(a==null&&!t){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},r.prototype.getModel=function(e,t){var n=e!=null,a=n?this.parsePath(e):null,i=n?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(H(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!fe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var a=0;a<e.length&&!(e[a]&&(n=n&&typeof n=="object"?n[e[a]]:null,n==null));a++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r})();Cs(ee);tg(ee);Zt(ee,Nm);Zt(ee,Bm);Zt(ee,og);Zt(ee,Pm);function Kr(r){return r==null?0:r.length||1}function yu(r){return r}var Gv=(function(){function r(e,t,n,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||yu,this._newKeyGetter=a||yu,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=n[s],u=Kr(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},a={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=Kr(u),h=Kr(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[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,a)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var a=e[n],i=t[a],o=Kr(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);t[a]=null}},r.prototype._initIndexMap=function(e,t,n,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(n[o]=s),!!t){var l=t[s],u=Kr(l);u===0?(t[s]=o,i&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),Ze={Must:1,Might:2,Not:3},Uv=Z();function zm(r){Uv(r).datasetMap=U()}function Fm(r,e,t){var n={},a=Yv(e);if(!a||!r)return n;var i=[],o=[],s=e.ecModel,l=Uv(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,c;r=r.slice(),x(r,function(p,g){var m=N(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});x(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Yv(r){var e=r.get("data",!0);if(!e)return $r(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},zt).models[0]}function Hm(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:$r(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},zt).models}function Wv(r,e){return Gm(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function Gm(r,e,t,n,a,i){var o,s=5;if(qe(r))return Ze.Not;var l,u;if(n){var f=n[i];N(f)?(l=f.name,u=f.type):P(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ze.Must:Ze.Not;if(e===Ne){var c=r;if(t===yr){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[a+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[a+v];if(d&&(o=S(d[i]))!=null)return o}}else if(e===gt){var p=r;if(!l)return Ze.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Mt){var m=r;if(!l)return Ze.Not;var h=m[l];if(!h||qe(h))return Ze.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(e===Qe)for(var y=r,v=0;v<y.length&&v<s;v++){var g=y[v],_=Zn(g);if(!R(_))return Ze.Not;if((o=S(_[i]))!=null)return o}function S(b){var T=P(b);if(b!=null&&isFinite(Number(b))&&b!=="")return T?Ze.Might:Ze.Not;if(T&&b!=="-")return Ze.Must}return Ze.Not}var xi=(function(){function r(e){this.data=e.data||(e.sourceFormat===Mt?{}:[]),this.sourceFormat=e.sourceFormat||lv,this.seriesLayoutBy=e.seriesLayoutBy||vt,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var a=t[n];a.type==null&&Wv(this,n)===Ze.Must&&(a.type="ordinal")}}return r})();function $s(r){return r instanceof xi}function Xo(r,e,t){t=t||Zv(r);var n=e.seriesLayoutBy,a=Ym(r,t,n,e.sourceHeader,e.dimensions),i=new xi({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:H(e)});return i}function Xv(r){return new xi({data:r,sourceFormat:qe(r)?Gt:Qe})}function Um(r){return new xi({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:H(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Zv(r){var e=lv;if(qe(r))e=Gt;else if(R(r)){r.length===0&&(e=Ne);for(var t=0,n=r.length;t<n;t++){var a=r[t];if(a!=null){if(R(a)||qe(a)){e=Ne;break}else if(N(a)){e=gt;break}}}}else if(N(r)){for(var i in r)if(ct(r,i)&&li(r[i])){e=Mt;break}}return e}function Ym(r,e,t,n,a){var i,o;if(!r)return{dimensionsDefine:_u(a),startIndex:o,dimensionsDetectedCount:i};if(e===Ne){var s=r;n==="auto"||n==null?Su(function(u){u!=null&&u!=="-"&&(P(u)?o==null&&(o=1):o=0)},t,s,10):o=Ce(n)?n:n?1:0,!a&&o===1&&(a=[],Su(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),i=a?a.length:t===yr?s.length:s[0]?s[0].length:null}else if(e===gt)a||(a=Wm(r));else if(e===Mt)a||(a=[],x(r,function(u,f){a.push(f)}));else if(e===Qe){var l=Zn(r[0]);i=R(l)&&l.length||1}return{startIndex:o,dimensionsDefine:_u(a),dimensionsDetectedCount:i}}function Wm(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return ot(t)}function _u(r){if(r){var e=U();return B(r,function(t,n){t=N(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function Su(r,e,t,n){if(e===yr)for(var a=0;a<t.length&&a<n;a++)r(t[a]?t[a][0]:null,a);else for(var i=t[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function $v(r){var e=r.sourceFormat;return e===gt||e===Mt}var jt,Qt,Jt,er,xu,bu,Kv=(function(){function r(e,t){var n=$s(e)?e:Xv(e);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===Gt&&(this._offset=0,this._dimSize=t,this._data=a),bu(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;bu=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=xu[Ks(u,f)];if(k(o,v),u===Gt)o.getItem=t,o.count=a,o.fillStorage=n;else{var d=qv(u,f);o.getItem=z(d,null,s,c,h);var p=jv(u,f);o.count=z(p,null,s,c,h)}};var t=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},n=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],g=s-o,m=l[h],y=0;y<g;y++){var _=f[y*c+h];m[o+y]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};xu=(e={},e[Ne+"_"+vt]={pure:!0,appendData:i},e[Ne+"_"+yr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[gt]={pure:!0,appendData:i},e[Mt]={pure:!0,appendData:function(o){var s=this._data;x(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Qe]={appendData:i},e[Gt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),ea=function(r){R(r)||ev("series.data or dataset.source must be an array.")};jt={},jt[Ne+"_"+vt]=ea,jt[Ne+"_"+yr]=ea,jt[gt]=ea,jt[Mt]=function(r,e){for(var t=0;t<e.length;t++){var n=e[t].name;n==null&&ev("dimension name must not be null/undefined.")}},jt[Qe]=ea;var Tu=function(r,e,t,n){return r[n]},Xm=(Qt={},Qt[Ne+"_"+vt]=function(r,e,t,n){return r[n+e]},Qt[Ne+"_"+yr]=function(r,e,t,n,a){n+=e;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Qt[gt]=Tu,Qt[Mt]=function(r,e,t,n,a){for(var i=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},Qt[Qe]=Tu,Qt);function qv(r,e){var t=Xm[Ks(r,e)];return t}var wu=function(r,e,t){return r.length},Zm=(Jt={},Jt[Ne+"_"+vt]=function(r,e,t){return Math.max(0,r.length-e)},Jt[Ne+"_"+yr]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Jt[gt]=wu,Jt[Mt]=function(r,e,t){var n=t[0].name,a=n!=null?r[n]:null;return a?a.length:0},Jt[Qe]=wu,Jt);function jv(r,e){var t=Zm[Ks(r,e)];return t}var Gi=function(r,e,t){return r[e]},$m=(er={},er[Ne]=Gi,er[gt]=function(r,e,t){return r[t]},er[Mt]=Gi,er[Qe]=function(r,e,t){var n=Zn(r);return n instanceof Array?n[e]:n},er[Gt]=Gi,er);function Qv(r){var e=$m[r];return e}function Ks(r,e){return r===Ne?r+"_"+e:r}function Fa(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return Qv(i)(n,o,s)}else{var l=n;return i===Qe&&(l=Zn(n)),l}}}}var Km=(function(){function r(e,t){this._encode=e,this._schema=t}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 qm(r,e){var t={},n=t.encode={},a=U(),i=[],o=[],s={};x(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Ui(n,d)[p]=h,v.isExtraCoord||(a.set(d,1),Qm(v.type)&&(i[0]=h),Ui(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}sv.each(function(g,m){var y=Ui(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};a.each(function(h,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=B(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,t.userOutput=new Km(s,e),t}function Ui(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function jm(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Qm(r){return!(r==="ordinal"||r==="time")}var Ma=(function(){function r(e){this.otherDims={},e!=null&&k(this,e)}return r})();function Ca(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Ce(r)&&r!=null&&r!=="-"&&(r=+Pt(r)),r==null||r===""?NaN:Number(r))}U({number:function(r){return parseFloat(r)},time:function(r){return+Pt(r)},trim:function(r){return P(r)?Yn(r):r}});var Jm=(function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=Ce(e)?e:An(e),a=Ce(t)?t:An(t),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=P(e),l=P(t);s&&(n=l?e:0),l&&(a=s?t:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r})();function ey(r){var e="",t=-1/0,n=-1/0,a=1/0,i=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,n=r.ge),r.l!=null&&(e+="L"+r.l,a=r.l),r.le!=null&&(e+="LE"+r.le,i=r.le)),{key:e,g:t,ge:n,l:a,le:i}}function ty(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var ry=typeof Uint32Array===mi?Array:Uint32Array,ny=typeof Uint16Array===mi?Array:Uint16Array,Jv=typeof Int32Array===mi?Array:Int32Array,Mu=typeof Float64Array===mi?Array:Float64Array,eh={float:Mu,int:Jv,ordinal:Array,number:Array,time:Mu},Yi;function wr(r){return r>65535?ry:ny}function ay(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Cu(r,e,t,n,a){var i=eh[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(n)}var Zo=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=Yi[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],$v(a),this._dimensions=B(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(e);if(i!=null){if(a[i].type===t)return i}else i=a.length;return a[i]={type:t},n.set(e,i),this._chunks[i]=new eh[t||"float"](this._rawCount),this._rawExtent[i]=_t(),i},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[e]=_t());for(var l=i[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=a[u];Cu(n,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=a[d],p=Yi.arrayRows.call(this,e[v]||c,f.property,v,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=B(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=_t()),Cu(i,f,c.type,t,n)}if(a.fillStorage)a.fillStorage(e,t,i,l);else for(var h=[],v=e;v<t;v++){h=a.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(h,u[d],v,d);p[v]=g;var m=l[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],a=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)}),Xn(t);var n=this.count();return n===0?0:n%2===1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,a=this._count;if(n===Array){e=new n(a);for(var i=0;i<a;i++)e[i]=t[i]}else e=new n(t.buffer,0,a)}else{var n=wr(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=wr(n._rawCount),o=new i(a),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<a;h++){var v=void 0,d=n.getRawIndex(h);if(l===0)v=t(h);else if(l===1){var p=c[f][d];v=t(p,h)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][d];s[g]=h,v=t.apply(null,s)}v&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var a=ot(e),i=a.length;if(!i)return this;var o=t.count(),s=wr(t._rawCount),l=new s(o),u=0,f=a[0],c=e[f][0],h=e[f][1],v=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=v[a[0]],m=0;m<n;m++){var y=g[m];(y>=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=e[a[1]][0],b=e[a[1]][1],m=0;m<n;m++){var y=g[m],T=_[m];(y>=c&&y<=h||isNaN(y))&&(T>=S&&T<=b||isNaN(T))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var m=0;m<o;m++){var w=t.getRawIndex(m),y=v[a[0]][w];(y>=c&&y<=h||isNaN(y))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var I=!0,w=t.getRawIndex(m),C=0;C<i;C++){var D=a[C],y=v[D][w];(y<e[D][0]||y>e[D][1])&&(I=!1)}I&&(l[u++]=t.getRawIndex(m))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var a=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=_t();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),v=0;v<o;v++)l[v]=a[t[v]][h];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],m=u[p],y=a[p];y&&(y[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),a=n._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,c,h,v=new(wr(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),g=Math.min(d+l*2,o),m=(g+p)/2,y=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(y+=b)}y/=g-p;var T=d,w=Math.min(d+l,o),I=d-1,C=i[u];f=-1,h=T;for(var D=-1,M=0,_=T;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,D<0&&(D=S);continue}c=Math.abs((I-m)*(b-C)-(I-_)*(y-C)),c>f&&(f=c,h=S)}M>0&&M<w-T&&(v[s++]=Math.min(D,h),h=Math.max(D,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),a=n._chunks,i=Math.floor(1/t),o=a[e],s=this.count(),l=new(wr(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 g=0;g<p;g++){var m=this.getRawIndex(f+g),y=o[m];y<h&&(h=y,c=f+g),y>d&&(d=y,v=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),c=i._rawExtent[e]=_t(),h=new(wr(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 g=this.getRawIndex(d+p);s[p]=u[g]}var m=n(s),y=this.getRawIndex(Math.min(d+a(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[v++]=y}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(a[e[0]][s],i);break;case 2:t(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var n=this._chunks[e],a=_t();if(!n)return a;var i=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=ey(t),f=u.key,c=l[f];if(c)return c.slice();for(var h=a[0],v=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!t||ty(u,g))&&(g<h&&(h=g),g>v&&(v=g))}return l[f]=[h,v]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][t]);return n},r.prototype.clone=function(e,t){var n=new r,a=this._chunks,i=e&&Mn(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?ay(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=H(this._extent),e._rawExtent=H(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var a=0;a<n;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,n,a,i){return Ca(t[i],this._dimensions[i])}Yi={arrayRows:e,objectRows:function(t,n,a,i){return Ca(t[n],this._dimensions[i])},keyedColumns:e,original:function(t,n,a,i){var o=t&&(t.value==null?t:t.value);return Ca(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,n,a,i){return t[i]}}})(),r})(),iy=Z(),oy={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},th=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=ah(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return W(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=$v(this.source),n=!ih(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=t?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=t?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=oy[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function rh(r){return r instanceof th}function nh(r){for(var e=U(),t=0;t<(r||[]).length;t++){var n=r[t],a=N(n)?n.name:n;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function ah(r){var e=iy(r);return e.dimNameMap||(e.dimNameMap=nh(r.dimensionsDefine))}function ih(r){return r>30}var qr=N,Nt=B,sy=typeof Int32Array>"u"?Array:Int32Array,ly="e\0\0",Du=-1,uy=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],fy=["_approximateExtent"],Iu,ta,jr,Qr,Wi,Jr,Xi,qs=(function(){function r(e,t){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 n,a=!1;rh(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,n=e),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=P(c)?new Ma({name:c}):c instanceof Ma?c:new Ma(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]=[]),a&&(h.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=h.storeDimIndex),d.itemId===0&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=U();x(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Ce(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var a=n.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var a=this,i;if(e instanceof Zo&&(i=e),!i){var o=this.dimensions,s=$s(e)||li(e)?new Kv(e,o.length):e;i=new Zo;var l=Nt(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=qm(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=t[l],o&&Xi(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var a=this._dimInfos[t[n]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Gt&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Qe;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&wg(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=We(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=We(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Xi(this,f);Iu(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){qr(e)?k(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=jr(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[n]:n},r.prototype.getId=function(e){return ta(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,a=this._dimInfos[e];if(a)return n.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var n=this,a=this._store;return R(e)?a.getValues(Nt(e,function(i){return n._getStoreDimIndex(i)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,a=t.length;n<a;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],a=n&&n[t];return a==null||isNaN(a)?Du:a},r.prototype.each=function(e,t,n){Y(e)&&(n=t,t=e,e=[]);var a=n||this,i=Nt(Qr(e),this._getStoreDimIndex,this);this._store.each(i,a?z(t,a):t)},r.prototype.filterSelf=function(e,t,n){Y(e)&&(n=t,t=e,e=[]);var a=n||this,i=Nt(Qr(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?z(t,a):t),this},r.prototype.selectRange=function(e){var t=this,n={},a=ot(e);return x(a,function(i){var o=t._getStoreDimIndex(i);n[o]=e[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){Y(e)&&(n=t,t=e,e=[]),n=n||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},n),a},r.prototype.map=function(e,t,n,a){var i=n||a||this,o=Nt(Qr(e),this._getStoreDimIndex,this),s=Jr(this);return s._store=this._store.map(o,i?z(t,i):t),s},r.prototype.modify=function(e,t,n,a){var i=n||a||this,o=Nt(Qr(e),this._getStoreDimIndex,this);this._store.modify(o,i?z(t,i):t)},r.prototype.downSample=function(e,t,n,a){var i=Jr(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,a),i},r.prototype.minmaxDownSample=function(e,t){var n=Jr(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=Jr(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new ee(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Gv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ta(e,n)},function(n){return ta(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},qr(e)?k(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],a=n&&n[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,a=n[e];a||(a=n[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),R(i)?i=i.slice():qr(i)&&(i=k({},i)),a[t]=i),i},r.prototype.setItemVisual=function(e,t,n){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,qr(t)?k(a,t):a[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){qr(e)?k(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?k(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Zg(n,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){x(this._graphicEls,function(n,a){n&&e&&e.call(t,n,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Nt(this.dimensions,this._getDimInfo,this),this.hostModel)),Wi(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];Y(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=n.apply(this,arguments);return t.apply(this,[a].concat(xp(arguments)))})},r.internalField=(function(){Iu=function(e){var t=e._invertedIndicesMap;x(t,function(n,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){n=t[a]=new sy(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Du;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},jr=function(e,t,n){return We(e._getCategory(t,n),null)},ta=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=jr(e,e._idDimIdx,t)),n==null&&(n=ly+t),n},Qr=function(e){return R(e)||(e=e!=null?[e]:[]),e},Jr=function(e){var t=new r(e._schema?e._schema:Nt(e.dimensions,e._getDimInfo,e),e.hostModel);return Wi(t,e),t},Wi=function(e,t){x(uy.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,x(fy,function(n){e[n]=H(t[n])}),e._calculationInfo=k({},t._calculationInfo)},Xi=function(e,t){var n=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=a[t];if(s==null&&i!=null&&(n[t]=s=jr(e,i,t)),l==null&&o!=null&&(a[t]=l=jr(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[t]=l}}})(),r})();function cy(r,e){return js(r,e).dimensions}function js(r,e){$s(r)||(r=Xv(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],a=U(),i=[],o=vy(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&ih(o),l=n===r.dimensionsDefine,u=l?ah(r):nh(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var c=U(f),h=new Jv(o),v=0;v<h.length;v++)h[v]=-1;function d(C){var D=h[C];if(D<0){var M=n[C],E=N(M)?M:{name:M},L=new Ma,F=E.name;F!=null&&u.get(F)!=null&&(L.name=L.displayName=F),E.type!=null&&(L.type=E.type),E.displayName!=null&&(L.displayName=E.displayName);var X=i.length;return h[C]=X,L.storeDimIndex=C,i.push(L),L}return i[D]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(C,D){var M=Se(C).slice();if(M.length===1&&!P(M[0])&&M[0]<0){c.set(D,!1);return}var E=c.set(D,[]);x(M,function(L,F){var X=P(L)?u.get(L):L;X!=null&&X<o&&(E[F]=X,g(d(X),D,F))})});var p=0;x(t,function(C){var D,M,E,L;if(P(C))D=C,L={};else{L=C,D=L.name;var F=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=F,M=L.dimsDef,E=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var X=c.get(D);if(X!==!1){if(X=Se(X),!X.length)for(var O=0;O<(M&&M.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&X.push(p++)}x(X,function(j,oe){var Q=d(j);if(l&&L.type!=null&&(Q.type=L.type),g(xe(Q,L),D,oe),Q.name==null&&M){var se=M[oe];!N(se)&&(se={name:se}),Q.name=Q.displayName=se.name,Q.defaultTooltip=se.defaultTooltip}E&&xe(Q.otherDims,E)})}});function g(C,D,M){sv.get(D)!=null?C.otherDims[D]=M:(C.coordDim=D,C.coordDimIndex=M,a.set(D,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)x(i,function(C){b(C)}),i.sort(function(C,D){return C.storeDimIndex-D.storeDimIndex});else for(var T=0;T<o;T++){var w=d(T),I=w.coordDim;I==null&&(w.coordDim=hy(S,a,_),w.coordDimIndex=0,(!m||y<=0)&&(w.isExtraCoord=!0),y--),b(w),w.type==null&&(Wv(r,T)===Ze.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return Es(i,function(C){return C.name},function(C,D){D>0&&(C.name=C.name+(D-1))}),new th({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function vy(r,e,t,n){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return x(e,function(i){var o;N(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function hy(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var Zi={},$i={},bi=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Zi),this._normalMasterList=n($i);function n(a,i){var o=[];return x(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){x(this._normalMasterList,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Zi[e]=t;return}$i[e]=t},r.get=function(e){return $i[e]||Zi[e]},r})(),dy=1,py=2,gy=U();function my(r){var e=r.getShallow("coord",!0),t=dy;if(e==null){var n=gy.get(r.type);n&&n.getCoord2&&(t=py,e=n.getCoord2(r))}return{coord:e,from:t}}var yy=(function(){function r(e){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=e}return r})();function _y(r){var e=r.get("coordinateSystem"),t=new yy(e),n=Sy[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var Sy={cartesian2d:function(r,e,t,n){var a=r.getReferringComponents("xAxis",zt).models[0],i=r.getReferringComponents("yAxis",zt).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Mr(a)&&(n.set("x",a),e.firstCategoryDimIndex=0),Mr(i)&&(n.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var a=r.getReferringComponents("singleAxis",zt).models[0];e.coordSysDims=["single"],t.set("single",a),Mr(a)&&(n.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var a=r.getReferringComponents("polar",zt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Mr(i)&&(n.set("radius",i),e.firstCategoryDimIndex=0),Mr(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();x(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Mr(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,n){var a=r.getReferringComponents("matrix",zt).models[0];e.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",i),t.set("y",o),n.set("x",i),n.set("y",o)}};function Mr(r){return r.get("type")==="category"}function oh(r,e,t){t=t||{};var n=t.byIndex,a=t.stackedCoordDimension,i,o,s;xy(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,c,h,v=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(x(i,function(S,b){P(S)&&(i[b]=S={name:S}),d(S)||(v=!1)}),x(i,function(S,b){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!v||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,m=0;x(i,function(S){S.coordDim===p&&m++});var y={name:c,coordDim:p,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:h,coordDim:h,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(i.push(y),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function xy(r){return!rh(r.schema)}function sh(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function by(r,e){return sh(r,e)?r.getCalculationInfo("stackResultDimension"):e}function Ty(r,e){var t=r.get("coordinateSystem"),n=bi.get(t),a;return e&&e.coordSysDims&&(a=B(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=jm(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function wy(r,e,t){var n,a;return t&&x(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function My(r,e,t){t=t||{};var n=e.getSourceManager(),a,i=!1;a=n.getSource(),i=a.sourceFormat===Qe;var o=_y(e),s=Ty(e,o),l=t.useEncodeDefaulter,u=Y(l)?l:l?_e(Fm,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=js(a,f),h=wy(c.dimensions,t.createInvertedIndices,o),v=i?null:n.getSharedDataStore(c),d=oh(e,{schema:c,store:v}),p=new qs(c,e);p.setCalculationInfo(d);var g=h!=null&&Cy(a)?function(m,y,_,S){return S===h?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:v,null,g),p}function Cy(r){if(r.sourceFormat===Qe){var e=Dy(r.data||[]);return!R(Zn(e))}}function Dy(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var Iy=Math.round(Math.random()*10);function Ti(r){return[r||"",Iy++].join("_")}function Ay(r){var e={};r.registerSubTypeDefaulter=function(t,n){var a=xt(t);e[a.main]=n},r.determineSubType=function(t,n){var a=n.type;if(!a){var i=xt(t).main;r.hasSubTypes(t)&&e[i]&&(a=e[i](n))}return a}}function Ly(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,c=u.noEntryList,h={};for(x(i,function(y){h[y]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),x(d.successor,p?m:g)}x(h,function(){var y="";throw new Error(y)});function g(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){h[y]=!0,g(y)}};function t(i){var o={},s=[];return x(i,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),x(c,function(h){ve(u.predecessor,h)<0&&u.predecessor.push(h);var v=n(o,h);ve(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return x(i,function(l){ve(o,l)>=0&&s.push(l)}),s}}function lh(r,e){return me(me({},r,!0),e,!0)}const Ry={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:". "}}}},Ey={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 Ha="ZH",Qs="EN",zr=Qs,Da={},Js={},uh=fe.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zr).toUpperCase();return r.indexOf(Ha)>-1?Ha:zr})():zr;function el(r,e){r=r.toUpperCase(),Js[r]=new ee(e),Da[r]=e}function ky(r){if(P(r)){var e=Da[r.toUpperCase()]||{};return r===Ha||r===Qs?H(e):me(H(e),H(Da[zr]),!1)}else return me(H(r),H(Da[zr]),!1)}function Py(r){return Js[r]}function Oy(){return Js[zr]}el(Qs,Ry);el(Ha,Ey);var Ny=null;function wi(){return Ny}function fh(r,e){e.breakOption;var t=e.breakParsed;return t}function tl(r){var e=r.brk;return e?e.breaks:[]}function Vy(r){var e=r.brk;return e?e.hasBreaks():!1}var rl=1e3,nl=rl*60,xn=nl*60,rt=xn*24,Au=rt*365,By={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})/},Ia={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},zy="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",ra="{yyyy}-{MM}-{dd}",Lu={year:"{yyyy}",month:"{yyyy}-{MM}",day:ra,hour:ra+" "+Ia.hour,minute:ra+" "+Ia.minute,second:ra+" "+Ia.second,millisecond:zy},vr=["year","month","day","hour","minute","second","millisecond"],Fy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Hy(r){return!P(r)&&!Y(r)?Gy(r):r}function Gy(r){r=r||{};var e={},t=!0;return x(vr,function(n){t&&(t=r[n]==null)}),x(vr,function(n,a){var i=r[n];e[n]={};for(var o=null,s=a;s>=0;s--){var l=vr[s],u=N(i)&&!R(i)?i[l]:i,f=void 0;R(u)?(f=u.slice(),o=f[0]||""):P(u)?(o=u,f=[o]):(o==null?o=Ia[n]:By[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function Fe(r,e){return r+="","0000".substr(0,e-r.length)+r}function bn(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 Uy(r){return r===bn(r)}function Yy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function qn(r,e,t,n){var a=Pt(r),i=a[ch(t)](),o=a[al(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[il(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[ol(t)](),c=(f-1)%12+1,h=a[sl(t)](),v=a[ll(t)](),d=a[ul(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof ee?n:Py(n||uh)||Oy(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),T=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Fe(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Fe(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Fe(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Fe(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Fe(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Fe(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Fe(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Fe(d,3)).replace(/{S}/g,d+"")}function Wy(r,e,t,n,a){var i=null;if(P(t))i=t;else if(Y(t)){var o={time:r.time,level:r.time?r.time.level:0},s=wi();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Aa(r.value,a);i=t[f][f][0]}}return qn(new Date(r.value),i,a,n)}function Aa(r,e){var t=Pt(r),n=t[al(e)]()+1,a=t[il(e)](),i=t[ol(e)](),o=t[sl(e)](),s=t[ll(e)](),l=t[ul(e)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ga(r,e,t){switch(e){case"year":r[vh(t)](0);case"month":r[hh(t)](1);case"day":r[dh(t)](0);case"hour":r[ph(t)](0);case"minute":r[gh(t)](0);case"second":r[mh(t)](0)}return r}function ch(r){return r?"getUTCFullYear":"getFullYear"}function al(r){return r?"getUTCMonth":"getMonth"}function il(r){return r?"getUTCDate":"getDate"}function ol(r){return r?"getUTCHours":"getHours"}function sl(r){return r?"getUTCMinutes":"getMinutes"}function ll(r){return r?"getUTCSeconds":"getSeconds"}function ul(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Xy(r){return r?"setUTCFullYear":"setFullYear"}function vh(r){return r?"setUTCMonth":"setMonth"}function hh(r){return r?"setUTCDate":"setDate"}function dh(r){return r?"setUTCHours":"setHours"}function ph(r){return r?"setUTCMinutes":"setMinutes"}function gh(r){return r?"setUTCSeconds":"setSeconds"}function mh(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Zy(r,e,t,n,a,i,o,s){var l=new ye({style:{text:r,font:e,align:t,verticalAlign:n,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function fl(r){if(!jc(r))return P(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function cl(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var jn=ws;function $o(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Yn(f)?f:"-"}function i(f){return kt(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?Pt(r):r;if(isNaN(+l)){if(s)return"-"}else return qn(l,n,t)}if(e==="ordinal")return Co(r)?a(r):Ce(r)&&i(r)?r+"":"-";var u=An(r);return i(u)?fl(u):Co(r)?a(r):typeof r=="boolean"?r+"":"-"}var Ru=["a","b","c","d","e","f","g"],Ki=function(r,e){return"{"+r+(e??"")+"}"};function vl(r,e,t){R(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=Ru[i];r=r.replace(Ki(o),Ki(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(Ki(Ru[l],s),t?He(u):u)}return r}function yh(r,e){var t=P(r)?{color:r,extraCssText:e}:r||{},n=t.color,a=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+He(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+He(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function $y(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
2
- yyyy`);var n=Pt(e),a=t?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),l=n[a+"Hours"](),u=n[a+"Minutes"](),f=n[a+"Seconds"](),c=n[a+"Milliseconds"]();return r=r.replace("MM",Fe(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Fe(i%100+"",2)).replace("dd",Fe(s,2)).replace("d",s).replace("hh",Fe(l,2)).replace("h",l).replace("mm",Fe(u,2)).replace("m",u).replace("ss",Fe(f,2)).replace("s",f).replace("SSS",Fe(c,3)),r}function Ky(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function On(r,e){return e=e||"transparent",P(r)?r:N(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Ko(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var La=x,qy=["left","right","top","bottom","width","height"],na=[["width","left","right"],["height","top","bottom"]];function hl(r,e,t,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.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>n||l.newline?(i=0,v=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+t:o=d+t)})}var jy=hl;_e(hl,"vertical");_e(hl,"horizontal");function Qy(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function _r(r,e,t){t=jn(t||0);var n=e.width,a=e.height,i=Ke(r.left,n),o=Ke(r.top,a),s=Ke(r.right,n),l=Ke(r.bottom,a),u=Ke(r.width,n),f=Ke(r.height,a),c=t[2]+t[0],h=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-t[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Me((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}var qi={rect:1};function Mi(r,e,t){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=my(r),u=l.coord,f=l.from;if(o.dataToLayout){i=qi.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}}return i==null&&(i=qi.rect),i===qi.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function _h(r,e,t,n,a,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=_r(xe({width:o.width,height:o.height},e),t,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function Ua(r){var e=r.layoutMode||r.constructor.layoutMode;return N(e)?e:e?{type:e}:null}function Ya(r,e,t){var n=t&&t.ignoreSize;!R(n)&&(n=[n,n]);var a=o(na[0],0),i=o(na[1],1);l(na[0],r,a),l(na[1],r,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(La(u,function(y){v[y]=r[y]}),La(u,function(y){ct(e,y)&&(c[y]=v[y]=e[y]),s(c,y)&&h++,s(v,y)&&d++}),n[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var g=0;g<u.length;g++){var m=u[g];if(!ct(c,m)&&ct(r,m)){c[m]=r[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){La(u,function(h){f[h]=c[h]})}}function Sh(r){return Jy({},r)}function Jy(r,e){return e&&r&&La(qy,function(t){ct(e,t)&&(r[t]=e[t])}),r}var e_=Z(),q=(function(r){$(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.uid=Ti("ec_cpt_model"),i}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=Ua(this),i=a?Sh(t):{},o=n.getTheme();me(t,o.get(this.mainType)),me(t,this.getDefaultOption()),a&&Ya(t,i,a)},e.prototype.mergeOption=function(t,n){me(this.option,t,!0);var a=Ua(this);a&&Ya(this.option,t,a)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Qp(t))return t.defaultOption;var n=e_(this);if(!n.defaultOption){for(var a=[],i=t;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=me(s,a[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var a=t+"Index",i=t+"Id";return $r(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},n)},e.prototype.getBoxLayoutParams=function(){return Qy(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(ee);$c(q,ee);gi(q);Ay(q);Ly(q,t_);function t_(r){var e=[];return x(q.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return xt(t).main}),r!=="dataset"&&ve(e,"dataset")<=0&&e.unshift("dataset"),e}var Eu=Z(),r_=Z(),dl=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var a=Se(this.get("color",!0)),i=this.get("colorLayer",!0);return xh(this,Eu,a,i,e,t,n)},r.prototype.clearColorPalette=function(){i_(this,Eu)},r})();function n_(r,e,t,n){var a=Se(r.get(["aria","decal","decals"]));return xh(r,r_,a,null,e,t,n)}function a_(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function xh(r,e,t,n,a,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?t:a_(n,o);if(f=f||t,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function i_(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var o_=/\{@(.+?)\}/g,s_=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),a=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,a,i,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),a!=null&&R(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(Y(i))return l.status=t,l.dimensionIndex=a,i(l);if(P(i)){var f=vl(i,l);return f.replace(o_,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Fa(s,e,d);if(o&&R(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return Fa(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r})();function ku(r){var e,t;return N(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Tn(r){return new l_(r)}var l_=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(t?this._dueEnd=t._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(!n&&(c||v<d)){var p=this._progress;if(R(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}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(e,t,n,a,i){Pu.reset(t,n,a,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Pu.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),R(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.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(e){this._outputDueEnd=this._settedOutputEnd=e},r})(),Pu=(function(){var r,e,t,n,a,i={reset:function(l,u,f,c){e=l,r=u,t=f,n=c,a=Math.ceil(n/t),i.next=t>1&&n>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<n?l:e;return e++,u}})(),u_=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Ca(e,t)},r})();function f_(r,e){var t=new u_,n=r.data,a=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==vt&&Ye(o);var s=[],l={},u=r.dimensionsDefine;if(u)x(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";ct(l,m)&&Ye(_),l[m]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=qv(a,vt);e.__isBuiltIn&&(t.getRawDataItem=function(p){return c(n,i,s,p)},t.getRawData=z(c_,null,r)),t.cloneRawData=z(v_,null,r);var h=jv(a,vt);t.count=z(h,null,n,i,s);var v=Qv(a);t.retrieveValue=function(p,g){var m=c(n,i,s,p);return d(m,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return v(p,g,m.name)}};return t.getDimensionInfo=z(h_,null,s,l),t.cloneAllDimensionInfo=z(d_,null,s),t}function c_(r){var e=r.sourceFormat;if(!pl(e)){var t="";Ye(t)}return r.data}function v_(r){var e=r.sourceFormat,t=r.data;if(!pl(e)){var n="";Ye(n)}if(e===Ne){for(var a=[],i=0,o=t.length;i<o;i++)a.push(t[i].slice());return a}else if(e===gt){for(var a=[],i=0,o=t.length;i<o;i++)a.push(k({},t[i]));return a}}function h_(r,e,t){if(t!=null){if(Ce(t)||!isNaN(t)&&!ct(e,t))return r[t];if(ct(e,t))return e[t]}}function d_(r){return H(r)}var bh=U();function p_(r){r=H(r);var e=r.type,t="";e||Ye(t);var n=e.split(":");n.length!==2&&Ye(t);var a=!1;n[0]==="echarts"&&(e=n[1],a=!0),r.__isBuiltIn=a,bh.set(e,r)}function g_(r,e,t){var n=Se(r),a=n.length,i="";a||Ye(i);for(var o=0,s=a;o<s;o++){var l=n[o];e=m_(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function m_(r,e,t,n){var a="";e.length||Ye(a),N(r)||Ye(a);var i=r.type,o=bh.get(i);o||Ye(a);var s=B(e,function(u){return f_(u,o)}),l=Se(o.transform({upstream:s[0],upstreamList:s,config:H(r.config)}));return B(l,function(u,f){var c="";N(u)||Ye(c),u.data||Ye(c);var h=Zv(u.data);pl(h)||Ye(c);var v,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:vt,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:vt,sourceHeader:0,dimensions:u.dimensions};return Xo(u.data,v,null)})}function pl(r){return r===Ne||r===gt}var Th=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,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 e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,a,i;if(aa(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=qe(s)?Gt:Qe,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=W(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=W(c.sourceHeader,h.sourceHeader),p=W(c.dimensions,h.dimensions),g=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;a=g?[Xo(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var m=e;if(n){var y=this._applyTransform(t);a=y.sourceList,i=y.upstreamSignList}else{var _=m.get("source",!0);a=[Xo(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&Nu(i)}var o,s=[],l=[];return x(e,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&Nu(c),s.push(f),l.push(u._getVersionSign())}),n?o=g_(n,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[Um(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];aa(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new Zo,s.initData(new Kv(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(aa(e)){var t=Yv(e);return t?[t.getSourceManager()]:[]}else return B(Hm(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,a;if(aa(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:a}},r})();function Ou(r){var e=r.option.transform;e&&Pa(r.option.transform)}function aa(r){return r.mainType==="series"}function Nu(r){throw new Error(r)}var V={color:{},darkColor:{},size:{}},ue=V.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)"};k(ue,{primary:ue.neutral80,secondary:ue.neutral70,tertiary:ue.neutral60,quaternary:ue.neutral50,disabled:ue.neutral20,border:ue.neutral30,borderTint:ue.neutral20,borderShade:ue.neutral40,background:ue.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ue.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ue.neutral70,axisLineTint:ue.neutral40,axisTick:ue.neutral70,axisTickMinor:ue.neutral60,axisLabel:ue.neutral70,axisSplitLine:ue.neutral15,axisMinorSplitLine:ue.neutral05});for(var tr in ue)if(ue.hasOwnProperty(tr)){var Vu=ue[tr];tr==="theme"?V.darkColor.theme=ue.theme.slice():tr==="highlight"?V.darkColor.highlight="rgba(255,231,130,0.4)":tr.indexOf("accent")===0?V.darkColor[tr]=Ht(Vu,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):V.darkColor[tr]=Ht(Vu,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}V.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var y_="line-height:1";function wh(r){var e=r.lineHeight;return e==null?y_:"line-height:"+He(e+"")+"px"}function Mh(r,e){var t=r.color||V.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||V.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+He(n+"")+"px;color:"+He(t)+";font-weight:"+He(a+""),valueStyle:"font-size:"+He(o+"")+"px;color:"+He(i)+";font-weight:"+He(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var __=[0,10,20,30],S_=["",`
1
+ import{i as e,n as t,r as n,t as r}from"./rolldown-runtime.js";function i(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-c)/l}return t}function a(e){for(var t in f)f.hasOwnProperty(t)&&e[t]&&(f[t]=e[t])}var o,s,c,l,u,d,f,p=t((()=>{o=`sans-serif`,s=`12px `+o,c=20,l=100,u=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`,d=i(u),f={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=f.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=d[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}}})),m=n({EPSILON:()=>Ve,HashMap:()=>ze,RADIAN_TO_DEGREE:()=>Be,assert:()=>fe,assignProps:()=>x,bind:()=>H,clone:()=>_,concatArray:()=>_e,createCanvas:()=>Fe,createHashMap:()=>V,createObject:()=>ve,curry:()=>M,defaults:()=>S,disableUserSelect:()=>ye,each:()=>D,eqNaN:()=>z,extend:()=>b,filter:()=>A,find:()=>ee,guid:()=>h,hasOwn:()=>be,indexOf:()=>C,inherits:()=>w,isArray:()=>N,isArrayLike:()=>E,isBuiltInObject:()=>re,isDom:()=>ae,isFunction:()=>P,isGradientObject:()=>oe,isImagePatternObject:()=>se,isNumber:()=>I,isObject:()=>L,isPrimitive:()=>he,isRegExp:()=>R,isString:()=>F,isStringSafe:()=>ne,isTypedArray:()=>ie,keys:()=>j,logError:()=>g,map:()=>O,merge:()=>v,mergeAll:()=>y,mixin:()=>T,noop:()=>xe,normalizeCssArray:()=>de,reduce:()=>k,retrieve:()=>ce,retrieve2:()=>B,retrieve3:()=>le,setAsPrimitive:()=>me,slice:()=>ue,trim:()=>pe});function h(){return Ne>=Pe&&(Ne=0),Ne++}function g(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function _(e){if(typeof e!=`object`||!e)return e;var t=e,n=we.call(e);if(n===`[object Array]`){if(!he(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=_(e[r])}}else if(Ce[n]){if(!he(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!Se[n]&&!he(e)&&!ae(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Me&&(t[o]=_(e[o]));return t}function v(e,t,n){if(!L(t)||!L(e))return n?_(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Me){var i=e[r],a=t[r];L(a)&&L(i)&&!N(a)&&!N(i)&&!ae(a)&&!ae(i)&&!re(a)&&!re(i)&&!he(a)&&!he(i)?v(i,a,n):(n||!(r in e))&&(e[r]=_(t[r]))}return e}function y(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=v(n,e[r],t);return n}function b(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Me&&(e[n]=t[n]);return e}function x(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function S(e,t,n){for(var r=j(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function C(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function w(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function T(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else S(e,t,n)}function E(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function D(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Ee)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function O(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.map&&e.map===ke)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function k(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function A(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.filter&&e.filter===De)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ee(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function j(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function te(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Oe.call(arguments)))}}function M(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Oe.call(arguments)))}}function N(e){return Array.isArray?Array.isArray(e):we.call(e)===`[object Array]`}function P(e){return typeof e==`function`}function F(e){return typeof e==`string`}function ne(e){return we.call(e)===`[object String]`}function I(e){return typeof e==`number`}function L(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function re(e){return!!Se[we.call(e)]}function ie(e){return!!Ce[we.call(e)]}function ae(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function oe(e){return e.colorStops!=null}function se(e){return e.image!=null}function R(e){return we.call(e)===`[object RegExp]`}function z(e){return e!==e}function ce(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function B(e,t){return e??t}function le(e,t,n){return e??t??n}function ue(e){var t=[...arguments].slice(1);return Oe.apply(e,t)}function de(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function fe(e,t){if(!e)throw Error(t)}function pe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}function me(e){e[Ie]=!0}function he(e){return e[Ie]}function ge(){return Re?new Map:new Le}function V(e){return new ze(e)}function _e(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function ve(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&b(n,t),n}function ye(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function be(e,t){return e.hasOwnProperty(t)}function xe(){}var Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,H,Ie,Le,Re,ze,Be,Ve,U=t((()=>{p(),Se=k([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),Ce=k([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),we=Object.prototype.toString,Te=Array.prototype,Ee=Te.forEach,De=Te.filter,Oe=Te.slice,ke=Te.map,Ae=function(){}.constructor,je=Ae?Ae.prototype:null,Me=`__proto__`,Ne=2311,Pe=2**53-1,Fe=f.createCanvas,H=je&&P(je.bind)?je.call.bind(je.bind):te,Ie=`__ec_primitive__`,Le=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return j(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Re=typeof Map==`function`,ze=function(){function e(t){var n=N(t);this.data=ge();var r=this;t instanceof e?t.each(i):t&&D(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Re?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}(),Be=180/Math.PI,Ve=2**-52||2**-52}));U();function He(e,t,n){if(e&&C(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(F(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function Ue(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function We(e,t){return C(Ue(e),t)>=0}function Ge(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}U();var Ke=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function qe(e){for(var t=0;t<Ke.length;t++)e.registerAction({type:Ke[t],update:`updateView`},xe);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=He(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=We(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function W(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Je(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Je,G=t((()=>{Je=function(e,t){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Je(e,t)}}));function Ye(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Xe,K,Ze=t((()=>{Xe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),K=new(function(){function e(){this.browser=new Xe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}()),typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(K.wxa=!0,K.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?K.worker=!0:!K.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(K.node=!0,K.svgSupported=!0):Ye(navigator.userAgent,K)}));function Qe(e){return e.replace(/^\s+|\s+$/g,``)}function $e(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function et(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return tt(e,t,n)}function tt(e,t,n){return F(e)?nt(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function nt(e){return!!Qe(e).match(/%$/)}function rt(e,t,n){return isNaN(t)?n?``+e:+e:(t=Ot(kt(0,t),Dt),e=(+e).toFixed(t),n?e:+e)}function it(e,t,n){return t??=10,rt(e,t,n)}function at(e){return e.sort(function(e,t){return e-t}),e}function ot(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(jt(e*t)/t===e)return n}return st(e)}function st(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return kt(0,(a<0?0:i-1-a)-r)}function ct(e,t){var n=Mt(Ft(e[1]-e[0])/It),r=jt(Ft(At(t[1]-t[0]))/It),i=Ot(kt(-n+r,0),Dt);return isFinite(i)?i:Dt}function lt(e,t,n){return e[t]&&ut(e,n)[t]||0}function ut(e,t){var n=k(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Pt(10,t),i=O(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=O(i,function(e){return Mt(e)}),s=k(o,function(e,t){return e+t},0),c=O(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return O(o,function(e){return e/r})}function dt(e,t){var n=kt(ot(e),ot(t)),r=e+t;return n>Dt?r:rt(r,n)}function ft(e){var t=Lt*2;return(e%t+t)%t}function pt(e){return e>-Et&&e<Et}function mt(e){if(e instanceof Date)return e;if(F(e)){var t=Vt.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(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(e==null)return new Date(NaN);return new Date(jt(e))}function ht(e){return Pt(10,gt(e))}function gt(e){if(e===0)return 0;var t=Mt(Ft(e)/It);return e/Pt(10,t)>=10&&t++,t}function _t(e,t){var n=gt(e),r=Pt(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,rt(e,-n)}function vt(e,t){var n=(e.length-1)*t+1,r=Mt(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function yt(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function bt(e){var t=parseFloat(e);return t==e&&(t!==0||!F(e)||e.indexOf(`x`)<=0)?t:NaN}function xt(e){return!isNaN(bt(e))}function St(){return jt(Rt()*9)}function Ct(e,t){return t===0?e:Ct(t,e%t)}function wt(e,t){return e==null?t:t==null?e:e*t/Ct(e,t)}function Tt(e){return e!=null&&isFinite(e)}var Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,q=t((()=>{U(),Et=1e-4,Dt=20,Ot=Math.min,kt=Math.max,At=Math.abs,jt=Math.round,Mt=Math.floor,Nt=Math.ceil,Pt=Math.pow,Ft=Math.log,It=Math.LN10,Lt=Math.PI,Rt=Math.random,zt=et,Bt=Pt(2,53)-1,Vt=/^(?:(\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 Ht(e,t,n){if(qt){if(n){if(Kt[t])return;Kt[t]=!0}console[e](Gt+t)}}function Ut(e,t){Ht(`error`,e,t)}function Wt(e){throw Error(e)}var Gt,Kt,qt,Jt=t((()=>{Gt=`[ECharts] `,Kt={},qt=typeof console<`u`&&console.warn&&console.log}));function Yt(e,t,n){return(t-e)*n+e}function Xt(e){return e instanceof Array?e:e==null?[]:[e]}function Zt(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}function Qt(e){return L(e)&&!N(e)&&!(e instanceof Date)?e.value:e}function $t(e){return L(e)&&!(e instanceof Array)}function en(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=V();D(t,function(e,n){if(!L(e)){t[n]=null;return}});var s=tn(e,o,n);return(r||i)&&nn(s,e,o,t),r&&rn(s,t),r||i?an(s,t,i):a&&on(s,t),sn(s),s}function tn(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||fn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function nn(e,t,n,r){D(r,function(i,a){if(!(!i||i.id==null)){var o=ln(i.id),s=n.get(o);if(s!=null){var c=e[s];fe(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function rn(e,t){D(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!fn(n)&&!fn(a)&&cn(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function an(e,t,n){D(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||fn(r.existing)||r.existing&&t.id!=null&&!cn(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function on(e,t){D(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function sn(e){var t=V();D(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),D(e,function(e){var n=e.newOption;fe(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),D(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(L(i)){if(a.name=i.name==null?r?r.name:Rn+n:ln(i.name),r)a.id=ln(r.id);else if(i.id!=null)a.id=ln(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function cn(e,t,n){var r=un(t[e],null),i=un(n[e],null);return r!=null&&i!=null&&r===i}function ln(e){return un(e,``)}function un(e,t){return e==null?t:F(e)?e:I(e)||ne(e)?e+``:t}function dn(e){var t=e.name;return!!(t&&t.indexOf(Rn))}function fn(e){return e&&e.id!=null&&ln(e.id).indexOf(zn)===0}function pn(e,t,n){D(e,function(e){var r=e.newOption;L(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=mn(t,r,e.existing,n))})}function mn(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function hn(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=un(e[r].seriesId,null);if(a==null)return;for(var o=Xt(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function gn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?O(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?O(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function J(){var e=`__ec_inner_`+Vn++;return function(t){return t[e]||(t[e]={})}}function _n(e,t,n){var r=vn(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=yn(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function vn(e,t){var n;if(F(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=V(),a={},o=!1;return D(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&C(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function yn(e,t,n,r){r||=Hn;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function bn(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function xn(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Sn(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Cn(e){return e===`auto`?K.domSupported?`html`:`richText`:e||`html`}function wn(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(I(r)){var o=Yt(n||0,r,i);return rt(o,a?Math.max(ot(n||0),ot(r)):t)}else if(F(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Yt(p,m,i);s[d]=rt(o,a?Math.max(ot(p),ot(m)):t)}}return s}}function Tn(){return[1/0,-1/0]}function En(e,t){On(t)&&t<e[0]&&(e[0]=t)}function Dn(e,t){On(t)&&t>e[1]&&(e[1]=t)}function On(e){return e!=null&&isFinite(e)}function kn(e,t){return On(e)&&On(t)&&e<=t}function An(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function jn(e){kn(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Mn(){var e=`__ec_once_`+Un++;return function(t,n){be(t,e)||(t[e]=1,n())}}function Nn(e,t,n){var r=V(),i=0;D(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Pn(e){return e.value+``}function Fn(e){return e+``}function In(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Ln(e){return{overallReset:e}}var Rn,zn,Bn,Vn,Hn,Un,Y=t((()=>{U(),Ze(),q(),Rn=`series\0`,zn=`\0_ec_\0`,Bn=`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`.split(`.`),Vn=St(),Hn={useDefault:!0,enableAll:!1,enableNone:!1},function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0):!1},e}(),Un=St()}));function Wn(e){var t={main:``,sub:``};if(e){var n=e.split(er);t.main=n[0]||``,t.sub=n[1]||``}return t}function Gn(e){fe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Kn(e){return!!(e&&e[nr])}function qn(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Jn(t)?n=function(e){W(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},w(n,this)),b(n.prototype,e),n[nr]=!0,n.extend=this.extend,n.superCall=Zn,n.superApply=Qn,n.superClass=t,n}}function Jn(e){return P(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Yn(e,t){e.extend=t.extend}function Xn(e){var t=[`__\0is_clz`,rr++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Zn(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Qn(e,t,n){return this.superClass.prototype[t].apply(e,n)}function $n(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Gn(r),e.prototype.type=r;var i=Wn(r);if(!i.sub)t[i.main]=e;else if(i.sub!==tr){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[tr]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Wn(e),r=[],i=t[n.main];return i&&i[tr]?D(i,function(e,t){t!==tr&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Wn(e).main]},e.getAllClassMainTypes=function(){var e=[];return D(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Wn(e).main];return n&&n[tr]};function n(e){var n=t[e.main];return(!n||!n[tr])&&(n=t[e.main]={},n[tr]=!0),n}}var er,tr,nr,rr,ir=t((()=>{G(),U(),er=`.`,tr=`___EC__COMPONENT__CONTAINER___`,nr=`___EC__EXTENDED_CLASS___`,rr=Math.round(Math.random()*10)}));function ar(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&C(r,s)>=0||i&&C(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var or=t((()=>{U()})),sr,cr,lr,ur=t((()=>{or(),sr=[[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]],cr=ar(sr),lr=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return cr(this,e,t)},e}()})),dr,fr,pr,mr=t((()=>{dr=function(){function e(e){this.value=e}return e}(),fr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new dr(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),pr=function(){function e(e){this._list=new fr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new dr(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}()}));function hr(e){if(typeof e==`string`){var t=yr.get(e);return t&&t.image}else return e}function gr(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=yr.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!vr(t)&&a.pending.push(o)):(t=f.loadImage(e,_r,_r),t.__zrImageSrc=e,yr.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function _r(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function vr(e){return e&&e.width&&e.height}var yr,br=t((()=>{mr(),p(),yr=new pr(50)})),xr=n({clone:()=>Ar,copy:()=>wr,create:()=>Sr,identity:()=>Cr,invert:()=>kr,mul:()=>Tr,rotate:()=>Dr,scale:()=>Or,translate:()=>Er});function Sr(){return[1,0,0,1,0,0]}function Cr(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function wr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Tr(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Er(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Dr(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Or(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function kr(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function Ar(e){var t=Sr();return wr(t,e),t}var jr=t((()=>{})),Mr=n({add:()=>Lr,applyTransform:()=>Zr,clone:()=>Fr,copy:()=>Pr,create:()=>Nr,dist:()=>ni,distSquare:()=>ri,distance:()=>qr,distanceSquare:()=>Jr,div:()=>Ur,dot:()=>Wr,len:()=>Br,lenSquare:()=>Vr,length:()=>ei,lengthSquare:()=>ti,lerp:()=>Xr,max:()=>$r,min:()=>Qr,mul:()=>Hr,negate:()=>Yr,normalize:()=>Kr,scale:()=>Gr,scaleAndAdd:()=>Rr,set:()=>Ir,sub:()=>zr});function Nr(e,t){return e??=0,t??=0,[e,t]}function Pr(e,t){return e[0]=t[0],e[1]=t[1],e}function Fr(e){return[e[0],e[1]]}function Ir(e,t,n){return e[0]=t,e[1]=n,e}function Lr(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Rr(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function zr(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Br(e){return Math.sqrt(Vr(e))}function Vr(e){return e[0]*e[0]+e[1]*e[1]}function Hr(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Ur(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Wr(e,t){return e[0]*t[0]+e[1]*t[1]}function Gr(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Kr(e,t){var n=Br(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function qr(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function Jr(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function Yr(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Xr(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Zr(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Qr(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function $r(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ei,ti,ni,ri,ii=t((()=>{ei=Br,ti=Vr,ni=qr,ri=Jr})),X,ai=t((()=>{X=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}()}));function oi(e,t,n,r,i,a,o,s){var c=ui(t-n),l=ui(r-e),u=ci(c,l),d=di[i],f=di[1-i],p=fi[i];t<n||r<e?c<l?(a&&(yi[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(yi[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=li(e,n),o[p]=ci(t,r)-o[d]),a&&(u<bi[0]||_i.useDir)&&(bi[0]=ci(u,bi[0]),(c<l||!_i.bidirectional)&&(vi[d]=c,vi[f]=0,_i.useDir&&_i.calcDirMTV()),(c>=l||!_i.bidirectional)&&(vi[d]=-l,vi[f]=0,_i.useDir&&_i.calcDirMTV())))}function si(){var e=0,t=new X,n=new X,r={minTv:new X,maxTv:new X,useDir:!1,dirMinTv:new X,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=li(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return ui(e)<1e-10}return r}var ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,Z,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai=t((()=>{jr(),ii(),ai(),ci=Math.min,li=Math.max,ui=Math.abs,di=[`x`,`y`],fi=[`width`,`height`],pi=new X,mi=new X,hi=new X,gi=new X,_i=si(),vi=_i.minTv,yi=_i.maxTv,bi=[0,0],Z=function(){function e(e,t,n,r){Si(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=ci(e.x,this.x),n=ci(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=li(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=li(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return wi(Sr(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&X.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Si(Di,t.x,t.y,t.width,t.height)),n instanceof e||(n=Si(Oi,n.x,n.y,n.width,n.height));var s=!!r;_i.reset(i,s);var c=_i.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(bi[0]=1/0,bi[1]=0,oi(l,u,p,m,0,s,a,o),oi(d,f,h,g,1,s,a,o),s&&X.copy(r,_?_i.useDir?_i.dirMinTv:vi:yi)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Ci(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&Ci(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}pi.x=hi.x=t.x,pi.y=gi.y=t.y,mi.x=gi.x=t.x+t.width,mi.y=hi.y=t.y+t.height,pi.transform(n),gi.transform(n),mi.transform(n),hi.transform(n),e.x=ci(pi.x,mi.x,hi.x,gi.x),e.y=ci(pi.y,mi.y,hi.y,gi.y);var s=li(pi.x,mi.x,hi.x,gi.x),c=li(pi.y,mi.y,hi.y,gi.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=Cr(e||[]),Er(e,e,Ir(ki,-t.x,-t.y)),Or(e,e,Ir(ki,r,i)),Er(e,e,Ir(ki,n.x,n.y)),e},e}(),xi=Z.create,Si=Z.set,Ci=Z.copy,wi=Z.calculateTransform,Ti=Z.applyTransform,Ei=Z.contain,Di=new Z(0,0,0,0),Oi=new Z(0,0,0,0),ki=[]}));function ji(e){Hi||=new pr(100),e||=`12px sans-serif`;var t=Hi.get(e);return t||(t={font:e,strWidthCache:new pr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:f.measureText(`国`,e).width,asciiCharWidth:f.measureText(`a`,e).width},Hi.put(e,t)),t}function Mi(e){if(!(Ui>=Wi)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=f.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Ui=Wi:i>2&&Ui++,t}}function Ni(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Mi(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Pi(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=f.measureText(t,e.font).width,n.put(t,r)),r}function Fi(e,t,n,r){var i=Pi(ji(t),e),a=zi(t);return new Z(Li(0,i,n),Ri(0,a,r),i,a)}function Ii(e,t,n,r){var i=((e||``)+``).split(`
2
+ `);if(i.length===1)return Fi(i[0],t,n,r);for(var a=new Z(0,0,0,0),o=0;o<i.length;o++){var s=Fi(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Li(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Ri(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function zi(e){return ji(e).stWideCharWidth}function Bi(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Vi(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Bi(r[0],n.width),l+=Bi(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Hi,Ui,Wi,Gi=t((()=>{Ai(),mr(),p(),Ui=0,Wi=5}));function Ki(e,t,n,r,i){var a={};return qi(a,e,t,n,r,i),a.text}function qi(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
3
+ `);a=Ji(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Yi(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
4
+ `),e.isTruncated=s}function Ji(e,t,n,r){r||={};var i=b({},r);n=B(n,`...`),i.maxIterations=B(r.maxIterations,2);var a=i.minChar=B(r.minChar,0),o=i.fontMeasureInfo=ji(t),s=o.asciiCharWidth;i.placeholder=B(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Pi(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Yi(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Pi(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Xi(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Pi(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Xi(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Ni(n,e.charCodeAt(i));return i}function Zi(e,t,n,r){var i=ia(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=zi(l),f=B(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?na(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
5
+ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Ji(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Yi(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=ji(l),S=0;S<_.length;S++)w=Math.max(Pi(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}function Qi(e,t,n,r,i){var a=new da,o=ia(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=ca.lastIndex=0,h;(h=ca.exec(o))!=null;){var g=h.index;g>m&&$i(a,o.substring(m,g),t,p),$i(a,h[2],t,p,h[1]),m=ca.lastIndex}m<o.length&&$i(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},ee=k.textPadding=A.padding,j=ee?ee[1]+ee[3]:0,te=k.font=A.font||t.font;k.contentHeight=zi(te);var M=B(A.height,k.contentHeight);if(k.innerHeight=M,ee&&(M+=ee[0]+ee[2]),k.height=M,k.lineHeight=le(A.lineHeight,t.lineHeight,M),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var N=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<N;break outer}var P=A.width,F=P==null||P===`auto`;if(typeof P==`string`&&P.charAt(P.length-1)===`%`)k.percentWidth=P,_.push(k),k.contentWidth=Pi(ji(te),k.text);else{if(F){var ne=A.backgroundColor,I=ne&&ne.image;I&&(I=hr(I),vr(I)&&(k.width=Math.max(k.width,I.width*M/I.height)))}var L=b&&u!=null?u-D:null;L!=null&&L<k.width?!F||L<j?(k.text=``,k.width=k.contentWidth=0):(qi(S,k.text,L-j,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Pi(ji(te),k.text)):k.contentWidth=Pi(ji(te),k.text)}k.width+=j,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=B(u,y),a.outerHeight=a.height=B(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],re=k.percentWidth;k.width=parseInt(re,10)/100*a.width}return a}function $i(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=Bi(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
6
+ `),l=!0),r.accumWidth=m}else{var h=na(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
7
+ `);for(var g=ji(c),_=0;_<u.length;_++){var v=u[_],y=new la;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:Pi(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new ua)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new ua([y]))}}function ea(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}function ta(e){return ea(e)?!!fa[e]:!0}function na(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=ji(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
8
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Ni(d,p.charCodeAt(0)),h=r?!1:!ta(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function ra(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Z.set(pa,Li(n,o,i),Ri(r,s,a),o,s),Z.intersect(t,pa,null,ma);var c=ma.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Li(c.x,c.width,i,!0),e.baseY=Ri(c.y,c.height,a,!0)}}function ia(e){return e==null?e=``:e+=``}function aa(e){var t=ia(e.text),n=e.font;return oa(e,Pi(ji(n),t),zi(n),null)}function oa(e,t,n,r){var i=new Z(Li(e.x||0,t,e.textAlign),Ri(e.y||0,n,e.textBaseline),t,n),a=r??(sa(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function sa(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var ca,la,ua,da,fa,pa,ma,ha=t((()=>{br(),U(),Gi(),Ai(),ca=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,la=function(){function e(){}return e}(),ua=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),da=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}(),fa=k(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{}),pa=new Z(0,0,0,0),ma={outIntersectRect:{},clamp:!0}}));function ga(e){return e>ba||e<-ba}function _a(){return new Ta}function va(e,t){return x(e,t,Da)}var ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa=t((()=>{jr(),U(),ii(),ya=Cr,ba=5e-5,xa=[],Sa=[],Ca=Sr(),wa=Math.abs,Ta=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Ea(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ga(this.rotation)||ga(this.x)||ga(this.y)||ga(this.scaleX-1)||ga(this.scaleY-1)||ga(this.skewX)||ga(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(ya(n),this.invTransform=null);return}n||=Sr(),t?this.getLocalTransform(n):ya(n),e&&(t?Tr(n,e,n):wr(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Sr(),kr(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(xa);var n=xa[0]<0?-1:1,r=xa[1]<0?-1:1,i=((xa[0]-n)*t+n)/xa[0]||0,a=((xa[1]-r)*t+r)/xa[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Sr(),Tr(Sa,e.invTransform,t),t=Sa);var n=this.originX,r=this.originY;(n||r)&&(Ca[4]=n,Ca[5]=r,Tr(Sa,t,Ca),Sa[4]-=n,Sa[5]-=r,t=Sa),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Zr(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Zr(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&wa(e[0]-1)>1e-10&&wa(e[3]-1)>1e-10?Math.sqrt(wa(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){va(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Dr(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Ea=Ta.getLocalTransform,Da=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`]})),ka,Aa=t((()=>{ka={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ka.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ka.bounceIn(e*2)*.5:ka.bounceOut(e*2-1)*.5+.5}}}));function ja(e){return e>-Ya&&e<Ya}function Ma(e){return e>Ya||e<-Ya}function Na(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Pa(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Fa(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(ja(u)&&ja(d))if(ja(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(ja(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Ja(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-qa(-y,Qa):qa(y,Qa),b=b<0?-qa(-b,Qa):qa(b,Qa);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Ja(u*u*u)),S=Math.acos(x)/3,C=Ja(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Za*Math.sin(S)))/(3*o),T=(-s+C*(w-Za*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Ia(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(ja(o)){if(Ma(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(ja(u))i[0]=-a/(2*o);else if(u>0){var d=Ja(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function La(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Ra(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;$a[0]=c,$a[1]=l;for(var v=0;v<1;v+=.05)eo[0]=Na(e,n,i,o,v),eo[1]=Na(t,r,a,s,v),g=ri($a,eo),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Xa);y++)m=d-f,h=d+f,eo[0]=Na(e,n,i,o,m),eo[1]=Na(t,r,a,s,m),g=ri(eo,$a),m>=0&&g<p?(d=m,p=g):(to[0]=Na(e,n,i,o,h),to[1]=Na(t,r,a,s,h),_=ri(to,$a),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Na(e,n,i,o,d),u[1]=Na(t,r,a,s,d)),Ja(p)}function za(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Na(e,n,i,o,m),g=Na(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Ba(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Va(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Ha(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(ja(a)){if(Ma(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(ja(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Ja(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Ua(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Wa(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Ga(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;$a[0]=o,$a[1]=s;for(var f=0;f<1;f+=.05){eo[0]=Ba(e,n,i,f),eo[1]=Ba(t,r,a,f);var p=ri($a,eo);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Xa);m++){var h=l-u,g=l+u;eo[0]=Ba(e,n,i,h),eo[1]=Ba(t,r,a,h);var p=ri(eo,$a);if(h>=0&&p<d)l=h,d=p;else{to[0]=Ba(e,n,i,g),to[1]=Ba(t,r,a,g);var _=ri(to,$a);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Ba(e,n,i,l),c[1]=Ba(t,r,a,l)),Ja(d)}function Ka(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Ba(e,n,i,f),m=Ba(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no=t((()=>{ii(),qa=Math.pow,Ja=Math.sqrt,Ya=1e-8,Xa=1e-4,Za=Ja(3),Qa=1/3,$a=Nr(),eo=Nr(),to=Nr()}));function ro(e){var t=e&&io.exec(e);if(t){var n=t[1].split(`,`),r=+pe(n[0]),i=+pe(n[1]),a=+pe(n[2]),o=+pe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Fa(0,r,a,1,e,s)&&Na(0,i,o,1,s[0])}}}var io,ao=t((()=>{no(),U(),io=/cubic-bezier\(([0-9,\.e ]+)\)/})),oo,so=t((()=>{Aa(),U(),ao(),oo=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||xe,this.ondestroy=e.ondestroy||xe,this.onrestart=e.onrestart||xe,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=P(e)?e:ka[e]||ro(e)},e}()})),co=n({fastLerp:()=>To,fastMapToColor:()=>Io,lerp:()=>Eo,lift:()=>Co,liftColor:()=>Mo,lum:()=>Ao,mapToColor:()=>Lo,modifyAlpha:()=>Oo,modifyHSL:()=>Do,parse:()=>bo,parseCssFloat:()=>mo,parseCssInt:()=>po,random:()=>jo,stringify:()=>ko,toHex:()=>wo});function lo(e){return e=Math.round(e),e<0?0:e>255?255:e}function uo(e){return e=Math.round(e),e<0?0:e>360?360:e}function fo(e){return e<0?0:e>1?1:e}function po(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?lo(parseFloat(t)/100*255):lo(parseInt(t,10))}function mo(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?fo(parseFloat(t)/100):fo(parseFloat(t))}function ho(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function go(e,t,n){return e+(t-e)*n}function _o(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function vo(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function yo(e,t){Fo&&vo(Fo,t),Fo=Po.put(e,Fo||t.slice())}function bo(e,t){if(e){t||=[];var n=Po.get(e);if(n)return vo(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in No)return vo(t,No[r]),yo(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){_o(t,0,0,0,1);return}return _o(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),yo(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){_o(t,0,0,0,1);return}return _o(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),yo(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?_o(t,+l[0],+l[1],+l[2],1):_o(t,0,0,0,1);u=mo(l.pop());case`rgb`:if(l.length>=3)return _o(t,po(l[0]),po(l[1]),po(l[2]),l.length===3?u:mo(l[3])),yo(e,t),t;_o(t,0,0,0,1);return;case`hsla`:if(l.length!==4){_o(t,0,0,0,1);return}return l[3]=mo(l[3]),xo(l,t),yo(e,t),t;case`hsl`:if(l.length!==3){_o(t,0,0,0,1);return}return xo(l,t),yo(e,t),t;default:return}}_o(t,0,0,0,1)}}function xo(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=mo(e[1]),i=mo(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],_o(t,lo(ho(o,a,n+1/3)*255),lo(ho(o,a,n)*255),lo(ho(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function So(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Co(e,t){var n=bo(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ko(n,n.length===4?`rgba`:`rgb`)}}function wo(e){var t=bo(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function To(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=lo(go(o[0],s[0],c)),n[1]=lo(go(o[1],s[1],c)),n[2]=lo(go(o[2],s[2],c)),n[3]=fo(go(o[3],s[3],c)),n}}function Eo(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=bo(t[i]),s=bo(t[a]),c=r-i,l=ko([lo(go(o[0],s[0],c)),lo(go(o[1],s[1],c)),lo(go(o[2],s[2],c)),fo(go(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Do(e,t,n,r){var i=bo(e);if(e)return i=So(i),t!=null&&(i[0]=uo(P(t)?t(i[0]):t)),n!=null&&(i[1]=mo(P(n)?n(i[1]):n)),r!=null&&(i[2]=mo(P(r)?r(i[2]):r)),ko(xo(i),`rgba`)}function Oo(e,t){var n=bo(e);if(n&&t!=null)return n[3]=fo(t),ko(n,`rgba`)}function ko(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Ao(e,t){var n=bo(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function jo(){return ko([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}function Mo(e){if(F(e)){var t=Ro.get(e);return t||(t=Co(e,-.1),Ro.put(e,t)),t}else if(oe(e)){var n=b({},e);return n.colorStops=O(e.colorStops,function(e){return{offset:e.offset,color:Co(e.color,-.1)}}),n}return e}var No,Po,Fo,Io,Lo,Ro,zo=t((()=>{mr(),U(),No={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]},Po=new pr(20),Fo=null,Io=To,Lo=Eo,Ro=new pr(100)}));function Bo(e){return e.type===`linear`}function Vo(e){return e.type===`radial`}var Ho=t((()=>{(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})()}));function Uo(e,t,n){return(t-e)*n+e}function Wo(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Uo(t[a],n[a],r);return e}function Go(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Uo(t[o][s],n[o][s],r)}return e}function Ko(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function qo(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Jo(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Yo(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:ts.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Xo(e){if(E(e)){var t=e.length;if(E(e[0])){for(var n=[],r=0;r<t;r++)n.push(ts.call(e[r]));return n}return ts.call(e)}return e}function Zo(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Qo(e){return E(e&&e[0])?2:1}function $o(e){return e===os||e===ss}function es(e){return e===rs||e===is}var ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs=t((()=>{so(),zo(),U(),Aa(),ao(),Ho(),ts=Array.prototype.slice,ns=0,rs=1,is=2,as=3,os=4,ss=5,cs=6,ls=[0,0,0,0],us=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=cs,s=t;if(E(t)){var c=Qo(t);o=c,(c===1&&!I(t[0])||c===2&&!I(t[0][0]))&&(a=!0)}else if(I(t)&&!z(t))o=ns;else if(F(t))if(!isNaN(+t))o=ns;else{var l=bo(t);l&&(s=l,o=as)}else if(oe(t)){var u=b({},s);u.colorStops=O(t.colorStops,function(e){return{offset:e.offset,color:bo(e.color)}}),Bo(t)?o=os:Vo(t)&&(o=ss),s=u}i===0?this.valType=o:(o!==this.valType||o===cs)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=P(n)?n:ka[n]||ro(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=es(r),c=$o(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Yo(d,f,r):c&&Jo(d.colorStops,f.colorStops))}if(!o&&r!==ss&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===ns?n[l].additiveValue=n[l].value-p:r===as?n[l].additiveValue=Ko([],n[l].value,p,-1):es(r)&&(n[l].additiveValue=r===rs?Ko([],n[l].value,p,-1):qo([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===as,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?ls:e[s];if((es(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(es(i))i===rs?Wo(g,f[r],p[r],h):Go(g,f[r],p[r],h);else if($o(i)){var _=f[r],v=p[r],y=i===os;e[s]={type:y?`linear`:`radial`,x:Uo(_.x,v.x,h),y:Uo(_.y,v.y,h),colorStops:O(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Uo(e.offset,n.offset,h),color:Zo(Wo([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Uo(_.x2,v.x2,h),e[s].y2=Uo(_.y2,v.y2,h)):e[s].r=Uo(_.r,v.r,h)}else if(c)Wo(g,f[r],p[r],h),n||(e[s]=Zo(g));else{var b=Uo(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===ns?e[n]=e[n]+r:t===as?(bo(e[n],ls),Ko(ls,ls,r,1),e[n]=Zo(ls)):t===rs?Ko(e[n],e[n],r,1):t===is&&qo(e[n],e[n],r,1)},e}(),ds=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){g(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,j(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new us(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===as&&c&&(c=Zo(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Xo(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Xo(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new oo({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return O(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Xo(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=j(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}()})),ps,ms=t((()=>{ps=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}()})),hs,gs,_s,vs,ys,bs,xs=t((()=>{Ze(),hs=1,K.hasGlobalWindow&&(hs=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1)),gs=hs,_s=.4,vs=`#333`,ys=`#ccc`,bs=`#eee`})),Ss=t((()=>{}));function Cs(e,t,n,r,i){n||={};var a=[];ks(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function ws(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ts(e){return E(e[0])}function Es(e,t,n){if(E(t[n]))if(E(e[n])||(e[n]=[]),ie(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ws(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Ts(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?ws(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else ws(a,i,o);a.length=i.length}else e[n]=t[n]}function Ds(e,t){return e===t||E(e)&&E(t)&&Os(e,t)}function Os(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ks(e,t,n,r,i,a,o,s){for(var c=j(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!L(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(L(v)&&!E(v)&&!oe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}ks(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=C(m,x);m.splice(S,1)}}if(i.force||(h=A(h,function(e){return!Ds(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var w=void 0,T=void 0,D=void 0;if(s){T={},f&&(w={});for(var b=0;b<y;b++){var _=h[b];T[_]=n[_],f?w[_]=r[_]:n[_]=r[_]}}else if(f){D={};for(var b=0;b<y;b++){var _=h[b];D[_]=Xo(n[_]),Es(n,r,_)}}var x=new ds(n,!1,!1,d?A(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&w&&x.whenWithKeys(0,w,h),D&&x.whenWithKeys(0,D,h),x.whenWithKeys(l??500,s?T:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function As(e,t,n,r){return!(n&&n.hoverLayer||r)||js(e)||t&&js(t)?0:1}function js(e){return e.type===`text`||e.type===`tspan`}function Ms(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Ns,Ps,Fs,Is,Ls,Rs,zs,Bs=t((()=>{Oa(),fs(),Ai(),ms(),Gi(),U(),xs(),zo(),Ss(),jr(),Ns=`__zr_normal__`,Ps=Da.concat([`ignore`]),Fs=k(Da,function(e,t){return e[t]=!0,e},{ignore:!1}),Is={},Ls=new Z(0,0,0,0),Rs=[],zs=function(){function e(e){this.id=h(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ls,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Is,n,d):Vi(Is,n,d),i.x=Is.x,i.y=Is.y,a=Is.align,o=Is.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=Bi(f[0],d.width),m=Bi(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Z(0,0,0,0);i.getLocalTransform(Rs),kr(Rs,Rs),Z.copy(_,d),_.applyTransform(Rs)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ys:vs},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&bo(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,ko(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},b(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(L(e))for(var n=j(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Ps)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Ns,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Ns;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(C(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){g(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=As(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ms(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=As(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Ms(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=C(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=C(r,e),a=C(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];b(t,i),i.textConfig&&(n||={},b(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=b({},r?this.textConfig:n.textConfig),b(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Ps.length;l++){var u=Ps[l],d=i&&Fs[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Ta,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},b(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new ds(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=C(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Cs(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Cs(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Cs(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}(),T(zs,ps),T(zs,Ta)}));function Vs(e,t,n){return Js.copy(e.getBoundingRect()),e.transform&&Js.applyTransform(e.transform),Ys.width=t,Ys.height=n,!Js.intersect(Ys)}var Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs=t((()=>{G(),Bs(),Ai(),U(),Ss(),Hs=`__zr_style_`+Math.round(Math.random()*10),Us={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ws={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Us[Hs]=!0,Gs=[`z`,`z2`,`invisible`],Ks=[`invisible`],qs=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=j(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Vs(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Z(0,0,0,0),t?Z.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Z(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:b(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return ve(Us,e)},t.prototype.useStyle=function(e){e[Hs]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Hs]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Gs)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=j(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=j(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l);if(!c)for(var h=this.__inHover?Ks:Gs,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return b(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ws},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(zs),Js=new Z(0,0,0,0),Ys=new Z(0,0,0,0)}));function Zs(e,t,n,r,i,a){i[0]=tc(e,n),i[1]=tc(t,r),a[0]=nc(e,n),a[1]=nc(t,r)}function Qs(e,t,n,r,i,a,o,s,c,l){var u=Ia,d=Na,f=u(e,n,i,o,lc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,lc[p]);c[0]=tc(m,c[0]),l[0]=nc(m,l[0])}f=u(t,r,a,s,uc);for(var p=0;p<f;p++){var h=d(t,r,a,s,uc[p]);c[1]=tc(h,c[1]),l[1]=nc(h,l[1])}c[0]=tc(e,c[0]),l[0]=nc(e,l[0]),c[0]=tc(o,c[0]),l[0]=nc(o,l[0]),c[1]=tc(t,c[1]),l[1]=nc(t,l[1]),c[1]=tc(s,c[1]),l[1]=nc(s,l[1])}function $s(e,t,n,r,i,a,o,s){var c=Ua,l=Ba,u=nc(tc(c(e,n,i),1),0),d=nc(tc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=tc(e,i,f),o[1]=tc(t,a,p),s[0]=nc(e,i,f),s[1]=nc(t,a,p)}function ec(e,t,n,r,i,a,o,s,c){var l=Qr,u=$r,d=Math.abs(i-a);if(d%ac<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(oc[0]=ic(i)*n+e,oc[1]=rc(i)*r+t,sc[0]=ic(a)*n+e,sc[1]=rc(a)*r+t,l(s,oc,sc),u(c,oc,sc),i%=ac,i<0&&(i+=ac),a%=ac,a<0&&(a+=ac),i>a&&!o?a+=ac:i<a&&o&&(i+=ac),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(cc[0]=ic(p)*n+e,cc[1]=rc(p)*r+t,l(s,cc,s),u(c,cc,c))}var tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc=t((()=>{ii(),no(),tc=Math.min,nc=Math.max,rc=Math.sin,ic=Math.cos,ac=Math.PI*2,oc=Nr(),sc=Nr(),cc=Nr(),lc=[],uc=[]}));function fc(e){return Math.round(e/Ec*1e8)/1e8%2*Ec}function pc(e,t){var n=fc(e[0]);n<0&&(n+=Dc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Dc?i=n+Dc:t&&n-i>=Dc?i=n-Dc:!t&&n>i?i=n+(Dc-fc(n-i)):t&&n<i&&(i=n-(Dc-fc(i-n))),e[0]=n,e[1]=i}var mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc=t((()=>{ii(),Ai(),xs(),dc(),no(),mc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hc=[],gc=[],_c=[],vc=[],yc=[],bc=[],xc=Math.min,Sc=Math.max,Cc=Math.cos,wc=Math.sin,Tc=Math.abs,Ec=Math.PI,Dc=Ec*2,Oc=typeof Float32Array<`u`,kc=[],Ac=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=Tc(n/gs/e)||0,this._uy=Tc(n/gs/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(mc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Tc(e-this._xi),r=Tc(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(mc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(mc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(mc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),kc[0]=r,kc[1]=i,pc(kc,a),r=kc[0],i=kc[1];var o=i-r;return this.addData(mc.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Cc(i)*n+e,this._yi=wc(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(mc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Oc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Oc&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Oc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){_c[0]=_c[1]=yc[0]=yc[1]=Number.MAX_VALUE,vc[0]=vc[1]=bc[0]=bc[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case mc.M:t=r=e[a++],n=i=e[a++],yc[0]=r,yc[1]=i,bc[0]=r,bc[1]=i;break;case mc.L:Zs(t,n,e[a],e[a+1],yc,bc),t=e[a++],n=e[a++];break;case mc.C:Qs(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],yc,bc),t=e[a++],n=e[a++];break;case mc.Q:$s(t,n,e[a++],e[a++],e[a],e[a+1],yc,bc),t=e[a++],n=e[a++];break;case mc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Cc(f)*u+c,i=wc(f)*d+l),ec(c,l,u,d,f,p,m,yc,bc),t=Cc(p)*u+c,n=wc(p)*d+l;break;case mc.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Zs(r,i,r+h,i+g,yc,bc);break;case mc.Z:t=r,n=i;break}Qr(_c,_c,yc),$r(vc,vc,bc)}return a===0&&(_c[0]=_c[1]=vc[0]=vc[1]=0),new Z(_c[0],_c[1],vc[0]-_c[0],vc[1]-_c[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case mc.M:i=o=e[d++],a=s=e[d++];break;case mc.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Tc(_)>n||Tc(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case mc.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=za(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case mc.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Ka(i,a,y,b,h,g,10),i=h,a=g;break;case mc.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Cc(D)*T+C,s=wc(D)*E+w),m=Sc(T,E)*xc(Dc,Math.abs(O)),i=Cc(k)*T+C,a=wc(k)*E+w;break;case mc.R:o=i=e[d++],s=a=e[d++];var A=e[d++],ee=e[d++];m=A*2+ee*2;break;case mc.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==mc.L&&v>0&&(e.lineTo(y,b),v=0),S){case mc.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case mc.L:u=n[x++],d=n[x++];var w=Tc(u-c),T=Tc(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case mc.C:var k=n[x++],A=n[x++],ee=n[x++],j=n[x++],te=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;La(c,k,ee,te,D,hc),La(l,A,j,M,D,gc),e.bezierCurveTo(hc[1],gc[1],hc[2],gc[2],hc[3],gc[3]);break lo}h+=E}e.bezierCurveTo(k,A,ee,j,te,M),c=te,l=M;break;case mc.Q:var k=n[x++],A=n[x++],ee=n[x++],j=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Wa(c,k,ee,D,hc),Wa(l,A,j,D,gc),e.quadraticCurveTo(hc[1],gc[1],hc[2],gc[2]);break lo}h+=E}e.quadraticCurveTo(k,A,ee,j),c=ee,l=j;break;case mc.A:var N=n[x++],P=n[x++],F=n[x++],ne=n[x++],I=n[x++],L=n[x++],re=n[x++],ie=!n[x++],ae=F>ne?F:ne,oe=Tc(F-ne)>.001,se=I+L,R=!1;if(f){var E=p[g++];h+E>_&&(se=I+L*(_-h)/E,R=!0),h+=E}if(oe&&e.ellipse?e.ellipse(N,P,F,ne,re,I,se,ie):e.arc(N,P,ae,I,se,ie),R)break lo;C&&(o=Cc(I)*F+N,s=wc(I)*ne+P),c=Cc(se)*F+N,l=wc(se)*ne+P;break;case mc.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var z=n[x++],ce=n[x++];if(f){var E=p[g++];if(h+E>_){var B=_-h;e.moveTo(u,d),e.lineTo(u+xc(B,z),d),B-=z,B>0&&e.lineTo(u+z,d+xc(B,ce)),B-=ce,B>0&&e.lineTo(u+Sc(z-B,0),d+ce),B-=z,B>0&&e.lineTo(u,d+Sc(ce-B,0));break lo}h+=E}e.rect(u,d,z,ce);break;case mc.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=mc,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}()}));function Mc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}var Nc=t((()=>{}));function Pc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Ra(e,t,n,r,i,a,o,s,l,u,null)<=d/2}var Fc=t((()=>{no()}));function Ic(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:Ga(e,t,n,r,i,a,s,c,null)<=l/2}var Lc=t((()=>{no()}));function Rc(e){return e%=zc,e<0&&(e+=zc),e}var zc,Bc=t((()=>{zc=Math.PI*2}));function Vc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Hc<1e-4)return!0;if(a){var d=r;r=Rc(i),i=Rc(d)}else r=Rc(r),i=Rc(i);r>i&&(i+=Hc);var f=Math.atan2(c,s);return f<0&&(f+=Hc),f>=r&&f<=i||f+Hc>=r&&f+Hc<=i}var Hc,Uc=t((()=>{Bc(),Hc=Math.PI*2}));function Wc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Gc=t((()=>{}));function Kc(e,t){return Math.abs(e-t)<nl}function qc(){var e=il[0];il[0]=il[1],il[1]=e}function Jc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Fa(t,r,a,s,l,rl);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=rl[h],_=g===0||g===1?.5:1;Na(e,n,i,o,g)<c||(f<0&&(f=Ia(t,r,a,s,il),il[1]<il[0]&&f>1&&qc(),p=Na(t,r,a,s,il[0]),f>1&&(m=Na(t,r,a,s,il[1]))),f===2?g<il[0]?d+=p<t?_:-_:g<il[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<il[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Yc(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Ha(t,r,a,s,rl);if(c===0)return 0;var l=Ua(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Ba(t,r,a,l),f=0;f<c;f++){var p=rl[f]===0||rl[f]===1?.5:1,m=Ba(e,n,i,rl[f]);m<o||(rl[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=rl[0]===0||rl[0]===1?.5:1,m=Ba(e,n,i,rl[0]);return m<o?0:a<t?p:-p}}function Xc(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);rl[0]=-c,rl[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=tl-1e-4){r=0,i=tl;var u=a?1:-1;return o>=rl[0]+e&&o<=rl[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=tl,i+=tl);for(var f=0,p=0;p<2;p++){var m=rl[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=tl+h),(h>=r&&h<=i||h+tl>=r&&h+tl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Zc(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===el.M&&m>1&&(n||(s+=Wc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case el.M:u=a[m++],d=a[m++],c=u,l=d;break;case el.L:if(n){if(Mc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Wc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case el.C:if(n){if(Pc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Jc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case el.Q:if(n){if(Ic(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Yc(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case el.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=Wc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Vc(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Xc(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case el.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Mc(u,d,f,d,t,r,i)||Mc(f,d,f,p,t,r,i)||Mc(f,p,u,p,t,r,i)||Mc(u,p,u,d,t,r,i))return!0}else s+=Wc(f,d,f,p,r,i),s+=Wc(u,p,u,d,r,i);break;case el.Z:if(n){if(Mc(c,l,u,d,t,r,i))return!0}else s+=Wc(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Kc(l,d)&&(s+=Wc(c,l,u,d,r,i)||0),s!==0}function Qc(e,t,n){return Zc(e,0,!1,t,n)}function $c(e,t,n,r){return Zc(e,t,!0,n,r)}var el,tl,nl,rl,il,al=t((()=>{jc(),Nc(),Fc(),Lc(),Uc(),no(),Gc(),el=Ac.CMD,tl=Math.PI*2,nl=1e-4,rl=[-1,-1,-1],il=[-1,-1]})),ol,sl,cl,ll,ul=t((()=>{G(),Xs(),Bs(),jc(),al(),U(),zo(),xs(),Ss(),Oa(),ol=S({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Us),sl={style:S({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ws.style)},cl=Da.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),ll=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<cl.length;++s)i[cl[s]]=this[cl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=j(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?b(this.style,o):this.useStyle(o):a===`shape`?b(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(F(e)){var t=Ao(e,0);return t>.5?vs:t>.2?bs:ys}else if(e)return ys}return vs},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(F(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Ao(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Ac(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),$c(a,o/s,e,t)))return!0}if(this.hasFill())return Qc(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:b(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return ve(ol,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=b({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=b({},r.shape),b(c,n.shape)):(c=b({},i?this.shape:r.shape),b(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=b({},this.shape);for(var l={},u=j(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return sl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){W(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return _(e.style)},n.prototype.getDefaultShape=function(){return _(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(qs)})),dl,fl,pl=t((()=>{G(),Xs(),ul(),U(),p(),ha(),dl=S({strokeFirst:!0,font:s,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},ol),fl=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return sa(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return ve(dl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=aa(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(qs),fl.prototype.type=`tspan`}));function ml(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var hl,gl,_l,vl=t((()=>{G(),Xs(),Ai(),U(),hl=S({x:0,y:0},Us),gl={style:S({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ws.style)},_l=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ve(hl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=ml(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return gl},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Z(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(qs),_l.prototype.type=`image`}));function yl(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var bl=t((()=>{}));function xl(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(wl(r*2)===wl(i*2)&&(e.x1=e.x2=Cl(r,s,!0)),wl(a*2)===wl(o*2)&&(e.y1=e.y2=Cl(a,s,!0)),e):e}}function Sl(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Cl(r,s,!0),e.y=Cl(i,s,!0),e.width=Math.max(Cl(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Cl(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Cl(e,t,n){if(!t)return e;var r=wl(e*2);return(r+wl(t))%2==0?r/2:(r+(n?1:-1))/2}var wl,Tl=t((()=>{wl=Math.round})),El,Dl,Ol,kl=t((()=>{G(),ul(),bl(),Tl(),El=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Dl={},Ol=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new El},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Sl(Dl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?yl(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ll),Ol.prototype.type=`rect`}));function Al(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function jl(e,t){for(var n=0;n<ql.length;n++){var r=ql[n],i=t[r];i!=null&&(e[r]=i)}}function Ml(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Nl(e){return Pl(e),D(e.rich,Pl),e}function Pl(e){if(e){e.font=Wl.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Gl[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Kl[n]?n:`top`,e.padding&&=de(e.padding)}}function Fl(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Il(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Ll(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Rl(e){var t=e.text;return t!=null&&(t+=``),t}function zl(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl=t((()=>{G(),ha(),pl(),U(),Gi(),vl(),kl(),Ai(),Xs(),p(),Bl={fill:`#000`},Vl=2,Hl={},Ul={style:S({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ws.style)},Wl=function(e){W(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Bl,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Nl(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Z(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Bl},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return b(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=j(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},b(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Ul},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;ra(Hl,r.overflowRect,i,a,o,s),i=Hl.baseX,a=Hl.baseY;var c=Zi(Rl(e),e,Hl.outerWidth,Hl.outerHeight),l=zl(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Ri(a,c.contentHeight,s);if(l||n){var _=Li(i,f,o),v=Ri(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Ll(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Il(`fill`in e?e.fill:(x=!0,r.fill)),C=Fl(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Vl,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(fl),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,jl(D,e),g+=m,E.setBoundingRect(oa(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;ra(Hl,t.overflowRect,i,a,n,r),i=Hl.baseX,a=Hl.baseY;var o=Qi(Rl(e),e,Hl.outerWidth,Hl.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Li(i,c,n),f=Ri(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;zl(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&zl(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Ll(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(fl),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Il(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Fl(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Vl,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=le(s.opacity,t.opacity,1),jl(p,s),y&&(p.lineWidth=le(s.lineWidth,t.lineWidth,g),p.lineDash=B(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(oa(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Ol),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=B(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(_l),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=B(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=le(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Ml(e)&&(t=[e.fontStyle,e.fontWeight,Al(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&pe(t)||e.textFont||e.font},t}(qs),Gl={left:!0,right:1,center:1},Kl={top:1,bottom:1,middle:1},ql=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`]})),Yl,Xl,Zl=t((()=>{Y(),Yl=J(),Xl=function(e,t,n,r){if(r){var i=Yl(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Yl(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}}})),Ql,$l,eu,tu,nu,ru,iu,au,ou=t((()=>{U(),Ql=V([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),$l=`original`,eu=`arrayRows`,tu=`objectRows`,nu=`keyedColumns`,ru=`typedArray`,iu=`unknown`,au=`column`}));function su(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var cu,lu,uu=t((()=>{U(),ou(),cu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],lu=function(){function e(e){D(cu,function(t){this[t]=H(e[t],e)},this)}return e}()}));function du(e){return e!=null&&e!==`none`}function fu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function pu(e){fu(e,`emphasis`,2)}function mu(e){e.hoverState===2&&fu(e,`normal`,0)}function hu(e){fu(e,`blur`,1)}function gu(e){e.hoverState===1&&fu(e,`normal`,0)}function _u(e){e.selected=!0}function vu(e){e.selected=!1}function yu(e,t,n){t(e,n)}function bu(e,t,n){yu(e,t,n),e.isGroup&&e.traverse(function(e){yu(e,t,n)})}function xu(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Su(e,t,n,r){var i=n&&C(n,`select`)>=0,a=!1;if(e instanceof ll){var o=id(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(du(s)||du(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=b({},r),l=b({},l),l.fill=s):!du(l.fill)&&du(s)?(a=!0,r=b({},r),l=b({},l),l.fill=Mo(s)):!du(l.stroke)&&du(c)&&(a||(r=b({},r),l=b({},l)),l.stroke=Mo(c)),r.style=l}}if(r&&r.z2==null){a||(r=b({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Cu(e,t,n){if(n&&n.z2==null){n=b({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function wu(e,t,n){var r=C(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:xu(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=b({},n),o=b({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Tu(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Su(this,e,t,n);if(e===`blur`)return wu(this,e,n);if(e===`select`)return Cu(this,e,n)}return n}function Eu(e){e.stateProxy=Tu;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Tu),n&&(n.stateProxy=Tu)}function Du(e,t){!Fu(e,t)&&!e.__highByOuter&&bu(e,pu)}function Ou(e,t){!Fu(e,t)&&!e.__highByOuter&&bu(e,mu)}function ku(e,t){e.__highByOuter|=1<<(t||0),bu(e,pu)}function Au(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&bu(e,mu)}function ju(e){bu(e,hu)}function Mu(e){bu(e,gu)}function Nu(e){bu(e,_u)}function Pu(e){bu(e,vu)}function Fu(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Iu(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=ad(i),o=su(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){gu(e)}),s&&n.push(i)),a.isBlured=!1}),D(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Lu(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&Mu(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||hu(e)}),E(t))a(e.getData(),t);else if(L(t))for(var u=j(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),ad(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Ru(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){ad(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){hu(e)})}}}function zu(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=gn(i,t);a=(N(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Yl(o);Lu(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Lu(r,u,d,n)}}}function Bu(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(Yl(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Vu(e,t,n){var r=Yl(e),i=Bu(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Ru(r.componentMainType,r.componentIndex,n),D(a,function(e){return Du(e,t)})):(Lu(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Ru(r.componentMainType,r.componentIndex,n),Du(e,t))}function Hu(e,t,n){Iu(n);var r=Yl(e),i=Bu(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?D(i,function(e){return Ou(e,t)}):Ou(e,t)}function Uu(e,t,n){if($u(t)){var r=t.dataType,i=gn(e.getData(r),t);N(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Wu(e){D(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Nu(t):Pu(t)})})}function Gu(e){var t=[];return e.eachSeries(function(e){D(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Ku(e,t,n){Xu(e,!0),bu(e,Eu),Yu(e,t,n)}function qu(e){Xu(e,!1)}function Ju(e,t,n,r){r?qu(e):Ku(e,t,n)}function Yu(e,t,n){var r=Yl(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}function Xu(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Zu(e){return!!(e&&e.__highDownDispatcher)}function Qu(e){var t=rd[e];return t==null&&nd<=32&&(t=rd[e]=nd++),t}function $u(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function ed(e){var t=e.type;return t===`highlight`||t===`downplay`}function td(e){var t=id(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md=t((()=>{U(),Zl(),zo(),Y(),ul(),uu(),nd=1,rd={},id=J(),ad=J(),od=[`emphasis`,`blur`,`select`],sd=[`normal`,`emphasis`,`blur`,`select`],cd=`highlight`,ld=`downplay`,ud=`select`,dd=`unselect`,fd=`toggleSelect`,pd=`selectchanged`}));function hd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=gd.M,d=gd.C,f=gd.L,p=gd.R,m=gd.A,h=gd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=vd(t[0]*t[0]+t[1]*t[1]),y=vd(t[2]*t[2]+t[3]*t[3]),b=yd(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Zr(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Zr(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=_d[c];x[0]=n[o++],x[1]=n[o++],Zr(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var gd,_d,vd,yd,bd=t((()=>{jc(),ii(),gd=Ac.CMD,_d=[[],[],[]],vd=Math.sqrt,yd=Math.atan2}));function xd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Sd(e,t){return(e[0]*t[0]+e[1]*t[1])/(xd(e)*xd(t))}function Cd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Sd(e,t))}function wd(e,t,n,r,i,a,o,s,c,l,u){var d=Pd/180*c,f=Nd(d)*(e-n)/2+Md(d)*(t-r)/2,p=-1*Md(d)*(e-n)/2+Nd(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=jd(m),s*=jd(m));var h=(i===a?-1:1)*jd((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Nd(d)*g-Md(d)*_,y=(t+r)/2+Md(d)*g+Nd(d)*_,b=Cd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Cd(x,S);if(Sd(x,S)<=-1&&(C=Pd),Sd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Pd*1e6)/1e6;C=Pd*2+w%2*Pd}u.addData(l,v,y,o,s,b,C,d,a)}function Td(e){var t=new Ac;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Ac.CMD,c=e.match(Fd);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Id)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,wd(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,wd(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}function Ed(e){return e.setData!=null}function Dd(e,t){var n=Td(e),r=b({},t);return r.buildPath=function(e){var t=Ed(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){hd(n,e),this.dirtyShape()},r}function Od(e,t){return new Ld(Dd(e,t))}function kd(e,t){var n=Dd(e,t);return function(e){W(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Ld)}function Ad(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new ll(t);return o.createPathProxy(),o.buildPath=function(e){if(Ed(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var jd,Md,Nd,Pd,Fd,Id,Ld,Rd=t((()=>{G(),ul(),jc(),bd(),U(),jd=Math.sqrt,Md=Math.sin,Nd=Math.cos,Pd=Math.PI,Fd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Id=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Ld=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(ll)})),zd,Bd=t((()=>{G(),U(),Bs(),Ai(),zd=function(e){W(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=C(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=C(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Z(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Z.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(zs),zd.prototype.type=`group`})),Vd,Hd,Ud=t((()=>{G(),ul(),Vd=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Hd=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(ll),Hd.prototype.type=`circle`})),Wd,Gd,Kd=t((()=>{G(),ul(),Wd=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Gd=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Wd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(ll),Gd.prototype.type=`ellipse`}));function qd(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<cf))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Jd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/af(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*af(of(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,ee=D-_;return O*O+k*k>A*A+ee*ee&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function Yd(e){var t;if(N(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Xd(e,t){var n,r=of(t.r,0),i=of(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=rf(c-s),p=f>Qd&&f%Qd;if(p>cf&&(f=p),!(r>cf))e.moveTo(l,u);else if(f>Qd-cf)e.moveTo(l+r*ef(s),u+r*$d(s)),e.arc(l,u,r,s,c,!d),i>cf&&(e.moveTo(l+i*ef(c),u+i*$d(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*ef(s),ee=r*$d(s),j=i*ef(c),te=i*$d(c),M=f>cf;if(M){var N=t.cornerRadius;N&&(n=Yd(N),m=n[0],h=n[1],g=n[2],_=n[3]);var P=rf(r-i)/2;if(v=sf(P,g),y=sf(P,_),b=sf(P,m),x=sf(P,h),w=S=of(v,y),T=C=of(b,x),(S>cf||C>cf)&&(E=r*ef(c),D=r*$d(c),O=i*ef(s),k=i*$d(s),f<Zd)){var F=qd(A,ee,O,k,E,D,j,te);if(F){var ne=A-F[0],I=ee-F[1],L=E-F[0],re=D-F[1],ie=1/$d(tf((ne*L+I*re)/(af(ne*ne+I*I)*af(L*L+re*re)))/2),ae=af(F[0]*F[0]+F[1]*F[1]);w=sf(S,(r-ae)/(ie+1)),T=sf(C,(i-ae)/(ie-1))}}}if(!M)e.moveTo(l+A,u+ee);else if(w>cf){var oe=sf(g,w),se=sf(_,w),R=Jd(O,k,A,ee,r,oe,d),z=Jd(E,D,j,te,r,se,d);e.moveTo(l+R.cx+R.x0,u+R.cy+R.y0),w<S&&oe===se?e.arc(l+R.cx,u+R.cy,w,nf(R.y0,R.x0),nf(z.y0,z.x0),!d):(oe>0&&e.arc(l+R.cx,u+R.cy,oe,nf(R.y0,R.x0),nf(R.y1,R.x1),!d),e.arc(l,u,r,nf(R.cy+R.y1,R.cx+R.x1),nf(z.cy+z.y1,z.cx+z.x1),!d),se>0&&e.arc(l+z.cx,u+z.cy,se,nf(z.y1,z.x1),nf(z.y0,z.x0),!d))}else e.moveTo(l+A,u+ee),e.arc(l,u,r,s,c,!d);if(!(i>cf)||!M)e.lineTo(l+j,u+te);else if(T>cf){var oe=sf(m,T),se=sf(h,T),R=Jd(j,te,E,D,i,-se,d),z=Jd(A,ee,O,k,i,-oe,d);e.lineTo(l+R.cx+R.x0,u+R.cy+R.y0),T<C&&oe===se?e.arc(l+R.cx,u+R.cy,T,nf(R.y0,R.x0),nf(z.y0,z.x0),!d):(se>0&&e.arc(l+R.cx,u+R.cy,se,nf(R.y0,R.x0),nf(R.y1,R.x1),!d),e.arc(l,u,i,nf(R.cy+R.y1,R.cx+R.x1),nf(z.cy+z.y1,z.cx+z.x1),d),oe>0&&e.arc(l+z.cx,u+z.cy,oe,nf(z.y1,z.x1),nf(z.y0,z.x0),!d))}else e.lineTo(l+j,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf=t((()=>{U(),Zd=Math.PI,Qd=Zd*2,$d=Math.sin,ef=Math.cos,tf=Math.acos,nf=Math.atan2,rf=Math.abs,af=Math.sqrt,of=Math.max,sf=Math.min,cf=1e-4})),uf,df,ff=t((()=>{G(),ul(),lf(),uf=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),df=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new uf},t.prototype.buildPath=function(e,t){Xd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ll),df.prototype.type=`sector`})),pf,mf,hf=t((()=>{G(),ul(),pf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),mf=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new pf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ll),mf.prototype.type=`ring`}));function gf(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Qr(u,u,e[f]),$r(d,d,e[f]);Qr(u,u,r[0]),$r(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Fr(e[f]));continue}else c=e[f-1],l=e[f+1];zr(a,l,c),Gr(a,a,t);var h=qr(m,c),g=qr(m,l),_=h+g;_!==0&&(h/=_,g/=_),Gr(o,a,-h),Gr(s,a,g);var v=Lr([],m,o),y=Lr([],m,s);r&&($r(v,v,u),Qr(v,v,d),$r(y,y,u),Qr(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}var _f=t((()=>{ii()}));function vf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=gf(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var yf=t((()=>{_f()})),bf,xf,Sf=t((()=>{G(),ul(),yf(),bf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),xf=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new bf},t.prototype.buildPath=function(e,t){vf(e,t,!0)},t}(ll),xf.prototype.type=`polygon`})),Cf,wf,Tf=t((()=>{G(),ul(),yf(),Cf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),wf=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Cf},t.prototype.buildPath=function(e,t){vf(e,t,!1)},t}(ll),wf.prototype.type=`polyline`})),Ef,Df,Of,kf=t((()=>{G(),ul(),Tl(),Ef={},Df=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Of=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Df},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=xl(Ef,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(ll),Of.prototype.type=`line`}));function Af(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Pa:Na)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Pa:Na)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Va:Ba)(e.x1,e.cpx1,e.x2,t),(n?Va:Ba)(e.y1,e.cpy1,e.y2,t)]}var jf,Mf,Nf,Pf=t((()=>{G(),ul(),ii(),no(),jf=[],Mf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}(),Nf=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Mf},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Wa(n,o,i,u,jf),o=jf[1],i=jf[2],Wa(r,s,a,u,jf),s=jf[1],a=jf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(La(n,o,c,i,u,jf),o=jf[1],c=jf[2],i=jf[3],La(r,s,l,a,u,jf),s=jf[1],l=jf[2],a=jf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Af(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Af(this.shape,e,!0);return Kr(t,t)},t}(ll),Nf.prototype.type=`bezier-curve`})),Ff,If,Lf=t((()=>{G(),ul(),Ff=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),If=function(e){W(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ff},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(ll),If.prototype.type=`arc`})),Rf,zf=t((()=>{G(),ul(),Rf=function(e){W(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ll.prototype.getBoundingRect.call(this)},t}(ll)})),Bf,Vf=t((()=>{Bf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}()})),Hf,Uf=t((()=>{G(),Vf(),Hf=function(e){W(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Bf)})),Wf,Gf=t((()=>{G(),Vf(),Wf=function(e){W(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Bf)})),Kf,qf,Jf,Yf,Xf,Zf,Qf,$f,ep,tp=t((()=>{ai(),Ai(),Kf=Math.min,qf=Math.max,Jf=Math.abs,Yf=[0,0],Xf=[0,0],Zf=si(),Qf=Zf.minTv,$f=Zf.maxTv,ep=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new X;for(var n=0;n<2;n++)this._axes[n]=new X;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);X.sub(r[0],n[1],n[0]),X.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&X.set(t,0,0),Zf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Zf.negativeSize&&X.copy(t,r?Zf.useDir?Zf.dirMinTv:Qf:$f),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Yf),e._getProjMinMaxOnAxis(a,t._corners,Xf),Zf.negativeSize||Yf[1]<Xf[0]||Yf[0]>Xf[1]){if(i=!1,Zf.negativeSize||n)return i;var s=Jf(Xf[0]-Yf[1]),c=Jf(Yf[0]-Xf[1]);Kf(s,c)>$f.len()&&(s<c?X.scale($f,o,-s*r):X.scale($f,o,c*r))}else if(!n){var s=Jf(Xf[0]-Yf[1]),c=Jf(Yf[0]-Xf[1]);(Zf.useDir||Kf(s,c)<Qf.len())&&((s<c||!Zf.bidirectional)&&(X.scale(Qf,o,s*r),Zf.useDir&&Zf.calcDirMTV()),(s>=c||!Zf.bidirectional)&&(X.scale(Qf,o,-c*r),Zf.useDir&&Zf.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Kf(l,o),s=qf(l,s)}n[0]=o+Zf.touchThreshold,n[1]=s-Zf.touchThreshold,Zf.negativeSize=n[1]<n[0]},e}()})),np=t((()=>{})),rp,ip,ap=t((()=>{G(),Xs(),Ai(),np(),rp=[],ip=function(e){W(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Z(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(rp)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(qs)}));function op(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=B(r.duration,200),u=B(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),P(d)&&(d=d(n,i)),P(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function sp(e,t,n,r,i,a,o){var s=!1,c;P(i)?(o=a,a=i,i=null):L(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=op(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function cp(e,t,n,r,i,a){sp(`update`,e,t,n,r,i,a)}function lp(e,t,n,r,i,a){sp(`enter`,e,t,n,r,i,a)}function up(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function dp(e,t,n,r,i,a){up(e)||sp(`leave`,e,t,n,r,i,a)}function fp(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),dp(e,{style:{opacity:0}},t,n,r)}function pp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||fp(e,t,n,r)}):fp(e,t,n,r)}var mp=t((()=>{U(),Y(),J()})),hp=n({Arc:()=>If,BezierCurve:()=>Nf,BoundingRect:()=>Z,Circle:()=>Hd,CompoundPath:()=>Rf,Ellipse:()=>Gd,Group:()=>zd,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>_l,IncrementalDisplayable:()=>ip,Line:()=>Of,LinearGradient:()=>Hf,OrientedBoundingRect:()=>ep,Path:()=>ll,Point:()=>X,Polygon:()=>xf,Polyline:()=>wf,RadialGradient:()=>Wf,Rect:()=>Ol,Ring:()=>mf,Sector:()=>df,Text:()=>Wl,WH:()=>nm,XY:()=>tm,applyTransform:()=>Dp,calcZ2Range:()=>Jp,clipPointsByRect:()=>Mp,clipRectByRect:()=>Np,createIcon:()=>Pp,decomposeTransform:()=>Qp,ensureCopyRect:()=>Gp,ensureCopyTransform:()=>Kp,expandOrShrinkRect:()=>zp,extendPath:()=>_p,extendShape:()=>gp,getCurrentCanvasPainter:()=>$p,getShapeClass:()=>yp,getTransform:()=>Ep,groupTransition:()=>jp,initProps:()=>lp,isBoundingRectAxisAligned:()=>Wp,isElementRemoved:()=>up,lineLineIntersect:()=>Ip,linePolygonIntersect:()=>Fp,makeImage:()=>xp,makePath:()=>bp,mergePath:()=>im,payloadDisableAnimation:()=>Zp,registerShape:()=>vp,removeElement:()=>dp,removeElementWithFadeOut:()=>pp,resizePath:()=>Cp,retrieveZInfo:()=>qp,setTooltipConfig:()=>Vp,subPixelOptimize:()=>am,subPixelOptimizeLine:()=>wp,subPixelOptimizeRect:()=>Tp,transformDirection:()=>Op,traverseElements:()=>Up,traverseUpdateZ:()=>Yp,updateProps:()=>cp});function gp(e){return ll.extend(e)}function _p(e,t){return rm(e,t)}function vp(e,t){em[e]=t}function yp(e){if(em.hasOwnProperty(e))return em[e]}function bp(e,t,n,r){var i=Od(e,t);return n&&(r===`center`&&(n=Sp(n,i.getBoundingRect())),Cp(i,n)),i}function xp(e,t,n){var r=new _l({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Sp(t,i))}}});return r}function Sp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}function Cp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function wp(e,t){return xl(e,e,{lineWidth:t}),e}function Tp(e,t){return Sl(e,e,t),e}function Ep(e,t){for(var n=Cr([]);e&&e!==t;)Tr(n,e.getLocalTransform(),n),e=e.parent;return n}function Dp(e,t,n){return t&&!E(t)&&(t=Ta.getLocalTransform(t)),n&&(t=kr([],t)),Zr([],e,t)}function Op(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:At(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:At(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Dp(a,t,n),At(a[0])>At(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function kp(e){return!e.isGroup}function Ap(e){return e.shape!=null}function jp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){kp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Ap(e)&&(t.shape=_(e.shape)),t}var a=r(e);t.traverse(function(e){if(kp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),cp(e,r,n,Yl(e).dataIndex)}}})}function Mp(e,t){return O(e,function(e){var n=e[0];n=kt(n,t.x),n=Ot(n,t.x+t.width);var r=e[1];return r=kt(r,t.y),r=Ot(r,t.y+t.height),[n,r]})}function Np(e,t){var n=kt(e.x,t.x),r=Ot(e.x+e.width,t.x+t.width),i=kt(e.y,t.y),a=Ot(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Pp(e,t,n){var r=b({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),S(i,n),new _l(r)):bp(e.replace(`path://`,``),r,n,`center`)}function Fp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Ip(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ip(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Lp(u,d,c,l);if(Rp(f))return!1;var p=e-i,m=t-a,h=Lp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Lp(p,m,u,d)/f;return!(g<0||g>1)}function Lp(e,t,n,r){return e*r-n*t}function Rp(e){return e<=1e-6&&e>=-1e-6}function zp(e,t,n,r,i){return t==null?e:(I(t)?om[0]=om[1]=om[2]=om[3]=t:(om[0]=t[0],om[1]=t[1],om[2]=t[2],om[3]=t[3]),r&&(om[0]=kt(0,om[0]),om[1]=kt(0,om[1]),om[2]=kt(0,om[2]),om[3]=kt(0,om[3])),n&&(om[0]=-om[0],om[1]=-om[1],om[2]=-om[2],om[3]=-om[3]),Bp(e,om,`x`,`width`,3,1,i&&i[0]||0),Bp(e,om,`y`,`height`,0,2,i&&i[1]||0),e)}function Bp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=kt(0,Ot(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:At(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Vp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=F(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&D(j(c),function(e){be(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Yl(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:S({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Hp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Up(e,t){if(e)if(N(e))for(var n=0;n<e.length;n++)Hp(e[n],t);else Hp(e,t)}function Wp(e){return!e||At(e[1])<sm&&At(e[2])<sm||At(e[0])<sm&&At(e[3])<sm}function Gp(e,t){return e?Z.copy(e,t):t.clone()}function Kp(e,t){return t?wr(e||Sr(),t):void 0}function qp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Jp(e){var t=-1/0,n=1/0;Hp(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Yp(e,t,n){Xp(e,t,n,-1/0)}function Xp(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=kt(Xp(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=kt(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function Zp(e){return e.animation={duration:0},e}function Qp(e,t){return t?wr(cm.transform,t):Cr(cm.transform),cm.decomposeTransform(),va(e,cm),e}function $p(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}var em,tm,nm,rm,im,am,om,sm,cm,lm=t((()=>{Rd(),jr(),ii(),ul(),Oa(),vl(),Bd(),Jl(),Ud(),Kd(),ff(),hf(),Sf(),Tf(),kl(),kf(),Pf(),Lf(),zf(),Uf(),Gf(),Ai(),tp(),ai(),ap(),Tl(),U(),Zl(),mp(),q(),em={},tm=[`x`,`y`],nm=[`width`,`height`],rm=kd,im=Ad,am=Cl,om=[0,0,0,0],sm=1e-5,cm=new Ta,cm.transform=Sr(),vp(`circle`,Hd),vp(`ellipse`,Gd),vp(`sector`,df),vp(`ring`,mf),vp(`polygon`,xf),vp(`polyline`,wf),vp(`rect`,Ol),vp(`line`,Of),vp(`bezierCurve`,Nf),vp(`arc`,If)}));function um(e,t){for(var n=0;n<od.length;n++){var r=od[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function dm(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=P(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<od.length;l++){var u=od[l],d=t[u];c[u]=B(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function fm(e,t,n,r){n||=xm;for(var i=e instanceof Wl,a=!1,o=0;o<sd.length;o++){var s=t[sd[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Wl,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=dm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=mm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(hm(u,n,!1));for(var o=0;o<od.length;o++){var p=od[o],s=t[p];if(s){var m=c.ensureState(p),h=!!B(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=mm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=hm(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(Tm(c).setLabelText=function(e){var r=dm(n,t,e);um(c,r)})}else c&&(c.ignore=!0);e.dirty()}function pm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<od.length;r++){var i=od[r];n[i]=e.getModel([i,t])}return n}function mm(e,t,n,r,i){var a={};return gm(a,e,n,r,i),t&&b(a,t),a}function hm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=B(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function gm(e,t,n,r,i){n||=xm;var a=t.ecModel,o=a&&a.option.textStyle,s=_m(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=B(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);vm(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=I(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Em.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=de(_),h.__marginType=Em.textMargin)}vm(e,t,o,null,null,n,r,i,!0,!1)}function _m(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||xm).rich;if(n){t||={};for(var r=j(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}function vm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||xm;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=B(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=B(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=B(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=B(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<Sm.length;_++){var v=Sm[_],y=i!==!1&&r?le(t.getShallow(v),r.getShallow(v),n[v]):B(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Cm.length;_++){var v=Cm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<wm.length;_++){var v=wm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function ym(e,t){var n=t&&t.getModel(`textStyle`);return pe([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}function bm(e,t,n,r,i){var a=Tm(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=B(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=wn(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,um(e,dm({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?lp:cp)(e,{percent:1},r,t,null,l)}var xm,Sm,Cm,wm,Tm,Em,Dm=t((()=>{Jl(),U(),md(),Y(),lm(),xm={},Sm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Cm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],wm=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Tm=J(),Em={minMargin:1,textMargin:2}})),Om,km,Am,jm,Mm=t((()=>{Dm(),Jl(),Om=[`textStyle`,`color`],km=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Am=new Wl,jm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Om):null)},e.prototype.getFont=function(){return ym({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<km.length;n++)t[km[n]]=this.getShallow(km[n]);return Am.useStyle(t),Am.update(),Am.getBoundingRect()},e}()})),Nm,Pm,Fm,Im=t((()=>{or(),Nm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Pm=ar(Nm),Fm=function(){function e(){}return e.prototype.getLineStyle=function(e){return Pm(this,e)},e}()})),Lm,Rm,zm,Bm=t((()=>{or(),Lm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Rm=ar(Lm),zm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Rm(this,e,t)},e}()})),Vm,Hm=t((()=>{Ze(),ir(),ur(),Mm(),Im(),Bm(),U(),Vm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){v(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(_(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!K.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}(),qn(Vm),Xn(Vm),T(Vm,Fm),T(Vm,zm),T(Vm,lr),T(Vm,jm)}));function Um(e){return[e||``,qm++].join(`_`)}function Wm(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Wn(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Wn(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Gm(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(D(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),D(u.successor,d?p:f)}D(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return D(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),D(c,function(e){C(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);C(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return D(e,function(e){C(t,e)>=0&&n.push(e)}),n}}function Km(e,t){return v(v({},e,!0),t,!0)}var qm,Jm=t((()=>{U(),ir(),qm=Math.round(Math.random()*10)}));function Ym(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Zm);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Ym(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Xm(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Ym(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Ym(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var Zm,Qm=t((()=>{Zm=Math.log(2)}));function $m(e,t,n,r,i){return th(sh,t,r,i,!0)&&th(e,n,sh[0],sh[1])}function eh(e,t){e&&n(e),t&&n(t);function n(e){var t=e[oh];t&&(t.clearMarkers&&t.clearMarkers(),delete e[oh])}}function th(e,t,n,r,i){if(t.getBoundingClientRect&&K.domSupported&&!ih(t)){var a=t[oh]||(t[oh]={}),o=rh(nh(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function nh(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){D(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function rh(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Xm(s,o):Xm(o,s))}function ih(e){return e.nodeName.toUpperCase()===`CANVAS`}function ah(e){return e==null?``:(e+``).replace(ch,function(e,t){return lh[t]})}var oh,sh,ch,lh,uh=t((()=>{Ze(),Qm(),U(),oh=`___zrEVENTSAVED`,sh=[],ch=/([&<>"'])/g,lh={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`}})),dh,fh=t((()=>{dh={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:`. `}}}}})),ph,mh=t((()=>{ph={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:``}}}}}));function hh(e,t){e=e.toUpperCase(),Ch[e]=new Vm(t),Sh[e]=t}function gh(e){if(F(e)){var t=Sh[e.toUpperCase()]||{};return e===yh||e===bh?_(t):v(_(t),_(Sh[xh]),!1)}else return v(_(e),_(Sh[xh]),!1)}function _h(e){return Ch[e]}function vh(){return Ch[xh]}var yh,bh,xh,Sh,Ch,wh,Th=t((()=>{Hm(),Ze(),fh(),mh(),U(),yh=`ZH`,bh=`EN`,xh=bh,Sh={},Ch={},wh=K.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||xh).toUpperCase().indexOf(yh)>-1?yh:xh}():xh,hh(bh,dh),hh(yh,ph)}));function Eh(){return Ah}function Dh(e,t){var n=Eh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Oh(e){var t=e.brk;return t?t.breaks:[]}function kh(e){var t=e.brk;return t?t.hasBreaks():!1}var Ah,jh=t((()=>{Ah=null}));function Mh(e){return!F(e)&&!P(e)?Nh(e):e}function Nh(e){e||={};var t={},n=!0;return D(fg,function(t){n&&=e[t]==null}),D(fg,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=fg[s],l=L(a)&&!N(a)?a[c]:a,u=void 0;N(l)?(u=l.slice(),o=u[0]||``):F(l)?(o=l,u=[o]):(o==null?o=cg[r]:sg[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Ph(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Fh(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Ih(e){return e===Fh(e)}function Lh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Rh(e,t,n,r){var i=mt(e),a=i[Hh(n)](),o=i[Uh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Wh(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Gh(n)](),d=(u-1)%12+1,f=i[Kh(n)](),p=i[qh(n)](),m=i[Jh(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Vm?r:_h(r||wh)||vh()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Ph(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Ph(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Ph(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Ph(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Ph(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Ph(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Ph(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Ph(m,3)).replace(/{S}/g,m+``)}function zh(e,t,n,r,i){var a=null;if(F(n))a=n;else if(P(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Eh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Bh(e.value,i);a=n[u][u][0]}}return Rh(new Date(e.value),a,i,r)}function Bh(e,t){var n=mt(e),r=n[Uh(t)]()+1,i=n[Wh(t)](),a=n[Gh(t)](),o=n[Kh(t)](),s=n[qh(t)](),c=n[Jh(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Vh(e,t,n){switch(t){case`year`:e[Xh(n)](0);case`month`:e[Zh(n)](1);case`day`:e[Qh(n)](0);case`hour`:e[$h(n)](0);case`minute`:e[eg(n)](0);case`second`:e[tg(n)](0)}return e}function Hh(e){return e?`getUTCFullYear`:`getFullYear`}function Uh(e){return e?`getUTCMonth`:`getMonth`}function Wh(e){return e?`getUTCDate`:`getDate`}function Gh(e){return e?`getUTCHours`:`getHours`}function Kh(e){return e?`getUTCMinutes`:`getMinutes`}function qh(e){return e?`getUTCSeconds`:`getSeconds`}function Jh(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Yh(e){return e?`setUTCFullYear`:`setFullYear`}function Xh(e){return e?`setUTCMonth`:`setMonth`}function Zh(e){return e?`setUTCDate`:`setDate`}function Qh(e){return e?`setUTCHours`:`setHours`}function $h(e){return e?`setUTCMinutes`:`setMinutes`}function eg(e){return e?`setUTCSeconds`:`setSeconds`}function tg(e){return e?`setUTCMilliseconds`:`setMilliseconds`}var ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg=t((()=>{U(),q(),Th(),Hm(),jh(),ng=1e3,rg=ng*60,ig=rg*60,ag=ig*24,og=ag*365,sg={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})/},cg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},lg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,ug=`{yyyy}-{MM}-{dd}`,dg={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:ug,hour:ug+` `+cg.hour,minute:ug+` `+cg.minute,second:ug+` `+cg.second,millisecond:lg},fg=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],pg=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`]}));function hg(e,t,n,r,i,a,o,s){return new Wl({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}var gg=t((()=>{lm()}));function _g(e){if(!xt(e))return F(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function vg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}function yg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&pe(e)?e:`-`}function a(e){return Tt(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?mt(e):e;if(!isNaN(+c))return Rh(c,r,n);if(s)return`-`}if(t===`ordinal`)return ne(e)?i(e):I(e)&&a(e)?e+``:`-`;var l=bt(e);return a(l)?_g(l):ne(e)?i(e):typeof e==`boolean`?e+``:`-`}function bg(e,t,n){N(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Dg[a];e=e.replace(Og(o),Og(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Og(Dg[c],s),n?ah(l):l)}return e}function xg(e,t){var n=F(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+ah(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+ah(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Sg(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
9
+ yyyy`);var r=mt(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,Ph(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,Ph(a%100+``,2)).replace(`dd`,Ph(s,2)).replace(`d`,s).replace(`hh`,Ph(c,2)).replace(`h`,c).replace(`mm`,Ph(l,2)).replace(`m`,l).replace(`ss`,Ph(u,2)).replace(`s`,u).replace(`SSS`,Ph(d,3)),e}function Cg(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function wg(e,t){return t||=`transparent`,F(e)?e:L(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Tg(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Eg,Dg,Og,kg=t((()=>{U(),uh(),q(),mg(),ha(),gg(),Eg=de,Dg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Og=function(e,t){return`{`+e+(t??``)+`}`}}));function Ag(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Pg.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}var jg,Mg,Ng,Pg,Fg=t((()=>{U(),jg={},Mg={},Ng=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(jg,!0),this._normalMasterList=n(Mg,!1);function n(n,r){var i=[];return D(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){D(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){jg[e]=t;return}Mg[e]=t},e.get=function(e){return Mg[e]||jg[e]},e}(),Pg=V()}));function Ig(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}function Lg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Rg(e,t,n){n=Eg(n||0);var r=t.width,i=t.height,a=zt(e.left,r),o=zt(e.top,i),s=zt(e.right,r),c=zt(e.bottom,i),l=zt(e.width,r),u=zt(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Z((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function zg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Ag(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Yg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Yg.point,s=u,i=o.dataToPoint(l))}return a??=Yg.rect,a===Yg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function Bg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Z(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Rg(S({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Vg(e){var t=e.layoutMode||e.constructor.layoutMode;return L(t)?t:t?{type:t}:null}function Hg(e,t,n){var r=n&&n.ignoreSize;!N(r)&&(r=[r,r]);var i=o(qg[0],0),a=o(qg[1],1);c(qg[0],e,i),c(qg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Gg(n,function(t){c[t]=e[t]}),Gg(n,function(e){be(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!be(a,f)&&be(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){Gg(e,function(e){t[e]=n[e]})}}function Ug(e){return Wg({},e)}function Wg(e,t){return t&&e&&Gg(Kg,function(n){be(t,n)&&(e[n]=t[n])}),e}var Gg,Kg,qg,Jg,Yg,Xg=t((()=>{U(),Ai(),q(),kg(),Fg(),Gg=D,Kg=[`left`,`right`,`top`,`bottom`,`width`,`height`],qg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]],Jg=Ig,M(Ig,`vertical`),M(Ig,`horizontal`),Yg={rect:1,point:2}}));function Zg(e){var t=[];return D($g.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=O(t,function(e){return Wn(e).main}),e!==`dataset`&&C(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Qg,$g,e_=t((()=>{G(),U(),Hm(),Jm(),ir(),Y(),Xg(),Qg=J(),$g=function(e){W(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Um(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vg(this),r=n?Ug(e):{};v(e,t.getTheme().get(this.mainType)),v(e,this.getDefaultOption()),n&&Hg(e,r,n)},t.prototype.mergeOption=function(e,t){v(this.option,e,!0);var n=Vg(this);n&&Hg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Kn(e))return e.defaultOption;var t=Qg(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=v(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return yn(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Lg(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}(Vm),Yn($g,Vm),$n($g),Wm($g),Gm($g,Zg)}));function t_(e,t,n,r){return r_(e,o_,Xt(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function n_(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function r_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:n_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function i_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var a_,o_,s_,c_=t((()=>{Y(),a_=J(),o_=J(),s_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Xt(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return r_(this,a_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){i_(this,a_)},e}()}));function l_(e){g_(e).datasetMap=V()}function u_(e,t,n){var r={},i=d_(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=g_(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),D(e,function(t,n){var i=L(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});D(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function d_(e){if(!e.get(`data`,!0))return yn(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Hn).models[0]}function f_(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:yn(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Hn).models}function p_(e,t){return m_(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function m_(e,t,n,r,i,a){var o,s=5;if(ie(e))return h_.Not;var c,l;if(r){var u=r[a];L(u)?(c=u.name,l=u.type):F(u)&&(c=u)}if(l!=null)return l===`ordinal`?h_.Must:h_.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return h_.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return h_.Not;var f=_[c];if(!f||ie(f))return h_.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Qt(g);if(!N(y))return h_.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=F(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?h_.Might:h_.Not;if(t&&e!==`-`)return h_.Must}return h_.Not}var h_,g_,__=t((()=>{Y(),U(),ou(),h_={Must:1,Might:2,Not:3},g_=J()}));function v_(e){return e instanceof O_}function y_(e,t,n){n||=S_(e);var r=t.seriesLayoutBy,i=C_(e,n,r,t.sourceHeader,t.dimensions);return new O_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:_(t)})}function b_(e){return new O_({data:e,sourceFormat:ie(e)?ru:$l})}function x_(e){return new O_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:_(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function S_(e){var t=iu;if(ie(e))t=ru;else if(N(e)){e.length===0&&(t=eu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(N(i)||ie(i)){t=eu;break}else if(L(i)){t=tu;break}}}}else if(L(e)){for(var a in e)if(be(e,a)&&E(e[a])){t=nu;break}}return t}function C_(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:T_(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?E_(function(e){e!=null&&e!==`-`&&(F(e)?o??=1:o=0)},n,s,10):o=I(r)?r:+!!r,!i&&o===1&&(i=[],E_(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=w_(e);else if(t===`keyedColumns`)i||(i=[],D(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Qt(e[0]);a=N(c)&&c.length||1}return{startIndex:o,dimensionsDefine:T_(i),dimensionsDetectedCount:a}}function w_(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return j(n)}function T_(e){if(e){var t=V();return O(e,function(e,n){e=L(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function E_(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function D_(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var O_,k_=t((()=>{U(),ou(),Y(),__(),O_=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&p_(this,n)===h_.Must&&(r.type=`ordinal`)}}return e}()}));function A_(e,t){return W_[N_(e,t)]}function j_(e,t){return K_[N_(e,t)]}function M_(e){return J_[e]}function N_(e,t){return e===`arrayRows`?e+`_`+t:e}function P_(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return M_(a)(r,o,s)}else{var c=r;return a===`original`&&(c=Qt(r)),c}}}}var F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_=t((()=>{U(),Y(),k_(),ou(),Jt(),V_=function(){function e(e,t){var n=v_(e)?e:b_(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),B_(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;B_=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=z_[N_(o,s)];b(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=H(A_(o,s),null,i,c,l),e.count=H(j_(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};z_=(e={},e[eu+`_`+au]={pure:!0,appendData:i},e[eu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[tu]={pure:!0,appendData:i},e[nu]={pure:!0,appendData:function(e){var t=this._data;D(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[$l]={appendData:i},e[ru]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),H_=function(e){N(e)||Ut(`series.data or dataset.source must be an array.`)},F_={},F_[eu+`_`+au]=H_,F_[eu+`_row`]=H_,F_[tu]=H_,F_[nu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Ut(`dimension name must not be null/undefined.`)},F_[$l]=H_,U_=function(e,t,n,r){return e[r]},W_=(I_={},I_[eu+`_`+au]=function(e,t,n,r){return e[r+t]},I_[eu+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},I_[tu]=U_,I_[nu]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},I_[$l]=U_,I_),G_=function(e,t,n){return e.length},K_=(L_={},L_[eu+`_`+au]=function(e,t,n){return Math.max(0,e.length-t)},L_[eu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},L_[tu]=G_,L_[nu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},L_[$l]=G_,L_),q_=function(e,t,n){return e[t]},J_=(R_={},R_[eu]=q_,R_[tu]=function(e,t,n){return e[n]},R_[nu]=q_,R_[$l]=function(e,t,n){var r=Qt(e);return r instanceof Array?r[t]:r},R_[ru]=q_,R_)}));function X_(e){var t,n;return L(e)?e.type&&(n=e):t=e,{text:t,frag:n}}var Z_,Q_,$_=t((()=>{U(),Y_(),kg(),Z_=/\{@(.+?)\}/g,Q_=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&N(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),P(i))return s.status=t,s.dimensionIndex=r,i(s);if(F(i))return bg(i,s).replace(Z_,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=P_(o,e,i);if(a&&N(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return P_(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}()}));function ev(e){return new tv(e)}var tv,nv,rv=t((()=>{U(),tv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(N(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){nv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:nv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),N(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),nv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}()}));function iv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!I(e)&&e!=null&&e!==`-`&&(e=+mt(e)),e==null||e===``?NaN:Number(e))}function av(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function ov(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var sv,cv,lv=t((()=>{q(),U(),Jt(),V({number:function(e){return parseFloat(e)},time:function(e){return+mt(e)},trim:function(e){return F(e)?pe(e):e}}),sv={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},function(){function e(e,t){I(t)||Wt(``),this._opFn=sv[e],this._rvalFloat=bt(t)}return e.prototype.evaluate=function(e){return I(e)?this._opFn(e,this._rvalFloat):this._opFn(bt(e),this._rvalFloat)},e}(),cv=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=I(e)?e:bt(e),r=I(t)?t:bt(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=F(e),s=F(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=bt(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=bt(e)===this._rvalFloat)}return this._isEQ?t:!t},e}()}));function uv(e,t){var n=new yv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Wt(``);var o=[],s={},c=e.dimensionsDefine;if(c)D(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(be(s,n)&&Wt(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=A_(i,au);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=H(dv,null,e)),n.cloneRawData=H(fv,null,e),n.count=H(j_(i,au),null,r,a,o);var d=M_(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=H(pv,null,o,s),n.cloneAllDimensionInfo=H(mv,null,o),n}function dv(e){var t=e.sourceFormat;return vv(t)||Wt(``),e.data}function fv(e){var t=e.sourceFormat,n=e.data;if(vv(t)||Wt(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(b({},n[i]));return r}}function pv(e,t,n){if(n!=null){if(I(n)||!isNaN(n)&&!be(t,n))return e[n];if(be(t,n))return t[n]}}function mv(e){return _(e)}function hv(e){e=_(e);var t=e.type,n=``;t||Wt(n);var r=t.split(`:`);r.length!==2&&Wt(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,bv.set(t,e)}function gv(e,t,n){var r=Xt(e),i=r.length;i||Wt(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=_v(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function _v(e,t,n,r){var i=``;t.length||Wt(i),L(e)||Wt(i);var a=e.type,o=bv.get(a);o||Wt(i);var s=O(t,function(e){return uv(e,o)});return O(Xt(o.transform({upstream:s[0],upstreamList:s,config:_(e.config)})),function(e,n){var r=``;L(e)||Wt(r),e.data||Wt(r),vv(S_(e.data))||Wt(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:au,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:au,sourceHeader:0,dimensions:e.dimensions};return y_(e.data,i,null)})}function vv(e){return e===`arrayRows`||e===`objectRows`}var yv,bv,xv=t((()=>{ou(),Y(),U(),Y_(),lv(),Jt(),k_(),yv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return iv(e,t)},e}(),bv=V()}));function Sv(e){return e>65535?Tv:Ev}function Cv(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function wv(e,t,n,r,i){var a=kv[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Tv,Ev,Dv,Ov,kv,Av,jv,Mv=t((()=>{U(),ou(),lv(),k_(),Y(),q(),Tv=typeof Uint32Array>`u`?Array:Uint32Array,Ev=typeof Uint16Array>`u`?Array:Uint16Array,Dv=typeof Int32Array>`u`?Array:Int32Array,Ov=typeof Float64Array>`u`?Array:Float64Array,kv={float:Ov,int:Dv,ordinal:Array,number:Array,time:Ov},jv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=V()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Av[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],D_(r),this._dimensions=O(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new kv[t||`float`](this._rawCount),this._rawExtent[i]=Tn(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Tn());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];wv(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Av.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=O(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Tn()),wv(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),at(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Sv(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Sv(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=j(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Sv(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Tn();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Sv(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Sv(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Tn(),d=new(Sv(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=Tn();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=av(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||ov(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&k(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Cv(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=_(this._extent),e._rawExtent=_(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return iv(e[r],this._dimensions[r])}Av={arrayRows:e,objectRows:function(e,t,n,r){return iv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return iv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}()}));function Nv(e){e.option.transform&&me(e.option.transform)}function Pv(e){return e.mainType===`series`}function Fv(e){throw Error(e)}var Iv,Lv=t((()=>{U(),k_(),ou(),__(),xv(),Mv(),Y_(),Iv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Pv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ie(o)?ru:$l,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=B(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=B(u.sourceHeader,d.sourceHeader),m=B(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[y_(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[y_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Fv(``);var i,a=[],o=[];return D(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Fv(``),a.push(t),o.push(e._getVersionSign())}),n?i=gv(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[x_(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Pv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new jv,o.initData(new V_(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Pv(e)){var t=d_(e);return t?[t.getSourceManager()]:[]}else return O(f_(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Pv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}()})),Q,Rv,zv,Bv=t((()=>{for(var e in U(),zo(),Q={color:{},darkColor:{},size:{}},Rv=Q.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)`},b(Rv,{primary:Rv.neutral80,secondary:Rv.neutral70,tertiary:Rv.neutral60,quaternary:Rv.neutral50,disabled:Rv.neutral20,border:Rv.neutral30,borderTint:Rv.neutral20,borderShade:Rv.neutral40,background:Rv.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Rv.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Rv.neutral70,axisLineTint:Rv.neutral40,axisTick:Rv.neutral70,axisTickMinor:Rv.neutral60,axisLabel:Rv.neutral70,axisSplitLine:Rv.neutral15,axisMinorSplitLine:Rv.neutral05}),Rv)Rv.hasOwnProperty(e)&&(zv=Rv[e],e===`theme`?Q.darkColor.theme=Rv.theme.slice():e===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:e.indexOf(`accent`)===0?Q.darkColor[e]=Do(zv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[e]=Do(zv,null,function(e){return e*.9},function(e){return 1-e**1.5}));Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50}}));function Vv(e){var t=e.lineHeight;return t==null?iy:`line-height:`+ah(t+``)+`px`}function Hv(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+ah(r+``)+`px;color:`+ah(n)+`;font-weight:`+ah(i+``),valueStyle:`font-size:`+ah(o+``)+`px;color:`+ah(a)+`;font-weight:`+ah(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}function Uv(e,t){return t.type=e,t}function Wv(e){return e.type===`section`}function Gv(e){return Wv(e)?qv:Jv}function Kv(e){if(Wv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return D(e.blocks,function(e){var n=Kv(e);n>=t&&(t=n+ +(r&&(!n||Wv(e)&&!e.noHeader)))}),t}return 0}function qv(e,t,n,r){var i=t.noHeader,a=Xv(Kv(t)),o=[],s=t.blocks||[];fe(!s||N(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(be(l,c)){var u=new cv(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}D(s,function(n,i){var s=t.valueFormatter,c=Gv(n)(s?b(b({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):Zv(r,o.join(``),i?n:a.html);if(i)return d;var f=yg(t.header,`ordinal`,e.useUTC),p=Hv(r,e.renderMode).nameStyle,m=Vv(r);return e.renderMode===`richText`?ey(e,f,p)+a.richText+d:Zv(r,`<div style="`+p+`;`+m+`;">`+ah(f)+`</div>`+d,n)}function Jv(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=N(e)?e:[e],O(e,function(e,t){return yg(e,N(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:yg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Hv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ey(e,f,v))+(o?``:ty(e,m,h,g,y)):Zv(r,(s?``:d)+(a?``:Qv(f,!s,v))+(o?``:$v(m,h,g,y)),n)}}function Yv(e,t,n,r,i,a){if(e)return Gv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Xv(e){return{html:ay[e],richText:oy[e]}}function Zv(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Vv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Qv(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+ah(e)+`</span>`}function $v(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=N(e)?e:[e],`<span style="`+i+`;`+r+`">`+O(e,function(e){return ah(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function ey(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ty(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(` `):t,a)}function ny(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return wg(n)}function ry(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var iy,ay,oy,sy,cy=t((()=>{kg(),U(),lv(),q(),Bv(),iy=`line-height:1`,ay=[0,10,20,30],oy=[``,`
3
10
  `,`
4
11
 
5
12
  `,`
6
13
 
7
14
 
8
- `];function Ur(r,e){return e.type=r,e}function qo(r){return r.type==="section"}function Ch(r){return qo(r)?x_:b_}function Dh(r){if(qo(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return x(r.blocks,function(a){var i=Dh(a);i>=e&&(e=i+ +(n&&(!i||qo(a)&&!a.noHeader)))}),e}return 0}function x_(r,e,t,n){var a=e.noHeader,i=T_(Dh(e)),o=[],s=e.blocks||[];dt(!s||R(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ct(u,l)){var f=new Jm(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}x(s,function(p,g){var m=e.valueFormatter,y=Ch(p)(m?k(k({},r),{valueFormatter:m}):r,p,g>0?i.html:0,n);y!=null&&o.push(y)});var c=r.renderMode==="richText"?o.join(i.richText):jo(n,o.join(""),a?t:i.html);if(a)return c;var h=$o(e.header,"ordinal",r.useUTC),v=Mh(n,r.renderMode).nameStyle,d=wh(n);return r.renderMode==="richText"?Ih(r,h,v)+i.richText+c:jo(n,'<div style="'+v+";"+d+';">'+He(h)+"</div>"+c,t)}function b_(r,e,t,n){var a=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=R(S)?S:[S],B(S,function(b,T){return $o(b,R(v)?v[T]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||V.color.secondary,a),h=i?"":$o(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.rawDataIndex),p=!s||!i,g=!s&&i,m=Mh(n,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":c)+(i?"":Ih(r,h,y))+(o?"":C_(r,d,p,g,_)):jo(n,(s?"":c)+(i?"":w_(h,!s,y))+(o?"":M_(d,p,g,_)),t)}}function Bu(r,e,t,n,a,i){if(r){var o=Ch(r),s={useUTC:a,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function T_(r){return{html:__[r],richText:S_[r]}}function jo(r,e,t){var n='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",i=wh(r);return'<div style="'+a+";"+i+';">'+e+n+"</div>"}function w_(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+He(r)+"</span>"}function M_(r,e,t,n){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return r=R(r)?r:[r],'<span style="'+i+";"+n+'">'+B(r,function(o){return He(o)}).join("&nbsp;&nbsp;")+"</span>"}function Ih(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function C_(r,e,t,n,a){var i=[a],o=n?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(R(e)?e.join(" "):e,i)}function D_(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return On(n)}function Ah(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var ji=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=Qc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var a=n==="richText"?this._generateStyleName():null,i=yh({color:t,type:e,renderMode:n,markerId:a});return P(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};R(t)?x(t,function(i){return k(n,i)}):k(n,t);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+e+"}"},r})();function I_(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=R(s),u=D_(e,t),f,c,h,v;if(o>1||l&&!o){var d=A_(s,e,t,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);v=f=Fa(a,t,i[0]),c=p.type}else v=f=l?s[0]:s;var g=nv(e),m=g&&e.name||"",y=a.getName(t),_=n?m:y;return Ur("section",{header:m,noHeader:n||!g,sortParam:v,blocks:[Ur("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Yn(_),value:f,valueType:c,rawDataIndex:a.getRawIndex(t)})].concat(h||[])})}function A_(r,e,t,n,a){var i=e.getData(),o=Mn(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?x(n,function(c){f(Fa(i,t,c),c)}):x(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Ur("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Vt=Z();function ia(r,e){return r.getName(e)||r.getId(e)}var L_="__universalTransitionEnabled",pt=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Tn({count:E_,reset:k_}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Vt(this).sourceManager=new Th(this);i.prepareSource();var o=this.getInitialData(t,a);Fu(o,this),this.dataTask.context.data=o,Vt(this).dataBeforeProcessed=o,zu(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var a=Ua(this),i=a?Sh(t):{},o=this.subType;q.hasClass(o)&&(o+="Series"),me(t,n.getTheme().get(this.subType)),me(t,this.getDefaultOption()),tu(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&Ya(t,i,a)},e.prototype.mergeOption=function(t,n){t=me(this.option,t,!0),this.fillDataTextStyle(t.data);var a=Ua(this);a&&Ya(this.option,t,a);var i=Vt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,n);Fu(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Vt(this).dataBeforeProcessed=o,zu(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!qe(t))for(var n=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&tu(t[a],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=Qo(this);if(n){var a=n.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return Vt(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=Qo(this);if(n){var a=n.context;a.outputData=t,n!==this.dataTask&&(a.data=t)}Vt(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return U(t)},e.prototype.getSourceManager=function(){return Vt(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Vt(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],c=1/0,h=-1,v=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,m=p.count();g<m;g++){var y=p.get(d,g),_=l.dataToCoord(y),S=u-_,b=Math.abs(S);b<=i&&((b<c||b===c&&S>=0&&h<0)&&(c=b,h=S,v=0),S===h&&(f[v++]=g))}return f.length=v,f},e.prototype.formatTooltip=function(t,n,a){return I_({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(fe.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,a){var i=this.ecModel,o=dl.prototype.getColorFromPalette.call(this,t,n,a);return o||(o=i.getColorFromPalette(t,n,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=ia(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var a=[],i=0;i<t.length;i++)a[0]=t[i],this.isSelected(t[i],n)?this.unselect(a,n):this.select(a,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=ot(t),a=[],i=0;i<n.length;i++){var o=t[n[i]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[ia(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[L_])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){N(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=ia(t,c);u[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(c)}}else if(s==="single"||s===!0){var v=n[l-1],h=ia(t,v);o.selectedMap=(a={},a[h]=!0,a),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(v),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(a){var i=t.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return q.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(q);Zt(pt,s_);Zt(pt,dl);$c(pt,q);function zu(r){var e=r.name;nv(r)||(r.name=R_(r)||e)}function R_(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return x(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function E_(r){return r.model.getRawData().count()}function k_(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),P_}function P_(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Fu(r,e){x(bp(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,_e(O_,e))})}function O_(r,e){var t=Qo(r);return t&&t.setOutputEnd((e||this).count()),e}function Qo(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}var N_=wt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n+i),r.lineTo(t-a,n+i),r.closePath()}}),V_=wt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,a=e.width/2,i=e.height/2;r.moveTo(t,n-i),r.lineTo(t+a,n),r.lineTo(t,n+i),r.lineTo(t-a,n),r.closePath()}}),B_=wt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=n-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(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-c*v,l+s+h*v,t,n-d,t,n),r.bezierCurveTo(t,n-d,t-f+c*v,l+s+h*v,t-f,l+s),r.closePath()}}),z_=wt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,a=e.x,i=e.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+t),r.lineTo(a,i+t/4*3),r.lineTo(a-o,i+t),r.lineTo(a,i),r.closePath()}}),F_={line:Xr,rect:Oe,roundRect:Oe,square:Oe,circle:vi,diamond:V_,pin:B_,arrow:z_,triangle:N_},H_={line:function(r,e,t,n,a){a.x1=r,a.y1=e+n/2,a.x2=r+t,a.y2=e+n/2},rect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n},roundRect:function(r,e,t,n,a){a.x=r,a.y=e,a.width=t,a.height=n,a.r=Math.min(t,n)/4},square:function(r,e,t,n,a){var i=Math.min(t,n);a.x=r,a.y=e,a.width=i,a.height=i},circle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.r=Math.min(t,n)/2},diamond:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n},pin:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},arrow:function(r,e,t,n,a){a.x=r+t/2,a.y=e+n/2,a.width=t,a.height=n},triangle:function(r,e,t,n,a){a.cx=r+t/2,a.cy=e+n/2,a.width=t,a.height=n}},Jo={};x(F_,function(r,e){Jo[e]=new r});var G_=wt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Tp(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var a=Jo[n];a||(n="rect",a=Jo[n]),H_[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function U_(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||V.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function Yr(r,e,t,n,a,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=Fs(r.slice(8),new Me(e,t,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=_i(r.slice(7),{},new Me(e,t,n,a),o?"center":"cover"):l=new G_({shape:{symbolType:r,x:e,y:t,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=U_,i&&l.setColor(i),l}function Y_(r,e){if(r!=null)return R(r)||(r=[r,r]),[Ke(r[0],e[0])||0,Ke(W(r[1],r[0]),e[1])||0]}function W_(){var r=Z();return function(e){var t=r(e),n=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Lh=Z(),X_=W_(),ht=(function(){function r(){this.group=new Re,this.uid=Ti("viewChart"),this.renderTask=Tn({plan:Z_,reset:$_}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.highlight=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Gu(i,a,"emphasis")},r.prototype.downplay=function(e,t,n,a){var i=e.getData(a&&a.dataType);i&&Gu(i,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.updateVisual=function(e,t,n,a){this.render(e,t,n,a)},r.prototype.eachRendered=function(e){Nv(this.group,e)},r.markUpdateMethod=function(e,t){Lh(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function Hu(r,e,t){r&&Rn(r)&&(e==="emphasis"?No:Vo)(r,t)}function Gu(r,e,t){var n=$n(r,e),a=e&&e.highlightKey!=null?cm(e.highlightKey):null;n!=null?x(Se(n),function(i){Hu(r.getItemGraphicEl(i),t,a)}):r.eachItemGraphicEl(function(i){Hu(i,t,a)})}Cs(ht);gi(ht);function Z_(r){return X_(r.model)}function $_(r){var e=r.model,t=r.ecModel,n=r.api,a=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=a&&Lh(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,a),K_[l]}var K_={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},mt=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();gi(mt);var q_=0,Uu=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++q_,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,n=t.data,a=n&&B(n,j_);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!P(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=U(this.categories))},r})();function j_(r){return N(r)&&r.value!=null?r.value:r+""}var ft=0,es=1,Q_={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},J_=ot(Q_),Wa=2,Rh=3;function gl(r,e,t){var n;return r=r||{},t0(r,t),{brk:n,mapper:r}}function Eh(r,e){x(J_,function(t){r[t]=e[t]})}function kh(r,e){r.freeze=je}function Nn(r){return r.getExtentUnsafe(ft,Wa)}function Ph(r,e){return r.getExtentUnsafe(es,e)||r.getExtentUnsafe(ft,e)}function e0(r){var e=Ph(r,Rh);return e[1]-e[0]}function Ci(r){var e=r.getExtentUnsafe(ft,Rh);return e[1]-e[0]}function t0(r,e){var t=r||{},n=[];return t._extents=n,n[ft]=e?e.slice():_t(),k(t,r0),t}var r0={needTransform:function(){return!1},normalize:function(r){var e=this._extents[es]||this._extents[ft];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[es]||this._extents[ft];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Ph(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[ft].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){Yu(this._extents,ft,r,e)},setExtent2:function(r,e,t){var n=this._extents;n[r]||(n[r]=n[ft].slice()),Yu(n,r,e,t)},freeze:function(){}};function Yu(r,e,t,n){Na(t,n)&&(r[e][0]=t,r[e][1]=n)}function ts(r){return r.type==="interval"}function ml(r){return r.type==="time"}function yl(r){return r.type==="log"}function Sr(r){return r.type==="ordinal"}function Qn(r){return Lt(r)+2}function oa(r,e){return Dn(r)/Dn(e)}function Qi(r,e,t){var n=t&&t.lookup;if(n){for(var a=0;a<n.from.length;a++)if(r===n.from[a])return n.to[a]}return Zr(e,r)}function n0(r,e,t){var n=r.slice();if(n[0]===n[1]){var a=t&&t.ctnShp;if(n[0]!==0){var i=nt(n[0]);e[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!Yt(n[0])||!Yt(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function a0(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function _l(r,e){return r=r||e,Ut(ce(r,1))}function Oh(r,e,t){var n=Nn(r),a=n[0],i=r.count(),o=Math.max((e||0)+1,1);a!==0&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&l(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){t({value:u,offInterval:f},c)}}var Nh=(function(r){$(e,r);function e(t){var n=r.call(this)||this;n.type="ordinal",n.parse=e.parse,Eh(n,e.decoratedMethods);var a=t.ordinalMeta;a||(a=new Uu({})),R(a)&&(a=new Uu({categories:B(a,function(o){return N(o)?o.value:o})})),n._ordinalMeta=a;var i=gl(null,null,t.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,kh(n),n}return e.parse=function(t){return t==null?t=NaN:P(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=Ut(t),t},e.prototype.getTicks=function(){var t=[];return Oh(this,0,function(n){t.push(n)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=it(s,n.length);o<l;++o){var u=a[o]=n[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a[o]=f,i[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},e.prototype.count=function(){var t=Nn(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Ut(this._mapper.scale(t)))},transformIn:function(t,n){return this._mapper.transformIn(this._getTickNumber(t),n)},transformOut:function(t,n){return this.getRawOrdinalNumber(this._mapper.transformOut(t,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,n){return this._mapper.getExtentUnsafe(t,n)},setExtent:function(t,n){return this._mapper.setExtent(t,n)},setExtent2:function(t,n,a){return this._mapper.setExtent2(t,n,a)}},e})(mt);mt.registerClass(Nh);function Sl(r,e,t,n){for(var a=r.getTicks({expandToNicedExtent:!0}),i=[],o=r.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,c=[],h=l.value-u.value,v=h/e,d=Qn(v);f<e-1;){var p=Ie(u.value+(f+1)*v,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=wi();g&&g.pruneTicksByBreak("auto",c,t,function(m){return m},n,o),i.push(c)}}return i}var Fr=(function(r){$(e,r);function e(t){var n=r.call(this)||this;n.type="interval",n.parse=e.parse,t=t||{};var a=fh(n,t),i=gl(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return H(this._cfg)},e.prototype.setConfig=function(t){var n=Nn(this);this._cfg=t=H(t),t.niceExtent==null&&(t.niceExtent=n.slice()),t.intervalPrecision==null&&(t.intervalPrecision=Qn(t.interval))},e.prototype.getTicks=function(t){t=t||{};var n=this._cfg,a=n.interval,i=Nn(this),o=n.niceExtent,s=n.intervalPrecision,l=wi(),u=this.brk,f=l,c=[];if(!a)return c;t.breakTicks;var h=3e3;i[0]<o[0]&&c.push({value:t.expandToNicedExtent?Ie(o[0]-a,s):i[0]});for(var v=function(_,S){return Ut((S-_)/a)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=it(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=Ie(p+a,s),u){var m=u.calcNiceTickMultiple(p,v);m>=0&&(p=Ie(p+m*a,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>h)return[]}var y=c.length?c[c.length-1].value:o[1];return i[1]>y&&c.push({value:t.expandToNicedExtent?Ie(y+a,s):i[1]}),c},e.prototype.getMinorTicks=function(t){return Sl(this,t,tl(this),this._cfg.interval)},e.prototype.getLabel=function(t,n){if(t==null)return"";var a=n&&n.precision;a==null?a=Lt(t.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=Ie(t.value,a,!0);return fl(i)},e.type="interval",e})(mt);mt.registerClass(Fr);var i0=function(r,e,t,n){for(;t<n;){var a=t+n>>>1;r[a][1]<e?t=a+1:n=a}return t},Vh=(function(r){$(e,r);function e(t){var n=r.call(this)||this;n.type="time",n.parse=e.parse,n._locale=t.locale,n._useUTC=t.useUTC,n._interval=0;var a=fh(n,t),i=gl(n,a,null);return n.brk=i.brk,n}return e.prototype.getLabel=function(t){return qn(t.value,Lu[Yy(bn(this._minLevelUnit))]||Lu.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,n,a){return Wy(t,n,a,this._locale,this._useUTC)},e.prototype.getTicks=function(t){var n=this._interval,a=Nn(this),i=this.brk,o=[];if(!n)return o;var s=this._useUTC;o=h0(this._minLevelUnit,this._approxInterval,s,a,Ci(this),i);var l=vr.length-1,u=0;return x(o,function(f){f.time&&(l=Math.min(l,ve(vr,f.time.upperTimeUnit)),u=Math.max(u,f.time.level))}),o},e.prototype.getMinorTicks=function(t){return Sl(this,t,tl(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Ce(t)?Math.round(t):+Pt(t)},e.type="time",e})(mt),sa=[["second",rl],["minute",nl],["hour",xn],["quarter-day",xn*6],["half-day",xn*12],["day",rt*1.2],["half-week",rt*3.5],["week",rt*7],["month",rt*31],["quarter",rt*95],["half-year",Au/2],["year",Au]];function o0(r,e,t,n){return Ga(new Date(e),r,n).getTime()===Ga(new Date(t),r,n).getTime()}function s0(r,e){return r/=rt,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function l0(r){var e=30*rt;return r/=e,r>6?6:r>3?3:r>2?2:1}function u0(r){return r/=xn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Wu(r,e){return r/=e?nl:rl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function f0(r){return ce(Ls(r,!0),1)}function c0(r,e,t){var n=Math.max(0,ve(vr,e)-1);return Ga(new Date(r),vr[n],t).getTime()}function v0(r,e){var t=new Date(0);t[r](1);var n=t.getTime();t[r](1+e);var a=t.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function h0(r,e,t,n,a,i){var o=3e3,s=Fy,l=0;function u(O,j,oe,Q,se,re,Ve){for(var De=v0(se,O),J=j,ie=new Date(J);J<oe&&J<=n[1]&&(Ve.push({value:J}),!(l++>o));)if(ie[se](ie[Q]()+O),J=ie.getTime(),i){var Be=i.calcNiceTickMultiple(J,De);Be>0&&(ie[se](ie[Q]()+Be*O),J=ie.getTime())}Ve.push({value:J,notAdd:J>n[1]})}function f(O,j,oe){var Q=[],se=!j.length;if(!o0(bn(O),n[0],n[1],t)){se&&(j=[{value:c0(n[0],O,t)},{value:n[1]}]);for(var re=0;re<j.length-1;re++){var Ve=j[re].value,De=j[re+1].value;if(Ve!==De){var J=void 0,ie=void 0,Be=void 0,xr=!1;switch(O){case"year":J=Math.max(1,Math.round(e/rt/365)),ie=ch(t),Be=Xy(t);break;case"half-year":case"quarter":case"month":J=l0(e),ie=al(t),Be=vh(t);break;case"week":case"half-week":case"day":J=s0(e),ie=il(t),Be=hh(t),xr=!0;break;case"half-day":case"quarter-day":case"hour":J=u0(e),ie=ol(t),Be=dh(t);break;case"minute":J=Wu(e,!0),ie=sl(t),Be=ph(t);break;case"second":J=Wu(e,!1),ie=ll(t),Be=gh(t);break;case"millisecond":J=f0(e),ie=ul(t),Be=mh(t);break}De>=n[0]&&Ve<=n[1]&&u(J,Ve,De,ie,Be,xr,Q),O==="year"&&oe.length>1&&re===0&&oe.unshift({value:oe[0].value-J})}}for(var re=0;re<Q.length;re++)oe.push(Q[re])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var g=bn(s[p]);if(Uy(s[p])){f(s[p],c[c.length-1]||[],h);var m=s[p+1]?bn(s[p+1]):null;if(g!==m){if(h.length){d=v,h.sort(function(O,j){return O.value-j.value});for(var y=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(y.push(h[_]),S>=n[0]&&S<=n[1]&&v++)}var b=a/e;if(v>b*1.5&&d>b/1.5||(c.push(y),v>b||r===s[p]))break}h=[]}}}for(var T=we(B(c,function(O){return we(O,function(j){return j.value>=n[0]&&j.value<=n[1]&&!j.notAdd})}),function(O){return O.length>0}),w=T.length-1,I=[],p=0;p<T.length;++p)for(var C=T[p],D=0;D<C.length;++D){var M=Aa(C[D].value,t);I.push({value:C[D].value,time:{level:w-p,upperTimeUnit:M,lowerTimeUnit:M}})}Es(I,Yg,null),I.sort(function(O,j){return O.value-j.value});var E=I[0],L=I[I.length-1],F=Aa(n[0],t),X=Aa(n[1],t);return(!E||E.value>n[0])&&I.unshift({value:n[0],time:{level:0,upperTimeUnit:F,lowerTimeUnit:F},notNice:!0}),(!L||L.value<n[1])&&I.push({value:n[1],time:{level:0,upperTimeUnit:X,lowerTimeUnit:X},notNice:!0}),I}var d0=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=rt,t[1]+=rt),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-rt}r.setExtent(t[0],t[1]);var a=_l(e.splitNumber,10),i=Ci(r)/a,o=e.minInterval,s=e.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=sa.length,u=Math.min(i0(sa,i,0,l),l-1),f=sa[u][1],c=sa[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:c})};mt.registerClass(Vh);var la=0,ua=1,Bh=(function(r){$(e,r);function e(t){var n=r.call(this)||this;n.type="log",n.parse=Fr.parse,n.base=t.logBase||10;var a=[],i=[];n._lookup={from:a,to:i},a[la]=a[ua]=i[la]=i[ua]=NaN,Eh(n,e.mapperMethods),t.breakOption;var o={};return n.powStub=new Fr({breakParsed:o.original}),n.intervalStub=new Fr({breakParsed:o.transformed}),kh(n,n.intervalStub),n}return e.prototype.getTicks=function(t){var n=this.base,a=this.powStub,i=this.intervalStub,o=i.getExtent(),s=a.getExtent(),l={lookup:{from:o,to:s}};return B(i.getTicks(t||{}),function(u){var f=u.value,c=Qi(f,n,l),h;return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(t){return Sl(this,t,tl(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,n){return this.intervalStub.getLabel(t,n)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(oa(t,this.base))},scale:function(t){return Qi(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,n){return t=oa(t,this.base),n&&n.depth===Wa?t:this.intervalStub.transformIn(t,n)},transformOut:function(t,n){var a=n?n.depth:null;return Xu.depth=a,Zu.lookup=this._lookup,Qi(a===Wa?t:this.intervalStub.transformOut(t,Xu),this.base,Zu)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,n){this.setExtent2(ft,t,n)},setExtent2:function(t,n,a){if(!(!Na(n,a)||n<=0||a<=0)){var i=$u,o=$u;if(t===ft){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(t,i[la]=n,i[ua]=a);var l=this.base;this.intervalStub.setExtent2(t,o[la]=oa(n,l),o[ua]=oa(a,l))}},getFilter:function(){return{g:0}},sanitize:function(t,n){return Na(n[0],n[1])&&kt(t)&&t<=0&&(t=n[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,n){return n===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,n)}},e})(mt);mt.registerClass(Bh);var Xu={},Zu={},$u=[],p0={value:1,category:1,time:1,log:1};Z();function g0(r){var e=r.get("type");return(e==null||!ct(p0,e)&&!mt.getClass(e))&&(e="value"),e}function m0(r,e,t){var n;switch(e){case"category":return new Nh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:_t()});case"time":return new Vh({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new Bh({logBase:r.get("logBase"),breakOption:n});case"value":return new Fr({breakOption:n});default:return new(mt.getClass(e)||Fr)({})}}function Di(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=Hy(e);return function(a,i){return r.scale.getFormattedLabel(a,i,t)}}else{if(P(e))return function(a){var i=r.scale.getLabel(a),o=e.replace("{value}",i??"");return o};if(Y(e)){if(r.type==="category")return function(a,i){return e(Xa(r,a),a.value-r.scale.getExtent()[0],null)};var n=wi();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),e(Xa(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Xa(r,e){var t=r.scale;return Sr(t)?t.getLabel(e):e.value}function xl(r){var e=r.get("interval");return e??"auto"}function y0(r){return r.type==="category"&&xl(r.getLabelModel())===0}function Za(r){return r==="middle"||r==="center"}function _0(r,e,t,n,a,i){var o=yl(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:Wa},f=r.transformOut(n[0],u),c=r.transformOut(n[1],u),h=a0(t,n);e[0]&&!h[0]&&(f=a[0]),e[1]&&!h[1]&&(c=a[1]),l.setExtent(f,c)}s.setConfig(i)}function bl(r,e){return Sr(r)?r.getRawOrdinalNumber(e.value):e.value}var S0=Z(),wn=Z(),Wt={estimate:1,determine:2};function $a(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function x0(r,e){var t=r.getLabelModel().get("customValues");if(t){var n=r.scale;return{labels:B(zh(t,n),function(a,i){return{formattedLabel:Di(r)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return r.type==="category"?T0(r,e):M0(r)}function b0(r,e,t){var n=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:zh(a,n)}:r.type==="category"?w0(r,e):{ticks:n.getTicks(t)}}function zh(r,e){var t=e.getExtent(),n=[];return x(r,function(a){a=e.parse(a),a>=t[0]&&a<=t[1]&&n.push(a)}),Es(n,Wg,null),Xn(n),B(n,function(a){return{value:a}})}function T0(r,e){var t=r.getLabelModel(),n=Fh(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:n}function Fh(r,e,t){var n=D0(r),a=xl(e),i=t.kind===Wt.estimate;if(!i){var o=Gh(n,a);if(o)return o}var s,l;Y(a)?s=Ka(r,a,!1):(l=a==="auto"?I0(r,t):a,s=Ka(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return rs(n,a,u),!0}):rs(n,a,u),u}function w0(r,e){var t=C0(r),n=xl(e),a=Gh(t,n);if(a)return a;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),Y(n))i=Ka(r,n,!0);else if(n==="auto"){var s=Fh(r,r.getLabelModel(),$a(Wt.determine));o=s.labelCategoryInterval,i=B(s.labels,function(l){return l.tick})}else o=n,i=Ka(r,o,!0);return rs(t,n,{ticks:i,tickCategoryInterval:o})}function M0(r){var e=r.scale.getTicks(),t=Di(r);return{labels:B(e,function(n,a){return{formattedLabel:t(n,a),rawLabel:r.scale.getLabel(n),tick:n}})}}var C0=Hh("axisTick"),D0=Hh("axisLabel");function Hh(r){return function(t){return wn(t)[r]||(wn(t)[r]={list:[]})}}function Gh(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function rs(r,e,t){return r.list.push({key:e,value:t}),t}function I0(r,e){if(e.kind===Wt.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return wn(r).autoInterval=t,!0}),t}var n=wn(r).autoInterval;return n??(wn(r).autoInterval=r.calculateCategoryInterval(e))}function A0(r,e){var t=e.kind,n=R0(r),a=Di(r),i=(n.axisRotate-n.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,g=0;c<=s[1];c+=u){var m=0,y=0,_=Gc(a({value:c}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,p=Math.max(p,m,7),g=Math.max(g,y,7)}var S=p/v,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var T=Math.max(0,Math.floor(Math.min(S,b)));if(t===Wt.estimate)return e.out.noPxChangeTryDetermine.push(z(L0,null,r,T,l)),T;var w=Uh(r,T,l);return w??T}function L0(r,e,t){return Uh(r,e,t)==null}function Uh(r,e,t){var n=S0(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=t,n.lastAutoInterval=e,n.axisExtent0=a[0],n.axisExtent1=a[1]}function R0(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Ka(r,e,t){var n=Di(r),a=r.scale,i=[],o=Y(e);return Oh(a,o?0:e,function(s,l){var u=a.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(t?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var Tl=Z();function E0(r){Tl(r).prepare={}}function k0(r){Tl(r).fullUpdate={}}function Yh(r){return Tl(r).fullUpdate}var Wh=Z(),P0=-2;Z();function O0(r,e){var t=r.model,n=Wh(Yh(t.ecModel)).keyed,a=n&&n.get(e);return a&&a.get(t.uid)}function N0(r,e){return Xh(O0(r,e))}function V0(r,e){var t=[];return B0(r.model.ecModel,function(n){for(var a=0;a<e.length;a++)e[a]&&n.serByIdx[e[a].seriesIndex]&&t.push(Xh(n))}),t}function B0(r,e){var t=Wh(Yh(r)).keyed;t&&t.each(function(n,a){n.each(function(i,o){e(i,a,o)})})}function Xh(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}U();var z0=.8;function Ii(r,e){e=e||{};var t={w:NaN,w2:NaN},n=r.scale,a=e.fromStat,i=e.min,o=e0(n);kt(o)||(o=NaN);var s=r.getExtent(),l=nt(s[1]-s[0]);return Sr(n)?F0(t,r,o,l):a&&H0(t,r,o,l,a),i!=null&&(t.w=kt(t.w)?ce(i,t.w):i),t}function F0(r,e,t,n){var a=e.onBand,i=t+(a?1:0);i===0&&(i=1),r.w=n/i,!a&&t&&n&&(r.w2=r.w*t/n)}function H0(r,e,t,n,a){var i=!1,o=-1/0;x(a.key?[N0(e,a.key)]:V0(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===P0&&(i=!0))}),kt(t)&&t>0&&kt(o)?(r.w=n/t*o,r.w2=o):i&&(r.w=n*z0,r.w2=r.w*t/n)}var Ku=[0,1],G0=(function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=n&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),bt(e,Ku,qu(this),t)},r.prototype.coordToData=function(e,t){var n=bt(e,qu(this),Ku,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=b0(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=B(n.ticks,function(s){return{coord:this.dataToCoord(bl(this.scale,s)),tick:s}},this),i=t.get("alignWithLabel"),o=U0(this,a,i);return B(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Sr(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),a=B(n,function(i){return B(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||$a(Wt.determine),x0(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Ii(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||$a(Wt.determine),A0(this,e)},r})();function qu(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],n=t/r.scale.count()/2;e[0]+=n,e[1]-=n}return e}function U0(r,e,t){var n=e.length;if(!r.onBand||t||!n)return!1;var a=Ii(r).w;if(!a)return!1;x(e,function(s){s.coord-=a/2});var i=r.scale.getExtent(),o=e[n-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}var ju=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Y0=1,qa=2,Zh=Y0|qa;function ja(r,e,t){t=t||Zh,e?r.dirty|=t:r.dirty&=~t}function $h(r,e){return e=e||Zh,r.dirty==null||!!(r.dirty&e)}function Xt(r){if(r)return $h(r)&&W0(r,r.label,r),r}function W0(r,e,t){var n=e.getComputedTransform();r.transform=Xs(r.transform,n);var a=r.localRect=kn(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=Pr.textMargin);for(var c=0;c<4;c++)Ji[c]=f===Pr.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Pr.textMargin&&Uo(a,Ji,!1,!1);var h=r.rect=kn(r.rect,a);return n&&h.applyTransform(n),f===Pr.minMargin&&Uo(h,Ji,!1,!1),r.axisAligned=Ws(n),(r.label=r.label||{}).ignore=e.ignore,ja(r,!1),ja(r,!0,qa),r}var Ji=[0,0,0,0];function X0(r,e,t){return r.transform=Xs(r.transform,t),r.localRect=kn(r.localRect,e),r.rect=kn(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=Ws(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Z0(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var n=r.rect;n&&(n.x+=e.x,n.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function ns(r,e){for(var t=0;t<ju.length;t++){var n=ju[t];r[n]==null&&(r[n]=e[n])}return Xt(r)}function Qu(r){var e=r.obb;return(!e||$h(r,qa))&&(r.obb=e=e||new zc,e.fromBoundingRect(r.localRect,r.transform),ja(r,!1,qa)),e}function Ju(r,e,t,n,a){var i=r.length,o=bv[e],s=Tv[e];if(i<2)return!1;r.sort(function(w,I){return w.rect[o]-I.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],g,m;y(),g<0&&b(-g,.8),m<0&&b(m,.8),y(),_(g,m,1),_(m,g,-1),y(),g<0&&T(-g),m<0&&T(m);function y(){g=d.rect[o]-t,m=n-p.rect[o]-p.rect[s]}function _(w,I,C){if(w<0){var D=Math.min(I,-w);if(D>0){S(D*C,0,i);var M=D+w;M<0&&b(-M*C,1)}else b(-w*C,1)}}function S(w,I,C){w!==0&&(f=!0);for(var D=I;D<C;D++){var M=r[D],E=M.rect;E[o]+=w,M.label[o]+=w}}function b(w,I){for(var C=[],D=0,M=1;M<i;M++){var E=r[M-1].rect,L=Math.max(r[M].rect[o]-E[o]-E[s],0);C.push(L),D+=L}if(D){var F=Math.min(Math.abs(w)/D,I);if(w>0)for(var M=0;M<i-1;M++){var X=C[M]*F;S(X,0,M+1)}else for(var M=i-1;M>0;M--){var X=C[M-1]*F;S(-X,M,i)}}}function T(w){var I=w<0?-1:1;w=Math.abs(w);for(var C=Math.ceil(w/(i-1)),D=0;D<i-1;D++)if(I>0?S(C,0,D+1):S(-C,i-D-1,i),w-=C,w<=0)return}return f}function $0(r){for(var e=0;e<r.length;e++){var t=r[e],n=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function Kh(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var a=Xt(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(wl(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(a)}}}function wl(r,e,t,n){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,n)?!1:r.axisAligned&&e.axisAligned?!0:Qu(r).intersect(Qu(e),t,n)}var K0=null;function q0(){return K0}var j0="expandAxisBreak",Ft=Math.PI,Q0=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],J0=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Vn=Z(),qh=Z(),eS=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,a=this.recordMap,i=a[t]||(a[t]=[]);return i[n]||(i[n]={ready:{}})},r})();function tS(r,e,t,n){var a=t.axis,i=e.ensureRecord(t),o=[],s,l=Ml(r.axisName)&&Za(r.nameLocation);x(n,function(d){var p=Xt(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?fi(en,g.transform):ci(en),p.transform&&ys(en,en,p.transform),Me.copy(fa,p.localRect),fa.applyTransform(en),s?s.union(fa):Me.copy(s=new Me(0,0,0,0),fa))}});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=a.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new Me(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var en=St(),fa=new Me(0,0,0,0),rS=function(r,e,t,n,a,i){if(Za(r.nameLocation)){var o=i.stOccupiedRect;o&&jh(X0({},o,i.transGroup.transform),n,a)}else nS(i.labelInfoList,i.dirVec,n,a)};function jh(r,e,t){var n=new Ae;wl(r,e,n,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&Z0(e,n)}function nS(r,e,t,n){for(var a=Ae.dot(n,e)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||jh(s,t,n)}}var hr=(function(){function r(e,t,n,a){this.group=new Re,this._axisModel=e,this._api=t,this._local={},this._shared=a||new eS(rS),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},a=W(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=W(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:W(e.nameDirection,1),tickDirection:W(e.tickDirection,1),labelDirection:W(e.labelDirection,1),labelOffset:W(e.labelOffset,0),silent:W(e.silent,!0),axisName:a,nameLocation:Hc(t.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Ml(a)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new Re({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new Ae(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),x(aS,function(a){e[a]&&iS[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},r.innerTextLayout=function(e,t,n){var a=Is(t-e),i,o;return In(a)?(o=n>0?"top":"bottom",i="center"):In(a-Ft)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Ft?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),aS=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],iS={axisLine:function(r,e,t,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(Et(f,f,u),Et(c,c,u));var v=k({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&Vy(n.axis.scale))q0().buildAxisBreakLine(n,a,i,d);else{var p=new Xr(k({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));Gs(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var m=n.get(["axisLine","symbolSize"]);P(g)&&(g=[g,g]),(P(m)||Ce(m))&&(m=[m,m]);var y=Y_(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];x([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,T){if(g[T]!=="none"&&g[T]!=null){var w=Yr(g[T],-_/2,-S/2,_,S,v.stroke,!0),I=b.r+b.offset,C=h?c:f;w.attr({rotation:b.rotate,x:C[0]+I*Math.cos(r.rotation),y:C[1]-I*Math.sin(r.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(r,e,t,n,a,i,o,s){var l=tf(e,a,s);l&&ef(r,e,t,n,a,i,o,Wt.estimate)},axisTickLabelDetermine:function(r,e,t,n,a,i,o,s){var l=tf(e,a,s);l&&ef(r,e,t,n,a,i,o,Wt.determine);var u=uS(r,a,i,n);lS(r,e.labelLayoutList,u),fS(r,a,i,n,r.tickDirection)},axisName:function(r,e,t,n,a,i,o,s){var l=t.ensureRecord(n);e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Ml(u)){var f=r.nameLocation,c=r.nameDirection,h=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new Ae(0,0),m=new Ae(0,0);f==="start"?(g.x=d[0]-p*v,m.x=-p):f==="end"?(g.x=d[1]+p*v,m.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*v,m.y=c);var y=St();m.transform(Uc(y,y,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Ft/180);var S,b;Za(f)?S=hr.innerTextLayout(r.rotation,_??r.rotation,c):(S=oS(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var T=h.getFont(),w=n.get("nameTruncate",!0)||{},I=w.ellipsis,C=Cn(r.raw.nameTruncateMaxWidth,w.maxWidth,b),D=s.nameMarginLevel||0,M=new ye({x:g.x,y:g.y,rotation:S.rotation,silent:hr.isLabelSilent(n),style:Ge(h,{text:u,font:T,overflow:"truncate",width:C,ellipsis:I,fill:h.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Ys({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var E=hr.makeAxisEventDataBase(n);E.targetType="axisName",E.name=u,K(M).eventData=E}i.add(M),M.updateTransform(),e.nameEl=M;var L=l.nameLayout=Xt({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:Za(f)?Q0[D]:J0[D]});if(l.nameLocation=f,a.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&L){var F=t.ensureRecord(n);t.resolveAxisNameOverlap(r,t,n,L,m,F)}}}};function ef(r,e,t,n,a,i,o,s){Jh(e)||cS(r,e,a,s,n,o);var l=e.labelLayoutList;vS(r,n,l,i),r.rotation;var u=r.optionHideOverlap;sS(n,l,u),u&&Kh(we(l,function(f){return f&&!f.label.ignore})),tS(r,t,n,l)}function oS(r,e,t,n){var a=Is(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return In(a-Ft/2)?(o=l?"bottom":"top",i="center"):In(a-Ft*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Ft*1.5&&a>Ft/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sS(r,e,t){var n=r.axis,a=r.get(["axisLabel","customValues"]);if(y0(n))return;function i(u,f,c){var h=Xt(e[f]),v=Xt(e[c]),d=n.scale;if(!(!h||!v)){if(u==null){if(!t&&a)return;var p=Vn(h.label).labelInfo.tick;if(ml(d)&&p.notNice||Sr(d)&&p.offInterval){kr(h.label);return}}if(u===!1||h.suggestIgnore){kr(h.label);return}if(v.suggestIgnore){kr(v.label);return}var g=.1;if(!t){var m=[0,0,0,0];h=ns({marginForce:m},h),v=ns({marginForce:m},v)}wl(h,v,null,{touchThreshold:g})&&kr(u?v.label:h.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function lS(r,e,t){r.showMinorTicks||x(e,function(n){if(n&&n.label.ignore)for(var a=0;a<t.length;a++){var i=t[a],o=qh(i),s=Vn(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){kr(i);return}}})}function kr(r){r&&(r.ignore=!0)}function Qh(r,e,t,n,a){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]=t,e&&(Et(o,o,e),Et(s,s,e));var f=new Xr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Gs(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f);var c=qh(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function uS(r,e,t,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),f=Qh(u,t.transform,l,xe(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)e.add(f[c]);return f}function fS(r,e,t,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=xe(l.getLineStyle(),xe(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=Qh(s[c],t.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)e.add(h[v])}}function tf(r,e,t){if(Jh(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(e.remove(r.labelGroup),as(r,null,null,null))}return!0}function cS(r,e,t,n,a,i){var o=a.axis,s=Cn(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new Re;t.add(l);var u=$a(n);if(!s||o.scale.isBlank()){as(e,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),h=(Cn(r.raw.labelRotate,f.get("rotate"))||0)*Ft/180,v=hr.innerTextLayout(r.rotation,h,r.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),m=1/0,y=-1/0;x(c,function(S,b){var T,w=S.tick,I=S.formattedLabel,C=S.rawLabel,D=f,M=bl(o.scale,w);if(d&&d[M]){var E=d[M];N(E)&&E.textStyle&&(D=new ee(E.textStyle,f,a.ecModel))}var L=D.getTextColor()||a.get(["axisLine","lineStyle","color"]),F=D.getShallow("align",!0)||v.textAlign,X=W(D.getShallow("alignMinLabel",!0),F),O=W(D.getShallow("alignMaxLabel",!0),F),j=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||v.textVerticalAlign,oe=W(D.getShallow("verticalAlignMinLabel",!0),j),Q=W(D.getShallow("verticalAlignMaxLabel",!0),j),se=10+(((T=w.time)===null||T===void 0?void 0:T.level)||0);m=Math.min(m,se),y=Math.max(y,se);var re=new ye({x:0,y:0,rotation:0,silent:hr.isLabelSilent(a),z2:se,style:Ge(D,{text:I,align:b===0?X:b===c.length-1?O:F,verticalAlign:b===0?oe:b===c.length-1?Q:j,fill:Y(L)?L(o.type==="category"?C:o.type==="value"?M+"":M,b):L})});re.anid="label_"+M;var Ve=Vn(re);if(Ve.labelInfo=S,Ve.layoutRotation=v.rotation,Ys({el:re,componentModel:a,itemName:I,formatterParamsExtra:{isTruncated:function(){return re.isTruncated},value:C,tickIndex:b}}),g){var De=hr.makeAxisEventDataBase(a);De.targetType="axisLabel",De.value=C,De.tickIndex=b;var J=S.tick.break;if(J){var ie=J.parsedBreak;De.break={start:ie.vmin,end:ie.vmax}}o.type==="category"&&(De.dataIndex=M),K(re).eventData=De,J&&dS(a,i,re,J)}p.push(re),l.add(re)});var _=B(p,function(S){return{label:S,priority:Vn(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});as(e,_,l,u)}function Jh(r){return!!r.labelLayoutList}function as(r,e,t,n){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=n}function vS(r,e,t,n){var a=e.get(["axisLabel","margin"]);x(t,function(i,o){var s=Xt(i);if(s){var l=s.label,u=Vn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Do(Dt,hS);var f=e.axis;Dt.x=f.dataToCoord(bl(f.scale,u.labelInfo.tick)),Dt.y=r.labelOffset+r.labelDirection*a,Dt.rotation=u.layoutRotation,n.add(Dt),Dt.updateTransform(),n.remove(Dt),Dt.decomposeTransform(),Do(l,Dt),l.markRedraw(),ja(s,!0),Xt(s)}})}var Dt=new Oe,hS=new Oe;function Ml(r){return!!r}function dS(r,e,t,n){t.on("click",function(a){var i={type:j0,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function rf(r,e,t){t=t||{};var n=e.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.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=e.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])}a.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?h[f[o]]-h[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Cn(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}Z();var pS=3,gS=(function(){function r(e,t,n,a,i){var o=Sr(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=n.slice();(ts(e)||yl(e)||ml(e))&&(Fg(f,tn(e,t.get("dataMin",!0))),Hg(f,tn(e,t.get("dataMax",!0)))),Gg(f)||(f[0]=f[1]=NaN);var c=[],h=[!1,!1],v=t.get("min",!0);v==="dataMin"?(c[0]=f[0],h[0]=!0):(c[0]=tn(e,Y(v)?v({min:f[0],max:f[1]}):v),h[0]=c[0]!=null);var d=t.get("max",!0);d==="dataMax"?(c[1]=f[1],h[1]=!0):(c[1]=tn(e,Y(d)?d({min:f[0],max:f[1]}):d),h[1]=c[1]!=null);var p=mS(e,t),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!Yt(c[0])&&(c[0]=NaN),!Yt(c[1])&&(c[1]=NaN);var m=l||Io(c[0])||Io(c[1])||o&&!s,y=ts(e),_=y&&t.needIncludeZero&&t.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var b=tn(e,t.get("startValue",!0)),T=b!=null;!kt(b)&&a&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),kt(b)&&(T||!y||_)&&(b<c[0]&&!h[0]?(c[0]=b,h[0]=!0):b>c[1]&&!h[1]&&(c[1]=b,h[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:b,isBlank:m,incl0:_,tggAxInv:S,ctnShp:i};nf(w,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,a=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],i[0]=a[0]=!0),t[1]!=null&&(s[1]=t[1],i[1]=a[1]=!0),nf(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function nf(r,e){var t=r.scale,n=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],n),e[1]=t.sanitize(e[1],n),Ug(e))}function tn(r,e){return e==null?null:Io(e)?NaN:r.parse(e)}function mS(r,e){var t;if(Sr(r))t=[0,0];else{var n=e.get("boundaryGap");typeof n=="boolean"&&(n=null),t=R(n)?n:[n,n]}return[af(t[0]),af(t[1])]}function af(r){return Ao(typeof r=="boolean"?0:r,1)||0}function yS(r,e){var t=r.scale;_S(t,new gS(t,r.model,e,!1,!1),pS)}function _S(r,e,t){r.rawExtentInfo=e,e.from=t}U();function SS(r,e,t,n,a){r.rawExtentInfo||yS({scale:r,model:e},a||_t());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),i}var Qa="\0__throttleOriginMethod",of="\0__throttleRate",sf="\0__throttleType";function Cl(r,e,t){var n,a=0,i=0,o=null,s,l,u,f;e=e||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];n=new Date().getTime(),l=this,u=v;var p=f||e,g=f||t;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function ed(r,e,t,n){var a=r[e];if(a){var i=a[Qa]||a,o=a[sf],s=a[of];if(s!==t||o!==n){if(t==null||!n)return r[e]=i;a=r[e]=Cl(i,t,n==="debounce"),a[Qa]=i,a[sf]=n,a[of]=t}return a}}function is(r,e){var t=r[e];t&&t[Qa]&&(t.clear&&t.clear(),r[e]=t[Qa])}function Cr(r,e,t,n,a){var i=r+e;t.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=$n(c,a.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:R(h)?c.getName(h[0]):c.getName(h),selected:P(l)?l:k({},l)})}})}function xS(r,e,t){r.on("selectchanged",function(n){var a=t.getModel();n.isFromClick?(Cr("map","selectchanged",e,a,n),Cr("pie","selectchanged",e,a,n)):n.fromAction==="select"?(Cr("map","selected",e,a,n),Cr("pie","selected",e,a,n)):n.fromAction==="unselect"&&(Cr("map","unselected",e,a,n),Cr("pie","unselected",e,a,n))})}var rn=Math.PI*2,rr=wp.CMD,bS=["top","right","bottom","left"];function TS(r,e,t,n,a){var i=t.width,o=t.height;switch(r){case"top":n.set(t.x+i/2,t.y-e),a.set(0,-1);break;case"bottom":n.set(t.x+i/2,t.y+o+e),a.set(0,1);break;case"left":n.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":n.set(t.x+i+e,t.y+o/2),a.set(1,0);break}}function wS(r,e,t,n,a,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,c=s*t+e;if(Math.abs(n-a)%rn<1e-4)return l[0]=f,l[1]=c,u-t;if(i){var h=n;n=pn(a),a=pn(h)}else n=pn(n),a=pn(a);n>a&&(a+=rn);var v=Math.atan2(s,o);if(v<0&&(v+=rn),v>=n&&v<=a||v+rn>=n&&v+rn<=a)return l[0]=f,l[1]=c,u-t;var d=t*Math.cos(n)+r,p=t*Math.sin(n)+e,g=t*Math.cos(a)+r,m=t*Math.sin(a)+e,y=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=d,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function os(r,e,t,n,a,i,o,s){var l=a-r,u=i-e,f=t-r,c=n-e,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,g=o[1]=e+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function td(r,e,t,n,a,i,o){t<0&&(r=r+t,t=-t),n<0&&(e=e+n,n=-n);var s=r+t,l=e+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var ut=[];function MS(r,e,t){var n=td(e.x,e.y,e.width,e.height,r.x,r.y,ut);return t.set(ut[0],ut[1]),n}function CS(r,e,t){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=e.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],a=f[v+1],i=n,o=a);var p=u;switch(d){case rr.M:i=f[v++],o=f[v++],n=i,a=o;break;case rr.L:p=os(n,a,f[v],f[v+1],c,h,ut,!0),n=f[v++],a=f[v++];break;case rr.C:p=Cp(n,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,ut),n=f[v++],a=f[v++];break;case rr.Q:p=Mp(n,a,f[v++],f[v++],f[v],f[v+1],c,h,ut),n=f[v++],a=f[v++];break;case rr.A:var g=f[v++],m=f[v++],y=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var T=!!(1-f[v++]);s=Math.cos(S)*y+g,l=Math.sin(S)*_+m,v<=1&&(i=s,o=l);var w=(c-g)*_/y+g;p=wS(g,m,_,S,S+b,T,w,h,ut),n=Math.cos(S+b)*y+g,a=Math.sin(S+b)*_+m;break;case rr.R:i=n=f[v++],o=a=f[v++];var I=f[v++],C=f[v++];p=td(i,o,I,C,c,h,ut);break;case rr.Z:p=os(n,a,i,o,c,h,ut,!0),n=i,a=o;break}p<u&&(u=p,t.set(ut[0],ut[1]))}return u}var fr=new Ae,Te=new Ae,$e=new Ae,Or=new Ae,nn=new Ae;function lf(r,e){if(r){var t=r.getTextGuideLine(),n=r.getTextContent();if(n&&t){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||bS,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),c=f&&fi([],f),h=e.get("length2")||0;u&&$e.copy(u);for(var v=0;v<o.length;v++){var d=o[v];TS(d,0,s,fr,Or),Ae.scaleAndAdd(Te,fr,Or,h),Te.transform(c);var p=r.getBoundingRect(),g=u?u.distance(Te):r instanceof wt?CS(Te,r.path,$e):MS(Te,p,$e);g<l&&(l=g,Te.transform(f),$e.transform(f),$e.toArray(i[0]),Te.toArray(i[1]),fr.toArray(i[2]))}DS(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var uf=[],nr=new Ae;function DS(r,e){if(e<=180&&e>0){e=e/180*Math.PI,fr.fromArray(r[0]),Te.fromArray(r[1]),$e.fromArray(r[2]),Ae.sub(Or,fr,Te),Ae.sub(nn,$e,Te);var t=Or.len(),n=nn.len();if(!(t<.001||n<.001)){Or.scale(1/t),nn.scale(1/n);var a=Or.dot(nn),i=Math.cos(e);if(i<a){var o=os(Te.x,Te.y,$e.x,$e.y,fr.x,fr.y,uf,!1);nr.fromArray(uf),nr.scaleAndAdd(nn,o/Math.tan(Math.PI-e));var s=$e.x!==Te.x?(nr.x-Te.x)/($e.x-Te.x):(nr.y-Te.y)/($e.y-Te.y);if(isNaN(s))return;s<0?Ae.copy(nr,Te):s>1&&Ae.copy(nr,$e),nr.toArray(r[1])}}}}function eo(r,e,t,n){var a=t==="normal",i=a?r:r.ensureState(t);i.ignore=e;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function IS(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var a=Xl(n[0],n[1]),i=Xl(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*t,s=Ei([],n[1],n[0],o/a),l=Ei([],n[1],n[2],o/i),u=Ei([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function AS(r,e,t){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<Va.length;l++){var u=Va[l],f=e[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:W(a.states[u]&&a.states[u].ignore,s);if(v||!W(h,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&eo(n,!0,u,f);continue}n||(n=new hi,r.setTextGuideLine(n),!c&&(s||!o)&&eo(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),eo(n,!1,u,f)}}if(n){xe(n.style,t),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=IS}}function LS(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Tt.length;n++){var a=Tt[n];t[a]=r.getModel([a,e])}return t}var rd="";typeof navigator<"u"&&(rd=navigator.platform||"");var Dr="rgba(0, 0, 0, 0.2)",nd=V.color.theme[0],RS=Ht(nd,null,null,.9);const ad={darkMode:"auto",colorBy:"series",color:V.color.theme,gradientColor:[RS,nd],aria:{decal:{decals:[{color:Dr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Dr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Dr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Dr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Dr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Dr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:rd.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 ES=U();function kS(r,e,t){var n=ES.get(e);if(!n)return t;var a=n(r);return a?t.concat(a):t}var ca,an,ff,cf="\0_ec_inner",PS=1,Dl=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ee(i),this._locale=new ee(o),this._optionManager=s},e.prototype.setOption=function(t,n,a){var i=df(n);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,n){return this._resetOption(t,df(n))},e.prototype._resetOption=function(t,n){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?ff(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&x(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;zm(this),x(t,function(c,h){c!=null&&(q.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?H(c):me(a[h],c,!0))}),u&&u.each(function(c,h){q.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),q.topologicalTravel(s,q.getAllClassMainTypes(),f,this);function f(c){var h=kS(this,c,Se(t[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Mg(v,h,d);Eg(p,c,q),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;x(p,function(S,b){var T=S.existing,w=S.newOption;if(!w)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var I=c==="series",C=q.getClass(c,S.keyInfo.subType,!I);if(!C)return;if(c==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===C)T.name=S.keyInfo.name,T.mergeOption(w,this),T.optionUpdated(w,!1);else{var D=k({componentIndex:b},S.keyInfo);T=new C(w,this,this,D),k(T,D),S.brandNew&&(T.__requireNewView=!0),T.init(w,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),m.push(T),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&ca(this)}this._seriesIndices||ca(this)},e.prototype.getOption=function(){var t=H(this.option);return x(t,function(n,a){if(q.hasClass(a)){for(var i=Se(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Ln(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[cf],t},e.prototype.setTheme=function(t){this._theme=new ee(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,n){var a=this._componentsMap.get(t);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var a=t.index,i=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],x(Se(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=vf("id",i,s):o!=null?l=vf("name",o,s):l=we(s,function(u){return!!u}),hf(l,t)},e.prototype.findComponents=function(t){var n=t.query,a=t.mainType,i=s(n),o=i?this.queryComponents(i):we(this._componentsMap.get(a),function(u){return!!u});return l(hf(o,t));function s(u){var f=a+"Index",c=a+"Id",h=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:a,index:u[f],id:u[c],name:u[h]}:null}function l(u){return t.filter?we(u,t.filter):u}},e.prototype.eachComponent=function(t,n,a){var i=this._componentsMap;if(Y(t)){var o=n,s=t;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=P(t)?i.get(t):N(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=We(t,null);return we(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return we(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return we(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){an(this),x(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];t.call(n,i,a)},this)},e.prototype.eachRawSeries=function(t,n){x(this._componentsMap.get("series"),function(a){a&&t.call(n,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,a){an(this),x(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&n.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,n,a){return x(this.getSeriesByType(t),n,a)},e.prototype.isSeriesFiltered=function(t){return an(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){an(this);var a=[];x(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=U(a)},e.prototype.restoreData=function(t){ca(this);var n=this._componentsMap,a=[];n.each(function(i,o){q.hasClass(o)&&a.push(o)}),q.topologicalTravel(a,q.getAllClassMainTypes(),function(i){x(n.get(i),function(o){o&&(i!=="series"||!OS(o,t))&&o.restoreData()})})},e.internalField=(function(){ca=function(t){var n=t._seriesIndices=[];x(t._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),t._seriesIndicesMap=U(n)},an=function(t){},ff=function(t,n){t.option={},t.option[cf]=PS,t._componentsMap=U({series:[]}),t._componentsCount=U();var a=n.aria;N(a)&&a.enabled==null&&(a.enabled=!0),NS(n,t._theme.option),me(n,ad,!1),t._mergeOption(n,null)}})(),e})(ee);function OS(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||a!=null&&r.name!==a}}function NS(r,e){var t=r.color&&!r.colorLayer;x(e,function(n,a){a==="colorLayer"&&t||a==="color"&&r.color||q.hasClass(a)||(typeof n=="object"?r[a]=r[a]?me(r[a],n,!1):H(n):r[a]==null&&(r[a]=n))})}function vf(r,e,t){if(R(e)){var n=U();return x(e,function(i){if(i!=null){var o=We(i,null);o!=null&&n.set(i,!0)}}),we(t,function(i){return i&&n.get(i[r])})}else{var a=We(e,null);return we(t,function(i){return i&&a!=null&&i[r]===a})}}function hf(r,e){return e.hasOwnProperty("subType")?we(r,function(t){return t&&t.subType===e.subType}):r}function df(r){var e=U();return r&&x(Se(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}Zt(Dl,dl);var VS=/^(min|max)?(.+)$/,BS=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(x(Se(e.series),function(o){o&&o.data&&qe(o.data)&&Pa(o.data)}),x(Se(e.dataset),function(o){o&&o.source&&qe(o.source)&&Pa(o.source)})),e=H(e);var a=this._optionBackup,i=zS(e,t,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],H(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var a=e.getComponent("timeline");a&&(t=H(n[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)FS(a[l].query,t,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!GS(o,this._currentMediaIndices)&&(s=B(o,function(f){return H(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function zS(r,e,t){var n=[],a,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&&R(u)&&x(u,function(v){v&&v.option&&(v.query?n.push(v):a||(a=v))}),h(i),x(l,function(v){return h(v)}),x(n,function(v){return h(v.option)});function h(v){x(e,function(d){d(v,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function FS(r,e,t){var n={width:e,height:t,aspectratio:e/t},a=!0;return x(r,function(i,o){var s=o.match(VS);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();HS(n[u],i,l)||(a=!1)}}),a}function HS(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function GS(r,e){return r.join(",")===e.join(",")}var lt=x,Bn=N,pf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function to(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=pf.length;t<n;t++){var a=pf[t],i=e.normal,o=e.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?me(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?me(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Pe(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,a=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,xe(r[e],n)):r[e]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function mn(r){Pe(r,"itemStyle"),Pe(r,"lineStyle"),Pe(r,"areaStyle"),Pe(r,"label"),Pe(r,"labelLine"),Pe(r,"upperLabel"),Pe(r,"edgeLabel")}function pe(r,e){var t=Bn(r)&&r[e],n=Bn(t)&&t.textStyle;if(n)for(var a=0,i=ru.length;a<i;a++){var o=ru[a];n.hasOwnProperty(o)&&(t[o]=n[o])}}function tt(r){r&&(mn(r),pe(r,"label"),r.emphasis&&pe(r.emphasis,"label"))}function US(r){if(Bn(r)){to(r),mn(r),pe(r,"label"),pe(r,"upperLabel"),pe(r,"edgeLabel"),r.emphasis&&(pe(r.emphasis,"label"),pe(r.emphasis,"upperLabel"),pe(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(to(e),tt(e));var t=r.markLine;t&&(to(t),tt(t));var n=r.markArea;n&&tt(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!qe(i))for(var o=0;o<i.length;o++)tt(i[o]);x(r.categories,function(u){mn(u)})}if(a&&!qe(a))for(var o=0;o<a.length;o++)tt(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)tt(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)R(l[o])?(tt(l[o][0]),tt(l[o][1])):tt(l[o]);r.type==="gauge"?(pe(r,"axisLabel"),pe(r,"title"),pe(r,"detail")):r.type==="treemap"?(Pe(r.breadcrumb,"itemStyle"),x(r.levels,function(u){mn(u)})):r.type==="tree"&&mn(r.leaves)}}function It(r){return R(r)?r:r?[r]:[]}function gf(r){return(R(r)?r[0]:r)||{}}function YS(r,e){lt(It(r.series),function(n){Bn(n)&&US(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),lt(t,function(n){lt(It(r[n]),function(a){a&&(pe(a,"axisLabel"),pe(a.axisPointer,"label"))})}),lt(It(r.parallel),function(n){var a=n&&n.parallelAxisDefault;pe(a,"axisLabel"),pe(a&&a.axisPointer,"label")}),lt(It(r.calendar),function(n){Pe(n,"itemStyle"),pe(n,"dayLabel"),pe(n,"monthLabel"),pe(n,"yearLabel")}),lt(It(r.radar),function(n){pe(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),lt(It(r.geo),function(n){Bn(n)&&(tt(n),lt(It(n.regions),function(a){tt(a)}))}),lt(It(r.timeline),function(n){tt(n),Pe(n,"label"),Pe(n,"itemStyle"),Pe(n,"controlStyle",!0);var a=n.data;R(a)&&x(a,function(i){N(i)&&(Pe(i,"label"),Pe(i,"itemStyle"))})}),lt(It(r.toolbox),function(n){Pe(n,"iconStyle"),lt(n.feature,function(a){Pe(a,"iconStyle")})}),pe(gf(r.axisPointer),"label"),pe(gf(r.tooltip).axisPointer,"label")}function WS(r,e){for(var t=e.split(","),n=r,a=0;a<t.length&&(n=n&&n[t[a]],n!=null);a++);return n}function XS(r,e,t,n){for(var a=e.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];i[a[s]]==null&&(i[a[s]]=t)}function mf(r){r&&x(ZS,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var ZS=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$S=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ro=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function on(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<ro.length;t++){var n=ro[t][1],a=ro[t][0];e[n]!=null&&(e[a]=e[n])}}function yf(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function _f(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function KS(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function id(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&id(r[t].children,e)}function od(r,e){YS(r,e),r.series=Se(r.series),x(r.series,function(t){if(N(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),yf(t.label);var a=t.data;if(a&&!qe(a))for(var i=0;i<a.length;i++)yf(a[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=WS(t,"pointer.color");o!=null&&XS(t,"itemStyle.color",o)}else if(n==="bar"){on(t),on(t.backgroundStyle),on(t.emphasis);var a=t.data;if(a&&!qe(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(on(a[i]),on(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),_f(t),id(t.data,_f)}else n==="graph"||n==="sankey"?KS(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&xe(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),mf(t)}}),r.dataRange&&(r.visualMap=r.dataRange),x($S,function(t){var n=r[t];n&&(R(n)||(n=[n]),x(n,function(a){mf(a)}))})}var qS=iv(jS);function jS(r){var e=U();r.eachSeries(function(t){var n=t.get("stack");if(n){var a=e.get(n)||e.set(n,[]),i=t.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:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var n=t[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),x(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),QS(t)}})}function QS(r){x(r,function(e,t){var n=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return a;var v,d;s?d=o.getRawIndex(c):v=o.get(e.stackedByDimension,c);for(var p=NaN,g=t-1;g>=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=ir(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var Xe=(function(){function r(){this.group=new Re,this.uid=Ti("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,a){},r.prototype.updateLayout=function(e,t,n,a){},r.prototype.updateVisual=function(e,t,n,a){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Cs(Xe);gi(Xe);var Sf=Z(),xf={itemStyle:Gr(Hv,!0),lineStyle:Gr(Fv,!0)},JS={lineStyle:"stroke",itemStyle:"fill"};function sd(r,e){var t=r.visualStyleMapper||xf[e];return t||(console.warn("Unknown style type '"+e+"'."),xf.itemStyle)}function ld(r,e){var t=r.visualDrawType||JS[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var ex={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=sd(r,n),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=ld(r,n),u=o[l],f=Y(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=h,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Y(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Y(o.stroke)?h:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=k({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},sn=new ee,tx={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=sd(r,n),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){sn.option=l[n];var u=a(sn),f=o.ensureUniqueItemVisual(s,"style");k(f,u),sn.option.decal&&(o.setItemVisual(s,"decal",sn.option.decal),sn.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},rx={performRawSeries:!0,overallReset:function(r){var e=U();r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();Sf(t).scope=e.get(n)||e.set(n,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var n=t.getRawData(),a={},i=t.getData(),o=Sf(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=ld(t,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();h[l]=t.getColorFromPalette(v,o,d)}})}})}},va=Math.PI;function nx(r,e){e=e||{},xe(e,{text:"loading",textColor:V.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:V.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Re,n=new Oe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var a=new ye({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Oe({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new di({shape:{startAngle:-va/2,endAngle:-va/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:va*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:va*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var ud=(function(){function r(e,t,n,a){this._stageTaskMap=U(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),a=n.context,i=!t&&n.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Xg(e,t,n);e.pipelineContext=n.context=a},r.prototype.restorePipelines=function(e,t){var n=this,a=n._pipelineMap=U();t.eachSeries(function(i){var o=e.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;x(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";dt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,n),a.overallReset&&this._createOverallStageTask(a,i,t,n)},this)},r.prototype.prepareView=function(e,t,n,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,a){a=a||{};var i=!1,o=this;x(e,function(l,u){if(!(a.visualType&&a.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(g){s(a,g)&&(g.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,a.block);d.each(function(g){g.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(g,m){s(a,g)&&g.dirty();var y=o.getPerformArgs(g,a.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(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(e){var t;e.eachSeries(function(n){t=n.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,n,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=U(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Tn({plan:lx,reset:ux,count:cx}));v.context={model:c,ecModel:n,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(e,t,n,a){var i=this,o=t.overallTask=t.overallTask||Tn({reset:ax});o.context={ecModel:n,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=U(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,h=!1,v="";dt(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):x(n.getSeries(),d);function d(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Tn({reset:ix,onDirty:sx})));m.context={model:p,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,i._pipe(p,m)}h&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return Y(e)&&(e={overallReset:e,seriesType:vx(e)}),e.uid=Ti("stageHandler"),t&&(e.visualType=t),e},r})();function ax(r){r.overallReset(r.ecModel,r.api,r.payload)}function ix(r){return r.dirtyOnOverallProgress&&ox}function ox(){this.agent.dirty(),this.getDownstream().dirty()}function sx(){this.agent&&this.agent.dirty()}function lx(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function ux(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Se(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?B(e,function(t,n){return fd(n)}):fx}var fx=fd(0);function fd(r){return function(e,t){var n=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(e,n)}}function cx(r){return r.data.count()}function vx(r){Ja=null;try{r(zn,cd)}catch{}return Ja}var zn={},cd={},Ja;vd(zn,Dl);vd(cd,uv);zn.eachSeriesByType=zn.eachRawSeriesByType=function(r){Ja=r};zn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Ja=r.subType)};function vd(r,e){for(var t in e.prototype)r[t]=je}var A=V.darkColor,bf=A.background,ln=function(){return{axisLine:{lineStyle:{color:A.axisLine}},splitLine:{lineStyle:{color:A.axisSplitLine}},splitArea:{areaStyle:{color:[A.backgroundTint,A.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:A.axisMinorSplitLine}},axisLabel:{color:A.axisLabel},axisName:{}}},Tf={label:{color:A.secondary},itemStyle:{borderColor:A.borderTint},dividerLineStyle:{color:A.border}},hd={darkMode:!0,color:A.theme,backgroundColor:bf,axisPointer:{lineStyle:{color:A.border},crossStyle:{color:A.borderShade},label:{color:A.tertiary}},legend:{textStyle:{color:A.secondary},pageTextStyle:{color:A.tertiary}},textStyle:{color:A.secondary},title:{textStyle:{color:A.primary},subtextStyle:{color:A.quaternary}},toolbox:{iconStyle:{borderColor:A.accent50},feature:{dataView:{backgroundColor:bf,textColor:A.primary,textareaColor:A.background,textareaBorderColor:A.border,buttonColor:A.accent50,buttonTextColor:A.neutral00}}},tooltip:{backgroundColor:A.neutral20,defaultBorderColor:A.border,textStyle:{color:A.tertiary}},dataZoom:{borderColor:A.accent10,textStyle:{color:A.tertiary},brushStyle:{color:A.backgroundTint},handleStyle:{color:A.neutral00,borderColor:A.accent20},moveHandleStyle:{color:A.accent40},emphasis:{handleStyle:{borderColor:A.accent50}},dataBackground:{lineStyle:{color:A.accent30},areaStyle:{color:A.accent20}},selectedDataBackground:{lineStyle:{color:A.accent50},areaStyle:{color:A.accent30}}},visualMap:{textStyle:{color:A.secondary},handleStyle:{borderColor:A.neutral30}},timeline:{lineStyle:{color:A.accent10},label:{color:A.tertiary},controlStyle:{color:A.accent30,borderColor:A.accent30}},calendar:{itemStyle:{color:A.neutral00,borderColor:A.neutral20},dayLabel:{color:A.tertiary},monthLabel:{color:A.secondary},yearLabel:{color:A.secondary}},matrix:{x:Tf,y:Tf,backgroundColor:{borderColor:A.axisLine},body:{itemStyle:{borderColor:A.borderTint}}},timeAxis:ln(),logAxis:ln(),valueAxis:ln(),categoryAxis:ln(),line:{symbol:"circle"},graph:{color:A.theme},gauge:{title:{color:A.secondary},axisLine:{lineStyle:{color:[[1,A.neutral05]]}},axisLabel:{color:A.axisLabel},detail:{color:A.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:A.background}},radar:(function(){var r=ln();return r.axisName={color:A.axisLabel},r.axisLine.lineStyle.color=A.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:A.neutral20,textStyle:{color:A.secondary}},emphasis:{itemStyle:{color:A.neutral30}}}},sunburst:{itemStyle:{borderColor:A.background}},map:{itemStyle:{borderColor:A.border,areaColor:A.neutral10},label:{color:A.tertiary},emphasis:{label:{color:A.primary},itemStyle:{areaColor:A.highlight}},select:{label:{color:A.primary},itemStyle:{areaColor:A.highlight}}},geo:{itemStyle:{borderColor:A.border,areaColor:A.neutral10},emphasis:{label:{color:A.primary},itemStyle:{areaColor:A.highlight}},select:{label:{color:A.primary},itemStyle:{color:A.highlight}}}};hd.categoryAxis.splitLine.show=!1;var hx=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},a={};if(P(e)){var i=xt(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};x(e,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"&&(t.mainType=d,t[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:a}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.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(e,t.otherQuery,a,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),ss=["symbol","symbolSize","symbolRotate","symbolOffset"],wf=ss.concat(["symbolKeepAspect"]),dx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<ss.length;o++){var s=ss[o],l=r.get(s);Y(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(k({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=ot(a);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,a[g](v,d))}}return{dataEach:i?f:null}}},px={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<wf.length;s++){var l=wf[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function dd(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function pd(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function gx(r,e,t,n){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function Nr(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var et=new Wn,gd={};function mx(r,e){gd[r]=e}function md(r){return gd[r]}var no=new Dp,Mf=new Ip(100),Cf=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Df(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),a=n.painter.type==="svg";r.dirty&&no.delete(r);var i=no.get(r);if(i)return i;var o=xe(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=a?1:1/t,no.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],c=!0,h=0;h<Cf.length;++h){var v=o[Cf[h]];if(v!=null&&!R(v)&&!P(v)&&!Ce(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=Mf.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=_d(o.dashArrayX),m=yx(o.dashArrayY),y=yd(o.symbol),_=_x(g),S=Sd(m),b=!a&&Ta.createCanvas(),T=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),I;b&&(b.width=w.width*t,b.height=w.height*t,I=b.getContext("2d")),D(),c&&Mf.put(d,b||T),u.image=b,u.svgElement=T,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var M=1,E=0,L=_.length;E<L;++E)M=Jl(M,_[E]);for(var F=1,E=0,L=y.length;E<L;++E)F=Jl(F,y[E].length);M*=F;var X=S*_.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(X,o.maxTileHeight))}}function D(){I&&(I.clearRect(0,0,b.width,b.height),o.backgroundColor&&(I.fillStyle=o.backgroundColor,I.fillRect(0,0,b.width,b.height)));for(var M=0,E=0;E<m.length;++E)M+=m[E];if(M<=0)return;for(var L=-S,F=0,X=0,O=0;L<w.height;){if(F%2===0){for(var j=X/2%y.length,oe=0,Q=0,se=0;oe<w.width*2;){for(var re=0,E=0;E<g[O].length;++E)re+=g[O][E];if(re<=0)break;if(Q%2===0){var Ve=(1-o.symbolSize)*.5,De=oe+g[O][Q]*Ve,J=L+m[F]*Ve,ie=g[O][Q]*o.symbolSize,Be=m[F]*o.symbolSize,xr=se/2%y[j].length;te(De,J,ie,Be,y[j][xr])}oe+=g[O][Q],++se,++Q,Q===g[O].length&&(Q=0)}++O,O===g.length&&(O=0)}L+=m[F],++X,++F,F===m.length&&(F=0)}function te(G,he,ne,le,Ee){var ke=a?1:t,de=Yr(Ee,G*ke,he*ke,ne*ke,le*ke,o.color,o.symbolKeepAspect);if(a){var Ue=n.painter.renderOneToVNode(de);Ue&&T.children.push(Ue)}else Yc(I,de)}}}}function yd(r){if(!r||r.length===0)return[["rect"]];if(P(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!P(r[t])){e=!1;break}if(e)return yd([r]);for(var n=[],t=0;t<r.length;++t)P(r[t])?n.push([r[t]]):n.push(r[t]);return n}function _d(r){if(!r||r.length===0)return[[0,0]];if(Ce(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!Ce(r[n])){t=!1;break}if(t)return _d([r]);for(var a=[],n=0;n<r.length;++n)if(Ce(r[n])){var e=Math.ceil(r[n]);a.push([e,e])}else{var e=B(r[n],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function yx(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Ce(r)){var e=Math.ceil(r);return[e,e]}var t=B(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function _x(r){return B(r,function(e){return Sd(e)})}function Sd(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var Sx=iv(xx);function xx(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Df(s,e)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Df(a,e)}}})}var bx="6.1.0",Tx={zrender:"6.1.0"},wx=1,Mx=800,Cx=900,Dx=920,Ix=1e3,Ax=2e3,If=5e3,xd=1e3,Lx=1100,Il=2e3,bd=3e3,Rx=4e3,Ai=4500,Ex=4600,kx=5e3,Px=6e3,Td=7e3,wd={PROCESSOR:{SERIES_FILTER:Mx,AXIS_STATISTICS:Dx,FILTER:Ix,STATISTIC:If,STATISTICS:If},VISUAL:{LAYOUT:xd,PROGRESSIVE_LAYOUT:Lx,GLOBAL:Il,CHART:bd,POST_CHART_LAYOUT:Ex,COMPONENT:Rx,BRUSH:kx,CHART_ITEM:Ai,ARIA:Px,DECAL:Td}},ge="__flagInMainProcess",ha="__mainProcessVersion",be="__pendingUpdate",ao="__needsUpdateStatus",Af=/^[a-zA-Z0-9_]+$/,io="__connectUpdateStatus",Lf=0,Ox=1,Nx=2;function Md(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return Dd(this,r,e)}}function Cd(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Dd(this,r,e)}}function Dd(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Wn.prototype[e].apply(r,t)}var Id=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Wn),Ad=Id.prototype;Ad.on=Cd("on");Ad.off=Cd("off");var ar,oo,da,At,pa,so,lo,Ir,Ar,Rf,Ef,uo,kf,ga,Pf,Ld,Je,Of,Lr,ei=(function(r){$(e,r);function e(t,n,a){var i=r.call(this,new hx)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=t;var o="canvas",s="auto",l=!1;i[ha]=1,a.ssr&&Ap(function(h){var v=K(h),d=v.dataIndex;if(d!=null){var p=U();return p.set("series_index",v.seriesIndex),p.set("data_index",d),v.ssrType&&p.set("ssr_type",v.ssrType),p}});var u=i._zr=Zl(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:W(a.useDirtyRect,l),useCoarsePointer:W(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Cl(z(u.flush,u),17),i._updateTheme(n),i._locale=ky(a.locale||uh),i._coordSysMgr=new bi;var f=i._api=Pf(i);function c(h,v){return h.__prio-v.__prio}return ki(ri,c),ki(fs,c),i._scheduler=new ud(i,f,fs,ri),i._messageCenter=new Id,i._initEvents(),i.resize=z(i.resize,i),u.animation.on("frame",i._onframe,i),Rf(u,i),Ef(u,i),Pa(i),i}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,n=this._model,a=this._api;if(Of(this),this[be]){var i=this[be].silent;this[ge]=!0,Lr(this);try{ar(this),At.update.call(this,null,this[be].updateParams)}catch(l){throw this[ge]=!1,this[be]=null,l}this._zr.flush(),this[ge]=!1,this[be]=null,Ir.call(this,i),Ar.call(this,i)}else if(t.unfinished){var o=wx;do{t.unfinished=!1;var s=Ta.getTime();t.performSeriesTasks(n),t.performDataProcessorTasks(n),so(this,n),t.performVisualTasks(n),ga(this,this._model,a,"remain",{}),o-=Ta.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,a){if(!this[ge]){if(this._disposed){this.id;return}var i,o,s;if(N(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ge]=!0,Lr(this),!this._model||n){var l=new BS(this._api),u=this._theme,f=this._model=new Dl;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},cs);var c={seriesTransition:s,optionChanged:!0};if(a)this[be]={silent:i,updateParams:c},this[ge]=!1,this.getZr().wakeUp();else{try{ar(this),At.update.call(this,null,c)}catch(h){throw this[be]=null,this[ge]=!1,h}this._ssr||this._zr.flush(),this[be]=null,this[ge]=!1,Ir.call(this,i),Ar.call(this,i)}}},e.prototype.setTheme=function(t,n){if(!this[ge]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[be]&&(i==null&&(i=this[be].silent),o=this[be].updateParams,this[be]=null),this[ge]=!0,Lr(this);try{this._updateTheme(t),a.setTheme(this._theme),ar(this),At.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ge]=!1,s}this[ge]=!1,Ir.call(this,i),Ar.call(this,i)}}},e.prototype._updateTheme=function(t){P(t)&&(t=Rd[t]),t&&(t=H(t),t&&od(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||fe.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,n=t.storage.getDisplayList();return x(n,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,a=this._model,i=[],o=this;x(n,function(l){a.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(t).toDataURL("image/"+(t&&t.type||"png"));return x(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(ni[a]){var l=s,u=s,f=-s,c=-s,h=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();x(dr,function(_,S){if(_.group===a){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(H(t)),T=_.getDom().getBoundingClientRect();l=i(T.left,l),u=i(T.top,u),f=o(T.right,f),c=o(T.bottom,c),h.push({dom:b,left:T.left,top:T.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,g=Ta.createCanvas(),m=Zl(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return x(h,function(_){var S=_.left-l,b=_.top-u;y+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return t.connectedBackgroundColor&&m.add(new Oe({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),x(h,function(_){var S=new Wr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n,a){return pa(this,"convertToPixel",t,n,a)},e.prototype.convertToLayout=function(t,n,a){return pa(this,"convertToLayout",t,n,a)},e.prototype.convertFromPixel=function(t,n,a){return pa(this,"convertFromPixel",t,n,a)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var a=this._model,i,o=Vi(a,t);return x(o,function(s,l){l.indexOf("Models")>=0&&x(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},e.prototype.getVisual=function(t,n){var a=this._model,i=Vi(a,t,{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?dd(s,l,n):pd(s,n)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;x(Vx,function(a){var i=function(o){var s=t.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&Nr(l,function(p){var g=K(p);if(g&&g.dataIndex!=null){var m=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=m&&m.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=k({},g.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&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},t.trigger(a,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)});var n=this._messageCenter;x(us,function(a,i){n.on(i,function(o){t.trigger(i,o)})}),xS(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&av(this.getDom(),Ll,"");var n=this,a=n._api,i=n._model;x(n._componentsViews,function(o){o.dispose(i,a)}),x(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete dr[n.id]},e.prototype.resize=function(t){if(!this[ge]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=t&&t.silent;this[be]&&(i==null&&(i=this[be].silent),a=!0,this[be]=null),this[ge]=!0,Lr(this);try{a&&ar(this),At.update.call(this,{type:"resize",animation:k({duration:0},t&&t.animation)})}catch(o){throw this[ge]=!1,o}this[ge]=!1,Ir.call(this,i),Ar.call(this,i)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(N(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!vs[t]){var a=vs[t](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var n=k({},t);return n.type=ls[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(N(n)||(n={silent:!!n}),!!ti[t.type]&&this._model){if(this[ge]){this._pendingActions.push(t);return}var a=n.silent;lo.call(this,t,a);var i=n.flush;i?this._zr.flush():i!==!1&&fe.browser.weChat&&this._throttledZrFlush(),Ir.call(this,a),Ar.call(this,a)}},e.prototype.updateLabelLayout=function(){et.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ar=function(c){E0(c._model);var h=c._scheduler;h.restorePipelines(c._zr,c._model),h.prepareStageTasks(),oo(c,!0),oo(c,!1),h.plan()},oo=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(T,w){T!=="series"&&S(w)}):v.eachSeries(S);function S(T){var w=T.__requireNewView;T.__requireNewView=!1;var I="_ec_"+T.id+"_"+T.type,C=!w&&g[I];if(!C){var D=xt(T.type),M=h?Xe.getClass(D.main,D.sub):ht.getClass(D.sub);C=new M,C.init(v,y),g[I]=C,p.push(C),m.add(C.group)}T.__viewId=C.__id=I,C.__alive=!0,C.__model=T,C.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!h&&d.prepareView(C,T,v,y)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),m.remove(b.group),b.dispose(v,y),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},da=function(c,h,v,d,p){var g=c._model;if(g.setUpdatePayload(v),!d){x([].concat(c._componentsViews).concat(c._chartsViews),S);return}var m=Ng(v,d,p),y=v.excludeSeriesId,_;y!=null&&(_=U(),x(Se(y),function(b){var T=We(b,null);T!=null&&_.set(T,!0)})),g&&g.eachComponent(m,function(b){var T=_&&_.get(b.id)!=null;if(!T)if(uu(v))if(b instanceof pt)v.type===cr&&!v.notBlur&&!b.get(["emphasis","disabled"])&&am(b,v,c._api);else{var w=Bs(b.mainType,b.componentIndex,v.name,c._api),I=w.focusSelf,C=w.dispatchers;v.type===cr&&I&&!v.notBlur&&zo(b.mainType,b.componentIndex,c._api),C&&x(C,function(D){v.type===cr?No(D):Vo(D)})}else Ho(v)&&b instanceof pt&&(sm(b,v,c._api),lu(b),Je(c))},c),g&&g.eachComponent(m,function(b){var T=_&&_.get(b.id)!=null;T||S(c[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},c);function S(b){b&&b.__alive&&b[h]&&b[h](b.__model,g,c._api,v)}},At={prepareAndUpdate:function(c){ar(this),At.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(v){k0(v),v.setUpdatePayload(c),m.restoreData(v,c),m.performSeriesTasks(v),g.create(v,d),et.trigger("coordsys:aftercreate",v,d),m.performDataProcessorTasks(v,c),so(this,v),g.update(v,d),n(v),m.performVisualTasks(v,c);var y=v.get("backgroundColor")||"transparent";p.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),uo(this,v,d,c,h),et.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=h._model,d=h._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(m,y){if(m!==ov){var _=h.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=U();v.eachSeries(function(m){var y=h._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,v,d,c);S&&S.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),h._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:g}),ga(h,v,d,c,{},g),et.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),ht.markUpdateMethod(c,"updateView"),n(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),uo(this,h,this._api,c,{}),et.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()}),ht.markUpdateMethod(c,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),et.trigger("afterupdate",v,this._api))},updateLayout:function(c){At.update.call(this,c)}};function t(c,h,v,d,p){if(c._disposed){c.id;return}for(var g=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Vi(g,v),S=0;S<m.length;S++){var b=m[S];if(b[h]&&(y=b[h](g,_,d,p))!=null)return y}}pa=t,so=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},lo=function(c,h){var v=this,d=this.getModel(),p=c.type,g=c.escapeConnect,m=ti[p],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&xt(y[0]);this[ge]=!0,Lr(this);var b=[c],T=!1;c.batch&&(T=!0,b=B(c.batch,function(O){return O=xe(k({},O),c),O.batch=null,O}));var w=[],I,C=[],D=m.nonRefinedEventType,M=Ho(c),E=uu(c);if(E&&_v(this._api),x(b,function(O){var j=m.action(O,d,v._api);if(m.refineEvent?C.push(j):I=j,I=I||k({},O),I.type=D,w.push(I),E){var oe=Rs(c),Q=oe.queryOptionMap,se=oe.mainTypeSpecified,re=se?Q.keys()[0]:"series";da(v,_,O,re),Je(v)}else M?(da(v,_,O,"series"),Je(v)):S&&da(v,_,O,S.main,S.sub)}),_!=="none"&&!E&&!M&&!S)try{this[be]?(ar(this),At.update.call(this,c),this[be]=null):At[_].call(this,c)}catch(O){throw this[ge]=!1,O}if(T?I={type:D,escapeConnect:g,batch:w}:I=w[0],this[ge]=!1,!h){var L=void 0;if(m.refineEvent){var F=m.refineEvent(C,c,d,this._api).eventContent;dt(N(F)),L=xe({type:m.refinedEventType},F),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var X=this._messageCenter;X.trigger(I.type,I),L&&X.trigger(L.type,L)}},Ir=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();lo.call(this,v,c)}},Ar=function(c){!c&&this.trigger("updated")},Rf=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[be]&&!h._scheduler.unfinished&&!h._pendingActions.length?h.trigger("finished"):c.refresh()})},Ef=function(c,h){c.on("mouseover",function(v){var d=v.target,p=Nr(d,Rn);p&&(im(p,v,h._api),Je(h))}).on("mouseout",function(v){var d=v.target,p=Nr(d,Rn);p&&(om(p,v,h._api),Je(h))}).on("click",function(v){var d=v.target,p=Nr(d,function(y){return K(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=K(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function a(c){var h=[],v=[],d=!1;if(c.eachComponent(function(y,_){var S=_.get("zlevel")||0,b=_.get("z")||0,T=_.getZLevelKey();d=d||!!T,(y==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:y,key:T})}),d){var p=h.concat(v),g,m;ki(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),x(p,function(y){var _=c.getComponent(y.type,y.idx),S=y.zlevel,b=y.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==m&&S++,m=b):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}uo=function(c,h,v,d,p){a(h),kf(c,h,v,d,p),x(c._chartsViews,function(g){g.__alive=!1}),ga(c,h,v,d,p),x(c._chartsViews,function(g){g.__alive||g.remove(h,v)})},kf=function(c,h,v,d,p,g){x(g||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,h,v,d),l(y,m),f(y,m)})},ga=function(c,h,v,d,p,g){var m=c._scheduler;p=k(p||{},{updatedSeries:h.getSeries()}),et.trigger("series:beforeupdate",h,v,p);var y=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;m.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(m.getPerformArgs(b))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),lu(_)}),m.unfinished=y||m.unfinished,et.trigger("series:layoutlabels",h,v,p),et.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),et.trigger("series:afterupdate",h,v,p)},Je=function(c){c[ao]=!0,c.getZr().wakeUp()},Lr=function(c){c[ha]=(c[ha]+1)%1e6},Of=function(c){c[ao]&&(c.getZr().storage.traverse(function(h){Vr(h)||i(h)}),c[ao]=!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===Os&&c.states.emphasis?h.push("emphasis"):c.hoverState===Ps&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr;if(v.painter.type==="canvas"){var d=v.storage,p=0;d.traverse(function(m){m.isGroup||p++});var g=p>W(h.get("hoverLayerThreshold"),ad.hoverLayerThreshold)&&!fe.node&&!fe.worker;(c._usingTHL||g)&&(h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Cv&&(S.hoverLayer=g?Mv:wv)})}}),c._usingTHL=g)}}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=Pn(c);h.eachRendered(function(d){return Vv(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!Vr(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"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Vr(m))return;if(m instanceof wt&&vm(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}Pf=function(c){return new((function(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){No(d,p),Je(c)},v.prototype.leaveEmphasis=function(d,p){Vo(d,p),Je(c)},v.prototype.enterBlur=function(d){nm(d),Je(c)},v.prototype.leaveBlur=function(d){pv(d),Je(c)},v.prototype.enterSelect=function(d){gv(d),Je(c)},v.prototype.leaveSelect=function(d){mv(d),Je(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.getECUpdateCycleVersion=function(){return c[ha]},v.prototype.usingTHL=function(){return c._usingTHL},v})(uv))(c)},Ld=function(c){function h(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[io]=d}}x(ls,function(v,d){c._messageCenter.on(d,function(p){if(ni[c.group]&&c[io]!==Lf){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];x(dr,function(y){y!==c&&y.group===c.group&&m.push(y)}),h(m,Lf),x(m,function(y){y[io]!==Ox&&y.dispatchAction(g)}),h(m,Nx)}})})}})(),e})(Wn),Al=ei.prototype;Al.on=Md("on");Al.off=Md("off");Al.one=function(r,e,t){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),n.off(r,a)}this.on.call(this,r,a,t)};var Vx=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ti={},ls={},us={},fs=[],cs=[],ri=[],Rd={},vs={},dr={},ni={},Bx=+new Date-0,zx=+new Date-0,Ll="_echarts_instance_";function Ed(r,e,t){var n=!(t&&t.ssr);if(n){var a=Rl(r);if(a)return a}var i=new ei(r,e,t);return i.id="ec_"+Bx++,dr[i.id]=i,n&&av(r,Ll,i.id),Ld(i),et.trigger("afterinit",i),i}function Fx(r){if(R(r)){var e=r;r=null,x(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+zx++,x(e,function(t){t.group=r})}return ni[r]=!0,r}function kd(r){ni[r]=!1}var Hx=kd;function Gx(r){P(r)?r=dr[r]:r instanceof ei||(r=Rl(r)),r instanceof ei&&!r.isDisposed()&&r.dispose()}function Rl(r){return dr[Vg(r,Ll)]}function Ux(r){return dr[r]}function El(r,e){Rd[r]=e}function kl(r){ve(cs,r)<0&&cs.push(r)}function Pl(r,e){Ol(fs,r,e,Ax)}function Pd(r){Li("afterinit",r)}function Od(r){Li("afterupdate",r)}function Li(r,e){et.on(r,e)}function $t(r,e,t){var n,a,i,o,s;Y(e)&&(t=e,e=""),N(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(n=r,a=e);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;ti[n]||(dt(Af.test(n)&&Af.test(a)),i&&dt(a!==n),ti[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:i},us[a]=1,i&&s&&(us[u]=1),ls[u]=n)}function Nd(r,e){bi.register(r,e)}function Yx(r){var e=bi.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Wx(r,e){}function Vd(r,e){Ol(ri,r,e,xd,"layout")}function Kt(r,e){Ol(ri,r,e,bd,"visual")}var Nf=[];function Ol(r,e,t,n,a,i){if((Y(e)||N(e))&&(t=e,e=n),!(ve(Nf,t)>=0)){Nf.push(t);var o=ud.wrapStageHandler(t,a);o.__prio=e,o.__raw=t,r.push(o)}}function Nl(r,e){vs[r]=e}function Xx(r){Wc({createCanvas:r})}function Bd(r,e,t){var n=md("registerMap");n&&n(r,e,t)}function Zx(r){var e=md("getMap");return e&&e(r)}var zd=p_;Kt(Il,ex);Kt(Ai,tx);Kt(Ai,rx);Kt(Il,dx);Kt(Ai,px);Kt(Td,Sx);kl(od);Pl(Cx,qS);Nl("default",nx);$t({type:cr,event:cr,update:cr},je);$t({type:wa,event:wa,update:wa},je);$t({type:Ba,event:Ns,update:Ba,action:je,refineEvent:Vl,publishNonRefinedEvent:!0});$t({type:Po,event:Ns,update:Po,action:je,refineEvent:Vl,publishNonRefinedEvent:!0});$t({type:za,event:Ns,update:za,action:je,refineEvent:Vl,publishNonRefinedEvent:!0});function Vl(r,e,t,n){return{eventContent:{selected:lm(t),isFromClick:e.isFromClick||!1}}}El("default",{});El("dark",hd);var $x={},Vf=[],Kx={registerPreprocessor:kl,registerProcessor:Pl,registerPostInit:Pd,registerPostUpdate:Od,registerUpdateLifecycle:Li,registerAction:$t,registerCoordinateSystem:Nd,registerLayout:Vd,registerVisual:Kt,registerTransform:zd,registerLoading:Nl,registerMap:Bd,registerImpl:mx,PRIORITY:wd,ComponentModel:q,ComponentView:Xe,SeriesModel:pt,ChartView:ht,registerComponentModel:function(r){q.registerClass(r)},registerComponentView:function(r){Xe.registerClass(r)},registerSeriesModel:function(r){pt.registerClass(r)},registerChartView:function(r){ht.registerClass(r)},registerCustomSeries:function(r,e){},registerSubTypeDefaulter:function(r,e){q.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){Lp(r,e)}};function gr(r){if(R(r)){x(r,function(e){gr(e)});return}ve(Vf,r)>=0||(Vf.push(r),Y(r)&&(r={install:r}),r.install(Kx))}var qx=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})();function Bf(r,e){var t=yl(r),n=t?r.intervalStub:r,a=e.fixMinMax||[],i=t?r.getExtent():null,o=n.getExtent(),s=n0(o,a,e.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=t?Qx(n,e):jx(n,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=Qn(c)),a[0]||(s[0]=Ie(mr(s[0]/f)*f,u)),a[1]||(s[1]=Ie(Ds(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),_0(r,a,o,s,i,l)}function jx(r,e){var t=_l(e.splitNumber,5),n=Ci(r),a=e.minInterval,i=e.maxInterval,o=Ls(n/t,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=Qn(o),l=r.getExtent(),u=[Ie(Ds(l[0]/o)*o,s),Ie(mr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function Qx(r,e){var t=_l(e.splitNumber,10),n=r.getExtent(),a=Ci(r),i=ce(qc(a),1),o=t/a*i;o<=.5&&(i*=10);var s=Qn(i),l=[Ie(Ds(n[0]/i)*i,s),Ie(mr(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function Jx(r,e,t,n,a){var i=SS(r,e,n,t,a),o=ts(r)||ml(r);eb(r,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i})}function eb(r,e){tb[r.type](r,e)}var tb={interval:Bf,log:Bf,time:d0,ordinal:je};function rb(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return nb(t,r,e),t.seriesInvolved&&ib(t,r),t}function nb(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];x(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Fn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(x(s.getAxes(),_e(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&x(d.baseAxes,_e(p,v?"cross":!0,h)),v&&x(d.otherAxes,_e(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!hs(_))){m==null&&(m=_.get("triggerTooltip")),_=g?ab(y,c,a,e,g,m):_;var b=_.get("snap"),T=_.get("triggerEmphasis"),w=Fn(y.model),I=m||b||y.type==="category",C=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:T,involveSeries:I,snap:b,useHandle:hs(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||I;var D=ob(i,y);if(D!=null){var M=o[D]||(o[D]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=i[D].mapper,C.linkGroup=M}}}})}function ab(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};x(s,function(h){l[h]=H(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),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&xe(u,c.textStyle)}}return r.model.getModel("axisPointer",new ee(l,t,n))}function ib(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||x(r.coordSysAxesInfo[Fn(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function ob(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(fo(i[n+"AxisId"],t.id)||fo(i[n+"AxisIndex"],t.componentIndex)||fo(i[n+"AxisName"],t.name))return a}}function fo(r,e){return r==="all"||R(r)&&ve(r,e)>=0||r===e}function sb(r){var e=Bl(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=hs(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Bl(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Fn(r)]}function lb(r){var e=Bl(r);return e&&e.axisPointerModel}function hs(r){return!!r.get(["handle","show"])}function Fn(r){return r.type+"||"+r.id}var zf={},ub=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&sb(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=lb(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){zf[t]=n},e.getAxisPointerClass=function(t){return t&&zf[t]},e.type="axis",e})(Xe),fb=Z();function Ff(r,e){return!!fb(r)[e]}$t({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},je);var cb={axisPointer:1,tooltip:1,brush:1};function vb(r,e,t){var n=e.getComponentByElement(r.topTarget);if(!n||n===t||cb.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===t)return!1;var i=Pn(n),o=Pn(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var hb=(function(r){$(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=z(n._mousedownHandler,n),i=z(n._mousemoveHandler,n),o=z(n._mouseupHandler,n),s=z(n._mousewheelHandler,n),l=z(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,h=Pn(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:W(c.z2,-1/0)},g=k({},f.triggerInfo);this._opt=xe(k({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(fn(t,"mousedown",a,p),fn(t,"mousemove",i,p),fn(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(fn(t,"mousewheel",s,p),fn(t,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,cn(t,"mousedown",a),cn(t,"mousemove",i),cn(t,"mouseup",o),cn(t,"mousewheel",s),cn(t,"pinch",l))},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,n,a){var i=this._opt,o=i.zInfoParsed;if(vb(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,n,a)),u&&s.isInClip&&!s.isInClip(t,n,a)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,n,a,i){var o=t.target;if(!o&&this._checkPointer(t,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!($l(t)||un(t))){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this._checkPointer(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var n=this._zr;if(!(t.gestureEvent==="pinch"||Ff(n,"globalPan")||un(t))){var a=t.offsetX,i=t.offsetY;if(!this._dragging||!Ra("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Hr(t.event),t.__ecRoamConsumed=!0,Hf(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!un(t)){var n=this._zr;if(!$l(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&n.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!un(t)){var n=Ra("zoomOnMouseWheel",t,this._opt),a=Ra("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(Ff(this._zr,"globalPan")||un(t))){var n=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,n,a,i,o){t._checkPointer(i,o.originX,o.originY)&&(Hr(i.event),i.__ecRoamConsumed=!0,Hf(t,n,a,i,o))},e})(Wn);function un(r){return r.__ecRoamConsumed}var db=Z();function Ri(r){var e=db(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function fn(r,e,t,n){for(var a=Ri(r),i=a.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:n}),pb(r,e)}function cn(r,e,t){for(var n=Ri(r),a=n.roam[e]||[],i=0;i<a.length;i++)if(a[i].listener===t){a.splice(i,1),a.length||gb(r,e);return}}function pb(r,e){var t=Ri(r);t.uniform[e]||r.on(e,t.uniform[e]=function(n){var a=t.roam[e];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function gb(r,e){var t=Ri(r),n=t.uniform;n[e]&&(r.off(e,n[e]),n[e]=null)}function Hf(r,e,t,n,a){a.isAvailableBehavior=z(Ra,null,t,n),r.trigger(e,a)}function Ra(r,e,t){var n=t[r];return!r||n&&(!P(n)||e.event[n+"Key"])}var mb=[];function co(r,e){for(var t=0;t<r.length;t++)Et(r[t],r[t],e)}function Gf(r,e,t,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Rp(e,e,i),Ep(t,t,i))}}function yb(r){for(var e=0,t=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var Fd=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})(),Uf=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})(),Yf=(function(){function r(e){this.type="linestring",this.points=e}return r})(),_b=(function(r){$(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,a=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return yb(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return x(o,function(s){s.type==="polygon"?Gf(s.exterior,a,i,t):x(s.points,function(l){Gf(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Me(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Kl(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Kl(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Me(t,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var h=f[c];h.type==="polygon"?(co(h.exterior,u),x(h.interiors,function(v){co(v,u)})):x(h.points,function(v){co(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e})(Fd);(function(r){$(e,r);function e(t,n){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=ci(mb),o=t;o&&!o.isGeoSVGGraphicRoot;)ys(i,o.getLocalTransform(),i),o=o.parent;return fi(i,i),Et(a,a,i),a},e})(Fd);function Sb(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return x(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Hd(s,o,t);break;case"Polygon":vo(s,o,t);break;case"MultiLineString":vo(s,o,t);break;case"MultiPolygon":x(s,function(l,u){return vo(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function vo(r,e,t){for(var n=0;n<r.length;n++)r[n]=Hd(r[n],e[n],t)}function Hd(r,e,t){for(var n=[],a=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/t,l/t])}return n}function Wf(r,e){return r=Sb(r),B(we(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Uf(o[0],o.slice(1)));break;case"MultiPolygon":x(a.coordinates,function(l){l[0]&&i.push(new Uf(l[0],l.slice(1)))});break;case"LineString":i.push(new Yf([a.coordinates]));break;case"MultiLineString":i.push(new Yf(a.coordinates))}var s=new _b(n[e||"name"],i,n.cp);return s.properties=n,s})}var xb=0,Xf=1,bb=2;var Tb="view";(function(r){$(e,r);function e(t,n,a){var i=r.call(this)||this;i.type=Tb,i.dimensions=["x","y"];var o=i;o.invertY=t,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[xb]=Pi(),s[Xf]=Pi(),s[bb]=Pi(),o.mtRaw=St(),o.mtRawInv=St(),o.mtOverall=St(),o.mtOverallInv=St(),o.zoom=1,i}return e.prototype.getBoundingRect=function(){return wb(null,this)},e.prototype.getViewRect=function(){return Mb(null,this)},e.prototype.getRoamTransform=function(){return kp(this.trans[Xf])},e.prototype.dataToPoint=function(t,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?Et(a,t,i):ql(a,t)},e.prototype.pointToData=function(t,n,a){a=a||[];var i=this.mtOverallInv;return i?Et(a,t,i):ql(a,t)},e.prototype.convertToPixel=function(t,n,a){var i=Zf(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=Zf(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){var n=this;return Ms(ma,n.dataRect),Pp(ma,ma,n.mtOverall),Op(ma,t[0],t[1])},e.dimensions=["x","y"],e})(ui);var ma=pi();function wb(r,e){return Ms(pi(),e.dataRect)}function Mb(r,e){return Ms(pi(),e.viewRect)}pi();function Zf(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function Cb(r,e){if(e){var t=e.min||0,n=e.max||1/0;r=Math.max(Math.min(n,r),t)}return r}var at=Z();function Db(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,Gd(e,t,r),x(t,function(n){x(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,_e(Ib,r))})}),e.wrapMethod("cloneShallow",_e(Lb,r)),x(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,_e(Ab,r))}),dt(t[e.dataType]===e)}function Ib(r,e){if(kb(this)){var t=k({},at(this).datas);t[this.dataType]=e,Gd(e,t,r)}else zl(e,this.dataType,at(this).mainData,r);return e}function Ab(r,e){return r.struct&&r.struct.update(),e}function Lb(r,e){return x(at(e).datas,function(t,n){t!==e&&zl(t.cloneShallow(),n,e,r)}),e}function Rb(r){var e=at(this).mainData;return r==null||e==null?e:at(e).datas[r]}function Eb(){var r=at(this).mainData;return r==null?[{data:r}]:B(ot(at(r).datas),function(e){return{type:e,data:at(r).datas[e]}})}function kb(r){return at(r).mainData===r}function Gd(r,e,t){at(r).datas={},x(e,function(n,a){zl(n,a,r,t)})}function zl(r,e,t,n){at(t).datas[e]=r,at(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=Rb,r.getLinkedDataAll=Eb}var Pb=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){Y(e)&&(n=t,t=e,e=null),e=e||{},P(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})(),Ob=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,c){var h=f.value;o=Math.max(o,R(h)?h.length:1),i.push(f);var v=new Pb(We(f.name,""),a);c?Nb(v,c):a.root=v,a._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}a.root.updateDepthAndHeight(0);var l=js(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new qs(l,t);return u.initData(i),n&&n(u),Db({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function Nb(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}function Fl(r,e,t){if(r&&ve(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(P(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function Ud(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Yd(r,e){var t=Ud(r);return ve(t,e)>=0}function Wd(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var $f=["treemapZoomToNode","treemapRender","treemapMove"];function Vb(r){for(var e=0;e<$f.length;e++)r.registerAction({type:$f[e],update:"updateView"},je);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Fl(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=Yd(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Bb(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=n_(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var zb=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};Xd(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new ee({itemStyle:o},this,n);i=t.levels=Fb(i,n);var l=B(i||[],function(c){return new ee(c,s,n)},this),u=Ob.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return Ur("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Wd(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},k(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=U(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){Bb(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:V.size.l,top:V.size.xxxl,right:V.size.l,bottom:V.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:V.size.m,emptyItemWidth:25,itemStyle:{color:V.color.backgroundShade,textStyle:{color:V.color.secondary}},emphasis:{itemStyle:{color:V.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:V.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:V.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(pt);function Xd(r){var e=0;x(r.children,function(n){Xd(n);var a=n.value;R(a)&&(a=a[0]),e+=a});var t=r.value;R(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),R(r.value)?r.value[0]=t:r.value=t}function Fb(r,e){var t=Se(e.get("color")),n=Se(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,i;x(r,function(s){var l=new ee(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}var Hb=8,Kf=8,ho=5,Gb=(function(){function r(e){this.group=new Re,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=Mi(e,t).refContainer,h={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},v={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=_r(h,c);this._prepare(n,v,u),this._renderContent(e,v,d,s,l,u,f,a),_h(o,h,c)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=We(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+Hb*2,t.emptyItemWidth);t.totalWidth+=s+Kf,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s,l){for(var u=0,f=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=t.totalWidth,v=t.renderList,d=i.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],m=g.node,y=g.width,_=g.text;h>n.width&&(h-=y-f,y=f,_=null);var S=new Un({shape:{points:Ub(u,0,y,c,p===v.length-1,p===0)},style:xe(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new ye({style:Ge(o,{text:_})}),textConfig:{position:"inside"},z2:Kn*1e4,onclick:_e(l,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ge(s,{text:_}),S.ensureState("emphasis").style=d,fm(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),Yb(S,e,m),u+=y+Kf}},r.prototype.remove=function(){this.group.removeAll()},r})();function Ub(r,e,t,n,a,i){var o=[[a?r:r-ho,e],[r+t,e],[r+t,e+n],[a?r:r-ho,e+n]];return!i&&o.splice(2,0,[r+t+ho,e+n/2]),!a&&o.push([r,e+n/2]),o}function Yb(r,e,t){K(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Wd(t,e)}}var Wb=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r})();function Xb(){return new Wb}var Hn=Math.max,ai=Math.min,Hl=x,Zd=["itemStyle","borderWidth"],Zb=["itemStyle","gapWidth"],$b=["upperLabel","show"],Kb=["upperLabel","height"];const qb={seriesType:"treemap",reset:function(r,e,t,n){var a=r.option,i=Mi(r,t).refContainer,o=_r(r.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=Fl(n,l,r),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,c=r.getViewRoot(),h=Ud(c);if(s!=="treemapMove"){var v=!1,d=s==="treemapZoomToNode"?(v=!0,rT(r,u,c,o)):f?(v=!0,k({},f)):k({},o);if(v){var p=jd(o,d);p=Qd(p,r),d.width=o.width*p,d.height=o.height*p}var g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var m={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};c.hostTree.clearLayouts();var y={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};c.setLayout(y),$d(c,m,!1,0),y=c.getLayout(),Hl(h,function(S,b){var T=(h[b+1]||c).getValue();S.setLayout(k({dataExtent:[T,T],borderWidth:0,upperHeight:0},y))})}var _=r.getData().tree.root;_.setLayout(nT(o,f,u),!0),r.setLayoutInfo(o),Kd(_,new Me(-o.x,-o.y,t.getWidth(),t.getHeight()),h,c,0)}};function $d(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(Zd),u=s.get(Zb)/2,f=qd(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=Hn(a-2*h,0),i=Hn(i-h-v,0);var d=a*i,p=jb(r,s,d,e,t,n);if(p.length){var g={x:h,y:v,width:a,height:i},m=ai(a,i),y=1/0,_=[];_.area=0;for(var S=0,b=p.length;S<b;){var T=p[S];_.push(T),_.area+=T.getLayout().area;var w=tT(_,m,e.squareRatio);w<=y?(S++,y=w):(_.area-=_.pop().getLayout().area,qf(_,m,g,u,!1),m=ai(g.width,g.height),_.length=_.area=0,y=1/0)}if(_.length&&qf(_,m,g,u,!0),!t){var I=s.get("childrenVisibleMin");I!=null&&d<I&&(t=!0)}for(var S=0,b=p.length;S<b;S++)$d(p[S],e,t,n+1)}}}function jb(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=we(o,function(v){return!v.isRemoved()}),Jb(o,s);var u=eT(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=Qb(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*t;o[f].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function Qb(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function Jb(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function eT(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=_t(),Hl(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function tT(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?Hn(u*n/l,l/(u*a)):1/0}function qf(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=Hn(f-2*n,0),m=t[s[i]]+t[l[i]]-u,y=c===h-1||m<p?m:p,_=d[l[i]]=Hn(y-2*n,0);d[s[o]]=t[s[o]]+ai(n,g/2),d[s[i]]=u+ai(n,_/2),u+=y,v.setLayout(d,!0)}t[s[o]]+=f,t[l[o]]-=f}function rT(r,e,t,n){var a=(e||{}).node,i=n.width,o=n.height,s=k({},n);if(!a||a===t)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var c=0,h=l.children,v=0,d=h.length;v<d;v++)c+=h[v].getValue();var p=a.getValue();if(p===0)return s;f*=c/p;var g=l.getModel(),m=g.get(Zd),y=Math.max(m,qd(g));f+=4*m*m+(3*m+y)*Math.pow(f,.5),f>Eo&&(f=Eo),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function nT(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function Kd(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new Me(e.x-i.x,e.y-i.y,e.width,e.height);Hl(r.viewChildren||[],function(u){Kd(u,l,t,n,a+1)})}}function qd(r){return r.get($b)?r.get(Kb):0}function jd(r,e){return e.width/r.width||e.height/r.height||1}function Qd(r,e){return Cb(r,e.get("scaleLimit",!0))}var ds=Re,jf=Oe,Qf=3,Jf="label",ec="upperLabel",aT=Kn*10,iT=Kn*2,oT=Kn*3,or=Gr([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),tc=function(r){var e=or(r);return e.stroke=e.fill=e.lineWidth=null,e},ii=Z(),sT=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=vn(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(ve(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Fl(i,s,t),u=i&&i.type,f=t.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=t.get("animation"),g=this._doRender(d,t,v);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new ds,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=vn(),l=vn(),u=this._storage,f=[];function c(g,m,y,_){return lT(n,l,u,a,s,f,g,m,y,_)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:p};function v(g,m,y,_,S){_?(m=g,x(g,function(w,I){!w.isRemoved()&&T(I,I)})):new Gv(m,g,b,b).add(T).update(T).remove(_e(T,null)).execute();function b(w){return w.getId()}function T(w,I){var C=w!=null?g[w]:null,D=I!=null?m[I]:null,M=c(C,D,y,S);M&&v(C&&C.viewChildren||[],D&&D.viewChildren||[],M,_,S+1)}}function d(g){var m=vn();return g&&x(g,function(y,_){var S=m[_];x(y,function(b){b&&(S.push(b),ii(b).willDelete=!0)})}),m}function p(){x(h,function(g){x(g,function(m){m.parent&&m.parent.remove(m)})}),x(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(Y(o)?0:o)||0,u=(Y(s)?null:s)||"cubicOut",f=Xb();x(n.willDeleteEls,function(c,h){x(c,function(v,d){if(!v.invisible){var p=v.parent,g,m=ii(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,_=0;m.willDelete||(y=m.nodeWidth/2,_=m.nodeHeight/2),g=h==="nodeGroup"?{x:y,y:_,style:{opacity:0}}:{shape:{x:y,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),x(this._storage,function(c,h){x(c,function(v,d){var p=n.lastsForAnimation[h][d],g={};p&&(v instanceof Re?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=k({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(z(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new hb(t.getZr()),i.on("pan",z(this._onPan,this)),i.on("zoom",z(this._onZoom,this))),i.enable(a.get("roam"),{api:t,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>Qf||Math.abs(t.dy)>Qf)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY,i=t.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new Me(l.x,l.y,l.width,l.height),f=o.layoutInfo,c=jd(f,l),h=c*i;h=Qd(h,o);var v=h/c;n-=f.x,a-=f.y;var d=St();Lo(d,d,[-n,-a]),Np(d,d,[v,v]),Lo(d,d,[n,a]),u.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Ko(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Gb(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(Yd(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=vn(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e})(ht);function vn(){return{nodeGroup:[],background:[],content:[]}}function lT(r,e,t,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=f.borderWidth,g=f.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,T=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),I=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),D=T.get("borderRadius")||0,M=ie("nodeGroup",ds);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),ii(M).nodeWidth=v,ii(M).nodeHeight=d,f.isAboveViewRoot)return M;var E=ie("background",jf,u,iT);E&&se(M,E,b&&f.upperLabelHeight);var L=h.getModel("emphasis"),F=L.get("focus"),X=L.get("blurScope"),O=L.get("disabled"),j=F==="ancestor"?o.getAncestorsIndices():F==="descendant"?o.getDescendantIndices():F;if(b)Rn(M)&&ur(M,!1),E&&(ur(E,!O),c.setItemGraphicEl(o.dataIndex,E),Fo(E,j,X));else{var oe=ie("content",jf,u,oT);oe&&re(M,oe),E.disableMorphing=!0,E&&Rn(E)&&ur(E,!1),ur(M,!O),c.setItemGraphicEl(o.dataIndex,M);var Q=h.getShallow("cursor");Q&&oe.attr("cursor",Q),Fo(M,j,X)}return M;function se(te,G,he){var ne=K(G);if(ne.dataIndex=o.dataIndex,ne.seriesIndex=r.seriesIndex,G.setShape({x:0,y:0,width:v,height:d,r:D}),g)Ve(G);else{G.invisible=!1;var le=o.getVisual("style"),Ee=le.stroke,ke=tc(T);ke.fill=Ee;var de=or(w);de.fill=w.get("borderColor");var Ue=or(I);Ue.fill=I.get("borderColor");var Ct=or(C);if(Ct.fill=C.get("borderColor"),he){var br=v-2*p;De(G,Ee,le.opacity,{x:p,y:0,width:br,height:S})}else G.removeTextContent();G.setStyle(ke),G.ensureState("emphasis").style=de,G.ensureState("blur").style=Ue,G.ensureState("select").style=Ct,Oo(G)}te.add(G)}function re(te,G){var he=K(G);he.dataIndex=o.dataIndex,he.seriesIndex=r.seriesIndex;var ne=Math.max(v-2*p,0),le=Math.max(d-2*p,0);if(G.culling=!0,G.setShape({x:p,y:p,width:ne,height:le,r:D}),g)Ve(G);else{G.invisible=!1;var Ee=o.getVisual("style"),ke=Ee.fill,de=tc(T);de.fill=ke,de.decal=Ee.decal;var Ue=or(w),Ct=or(I),br=or(C);De(G,ke,Ee.opacity,null),G.setStyle(de),G.ensureState("emphasis").style=Ue,G.ensureState("blur").style=Ct,G.ensureState("select").style=br,Oo(G)}te.add(G)}function Ve(te){!te.invisible&&i.push(te)}function De(te,G,he,ne){var le=h.getModel(ne?ec:Jf),Ee=We(h.get("name"),null),ke=le.getShallow("show");Dm(te,Im(h,ne?ec:Jf),{defaultText:ke?Ee:null,inheritColor:G,defaultOpacity:he,labelFetcher:r,labelDataIndex:o.dataIndex});var de=te.getTextContent();if(de){var Ue=de.style,Ct=ws(Ue.padding||0);ne&&(te.setTextConfig({layoutRect:ne}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var Ul=Math.max((ne?ne.width:te.shape.width)-Ct[1]-Ct[3],0),Yl=Math.max((ne?ne.height:te.shape.height)-Ct[0]-Ct[2],0);(Ue.width!==Ul||Ue.height!==Yl)&&de.setStyle({width:Ul,height:Yl})},Ue.truncateMinChar=2,Ue.lineOverflow="truncate",J(Ue,ne,f);var br=de.getState("emphasis");J(br?br.style:null,ne,f)}}function J(te,G,he){var ne=te?te.text:null;if(!G&&he.isLeafRoot&&ne!=null){var le=r.get("drillDownIcon",!0);te.text=le?le+" "+ne:ne}}function ie(te,G,he,ne){var le=y!=null&&t[te][y],Ee=a[te];return le?(t[te][y]=null,Be(Ee,le)):g||(le=new G,le instanceof Vp&&(le.z2=uT(he,ne)),xr(Ee,le)),e[te][m]=le}function Be(te,G){var he=te[m]={};G instanceof ds?(he.oldX=G.x,he.oldY=G.y):he.oldShape=k({},G.shape)}function xr(te,G){var he=te[m]={},ne=o.parentNode,le=G instanceof Re;if(ne&&(!n||n.direction==="drillDown")){var Ee=0,ke=0,de=a.background[ne.getRawIndex()];!n&&de&&de.oldShape&&(Ee=de.oldShape.width,ke=de.oldShape.height),le?(he.oldX=0,he.oldY=ke):he.oldShape={x:Ee,y:ke,width:0,height:0}}he.fadein=!le}}function uT(r,e){return r*aT+e}var Gn=x,fT=N,oi=-1,Le=(function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=H(e);this.type=n,this.mappingMethod=t,this._normalizeData=hT[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(po(a),cT(a)):t==="category"?a.categories?vT(a):po(a,!0):(dt(t!=="linear"||a.dataExtent),po(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return z(this._normalizeData,this)},r.listVisualTypes=function(){return ot(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){N(e)?x(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=R(e)?[]:N(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&Gn(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(R(e))e=e.slice();else if(fT(e)){var t=[];Gn(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||P(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(_a(c[1],e,f[1]))return o}else if(f[1]===1/0){if(_a(c[0],f[0],e))return o}else if(_a(c[0],f[0],e)&&_a(c[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function h(v,d){var p=Math.abs(v-e);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:hn("color"),getColorMapper:function(){var e=this.option;return z(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),yn.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=Ni(t,e.parsedVisual,a),i?a:Oi(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Oi(Ni(e,this.option.parsedVisual),"rgba")},category:yn,piecewise:function(e,t){var n=gs.call(this,t);return n==null&&(n=Oi(Ni(e,this.option.parsedVisual),"rgba")),n},fixed:sr}},colorHue:ya(function(e,t){return Ht(e,t)}),colorSaturation:ya(function(e,t){return Ht(e,null,t)}),colorLightness:ya(function(e,t){return Ht(e,null,null,t)}),colorAlpha:ya(function(e,t){return Xc(e,t)}),decal:{applyVisual:hn("decal"),_normalizedToVisual:{linear:null,category:yn,piecewise:null,fixed:null}},opacity:{applyVisual:hn("opacity"),_normalizedToVisual:ps([0,1])},liftZ:{applyVisual:hn("liftZ"),_normalizedToVisual:{linear:sr,category:sr,piecewise:sr,fixed:sr}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:rc,category:yn,piecewise:function(e,t){var n=gs.call(this,t);return n==null&&(n=rc.call(this,e)),n},fixed:sr}},symbolSize:{applyVisual:hn("symbolSize"),_normalizedToVisual:ps([0,1])}},r})();function cT(r){var e=r.pieceList;r.hasSpecialVisual=!1,x(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function vT(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(Gn(e,function(o,s){t[o]=s}),!R(n)){var a=[];N(n)?Gn(n,function(o,s){var l=t[s];a[l??oi]=o}):a[oi]=n,n=Jd(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function po(r,e){var t=r.visual,n=[];N(t)?Gn(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),Jd(r,n)}function ya(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:ps([0,1])}}function rc(r){var e=this.option.visual;return e[Math.round(bt(r,[0,1],[0,e.length-1],!0))]||{}}function hn(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function yn(r){var e=this.option.visual;return e[this.option.loop&&r!==oi?r%e.length:r]}function sr(){return this.option.visual[0]}function ps(r){return{linear:function(e){return bt(e,r,this.option.visual,!0)},category:yn,piecewise:function(e,t){var n=gs.call(this,t);return n==null&&(n=bt(e,r,this.option.visual,!0)),n},fixed:sr}}function gs(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Le.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function Jd(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=B(e,function(t){var n=Bp(t);return n||[0,0,0,1]})),e}var hT={linear:function(r){return bt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Le.findPieceIndex(r,e,!0);if(t!=null)return bt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??oi},fixed:je};function _a(r,e,t){return r?e<=t:e<t}var dT="itemStyle",ep=Z();const pT={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||tp(t,{},r.getViewRoot().getAncestors(),r)}};function tp(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(dT),l=gT(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=nc(l),f=mT(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=nc(l),u.fill=h;else{var d=yT(r,a,i,s,l,v);x(v,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var m=_T(a,l,p,g,d,n);tp(p,m,t,n)}})}}}function gT(r,e,t){var n=k({},e),a=t.designatedVisualItemStyle;return x(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function nc(r){var e=go(r,"color");if(e){var t=go(r,"colorAlpha"),n=go(r,"colorSaturation");return n&&(e=Ht(e,null,null,n)),t&&(e=Xc(e,t)),e}}function mT(r,e){return e!=null?Ht(e,null,null,r):null}function go(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function yT(r,e,t,n,a,i){if(!(!i||!i.length)){var o=mo(e,"color")||a.color!=null&&a.color!=="none"&&(mo(e,"colorAlpha")||mo(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new Le(c);return ep(h).drColorMappingBy=f,h}}}function mo(r,e){var t=r.get(e);return R(t)&&t.length?{name:e,range:t}:null}function _T(r,e,t,n,a,i){var o=k({},e);if(a){var s=a.type,l=s==="color"&&ep(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function hM(r){r.registerSeriesModel(zb),r.registerChartView(sT),r.registerVisual(pT),r.registerLayout(qb),Vb(r)}function ST(r,e,t,n,a,i){r=r||0;var o=ir(t[1],-t[0]);if(a!=null&&(a=Rr(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(ir(e[1],-e[0]));s=Rr(s,[0,o]),a=i=Rr(s,[a,i]),n=0}e[0]=Rr(e[0],t),e[1]=Rr(e[1],t);var l=yo(e,n);e[n]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]=ir(f[0],u):f[1]=ir(f[1],-u),e[n]=Rr(e[n],f);var c;return c=yo(e,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(e[1-n]=ir(e[n],l.sign*a)),c=yo(e,n),i!=null&&c.span>i&&(e[1-n]=ir(e[n],c.sign*i)),e}function yo(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Rr(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var lr=Z(),ac=H,_o=z,xT=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&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,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Re,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=_e(ic,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}sc(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&Ii(a).w>s)return!0;if(o){var l=Bl(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=lr(e).pointerEl=new Cm[i.type](ac(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=lr(e).labelEl=new ye(ac(t.label));e.add(i),oc(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=lr(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=lr(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),oc(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Us(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hr(u.event)},onmousedown:_o(this._onHandleDragMove,this,0,0),drift:_o(this._onHandleDragMove,this),ondragend:_o(this._onHandleDragEnd,this)}),n.add(a)),sc(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");R(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,ed(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){ic(this._axisPointerModel,!t&&this._moveAnimation,this._handle,So(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(So(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(So(a)),lr(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),is(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r})();function ic(r,e,t,n){rp(lr(t).lastProp,n)||(lr(t).lastProp=n,e?pr(t,n,r):(t.stopAnimation(),t.attr(n)))}function rp(r,e){if(N(r)&&N(e)){var t=!0;return x(e,function(n,a){t=t&&rp(r[a],n)}),!!t}else return r===e}function oc(r,e){r[e.get(["label","show"])?"show":"hide"]()}function So(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function sc(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}function bT(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function TT(r,e,t,n,a){var i=t.get("value"),o=np(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=jn(s.get("padding")||0),u=s.getFont(),f=Gc(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),wT(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ge(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function wT(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function np(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Xa(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};x(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),P(o)?i=o.replace("{value}",i):Y(o)&&(i=o(s))}return i}function ap(r,e,t){var n=St();return Uc(n,n,t.rotation),Lo(n,n,t.position),Br([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function MT(r,e,t,n,a,i){var o=hr.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),TT(e,n,a,i,{position:ap(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function CT(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function DT(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function IT(r,e,t){return Ii(r,{fromStat:{sers:B(e,function(n){return t.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function AT(r,e,t){return[ce(it(e[0],e[1]),r-t/2),it(r+t/2,ce(e[0],e[1]))]}var LT=(function(r){$(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),c=lc(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=bT(i),d=RT[u](s,h,f,c,i.get("seriesDataIndices"),i.ecModel);d.style=v,t.graphicKey=d.type,t.pointer=d}var p=rf(l.getRect(),a);MT(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=rf(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=ap(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=lc(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=n[f],c[f]=it(l[1],c[f]),c[f]=ce(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:t.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(xT);function lc(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var RT={line:function(r,e,t,n){var a=CT([e,n[0]],[e,n[1]],uc(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,n,a,i){var o=IT(r,a,i),s=n[1]-n[0],l=AT(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:DT([u,n[0]],[f-u,s],uc(r))}}};function uc(r){return r.dim==="x"?0:1}var ET=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:V.color.border,width:1,type:"dashed"},shadowStyle:{color:V.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:V.color.neutral00,padding:[5,7,5,7],backgroundColor:V.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:V.color.accent40,throttle:40}},e})(q),Rt=Z(),kT=x;function ip(r,e,t){if(!fe.node){var n=e.getZr();Rt(n).records||(Rt(n).records={}),PT(n,e);var a=Rt(n).records[r]||(Rt(n).records[r]={});a.handler=t}}function PT(r,e){if(Rt(r).initialized)return;Rt(r).initialized=!0,t("click",_e(xo,"click")),t("mousemove",_e(xo,"mousemove")),t("mousewheel",_e(xo,"mousewheel")),t("globalout",NT);function t(n,a){r.on(n,function(i){var o=VT(e);kT(Rt(r).records,function(s){s&&a(s,i,o.dispatchAction)}),OT(o.pendings,e)})}}function OT(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function NT(r,e,t){r.handler("leave",null,t)}function xo(r,e,t,n){e.handler(r,t,n)}function VT(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function ms(r,e){if(!fe.node){var t=e.getZr(),n=(Rt(t).records||{})[r];n&&(Rt(t).records[r]=null)}}var BT=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";ip("axisPointer",a,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})})},e.prototype.remove=function(t,n){ms("axisPointer",n)},e.prototype.dispose=function(t,n){ms("axisPointer",n)},e.type="axisPointer",e})(Xe);function op(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=$n(i,r);if(o==null||o<0||R(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.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),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(B(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var fc=Z();function zT(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||z(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ea(a)&&(a=op({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Ea(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||Ea(a),h={},v={},d={list:[],map:{}},p={showPointer:_e(HT,v),showTooltip:_e(GT,d)};x(s.coordSysMap,function(m,y){var _=l||m.containPoint(a);x(s.coordSysAxesInfo[y],function(S,b){var T=S.axis,w=XT(u,S);if(!c&&_&&(!u||w)){var I=w&&w.value;I==null&&!l&&(I=T.pointToData(a)),I!=null&&cc(S,I,p,!1,h)}})});var g={};return x(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&x(_.axesInfo,function(S,b){var T=v[b];if(S!==m&&T){var w=T.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,vc(S),vc(m)))),g[m.key]=w}})}),x(g,function(m,y){cc(f[y],m,p,!0,h)}),UT(v,f,h),YT(d,a,r,o),WT(f,o,t),h}}function cc(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=FT(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&k(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function FT(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return x(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(n,f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(kt(c)){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),x(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function HT(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function GT(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Fn(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:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function UT(r,e,t){var n=t.axesInfo=[];x(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function YT(r,e,t,n){if(Ea(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function WT(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=fc(n)[a]||{},o=fc(n)[a]={};x(r,function(f,c){var h=f.axisPointerModel.option;h.status==="show"&&f.triggerEmphasis&&x(h.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}x(i,function(f,c){!o[c]&&l.push(u(f))}),x(o,function(f,c){!i[c]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function XT(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function vc(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function Ea(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ZT(r){ub.registerAxisPointerClass("CartesianAxisPointer",LT),r.registerComponentModel(ET),r.registerComponentView(BT),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!R(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=rb(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zT)}var $T=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:V.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:V.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:V.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:V.color.tertiary,fontSize:14}},e})(q);function sp(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function lp(r){if(fe.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var up=lp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),KT=lp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function fp(r,e){if(!r)return e;e=cl(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function qT(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?t[e]:null}var jT=fp(KT,"transition"),Gl=fp(up,"transform"),QT="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(fe.transform3dSupported?"will-change:transform;":"");function JT(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function ew(r,e,t){if(!P(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=On(e);var i=JT(t),o=Math.max(Math.round(a)*1.5,6),s="",l=Gl+":",u;ve(["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+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function tw(r,e,t){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return t&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+n,i+=(i.length?",":"")+(fe.transformSupported?""+Gl+a:",left"+a+",top"+a)),jT+":"+i}function hc(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!fe.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=fe.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+Gl+":"+o+";":[["top",0],["left",0],[up,o]]}function rw(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var a=W(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),x(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function nw(r,e,t,n){var a=[],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=Ah(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+v),e&&i>0&&a.push(tw(i,t,n)),o&&a.push("background-color:"+o),x(["width","color","radius"],function(d){var p="border-"+d,g=cl(p),m=r.get(g);m!=null&&a.push(p+":"+m+(d==="color"?"":"px"))}),a.push(rw(c)),h!=null&&a.push("padding:"+jn(h).join("px ")+"px"),a.join(";")+";"}function dc(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Fp(r,o,t,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var aw=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,fe.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),i=t.appendTo,o=i&&(P(i)?document.querySelector(i):jl(i)?i:Y(i)&&i(e.getDom()));dc(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();zp(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=qT(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=QT+nw(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+hc(i[0],i[1],!0)+("border-color:"+On(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(P(i)&&n.get("trigger")==="item"&&!sp(n)&&(s=ew(n,a,i)),P(e))o.innerHTML=e+s;else if(e){o.innerHTML="",R(e)||(e=[e]);for(var l=0;l<e.length;l++)jl(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(dc(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=hc(n[0],n[1]);x(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",fe.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Hp(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},r})(),iw=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),gc(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;N(e)&&Ye(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new ye({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ah(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),x(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),x(["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(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=pc(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;gc(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=Bt(i.borderWidth||0),s=pc(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(z(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Bt(r){return Math.max(0,r)}function pc(r){var e=Bt(r.shadowBlur||0),t=Bt(r.shadowOffsetX||0),n=Bt(r.shadowOffsetY||0);return{left:Bt(e-t),right:Bt(e+t),top:Bt(e-n),bottom:Bt(e+n)}}function gc(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var ow=new Oe({shape:{x:-1,y:-1,width:2,height:2}}),sw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(fe.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=Bg(a.get("renderMode"));this._tooltipContent=i==="richText"?new iw(n):new aw(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,n,a){if(!(fe.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?ed(this,"_updatePosition",50,"fixRate"):is(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");ip("itemTooltip",this._api,z(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||fe.node||!a.getDom())){var o=mc(i,a);this._ticket="";var s=i.dataByCoordSys,l=cw(i,n,a);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=ow;f.x=i.x,f.y=i.y,f.update(),K(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(t,n,a,i))return;var c=op(i,n),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&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(mc(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=dn([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=K(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Nr(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(K(f).dataIndex!=null?l=f:K(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=z(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=dn([n.tooltipOption],i),l=this._renderMode,u=[],f=Ur("section",{blocks:[],noHeader:!0}),c=[],h=new ji;x(t,function(y){x(y.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,T=S.axis,w=T.scale.parse(b);if(!(!S||b==null)){var I=np(b,T,a,_.seriesDataIndices,_.valueLabelOpt),C=Ur("section",{header:I,noHeader:!Yn(I),sortBlocks:!0,blocks:[]});f.blocks.push(C),x(_.seriesDataIndices,function(D){var M=a.getSeriesByIndex(D.seriesIndex),E=D.dataIndexInside,L=M.getDataParams(E);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=Xa(S.axis,{value:w}),L.axisValueLabel=I,L.marker=h.makeTooltipMarker("item",On(L.color),l);var F=ku(M.formatTooltip(E,!0,null)),X=F.frag;if(X){var O=dn([M],i).get("valueFormatter");C.blocks.push(O?k({valueFormatter:O},X):X)}F.text&&c.push(F.text),u.push(L)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,d=s.get("order"),p=Bu(f,h,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
15
+ `],sy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=St()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=xg({color:t,type:e,renderMode:n,markerId:r});return F(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};N(t)?D(t,function(e){return b(n,e)}):b(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}()}));function ly(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=N(s),l=ny(t,n),u,d,f,p;if(o>1||c&&!o){var m=uy(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=P_(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=dn(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Uv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Uv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!pe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function uy(e,t,n,r,i){var a=t.getData(),o=k(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?D(r,function(e){u(P_(a,n,e),e)}):D(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Uv(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var dy=t((()=>{U(),cy(),Y_(),Y()}));function fy(e,t){return e.getName(t)||e.getId(t)}function py(e){var t=e.name;dn(e)||(e.name=my(e)||t)}function my(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return D(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function hy(e){return e.model.getRawData().count()}function gy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_y}function _y(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function vy(e,t){D(_e(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,M(yy,t))})}function yy(e,t){var n=by(e);return n&&n.setOutputEnd((t||this).count()),t}function by(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var xy,Sy,Cy=t((()=>{G(),U(),Ze(),Y(),e_(),c_(),$_(),Xg(),rv(),ir(),Lv(),dy(),xy=J(),Sy=function(e){W(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=ev({count:hy,reset:gy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(xy(this).sourceManager=new Iv(this)).prepareSource();var r=this.getInitialData(e,n);vy(r,this),this.dataTask.context.data=r,xy(this).dataBeforeProcessed=r,py(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vg(this),r=n?Ug(e):{},i=this.subType;$g.hasClass(i)&&(i+=`Series`),v(e,t.getTheme().get(this.subType)),v(e,this.getDefaultOption()),Zt(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Hg(e,r,n)},t.prototype.mergeOption=function(e,t){e=v(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Vg(this);n&&Hg(this.option,e,n);var r=xy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);vy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,xy(this).dataBeforeProcessed=i,py(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ie(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Zt(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=by(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return xy(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=by(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}xy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return V(e)},t.prototype.getSourceManager=function(){return xy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return xy(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`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,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return ly({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(K.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=s_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},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,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=fy(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=j(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[fy(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){L(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=fy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=fy(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return $g.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}($g),T(Sy,Q_),T(Sy,s_),Yn(Sy,$g)}));Cy(),U(),Y();var wy=J();function Ty(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,My(t,n,e),D(n,function(n){D(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,M(Ey,e))})}),t.wrapMethod(`cloneShallow`,M(Oy,e)),D(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,M(Dy,e))}),fe(n[t.dataType]===t)}function Ey(e,t){if(jy(this)){var n=b({},wy(this).datas);n[this.dataType]=t,My(t,n,e)}else Ny(t,this.dataType,wy(this).mainData,e);return t}function Dy(e,t){return e.struct&&e.struct.update(),t}function Oy(e,t){return D(wy(t).datas,function(n,r){n!==t&&Ny(n.cloneShallow(),r,t,e)}),t}function ky(e){var t=wy(this).mainData;return e==null||t==null?t:wy(t).datas[e]}function Ay(){var e=wy(this).mainData;return e==null?[{data:e}]:O(j(wy(e).datas),function(t){return{type:t,data:wy(e).datas[t]}})}function jy(e){return wy(e).mainData===e}function My(e,t,n){wy(e).datas={},D(t,function(t,r){Ny(t,r,e,n)})}function Ny(e,t,n,r){wy(n).datas[t]=e,wy(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=ky,e.getLinkedDataAll=Ay}function Py(e){return e==null?0:e.length||1}function Fy(e){return e}var Iy,Ly=t((()=>{Iy=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Fy,this._newKeyGetter=r||Fy,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=Py(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=Py(c),d=Py(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=Py(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=Py(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}()}));function Ry(e,t){var n={},r=n.encode={},i=V(),a=[],o=[],s={};D(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;zy(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Vy(n.type)&&(a[0]=t),zy(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Ql.each(function(e,t){var i=zy(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=O(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Hy(s,t),n}function zy(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function By(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Vy(e){return!(e===`ordinal`||e===`time`)}var Hy,Uy=t((()=>{U(),ou(),Hy=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}()})),Wy,Gy=t((()=>{U(),Wy=function(){function e(e){this.otherDims={},e!=null&&b(this,e)}return e}()}));function Ky(e){return e instanceof Qy}function qy(e){for(var t=V(),n=0;n<(e||[]).length;n++){var r=e[n],i=L(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Jy(e){var t=Xy(e);return t.dimNameMap||=qy(e.dimensionsDefine)}function Yy(e){return e>30}var Xy,Zy,Qy,$y=t((()=>{U(),Y(),k_(),Xy=J(),Zy={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Qy=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=Jy(this.source))},e.prototype.getSourceDimensionIndex=function(e){return B(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=D_(this.source),n=!Yy(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=Zy[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}()})),eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb=t((()=>{U(),Hm(),Ly(),Y_(),Uy(),Gy(),ou(),Y(),Zl(),k_(),Mv(),$y(),eb=L,tb=O,nb=typeof Int32Array>`u`?Array:Int32Array,rb=`e\0\0`,ib=-1,ab=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],ob=[`_approximateExtent`],mb=function(){function e(e,t){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 n,r=!1;Ky(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=F(u)?new Wy({name:u}):u instanceof Wy?u:new Wy(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=V();D(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(I(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof jv&&(i=e),!i){var a=this.dimensions,o=v_(e)||E(e)?new V_(e,a.length):e;i=new jv;var s=tb(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Ry(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&pb(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&$t(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=un(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=un(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)pb(this,o);sb(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){eb(e)?b(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=lb(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return cb(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return N(e)?r.getValues(tb(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?ib:r},e.prototype.each=function(e,t,n){P(e)&&(n=t,t=e,e=[]);var r=n||this,i=tb(ub(e),this._getStoreDimIndex,this);this._store.each(i,r?H(t,r):t)},e.prototype.filterSelf=function(e,t,n){P(e)&&(n=t,t=e,e=[]);var r=n||this,i=tb(ub(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?H(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=j(e),i=[];return D(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){P(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=tb(ub(e),this._getStoreDimIndex,this),o=fb(this);return o._store=this._store.map(a,i?H(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=tb(ub(e),this._getStoreDimIndex,this);this._store.modify(a,i?H(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=fb(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=fb(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=fb(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Vm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Iy(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return cb(e,t)},function(e){return cb(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},eb(e)?b(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),N(i)?i=i.slice():eb(i)&&(i=b({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,eb(t)?b(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){eb(e)?b(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?b(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Xl(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){D(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:tb(this.dimensions,this._getDimInfo,this),this.hostModel),db(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];P(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ue(arguments)))})},e.internalField=function(){sb=function(e){var t=e._invertedIndicesMap;D(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new nb(a.categories.length);for(var s=0;s<n.length;s++)n[s]=ib;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},lb=function(e,t,n){return un(e._getCategory(t,n),null)},cb=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=lb(e,e._idDimIdx,t)),n??=rb+t,n},ub=function(e){return N(e)||(e=e==null?[]:[e]),e},fb=function(t){var n=new e(t._schema?t._schema:tb(t.dimensions,t._getDimInfo,t),t.hostModel);return db(n,t),n},db=function(e,t){D(ab.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,D(ob,function(n){e[n]=_(t[n])}),e._calculationInfo=b({},t._calculationInfo)},pb=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=lb(e,i,t)),s==null&&a!=null&&(r[t]=s=lb(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}()}));function gb(e,t){return _b(e,t).dimensions}function _b(e,t){v_(e)||(e=b_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=V(),a=[],o=vb(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Yy(o),c=r===e.dimensionsDefine,l=c?Jy(e):qy(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=V(u),f=new Dv(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=L(n)?n:{name:n},o=new Wy,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Xt(e).slice();if(n.length===1&&!F(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);D(n,function(e,n){var i=F(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;D(n,function(e){var t,n,r,i;if(F(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=b({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Xt(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}D(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(S(o,i),t,a),o.name==null&&n){var s=n[a];!L(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&S(o.otherDims,r)})}});function g(e,t,n){Ql.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var x=_||`value`;function C(e){e.name??=e.coordDim}if(s)D(a,function(e){C(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<o;w++){var T=m(w);T.coordDim??(T.coordDim=yb(x,i,y),T.coordDimIndex=0,(!_||v<=0)&&(T.isExtraCoord=!0),v--),C(T),T.type==null&&(p_(e,w)===h_.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type=`ordinal`)}return Nn(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new Qy({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function vb(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return D(t,function(e){var t;L(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function yb(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var bb=t((()=>{ou(),Gy(),U(),k_(),Mv(),Y(),__(),$y()}));U(),hb(),bb(),Y();var xb=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){P(e)&&(n=t,t=e,e=null),e||={},F(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),Sb=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,N(n)?n.length:1),a.push(e);var r=new xb(un(e.name,``),i);t?Cb(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=_b(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new mb(c,n);return l.initData(a),r&&r(l),Ty({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function Cb(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}c_();function wb(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=t_(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}G(),U(),Hm(),Y(),cy(),Bv();var Tb=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Eb(n);var r=e.levels||[],i=new Vm({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=Db(r,t);var a=O(r||[],function(e){return new Vm(e,i,t)},this),o=Sb.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Uv(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=Ge(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},b(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=V(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){wb(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:Q.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Q.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Sy);function Eb(e){var t=0;D(e.children,function(e){Eb(e);var n=e.value;N(n)&&(n=n[0]),t+=n});var n=e.value;N(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),N(e.value)?e.value[0]=n:e.value=n}function Db(e,t){var n=Xt(t.get(`color`)),r=Xt(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;D(e,function(e){var t=new Vm(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}lm(),Zl(),Xg(),U(),Y(),md(),Dm();var Ob=8,kb=8,Ab=5,jb=function(){function e(e){this.group=new zd,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=zg(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=Rg(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),Bg(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=un(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+Ob*2,t.emptyItemWidth);t.totalWidth+=o+kb,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new xf({shape:{points:Mb(c,0,_,u,m===f.length-1,m===0)},style:S(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Wl({style:mm(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:M(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=mm(o,{text:v}),y.ensureState(`emphasis`).style=p,Ju(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),Nb(y,e,g),c+=_+kb}},e.prototype.remove=function(){this.group.removeAll()},e}();function Mb(e,t,n,r,i,a){var o=[[i?e:e-Ab,t],[e+n,t],[e+n,t+r],[i?e:e-Ab,t+r]];return!a&&o.splice(2,0,[e+n+Ab,t+r/2]),!i&&o.push([e,t+r/2]),o}function Nb(e,t,n){Yl(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Ge(n,t)}}function Pb(e,t,n,r){return n||={},r?Fb(e,t,n):Wb&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Fb(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Fb(e,t,n){if(K.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(ih(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(th(Ub,e,r,i)){n.zrX=Ub[0],n.zrY=Ub[1];return}}n.zrX=n.zrY=0}function Ib(e){return e||window.event}function Lb(e,t,n){if(t=Ib(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Pb(e,i,t,n)}else{Pb(e,t,t,n);var a=Rb(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Hb.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Rb(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function zb(e,t,n,r){e.addEventListener(t,n,r)}function Bb(e,t,n,r){e.removeEventListener(t,n,r)}function Vb(e){return e.which===2||e.which===3}var Hb,Ub,Wb,Gb,Kb=t((()=>{Ze(),uh(),Hb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ub=[],Wb=K.browser.firefox&&+K.browser.version.split(`.`)[0]<39,Gb=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}})),qb,Jb,Yb=t((()=>{qb=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Jb=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new qb(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new qb(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new qb(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new qb(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new qb(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new qb(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}()}));function Xb(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Zb(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Qb,$b,ex=t((()=>{Kb(),Qb=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Pb(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in $b)if($b.hasOwnProperty(t)){var n=$b[t](this._track,e);if(n)return n}},e}(),$b={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Xb(r)/Xb(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Zb(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}}}));function tx(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:nx}}function nx(){Gb(this.event)}function rx(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?ox:!0}return!1}function ix(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=rx(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==ox)){t.target=o;break}}}function ax(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var ox,sx,cx,lx,ux,dx,fx=t((()=>{G(),U(),ii(),Yb(),ms(),Kb(),ex(),Ai(),ox=`silent`,sx=function(e){W(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ps),cx=function(){function e(e,t){this.x=e,this.y=t}return e}(),lx=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],ux=new Z(0,0,0,0),dx=function(e){W(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new cx(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new sx,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Jb(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(D(lx,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=ax(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new cx(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new cx(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=tx(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new cx(e,t);if(ix(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Z(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(ux.copy(u.getBoundingRect()),u.transform&&ux.applyTransform(u.transform),ux.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(ix(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new Qb;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new cx;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ps),D([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){dx.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=ax(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||ni(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}})}));function px(e){for(var t=0;e>=xx;)t|=e&1,e>>=1;return e+t}function mx(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;hx(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function hx(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function gx(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function _x(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function vx(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function yx(e,t){var n=Sx,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=vx(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=_x(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=vx(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=_x(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=Sx||m>=Sx);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-vx(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-_x(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=Sx||g>=Sx);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function bx(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<xx){a=mx(e,n,r,t),gx(e,n,r,n+a,t);return}var o=yx(e,t),s=px(i);do{if(a=mx(e,n,r,t),a<s){var c=i;c>s&&(c=s),gx(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var xx,Sx,Cx=t((()=>{xx=32,Sx=7}));function Tx(){Dx||(Dx=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Ex(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Dx,Ox,kx=t((()=>{U(),Cx(),Ss(),Dx=!1,Ox=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ex}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,bx(n,Ex)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Tx(),p.z=0),isNaN(p.z2)&&(Tx(),p.z2=0),isNaN(p.zlevel)&&(Tx(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=C(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}()})),Ax,jx=t((()=>{Ze(),Ax=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)}}));function Mx(){return new Date().getTime()}var Nx,Px=t((()=>{G(),ms(),jx(),fs(),Nx=function(e){W(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Mx()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Ax(t),!e._paused&&e.update())}Ax(t)},t.prototype.start=function(){this._running||(this._time=Mx(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Mx(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Mx()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new ds(e,t.loop);return this.addAnimator(n),n},t}(ps)}));function Fx(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ix(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Lx(e){e&&(e.zrByTouch=!0)}function Rx(e,t){return Lb(e.dom,new Yx(e,t),!0)}function zx(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}function Bx(e,t){var n=t.domHandlers;K.pointerEventsSupported?D(Kx.pointer,function(r){Hx(t,r,function(t){n[r].call(e,t)})}):(K.touchEventsSupported&&D(Kx.touch,function(r){Hx(t,r,function(i){n[r].call(e,i),Ix(t)})}),D(Kx.mouse,function(r){Hx(t,r,function(i){i=Ib(i),t.touching||n[r].call(e,i)})}))}function Vx(e,t){K.pointerEventsSupported?D(qx.pointer,n):K.touchEventsSupported||D(qx.mouse,n);function n(n){function r(r){r=Ib(r),zx(e,r.target)||(r=Rx(e,r),t.domHandlers[n].call(e,r))}Hx(t,n,r,{capture:!0})}}function Hx(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,zb(e.domTarget,t,n,r)}function Ux(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Bb(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS=t((()=>{G(),Kb(),U(),ms(),Ze(),Wx=300,Gx=K.domSupported,Kx=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:O(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),qx={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Jx=!1,Yx=function(){function e(e,t){this.stopPropagation=xe,this.stopImmediatePropagation=xe,this.preventDefault=xe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Xx={mousedown:function(e){e=Lb(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Lb(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=Lb(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Lb(this.dom,e);var t=e.toElement||e.relatedTarget;zx(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Jx=!0,e=Lb(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Jx||(e=Lb(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Lb(this.dom,e),Lx(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Xx.mousemove.call(this,e),Xx.mousedown.call(this,e)},touchmove:function(e){e=Lb(this.dom,e),Lx(e),this.handler.processGesture(e,`change`),Xx.mousemove.call(this,e)},touchend:function(e){e=Lb(this.dom,e),Lx(e),this.handler.processGesture(e,`end`),Xx.mouseup.call(this,e),new Date-+this.__lastTouchMoment<Wx&&Xx.click.call(this,e)},pointerdown:function(e){Xx.mousedown.call(this,e)},pointermove:function(e){Fx(e)||Xx.mousemove.call(this,e)},pointerup:function(e){Xx.mouseup.call(this,e)},pointerout:function(e){Fx(e)||Xx.mouseout.call(this,e)}},D([`click`,`dblclick`,`contextmenu`],function(e){Xx[e]=function(t){t=Lb(this.dom,t),this.trigger(e,t)}}),Zx={pointermove:function(e){Fx(e)||Zx.mousemove.call(this,e)},pointerup:function(e){Zx.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}},Qx=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),$x=function(e){W(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Qx(t,Xx),Gx&&(r._globalHandlerScope=new Qx(document,Zx)),Bx(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ux(this._localHandlerScope),Gx&&Ux(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Gx&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Vx(this,t):Ux(t)}},t}(ps)})),tS=n({dispose:()=>aS,disposeAll:()=>oS,getElementSSRData:()=>lS,getInstance:()=>sS,init:()=>iS,registerPainter:()=>cS,registerSSRDataGetter:()=>uS,version:()=>hS});function nS(e){delete fS[e]}function rS(e){if(!e)return!1;if(typeof e==`string`)return Ao(e,1)<_s;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Ao(t[i].color,1);return n/=r,n<_s}return!1}function iS(e,t){var n=new pS(h(),e,t);return fS[n.id]=n,n}function aS(e){e.dispose()}function oS(){for(var e in fS)fS.hasOwnProperty(e)&&fS[e].dispose();fS={}}function sS(e){return fS[e]}function cS(e,t){dS[e]=t}function lS(e){if(typeof mS==`function`)return mS(e)}function uS(e){mS=e}var dS,fS,pS,mS,hS,gS=t((()=>{Ze(),U(),fx(),kx(),Px(),eS(),zo(),xs(),Bd(),dS={},fS={},pS=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Ox,a=n.renderer||`canvas`;dS[a]||(a=j(dS)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new dS[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!K.node&&!K.worker&&!s?new $x(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?K.touchEventsSupported:!!l,d=44,f;u&&(f=B(n.pointerSize,d)),this.handler=new dx(i,o,c,o.root,f),this.animation=new Nx({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=rS(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=Mx(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Mx();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof zd&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,nS(this.id))},e}(),hS=`6.1.0`})),_S,vS,yS,bS,xS,SS=t((()=>{zo(),Bv(),_S=``,typeof navigator<`u`&&(_S=navigator.platform||``),vS=`rgba(0, 0, 0, 0.2)`,yS=Q.color.theme[0],bS=Do(yS,null,null,.9),xS={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[bS,yS],aria:{decal:{decals:[{color:vS,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vS,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vS,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vS,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vS,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vS,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_S.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}}));function CS(e,t,n){var r=wS.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var wS,TS=t((()=>{U(),wS=V()}));function ES(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function DS(e,t){var n=e.color&&!e.colorLayer;D(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||$g.hasClass(r)||(typeof t==`object`?e[r]=e[r]?v(e[r],t,!1):_(t):e[r]??(e[r]=t))})}function OS(e,t,n){if(N(t)){var r=V();return D(t,function(e){e!=null&&un(e,null)!=null&&r.set(e,!0)}),A(n,function(t){return t&&r.get(t[e])})}else{var i=un(t,null);return A(n,function(t){return t&&i!=null&&t[e]===i})}}function kS(e,t){return t.hasOwnProperty(`subType`)?A(e,function(e){return e&&e.subType===t.subType}):e}function AS(e){var t=V();return e&&D(Xt(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}var jS,MS,NS,PS,FS,IS,LS=t((()=>{G(),U(),Y(),Hm(),e_(),SS(),__(),TS(),c_(),PS=`\0_ec_inner`,FS=1,IS=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Vm(r),this._locale=new Vm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=AS(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,AS(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?NS(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&D(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=V(),s=t&&t.replaceMergeMainTypeMap;l_(this),D(e,function(e,t){e!=null&&($g.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?_(e):v(n[t],e,!0))}),s&&s.each(function(e,t){$g.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),$g.topologicalTravel(a,$g.getAllClassMainTypes(),c,this);function c(t){var a=CS(this,t,Xt(e[t])),o=r.get(t),c=en(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);pn(c,t,$g),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;D(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=$g.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=b({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),b(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&jS(this)}this._seriesIndices||jS(this)},t.prototype.getOption=function(){var e=_(this.option);return D(e,function(t,n){if($g.hasClass(n)){for(var r=Xt(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!fn(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[PS],e},t.prototype.setTheme=function(e){this._theme=new Vm(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,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?A(a,function(e){return!!e}):OS(`name`,i,a):OS(`id`,r,a):(o=[],D(Xt(n),function(e){a[e]&&o.push(a[e])})),kS(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(kS(r?this.queryComponents(r):A(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?A(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(P(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=F(e)?r.get(e):L(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=un(e,null);return A(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return A(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return A(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){MS(this),D(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){D(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){MS(this),D(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return D(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return MS(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){MS(this);var n=[];D(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=V(n)},t.prototype.restoreData=function(e){jS(this);var t=this._componentsMap,n=[];t.each(function(e,t){$g.hasClass(t)&&n.push(t)}),$g.topologicalTravel(n,$g.getAllClassMainTypes(),function(n){D(t.get(n),function(t){t&&(n!==`series`||!ES(t,e))&&t.restoreData()})})},t.internalField=function(){jS=function(e){var t=e._seriesIndices=[];D(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=V(t)},MS=function(e){},NS=function(e,t){e.option={},e.option[PS]=FS,e._componentsMap=V({series:[]}),e._componentsCount=V();var n=t.aria;L(n)&&n.enabled==null&&(n.enabled=!0),DS(t,e._theme.option),v(t,xS,!1),e._mergeOption(t,null)}}(),t}(Vm),T(IS,s_)}));function RS(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||=s):((d||u)&&(e.options=e.media=null),a=e),u&&N(l)&&D(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),D(c,function(e){return f(e)}),D(r,function(e){return f(e.option)});function f(e){D(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function zS(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return D(e,function(e,t){var n=t.match(HS);if(!(!n||!n[1]||!n[2])){var a=n[1];BS(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function BS(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function VS(e,t){return e.join(`,`)===t.join(`,`)}var HS,US,WS=t((()=>{Y(),U(),HS=/^(min|max)?(.+)$/,US=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(D(Xt(e.series),function(e){e&&e.data&&ie(e.data)&&me(e.data)}),D(Xt(e.dataset),function(e){e&&e.source&&ie(e.source)&&me(e.source)})),e=_(e);var r=this._optionBackup,i=RS(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],_(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=_(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)zS(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!VS(a,this._currentMediaIndices)&&(o=O(a,function(e){return _(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}()}));function GS(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=nC.length;n<r;n++){var i=nC[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?v(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?v(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function KS(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,S(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function qS(e){KS(e,`itemStyle`),KS(e,`lineStyle`),KS(e,`areaStyle`),KS(e,`label`),KS(e,`labelLine`),KS(e,`upperLabel`),KS(e,`edgeLabel`)}function JS(e,t){var n=tC(e)&&e[t],r=tC(n)&&n.textStyle;if(r)for(var i=0,a=Bn.length;i<a;i++){var o=Bn[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function YS(e){e&&(qS(e),JS(e,`label`),e.emphasis&&JS(e.emphasis,`label`))}function XS(e){if(tC(e)){GS(e),qS(e),JS(e,`label`),JS(e,`upperLabel`),JS(e,`edgeLabel`),e.emphasis&&(JS(e.emphasis,`label`),JS(e.emphasis,`upperLabel`),JS(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(GS(t),YS(t));var n=e.markLine;n&&(GS(n),YS(n));var r=e.markArea;r&&YS(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ie(a))for(var o=0;o<a.length;o++)YS(a[o]);D(e.categories,function(e){qS(e)})}if(i&&!ie(i))for(var o=0;o<i.length;o++)YS(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)YS(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)N(c[o])?(YS(c[o][0]),YS(c[o][1])):YS(c[o]);e.type===`gauge`?(JS(e,`axisLabel`),JS(e,`title`),JS(e,`detail`)):e.type===`treemap`?(KS(e.breadcrumb,`itemStyle`),D(e.levels,function(e){qS(e)})):e.type===`tree`&&qS(e.leaves)}}function ZS(e){return N(e)?e:e?[e]:[]}function QS(e){return(N(e)?e[0]:e)||{}}function $S(e,t){eC(ZS(e.series),function(e){tC(e)&&XS(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),eC(n,function(t){eC(ZS(e[t]),function(e){e&&(JS(e,`axisLabel`),JS(e.axisPointer,`label`))})}),eC(ZS(e.parallel),function(e){var t=e&&e.parallelAxisDefault;JS(t,`axisLabel`),JS(t&&t.axisPointer,`label`)}),eC(ZS(e.calendar),function(e){KS(e,`itemStyle`),JS(e,`dayLabel`),JS(e,`monthLabel`),JS(e,`yearLabel`)}),eC(ZS(e.radar),function(e){JS(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),eC(ZS(e.geo),function(e){tC(e)&&(YS(e),eC(ZS(e.regions),function(e){YS(e)}))}),eC(ZS(e.timeline),function(e){YS(e),KS(e,`label`),KS(e,`itemStyle`),KS(e,`controlStyle`,!0);var t=e.data;N(t)&&D(t,function(e){L(e)&&(KS(e,`label`),KS(e,`itemStyle`))})}),eC(ZS(e.toolbox),function(e){KS(e,`iconStyle`),eC(e.feature,function(e){KS(e,`iconStyle`)})}),JS(QS(e.axisPointer),`label`),JS(QS(e.tooltip).axisPointer,`label`)}var eC,tC,nC,rC=t((()=>{U(),Y(),eC=D,tC=L,nC=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`]}));function iC(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function aC(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function oC(e){e&&D(pC,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function sC(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<hC.length;n++){var r=hC[n][1],i=hC[n][0];t[r]!=null&&(t[i]=t[r])}}function cC(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function lC(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function uC(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function dC(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&dC(e[n].children,t)}function fC(e,t){$S(e,t),e.series=Xt(e.series),D(e.series,function(e){if(L(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),cC(e.label);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)cC(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=iC(e,`pointer.color`);i!=null&&aC(e,`itemStyle.color`,i)}else if(t===`bar`){sC(e),sC(e.backgroundStyle),sC(e.emphasis);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(sC(n[r]),sC(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),lC(e),dC(e.data,lC)}else t===`graph`||t===`sankey`?uC(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&S(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),oC(e)}}),e.dataRange&&(e.visualMap=e.dataRange),D(mC,function(t){var n=e[t];n&&(N(n)||(n=[n]),D(n,function(e){oC(e)}))})}var pC,mC,hC,gC=t((()=>{U(),rC(),Y(),pC=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],mC=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],hC=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]]}));function _C(e){var t=V();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={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(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),D(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),vC(e))})}function vC(e){D(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=dt(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var yC,bC=t((()=>{U(),q(),Y(),yC=Ln(_C)})),xC,SC=t((()=>{Bd(),Jm(),ir(),xC=function(){function e(){this.group=new zd,this.uid=Um(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}(),qn(xC),$n(xC)}));function CC(){var e=J();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var wC=t((()=>{Y()}));function TC(e,t,n){e&&Zu(e)&&(t===`emphasis`?ku:Au)(e,n)}function EC(e,t,n){var r=gn(e,t),i=t&&t.highlightKey!=null?Qu(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){TC(e,n,i)}):D(Xt(r),function(t){TC(e.getItemGraphicEl(t),n,i)})}function DC(e){return AC(e.model)}function OC(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&kC(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),MC[c]}var kC,AC,jC,MC,NC=t((()=>{U(),Bd(),Jm(),ir(),Y(),md(),rv(),wC(),lm(),kC=J(),AC=CC(),jC=function(){function e(){this.group=new zd,this.uid=Um(`viewChart`),this.renderTask=ev({plan:DC,reset:OC}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&EC(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&EC(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Up(this.group,e)},e.markUpdateMethod=function(e,t){kC(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}(),qn(jC,[`dispose`]),$n(jC),MC={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}}}));function PC(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function FC(e,t,n,r){var i=e[t];if(i){var a=i[LC]||i,o=i[zC];if(i[RC]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=PC(a,n,r===`debounce`),i[LC]=a,i[zC]=r,i[RC]=n}return i}}function IC(e,t){var n=e[t];n&&n[LC]&&(n.clear&&n.clear(),e[t]=n[LC])}var LC,RC,zC,BC=t((()=>{LC=`\0__throttleOriginMethod`,RC=`\0__throttleRate`,zC=`\0__throttleType`}));function VC(e,t){return e.visualStyleMapper||WC[t]||(console.warn(`Unknown style type '`+t+`'.`),WC.itemStyle)}function HC(e,t){return e.visualDrawType||GC[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var UC,WC,GC,KC,qC,JC,YC,XC=t((()=>{U(),or(),Bm(),Im(),Hm(),Y(),UC=J(),WC={itemStyle:ar(Lm,!0),lineStyle:ar(Nm,!0)},GC={lineStyle:`stroke`,itemStyle:`fill`},KC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=VC(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=HC(e,r),c=a[s],l=P(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||P(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||P(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=b({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},qC=new Vm,JC={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=VC(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){qC.option=n[r];var o=i(qC);b(e.ensureUniqueItemVisual(t,`style`),o),qC.option.decal&&(e.setItemVisual(t,`decal`,qC.option.decal),qC.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},YC={performRawSeries:!0,overallReset:function(e){var t=V();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();UC(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=UC(e).scope,a=HC(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}}}));function ZC(e,t){t||={},S(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new zd,r=new Ol({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Wl({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ol({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new If({shape:{startAngle:-QC/2,endAngle:-QC/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:QC*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:QC*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var QC,$C=t((()=>{U(),lm(),Bv(),QC=Math.PI}));function ew(e){e.overallReset(e.ecModel,e.api,e.payload)}function tw(e){return e.dirtyOnOverallProgress&&nw}function nw(){this.agent.dirty(),this.getDownstream().dirty()}function rw(){this.agent&&this.agent.dirty()}function iw(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function aw(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Xt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?O(t,function(e,t){return ow(t)}):dw}function ow(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function sw(e){return e.data.count()}function cw(e){mw=null;try{e(fw,pw)}catch{}return mw}function lw(e,t){for(var n in t.prototype)e[n]=xe}var uw,dw,fw,pw,mw,hw=t((()=>{U(),rv(),Jm(),LS(),uu(),Y(),uw=function(){function e(e,t,n,r){this._stageTaskMap=V(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):In(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=V();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;D(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});fe(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;D(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=V(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||ev({plan:iw,reset:aw,count:sw}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||ev({reset:ew});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=V(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;fe(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):D(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,ev({reset:tw,onDirty:rw})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return P(e)&&(e={overallReset:e,seriesType:cw(e)}),e.uid=Um(`stageHandler`),t&&(e.visualType=t),e},e}(),dw=ow(0),fw={},pw={},lw(fw,IS),lw(pw,lu),fw.eachSeriesByType=fw.eachRawSeriesByType=function(e){mw=e},fw.eachComponent=function(e){e.mainType===`series`&&e.subType&&(mw=e.subType)}})),$,gw,_w,vw,yw,bw=t((()=>{Bv(),$=Q.darkColor,gw=$.background,_w=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},vw={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},yw={darkMode:!0,color:$.theme,backgroundColor:gw,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:gw,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:vw,y:vw,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:_w(),logAxis:_w(),valueAxis:_w(),categoryAxis:_w(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var e=_w();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}},yw.categoryAxis.splitLine.show=!1})),xw,Sw=t((()=>{U(),ir(),xw=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(F(e)){var i=Wn(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};D(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}()})),Cw,ww,Tw,Ew,Dw=t((()=>{U(),Cw=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],ww=Cw.concat([`symbolKeepAspect`]),Tw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<Cw.length;o++){var s=Cw[o],c=e.get(s);P(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(b({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=j(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},Ew={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<ww.length;r++){var i=ww[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}}}));function Ow(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function kw(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function Aw(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}var jw=t((()=>{}));function Mw(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=gn(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:N(l)?c.getName(l[0]):c.getName(l),selected:F(r)?r:b({},r)})}})}function Nw(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Mw(`map`,`selectchanged`,t,r,e),Mw(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Mw(`map`,`selected`,t,r,e),Mw(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Mw(`map`,`unselected`,t,r,e),Mw(`pie`,`unselected`,t,r,e))})}var Pw=t((()=>{U(),Y()}));function Fw(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Iw=t((()=>{})),Lw,Rw=t((()=>{ms(),Lw=new ps}));function zw(e,t){Vw[e]=t}function Bw(e){return Vw[e]}var Vw,Hw=t((()=>{Vw={}}));function Uw(e,t){Ww[e]=t}var Ww,Gw=t((()=>{Ww={}}));function Kw(e){Yw(e).prepare={}}function qw(e){Yw(e).fullUpdate={}}function Jw(e){return Yw(e).fullUpdate}var Yw,Xw=t((()=>{Y(),Yw=J()})),Zw,Qw,$w,eT=t((()=>{Zw=Math.round(Math.random()*9),Qw=typeof Object.defineProperty==`function`,$w=function(){function e(){this._id=`__ec_inner_`+Zw++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Qw?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}()}));function tT(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function nT(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?xp(e.slice(8),new Z(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?bp(e.slice(7),{},new Z(t,n,r,i),o?`center`:`cover`):new dT({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=tT,a&&c.setColor(a),c}function rT(e,t){if(e!=null)return N(e)||(e=[e,e]),[zt(e[0],t[0])||0,zt(B(e[1],e[0]),t[1])||0]}var iT,aT,oT,sT,cT,lT,uT,dT,fT=t((()=>{U(),lm(),Ai(),Gi(),q(),Bv(),iT=ll.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),aT=ll.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),oT=ll.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),sT=ll.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),cT={line:Of,rect:Ol,roundRect:Ol,square:Ol,circle:Hd,diamond:aT,pin:oT,arrow:sT,triangle:iT},lT={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},uT={},D(cT,function(e,t){uT[t]=new e}),dT=ll.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Vi(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=uT[r];i||=(r=`rect`,uT[r]),lT[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}})}));function pT(e){return isFinite(e)}function mT(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=pT(r)?r:0,i=pT(i)?i:1,a=pT(a)?a:0,o=pT(o)?o:0,e.createLinearGradient(r,a,i,o)}function hT(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=pT(o)?o:.5,s=pT(s)?s:.5,c=c>=0&&pT(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function gT(e,t,n){for(var r=t.type===`radial`?hT(e,t,n):mT(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function _T(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function vT(e){return parseInt(e,10)}function yT(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||vT(s[r])||vT(e.style[r]))-(vT(s[a])||0)-(vT(s[o])||0)||0}var bT=t((()=>{}));function xT(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:I(e)?[e]:N(e)?e:null}function ST(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&xT(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=O(n,function(e){return e/i}),r/=i)}return[n,r]}var CT=t((()=>{U()}));function wT(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function TT(e){return typeof e==`string`&&e!==`none`}function ET(e){var t=e.fill;return t!=null&&t!==`none`}function DT(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function OT(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function kT(e,t,n){var r=gr(t.image,t.__image,n);if(vr(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Be),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function AT(e,t,n,r,i){var a,o=wT(n),s=ET(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||GT,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?gT(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?gT(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?kT(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?kT(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=ST(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&OT(e,n),s&&DT(e,n)):(s&&DT(e,n),o&&OT(e,n)),T&&e.setLineDash([])}function jT(e,t,n){var r=t.__image=gr(n.image,t.__image,t,t.onload);if(!(!r||!vr(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function MT(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=ST(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(wT(n)&&e.strokeText(i,n.x,n.y),ET(n)&&e.fillText(i,n.x,n.y)):(ET(n)&&e.fillText(i,n.x,n.y),wT(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}function NT(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){BT(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Us.opacity:o}(r||t.blend!==n.blend)&&(a||=(BT(e,i),!0),e.globalCompositeOperation=t.blend||Us.blend);for(var s=0;s<KT.length;s++){var c=KT[s];(r||t[c]!==n[c])&&(a||=(BT(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(BT(e,i),!0),e.shadowColor=t.shadowColor||Us.shadowColor),a}function PT(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=NT(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(BT(e,i),!0),TT(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(BT(e,i),!0),TT(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(BT(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(BT(e,i),!0),e.lineWidth=c)}for(var l=0;l<qT.length;l++){var u=qT[l],d=u[0];(r||a[d]!==o[d])&&(s||=(BT(e,i),!0),e[d]=a[d]||u[1])}return s}function FT(e,t,n,r,i){return NT(e,t.style,n&&n.style,r,i)}function IT(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function LT(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),IT(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function RT(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}function zT(e){var t=ET(e),n=wT(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function BT(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function VT(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};HT(e,t,n),UT(e,n)}function HT(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||_T(i,a))&&(a&&(BT(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(BT(e,n),e.save(),LT(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof ll&&t.autoBatch&&zT(o);s||RT(r,l.transform)?(BT(e,n),IT(e,t)):u||BT(e,n),t instanceof ll?(n.lastDrawType!==JT&&(c=!0,n.lastDrawType=JT),PT(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),AT(e,t,o,u,n)):t instanceof fl?(n.lastDrawType!==XT&&(c=!0,n.lastDrawType=XT),PT(e,t,l,c,n),MT(e,t,o)):t instanceof _l?(n.lastDrawType!==YT&&(c=!0,n.lastDrawType=YT),FT(e,t,l,c,n),jT(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==ZT&&(c=!0,n.lastDrawType=ZT),WT(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&BT(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function UT(e,t){BT(e,t),t.prevElClipPaths&&e.restore()}function WT(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),HT(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}UT(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),HT(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}UT(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var GT,KT,qT,JT,YT,XT,ZT,QT=t((()=>{Xs(),jc(),br(),bT(),ul(),vl(),pl(),U(),CT(),Ss(),p(),GT=new Ac(!0),KT=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],qT=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]],JT=1,YT=2,XT=3,ZT=4}));function $T(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&aE.delete(e);var a=aE.get(e);if(a)return a;var o=S(e,{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 c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,aE.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<sE.length;++s){var c=o[sE[s]];if(c!=null&&!N(c)&&!F(c)&&!I(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=oE.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=tE(o.dashArrayX),p=nE(o.dashArrayY),m=eE(o.symbol),h=rE(d),g=iE(p),_=!i&&f.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&oE.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=wt(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=wt(r,m[t].length);e*=r;var i=g*h.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,f=0,h=0,x=0;f<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=f+d[l][h]*C,T=a+p[s]*C,E=d[l][h]*o.symbolSize,D=p[s]*o.symbolSize,O=x/2%m[u].length;k(w,T,E,D,m[u][O])}f+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=p[s],++c,++s,s===p.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=nT(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else VT(b,u)}}}}function eE(e){if(!e||e.length===0)return[[`rect`]];if(F(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!F(e[n])){t=!1;break}if(t)return eE([e]);for(var r=[],n=0;n<e.length;++n)F(e[n])?r.push([e[n]]):r.push(e[n]);return r}function tE(e){if(!e||e.length===0)return[[0,0]];if(I(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!I(e[r])){n=!1;break}if(n)return tE([e]);for(var i=[],r=0;r<e.length;++r)if(I(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=O(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function nE(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(I(e)){var t=Math.ceil(e);return[t,t]}var n=O(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function rE(e){return O(e,function(e){return iE(e)})}function iE(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var aE,oE,sE,cE=t((()=>{eT(),mr(),U(),q(),fT(),QT(),p(),aE=new $w,oE=new pr(100),sE=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`]}));function lE(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=$T(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=$T(i,t)}}})}var uE,dE=t((()=>{cE(),Y(),uE=Ln(lE)}));function fE(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return mE(this,e,t)}}function pE(e){return function(){var t=[...arguments];return mE(this,e,t)}}function mE(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ps.prototype[t].apply(e,n)}function hE(e,t,n){var r=!(n&&n.ssr);if(r){var i=yE(e);if(i)return i}var a=new FD(e,t,n);return a.id=`ec_`+JD++,KD[a.id]=a,r&&xn(e,XD,a.id),jD(a),Lw.trigger(`afterinit`,a),a}function gE(e){if(N(e)){var t=e;e=null,D(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+YD++,D(t,function(t){t.group=e})}return qD[e]=!0,e}function _E(e){qD[e]=!1}function vE(e){F(e)?e=KD[e]:e instanceof FD||(e=yE(e)),e instanceof FD&&!e.isDisposed()&&e.dispose()}function yE(e){return KD[Sn(e,XD)]}function bE(e){return KD[e]}function xE(e,t){WD[e]=t}function SE(e){C(HD,e)<0&&HD.push(e)}function CE(e,t){NE(VD,e,t,KE)}function wE(e){EE(`afterinit`,e)}function TE(e){EE(`afterupdate`,e)}function EE(e,t){Lw.on(e,t)}function DE(e,t,n){var r,i,a,o,s;P(t)&&(n=t,t=``),L(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;RD[r]||(fe(lD.test(r)&&lD.test(i)),a&&fe(i!==r),RD[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},BD[i]=1,a&&s&&(BD[l]=1),zD[l]=r)}function OE(e,t){Ng.register(e,t)}function kE(e){var t=Ng.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function AE(e,t){Uw(e,t)}function jE(e,t){NE(UD,e,t,JE,`layout`,!0)}function ME(e,t){NE(UD,e,t,ZE,`visual`,!0)}function NE(e,t,n,r,i,a){if((P(t)||L(t))&&(n=t,t=r),!(C(QD,n)>=0)){QD.push(n);var o=uw.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function PE(e,t){GD[e]=t}function FE(e){a({createCanvas:e})}function IE(e,t,n){var r=Bw(`registerMap`);r&&r(e,t,n)}function LE(e){var t=Bw(`getMap`);return t&&t(e)}function RE(e,t,n,r){return{eventContent:{selected:Gu(n),isFromClick:t.isFromClick||!1}}}var zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO=t((()=>{G(),gS(),U(),Ze(),Cx(),ms(),LS(),uu(),Fg(),WS(),gC(),bC(),Cy(),SC(),NC(),lm(),Zl(),md(),Y(),BC(),XC(),$C(),hw(),bw(),ir(),Sw(),ou(),Dw(),jw(),Jt(),Pw(),xv(),Th(),Iw(),Rw(),p(),Hw(),Gw(),Xw(),SS(),dE(),zE=`6.1.0`,BE={zrender:`6.1.0`},VE=1,HE=800,UE=900,WE=920,GE=1e3,KE=2e3,qE=5e3,JE=1e3,YE=1100,XE=2e3,ZE=3e3,QE=4e3,$E=4500,eD=4600,tD=5e3,nD=6e3,rD=7e3,iD={PROCESSOR:{SERIES_FILTER:HE,AXIS_STATISTICS:WE,FILTER:GE,STATISTIC:qE,STATISTICS:qE},VISUAL:{LAYOUT:JE,PROGRESSIVE_LAYOUT:YE,GLOBAL:XE,CHART:ZE,POST_CHART_LAYOUT:eD,COMPONENT:QE,BRUSH:tD,CHART_ITEM:$E,ARIA:nD,DECAL:rD}},aD=`__flagInMainProcess`,oD=`__mainProcessVersion`,sD=`__pendingUpdate`,cD=`__needsUpdateStatus`,lD=/^[a-zA-Z0-9_]+$/,uD=`__connectUpdateStatus`,dD=0,fD=1,pD=2,mD=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ps),hD=mD.prototype,hD.on=pE(`on`),hD.off=pE(`off`),FD=function(e){W(t,e);function t(t,n,r){var i=e.call(this,new xw)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[oD]=1,r.ssr&&uS(function(e){var t=Yl(e),n=t.dataIndex;if(n!=null){var r=V();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=iS(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:B(r.useDirtyRect,s),useCoarsePointer:B(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=PC(H(c.flush,c),17),i._updateTheme(n),i._locale=gh(r.locale||wh),i._coordSysMgr=new Ng;var l=i._api=AD(i);function u(e,t){return e.__prio-t.__prio}return bx(UD,u),bx(VD,u),i._scheduler=new uw(i,l,VD,UD),i._messageCenter=new mD,i._initEvents(),i.resize=H(i.resize,i),c.animation.on(`frame`,i._onframe,i),TD(c,i),ED(c,i),me(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(ND(this),this[sD]){var r=this[sD].silent;this[aD]=!0,PD(this);try{gD(this),yD.update.call(this,null,this[sD].updateParams)}catch(e){throw this[aD]=!1,this[sD]=null,e}this._zr.flush(),this[aD]=!1,this[sD]=null,CD.call(this,r),wD.call(this,r)}else if(e.unfinished){var i=VE;do{e.unfinished=!1;var a=f.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),xD(this,t),e.performVisualTasks(t),kD(this,this._model,n,`remain`,{}),i-=f.getTime()-a}while(i>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,t,n){if(!this[aD]){if(this._disposed){this.id;return}var r,i,a;if(L(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[aD]=!0,PD(this),!this._model||t){var o=new US(this._api),s=this._theme,c=this._model=new IS;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},HD);var l={seriesTransition:a,optionChanged:!0};if(n)this[sD]={silent:r,updateParams:l},this[aD]=!1,this.getZr().wakeUp();else{try{gD(this),yD.update.call(this,null,l)}catch(e){throw this[sD]=null,this[aD]=!1,e}this._ssr||this._zr.flush(),this[sD]=null,this[aD]=!1,CD.call(this,r),wD.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[aD]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[sD]&&(r??=this[sD].silent,i=this[sD].updateParams,this[sD]=null),this[aD]=!0,PD(this);try{this._updateTheme(e),n.setTheme(this._theme),gD(this),yD.update.call(this,{type:`setTheme`},i)}catch(e){throw this[aD]=!1,e}this[aD]=!1,CD.call(this,r),wD.call(this,r)}}},t.prototype._updateTheme=function(e){F(e)&&(e=WD[e]),e&&(e=_(e),e&&fC(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||K.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return D(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;D(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return D(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(qD[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();D(KD,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(_(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var p=c-o,m=l-s,h=f.createCanvas(),g=iS(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:p,height:m}),t){var v=``;return D(u,function(e){var t=e.left-o,n=e.top-s;v+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Ol({shape:{x:0,y:0,width:p,height:m},style:{fill:e.connectedBackgroundColor}})),D(u,function(e){var t=new _l({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return bD(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return bD(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return bD(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return D(_n(n,e),function(e,n){n.indexOf(`Models`)>=0&&D(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=_n(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?kw(i,t):Ow(i,a,t)},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;D(LD,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&Fw(i,function(e){var t=Yl(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=b({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;D(BD,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Nw(t,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,this.getDom()&&xn(this.getDom(),XD,``);var e=this,t=e._api,n=e._model;D(e._componentsViews,function(e){e.dispose(n,t)}),D(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete KD[e.id]},t.prototype.resize=function(e){if(!this[aD]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[sD]&&(r??=this[sD].silent,n=!0,this[sD]=null),this[aD]=!0,PD(this);try{n&&gD(this),yD.update.call(this,{type:`resize`,animation:b({duration:0},e&&e.animation)})}catch(e){throw this[aD]=!1,e}this[aD]=!1,CD.call(this,r),wD.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(L(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),GD[e]){var n=GD[e](this._api,t),r=this._zr;this._loadingFX=n,r.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 t=b({},e);return t.type=zD[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(L(t)||(t={silent:!!t}),RD[e.type]&&this._model){if(this[aD]){this._pendingActions.push(e);return}var n=t.silent;SD.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&K.browser.weChat&&this._throttledZrFlush(),CD.call(this,n),wD.call(this,n)}},t.prototype.updateLabelLayout=function(){Lw.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){gD=function(e){Kw(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),_D(e,!0),_D(e,!1),t.plan()},_D=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Wn(e.type);u=new(t?xC.getClass(d.main,d.sub):jC.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},vD=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){D([].concat(e._componentsViews,e._chartsViews),l);return}var o=bn(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=V(),D(Xt(s),function(e){var t=un(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null))if(ed(n))if(t instanceof Sy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&zu(t,n,e._api);else{var r=Bu(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Ru(t.mainType,t.componentIndex,e._api),a&&D(a,function(e){n.type===`highlight`?ku(e):Au(e)})}else $u(n)&&t instanceof Sy&&(Uu(t,n,e._api),Wu(t),MD(e))},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},yD={prepareAndUpdate:function(e){gD(this),yD.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){qw(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Lw.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),xD(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),DD(this,r,i,e,n),Lw.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}});var a=V();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),kD(t,n,r,e,{},a),Lw.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),jC.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),DD(this,n,this._api,e,{}),Lw.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),jC.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Lw.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){yD.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=_n(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}bD=e,xD=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},SD=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=RD[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Wn(s[0]);this[aD]=!0,PD(this);var u=[e],d=!1;e.batch&&(d=!0,u=O(e.batch,function(t){return t=S(b({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=$u(e),_=ed(e);if(_&&Iu(this._api),D(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=b({},t),p.type=h,f.push(p),_){var a=vn(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;vD(n,c,t,u),MD(n)}else g?(vD(n,c,t,`series`),MD(n)):l&&vD(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[sD]?(gD(this),yD.update.call(this,e),this[sD]=null):yD[c].call(this,e)}catch(e){throw this[aD]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[aD]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;fe(L(y)),v=S({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var x=this._messageCenter;x.trigger(p.type,p),v&&x.trigger(v.type,v)}},CD=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();SD.call(this,n,e)}},wD=function(e){!e&&this.trigger(`updated`)},TD=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[sD]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},ED=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Fw(n,Zu);r&&(Vu(r,e,t._api),MD(t))}).on(`mouseout`,function(e){var n=e.target,r=Fw(n,Zu);r&&(Hu(r,e,t._api),MD(t))}).on(`click`,function(e){var n=e.target,r=Fw(n,function(e){return Yl(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Yl(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;bx(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),D(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}DD=function(e,t,r,i,a){n(t),OD(e,t,r,i,a),D(e._chartsViews,function(e){e.__alive=!1}),kD(e,t,r,i,a),D(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},OD=function(e,t,n,r,i,a){D(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},kD=function(e,t,n,r,l,u){var d=e._scheduler;l=b(l||{},{updatedSeries:t.getSeries()}),Lw.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Wu(t)}),d.unfinished=f||d.unfinished,Lw.trigger(`series:layoutlabels`,t,n,l),Lw.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Lw.trigger(`series:afterupdate`,t,n,l)},MD=function(e){e[cD]=!0,e.getZr().wakeUp()},PD=function(e){e[oD]=(e[oD]+1)%1e6},ND=function(e){e[cD]&&(e.getZr().storage.traverse(function(e){up(e)||r(e)}),e[cD]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>B(t.get(`hoverLayerThreshold`),xS.hoverLayerThreshold)&&!K.node&&!K.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=qp(e);t.eachRendered(function(e){return Yp(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!up(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(up(e))return;if(e instanceof ll&&td(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}AD=function(e){return new(function(t){W(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){ku(t,n),MD(e)},n.prototype.leaveEmphasis=function(t,n){Au(t,n),MD(e)},n.prototype.enterBlur=function(t){ju(t),MD(e)},n.prototype.leaveBlur=function(t){Mu(t),MD(e)},n.prototype.enterSelect=function(t){Nu(t),MD(e)},n.prototype.leaveSelect=function(t){Pu(t),MD(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[oD]},n.prototype.usingTHL=function(){return e._usingTHL},n}(lu))(e)},jD=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[uD]=t}}D(zD,function(n,r){e._messageCenter.on(r,function(n){if(qD[e.group]&&e[uD]!==dD){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];D(KD,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,dD),D(i,function(e){e[uD]!==fD&&e.dispatchAction(r)}),t(i,pD)}})})}}(),t}(ps),ID=FD.prototype,ID.on=fE(`on`),ID.off=fE(`off`),ID.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)},LD=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],RD={},zD={},BD={},VD=[],HD=[],UD=[],WD={},GD={},KD={},qD={},JD=new Date-0,YD=new Date-0,XD=`_echarts_instance_`,ZD=_E,QD=[],$D=hv,ME(XE,KC),ME($E,JC),ME($E,YC),ME(XE,Tw),ME($E,Ew),ME(rD,uE),SE(fC),CE(UE,yC),PE(`default`,ZC),DE({type:cd,event:cd,update:cd},xe),DE({type:ld,event:ld,update:ld},xe),DE({type:ud,event:pd,update:ud,action:xe,refineEvent:RE,publishNonRefinedEvent:!0}),DE({type:dd,event:pd,update:dd,action:xe,refineEvent:RE,publishNonRefinedEvent:!0}),DE({type:fd,event:pd,update:fd,action:xe,refineEvent:RE,publishNonRefinedEvent:!0}),xE(`default`,{}),xE(`dark`,yw),eO={}}));tO(),U(),Y();var nO=J();function rO(e,t){return!!nO(e)[t]}DE({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},xe),lm();var iO={axisPointer:1,tooltip:1,brush:1};function aO(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||iO.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=qp(r),o=qp(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}G(),ms(),Kb(),U(),Y(),lm();var oO=function(e){W(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=H(n._mousedownHandler,n),i=H(n._mousemoveHandler,n),a=H(n._mouseupHandler,n),o=H(n._mousewheelHandler,n),s=H(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=qp(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:B(c.z2,-1/0)},p=b({},n.triggerInfo);this._opt=S(b({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p,cursorGrab:`grab`,cursorGrabbing:`grabbing`}),e??=!0,(!this._enabled||this._controlType!==e)&&(this.disable(),this._enabled=!0,(e===!0||e===`move`||e===`pan`)&&(uO(t,`mousedown`,r,f),uO(t,`mousemove`,i,f),uO(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(uO(t,`mousewheel`,o,f),uO(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,dO(t,`mousedown`,r),dO(t,`mousemove`,i),dO(t,`mouseup`,a),dO(t,`mousewheel`,o),dO(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(aO(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return this._opt.cursorGrab;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Vb(e)||sO(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||rO(t,`globalPan`)||sO(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!hO(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&Gb(e.event),e.__ecRoamConsumed=!0,mO(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!sO(e)){var t=this._zr;if(!Vb(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!sO(e)){var t=hO(`zoomOnMouseWheel`,e,this._opt),n=hO(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(rO(this._zr,`globalPan`)||sO(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(Gb(r.event),r.__ecRoamConsumed=!0,mO(e,t,n,r,i))},t}(ps);function sO(e){return e.__ecRoamConsumed}var cO=J();function lO(e){var t=cO(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function uO(e,t,n,r){for(var i=lO(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),fO(e,t)}function dO(e,t,n){for(var r=lO(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||pO(e,t);return}}function fO(e,t){var n=lO(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function pO(e,t){var n=lO(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function mO(e,t,n,r,i){i.isAvailableBehavior=H(hO,null,n,r),e.trigger(t,i)}function hO(e,t,n){var r=n[e];return!e||r&&(!F(r)||t.event[r+`Key`])}var gO=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function _O(){return new gO}G(),Ai(),Oa(),jr(),ii();function vO(e){return e}var yO=`view`;(function(e){W(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=yO,i.dimensions=[`x`,`y`];var a=vO(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=_a(),o[1]=_a(),o[2]=_a(),a.mtRaw=Sr(),a.mtRawInv=Sr(),a.mtOverall=Sr(),a.mtOverallInv=Sr(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return xO(null,this)},t.prototype.getViewRect=function(){return SO(null,this)},t.prototype.getRoamTransform=function(){return Ea(vO(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?vO(this).mtRaw:vO(this).mtOverall;return n||=[],r?Zr(n,e,r):Pr(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=vO(this).mtOverallInv;return r?Zr(n,e,r):Pr(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=CO(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=CO(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=vO(this);return Ci(bO,t.dataRect),Ti(bO,bO,t.mtOverall),Ei(bO,e[0],e[1])},t.dimensions=[`x`,`y`],t})(Ta);var bO=xi();function xO(e,t){return Ci(e||xi(),vO(t).dataRect)}function SO(e,t){return Ci(e||xi(),vO(t).viewRect)}xi();function CO(e){var t=e.seriesModel;return t?t.coordinateSystem:null}_a(),_a();function wO(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}U(),Ai(),q(),Xg(),Y();var TO=Math.max,EO=Math.min,DO=D,OO=[`itemStyle`,`borderWidth`],kO=[`itemStyle`,`gapWidth`],AO=[`upperLabel`,`show`],jO=[`upperLabel`,`height`],MO={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=zg(e,n).refContainer,o=Rg(e.getBoxLayoutParams(),a),s=r&&r.type,c=He(r,[`treemapZoomToNode`,`treemapRootToNode`],e),l=s===`treemapRender`||s===`treemapMove`?r.rootRect:null,u=e.getViewRoot(),d=Ue(u);if(s!==`treemapMove`){var f=!1,p=s===`treemapZoomToNode`?(f=!0,BO(e,c,u,o)):l?(f=!0,b({},l)):b({},o);if(f){var m=WO(o,p);m=GO(m,e),p.width=o.width*m,p.height=o.height*m}var h=i.sort;h&&h!==`asc`&&h!==`desc`&&(h=`desc`);var g={squareRatio:i.squareRatio,sort:h,leafDepth:i.leafDepth};u.hostTree.clearLayouts();var _={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};u.setLayout(_),NO(u,g,!1,0),_=u.getLayout(),DO(d,function(e,t){var n=(d[t+1]||u).getValue();e.setLayout(b({dataExtent:[n,n],borderWidth:0,upperHeight:0},_))})}var v=e.getData().tree.root;v.setLayout(VO(o,l,c),!0),e.setLayoutInfo(o),HO(v,new Z(-o.x,-o.y,n.getWidth(),n.getHeight()),d,u,0)}};function NO(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(OO),l=s.get(kO)/2,u=UO(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=TO(i-2*f,0),a=TO(a-f-p,0);var m=i*a,h=PO(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=EO(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=RO(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,zO(y,_,g,l,!1),_=EO(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&zO(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)NO(h[b],t,n,r+1)}}}function PO(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=A(o,function(e){return!e.isRemoved()}),IO(o,s);var l=LO(t,o,s);if(l.sum===0||(l.sum=FO(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function FO(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function IO(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function LO(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=Tn(),DO(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function RO(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?TO(l*r/c,c/(l*i)):1/0}function zO(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=TO(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=TO(v-2*r,0);m[s[o]]=n[s[o]]+EO(r,g/2),m[s[a]]=l+EO(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function BO(e,t,n,r){var i=(t||{}).node,a=r.width,o=r.height,s=b({},r);if(!i||i===n)return s;for(var c,l=a*o,u=l*e.option.zoomToNodeRatio;c=i.parentNode;){for(var d=0,f=c.children,p=0,m=f.length;p<m;p++)d+=f[p].getValue();var h=i.getValue();if(h===0)return s;u*=d/h;var g=c.getModel(),_=g.get(OO),v=Math.max(_,UO(g));u+=4*_*_+(3*_+v)*u**.5,u>Bt&&(u=Bt),i=c}u<l&&(u=l);var y=(u/l)**.5;return{width:a*y,height:o*y}}function VO(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function HO(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new Z(t.x-a.x,t.y-a.y,t.width,t.height);DO(e.viewChildren||[],function(e){HO(e,c,n,r,i+1)})}}function UO(e){return e.get(AO)?e.get(jO):0}function WO(e,t){return t.width/e.width||t.height/e.height||1}function GO(e,t){return wO(e,t.get(`scaleLimit`,!0))}G(),U(),lm(),Zl(),md(),Ly(),Ai(),jr(),or(),NC(),Xs(),Y(),kg(),Dm();var KO=zd,qO=Ol,JO=3,YO=`label`,XO=`upperLabel`,ZO=100,QO=20,$O=30,ek=ar([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),tk=function(e){var t=ek(e);return t.stroke=t.fill=t.lineWidth=null,t},nk=J(),rk=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=ik(),n}return t.prototype.render=function(e,t,n,r){if(!(C(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=He(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new KO,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=ik(),o=ik(),s=this._storage,c=[];function l(e,r,i,l){return ak(t,o,s,n,a,c,e,r,i,l)}d(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=f(s);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:u,renderFinally:p};function d(e,t,n,r,i){r?(t=e,D(e,function(e,t){!e.isRemoved()&&o(t,t)})):new Iy(t,e,a,a).add(o).update(o).remove(M(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&d(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function f(e){var t=ik();return e&&D(e,function(e,n){var r=t[n];D(e,function(e){e&&(r.push(e),nk(e).willDelete=!0)})}),t}function p(){D(u,function(e){D(e,function(e){e.parent&&e.parent.remove(e)})}),D(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(P(i)?0:i)||0,s=(P(a)?null:a)||`cubicOut`,c=_O();D(t.willDeleteEls,function(e,t){D(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=nk(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),D(this._storage,function(e,n){D(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof zd?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=b({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(H(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this.seriesModel,r=this._controller;r||(r=this._controller=new oO(e.getZr()),r.on(`pan`,H(this._onPan,this)),r.on(`zoom`,H(this._onZoom,this))),r.enable(n.get(`roam`),{api:e,zInfo:{component:n},triggerInfo:{roamTrigger:n.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}})},t.prototype._clearController=function(){var e=this._controller;e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>JO||Math.abs(e.dy)>JO)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale,i=this.seriesModel;if(this._state!==`animating`){var a=i.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Z(o.x,o.y,o.width,o.height),c=i.layoutInfo,l=WO(c,o),u=l*r;u=GO(u,i);var d=u/l;t-=c.x,n-=c.y;var f=Sr();Er(f,f,[-t,-n]),Or(f,f,[d,d]),Er(f,f,[t,n]),s.applyTransform(f),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&Tg(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new jb(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(We(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ik(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(jC);function ik(){return{nodeGroup:[],background:[],content:[]}}function ak(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,x=u.upperHeight,S=y&&y.length,C=f.getModel(`itemStyle`),w=f.getModel([`emphasis`,`itemStyle`]),T=f.getModel([`blur`,`itemStyle`]),E=f.getModel([`select`,`itemStyle`]),D=C.get(`borderRadius`)||0,O=ie(`nodeGroup`,KO);if(!O)return;if(c.add(O),O.x=u.x||0,O.y=u.y||0,O.markRedraw(),nk(O).nodeWidth=p,nk(O).nodeHeight=m,u.isAboveViewRoot)return O;var k=ie(`background`,qO,l,QO);k&&F(O,k,S&&u.upperLabelHeight);var A=f.getModel(`emphasis`),ee=A.get(`focus`),j=A.get(`blurScope`),te=A.get(`disabled`),M=ee===`ancestor`?o.getAncestorsIndices():ee===`descendant`?o.getDescendantIndices():ee;if(S)Zu(O)&&Xu(O,!1),k&&(Xu(k,!te),d.setItemGraphicEl(o.dataIndex,k),Yu(k,M,j));else{var N=ie(`content`,qO,l,$O);N&&ne(O,N),k.disableMorphing=!0,k&&Zu(k)&&Xu(k,!1),Xu(O,!te),d.setItemGraphicEl(o.dataIndex,O);var P=f.getShallow(`cursor`);P&&N.attr(`cursor`,P),Yu(O,M,j)}return O;function F(t,n,r){var i=Yl(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:D}),g)I(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=tk(C);c.fill=s;var l=ek(w);l.fill=w.get(`borderColor`);var u=ek(T);u.fill=T.get(`borderColor`);var d=ek(E);if(d.fill=E.get(`borderColor`),r){var f=p-2*h;L(n,s,a.opacity,{x:h,y:0,width:f,height:x})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,Eu(n)}t.add(n)}function ne(t,n){var r=Yl(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:D}),g)I(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=tk(C);l.fill=c,l.decal=s.decal;var u=ek(w),d=ek(T),f=ek(E);L(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Eu(n)}t.add(n)}function I(e){!e.invisible&&a.push(e)}function L(t,n,r,i){var a=f.getModel(i?XO:YO),s=un(f.get(`name`),null),c=a.getShallow(`show`);fm(t,pm(f,i?XO:YO),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=de(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,re(d,i,u);var m=l.getState(`emphasis`);re(m?m.style:null,i,u)}}function re(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function ie(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,ae(c,s)):g||(s=new r,s instanceof qs&&(s.z2=ok(a,o)),oe(c,s)),t[e][_]=s}function ae(e,t){var n=e[_]={};t instanceof KO?(n.oldX=t.x,n.oldY=t.y):n.oldShape=b({},t.shape)}function oe(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof zd;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function ok(e,t){return e*ZO+t}U(),zo(),q();var sk=D,ck=L,lk=-1,uk=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=_(t);this.type=r,this.mappingMethod=n,this._normalizeData=Sk[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(pk(i),dk(i)):n===`category`?i.categories?fk(i):pk(i,!0):(fe(n!==`linear`||i.dataExtent),pk(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return H(this._normalizeData,this)},e.listVisualTypes=function(){return j(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){L(e)?D(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=N(t)?[]:L(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&sk(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(N(e))e=e.slice();else if(ck(e)){var t=[];sk(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||F(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(Ck(u[1],e,l[1]))return a}else if(l[1]===1/0){if(Ck(u[0],l[0],e))return a}else if(Ck(u[0],l[0],e)&&Ck(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:gk(`color`),getColorMapper:function(){var e=this.option;return H(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),_k.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=To(t,e.parsedVisual,r),i?r:ko(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return ko(To(e,this.option.parsedVisual),`rgba`)},category:_k,piecewise:function(e,t){var n=bk.call(this,t);return n??=ko(To(e,this.option.parsedVisual),`rgba`),n},fixed:vk}},colorHue:mk(function(e,t){return Do(e,t)}),colorSaturation:mk(function(e,t){return Do(e,null,t)}),colorLightness:mk(function(e,t){return Do(e,null,null,t)}),colorAlpha:mk(function(e,t){return Oo(e,t)}),decal:{applyVisual:gk(`decal`),_normalizedToVisual:{linear:null,category:_k,piecewise:null,fixed:null}},opacity:{applyVisual:gk(`opacity`),_normalizedToVisual:yk([0,1])},liftZ:{applyVisual:gk(`liftZ`),_normalizedToVisual:{linear:vk,category:vk,piecewise:vk,fixed:vk}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:hk,category:_k,piecewise:function(e,t){var n=bk.call(this,t);return n??=hk.call(this,e),n},fixed:vk}},symbolSize:{applyVisual:gk(`symbolSize`),_normalizedToVisual:yk([0,1])}},e}();function dk(e){var t=e.pieceList;e.hasSpecialVisual=!1,D(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function fk(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(sk(t,function(e,t){n[e]=t}),!N(r)){var i=[];L(r)?sk(r,function(e,t){var r=n[t];i[r??lk]=e}):i[lk]=r,r=xk(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function pk(e,t){var n=e.visual,r=[];L(n)?sk(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),xk(e,r)}function mk(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:yk([0,1])}}function hk(e){var t=this.option.visual;return t[Math.round($e(e,[0,1],[0,t.length-1],!0))]||{}}function gk(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function _k(e){var t=this.option.visual;return t[this.option.loop&&e!==lk?e%t.length:e]}function vk(){return this.option.visual[0]}function yk(e){return{linear:function(t){return $e(t,e,this.option.visual,!0)},category:_k,piecewise:function(t,n){var r=bk.call(this,n);return r??=$e(t,e,this.option.visual,!0),r},fixed:vk}}function bk(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[uk.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function xk(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=O(t,function(e){return bo(e)||[0,0,0,1]})),t}var Sk={linear:function(e){return $e(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=uk.findPieceIndex(e,t,!0);if(n!=null)return $e(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??lk},fixed:xe};function Ck(e,t,n){return e?t<=n:t<n}U(),zo(),Y();var wk=`itemStyle`,Tk=J(),Ek={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||Dk(t,{},e.getViewRoot().getAncestors(),e)}};function Dk(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(wk),c=Ok(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=kk(c),u=Ak(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=kk(c),l.fill=f;else{var m=Mk(e,i,a,s,c,p);D(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&Dk(e,Pk(i,c,e,t,m,r),n,r)})}}}function Ok(e,t,n){var r=b({},t),i=n.designatedVisualItemStyle;return D([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function kk(e){var t=jk(e,`color`);if(t){var n=jk(e,`colorAlpha`),r=jk(e,`colorSaturation`);return r&&(t=Do(t,null,null,r)),n&&(t=Oo(t,n)),t}}function Ak(e,t){return t==null?null:Do(t,null,null,e)}function jk(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function Mk(e,t,n,r,i,a){if(!(!a||!a.length)){var o=Nk(t,`color`)||i.color!=null&&i.color!==`none`&&(Nk(t,`colorAlpha`)||Nk(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new uk(d);return Tk(f).drColorMappingBy=u,f}}}function Nk(e,t){var n=e.get(t);return N(n)&&n.length?{name:t,range:n}:null}function Pk(e,t,n,r,i,a){var o=b({},t);if(i){var s=i.type,c=s===`color`&&Tk(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}function Fk(e){e.registerSeriesModel(Tb),e.registerChartView(rk),e.registerVisual(Ek),e.registerLayout(MO),qe(e)}Hm(),U();function Ik(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Lk(n,e,t),n.seriesInvolved&&zk(n,e),n}function Lk(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];D(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=Kk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(D(n.getAxes(),M(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&D(f.baseAxes,M(p,d?`cross`:!0,u)),d&&D(f.otherAxes,M(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!Gk(d))){s??=d.get(`triggerTooltip`),d=r?Rk(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=Kk(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:Gk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=Bk(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Rk(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};D(s,function(e){c[e]=_(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&S(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Vm(c,n,r))}function zk(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||D(e.coordSysAxesInfo[Kk(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function Bk(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Vk(a[r+`AxisId`],n.id)||Vk(a[r+`AxisIndex`],n.componentIndex)||Vk(a[r+`AxisName`],n.name))return i}}function Vk(e,t){return e===`all`||N(e)&&C(e,t)>=0||e===t}function Hk(e){var t=Uk(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=Gk(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function Uk(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[Kk(e)]}function Wk(e){var t=Uk(e);return t&&t.axisPointerModel}function Gk(e){return!!e.get([`handle`,`show`])}function Kk(e){return e.type+`||`+e.id}G(),SC();var qk={},Jk=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&Hk(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=Wk(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){qk[e]=t},t.getAxisPointerClass=function(e){return e&&qk[e]},t.type=`axis`,t}(xC);function Yk(e,t,n){var r;e||={};var i=Eh();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(D(iA,function(t){a[t]&&(e[t]=H(a[t],a))}),r=a)}return r??nA(e,n),{brk:r,mapper:e}}function Xk(e,t){D(iA,function(n){e[n]=t[n]})}function Zk(e,t){e.freeze=xe}function Qk(e){return e.getExtentUnsafe(0,2)}function $k(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function eA(e){var t=$k(e,3);return t[1]-t[0]}function tA(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function nA(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Tn(),b(n,aA),n}function rA(e,t,n,r){kn(n,r)&&(e[t][0]=n,e[t][1]=r)}var iA,aA,oA=t((()=>{U(),Y(),jh(),iA=j({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1}),aA={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=$k(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){rA(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),rA(r,e,t,n)},freeze:function(){}}}));function sA(e){return e.type===`interval`}function cA(e){return e.type===`time`}function lA(e){return e.type===`log`}function uA(e){return e.type===`ordinal`}function dA(e){return ot(e)+2}function fA(e,t){return Ft(e)/Ft(t)}function pA(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Pt(t,e)}function mA(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=At(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!On(r[0])||!On(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function hA(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function gA(e,t){return e||=t,jt(kt(e,1))}function _A(e,t,n){var r=Qk(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var vA=t((()=>{q(),Y(),oA()}));function yA(e,t){var n=e.model,r=TA(Jw(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function bA(e,t){return CA(yA(e,t))}function xA(e,t){var n=[];return SA(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(CA(e))}),n}function SA(e,t){var n=TA(Jw(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function CA(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function wA(e,t){var n=e.model,r=TA(Jw(n.ecModel)).keys;r&&D(r.get(n.uid),function(e){t(e)})}var TA,EA=t((()=>{U(),Y(),Xw(),Mn(),TA=J(),J(),V()}));function DA(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=eA(r);Tt(o)||(o=NaN);var s=e.getExtent(),c=At(s[1]-s[0]);return uA(r)?OA(n,e,o,c):i&&kA(n,e,o,c,i),a!=null&&(n.w=Tt(n.w)?kt(a,n.w):a),n}function OA(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function kA(e,t,n,r,i){var a=!1,o=-1/0;D(i.key?[bA(t,i.key)]:xA(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Tt(n)&&n>0&&Tt(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*AA,e.w2=e.w*n/r)}var AA,jA=t((()=>{U(),vA(),q(),EA(),oA(),AA=.8}));U(),lm(),Kb(),BC(),Y(),jA();var MA=J(),NA=_,PA=H,FA=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new zd,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=M(IA,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}BA(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&DA(r).w>o)return!0;if(a){var s=Uk(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=MA(e).pointerEl=new hp[i.type](NA(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=MA(e).labelEl=new Wl(NA(t.label));e.add(i),RA(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=MA(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=MA(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),RA(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Pp(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Gb(e.event)},onmousedown:PA(this._onHandleDragMove,this,0,0),drift:PA(this._onHandleDragMove,this),ondragend:PA(this._onHandleDragEnd,this)}),n.add(r)),BA(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);N(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,FC(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){IA(this._axisPointerModel,!t&&this._moveAnimation,this._handle,zA(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(zA(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(zA(r)),MA(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),IC(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function IA(e,t,n,r){LA(MA(n).lastProp,r)||(MA(n).lastProp=r,t?cp(n,r,e):(n.stopAnimation(),n.attr(r)))}function LA(e,t){if(L(e)&&L(t)){var n=!0;return D(t,function(t,r){n&&=LA(e[r],t)}),!!n}else return e===t}function RA(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function zA(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function BA(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}var VA,HA=t((()=>{ir(),VA=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}(),$n(VA)}));function UA(e){return L(e)&&e.value!=null?e.value:e+``}var WA,GA,KA=t((()=>{U(),WA=0,GA=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WA,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&O(r,UA);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!F(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=V(this.categories)},e}()})),qA,JA=t((()=>{G(),HA(),KA(),U(),q(),oA(),vA(),qA=function(e){W(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Xk(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new GA({}),N(i)&&(i=new GA({categories:O(i,function(e){return L(e)?e.value:e})})),r._ordinalMeta=i;var a=Yk(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Zk(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:F(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=jt(e),e},t.prototype.getTicks=function(){var e=[];return _A(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Ot(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=Qk(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(jt(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(VA),VA.registerClass(qA)}));function YA(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=dA(f);u<t-1;){var m=rt(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Eh();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var XA=t((()=>{q(),jh(),vA()})),ZA,QA=t((()=>{G(),q(),kg(),HA(),vA(),jh(),U(),XA(),oA(),ZA=function(e){W(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=Yk(r,Dh(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return _(this._cfg)},t.prototype.setConfig=function(e){var t=Qk(this);this._cfg=e=_(e),e.niceExtent??=t.slice(),e.intervalPrecision??=dA(e.interval)},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Qk(this),i=t.niceExtent,a=t.intervalPrecision,o=Eh(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?rt(i[0]-n,a):r[0]});for(var d=function(e,t){return jt((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Ot(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=rt(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=rt(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?rt(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return YA(this,e,Oh(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ot(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),_g(rt(e.value,n,!0))},t.type=`interval`,t}(VA),VA.registerClass(ZA)}));function $A(e,t,n,r){return Vh(new Date(t),e,r).getTime()===Vh(new Date(n),e,r).getTime()}function ej(e,t){return e/=ag,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function tj(e){var t=30*ag;return e/=t,e>6?6:e>3?3:e>2?2:1}function nj(e){return e/=ig,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function rj(e,t){return e/=t?rg:ng,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ij(e){return kt(_t(e,!0),1)}function aj(e,t,n){var r=Math.max(0,C(fg,t)-1);return Vh(new Date(e),fg[r],n).getTime()}function oj(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function sj(e,t,n,r,i,a){var o=pg,s=0;function c(e,t,n,i,o,c,l){for(var u=oj(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!$A(Fh(e),r[0],r[1],n)){s&&(i=[{value:aj(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/ag/365)),p=Hh(n),m=Yh(n);break;case`half-year`:case`quarter`:case`month`:f=tj(t),p=Uh(n),m=Xh(n);break;case`week`:case`half-week`:case`day`:f=ej(t,31),p=Wh(n),m=Zh(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=nj(t),p=Gh(n),m=Qh(n);break;case`minute`:f=rj(t,!0),p=Kh(n),m=$h(n);break;case`second`:f=rj(t,!1),p=qh(n),m=eg(n);break;case`millisecond`:f=ij(t),p=Jh(n),m=tg(n);break}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=Fh(o[m]);if(Ih(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Fh(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=A(O(u,function(e){return A(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=Bh(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Nn(S,Pn,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],k=Bh(r[0],n),ee=Bh(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:ee,lowerTimeUnit:ee},notNice:!0}),S}var cj,lj,uj,dj,fj=t((()=>{G(),q(),mg(),vA(),HA(),U(),jh(),XA(),oA(),Y(),cj=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},lj=function(e){W(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=Yk(r,Dh(r,n),null).brk,r}return t.prototype.getLabel=function(e){return Rh(e.value,dg[Lh(Fh(this._minLevelUnit))]||dg.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return zh(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Qk(this),r=Eh(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return Eh().addBreaksToTicks(o,i.breaks,n),o;o=sj(this._minLevelUnit,this._approxInterval,s,n,tA(this),i);var c=fg.length-1,l=0;return D(o,function(e){e.time&&(c=Math.min(c,C(fg,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&Eh().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&Eh().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(C(fg,Bh(e.vmin,s)),C(fg,Bh(e.vmax,s))),n=0,r=0;r<fg.length;r++)if(!$A(fg[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:fg[Math.max(i,t)],upperTimeUnit:fg[i]}}),o},t.prototype.getMinorTicks=function(e){return YA(this,e,Oh(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return I(e)?Math.round(e):+mt(e)},t.type=`time`,t}(VA),uj=[[`second`,ng],[`minute`,rg],[`hour`,ig],[`quarter-day`,ig*6],[`half-day`,ig*12],[`day`,ag*1.2],[`half-week`,ag*3.5],[`week`,ag*7],[`month`,ag*31],[`quarter`,ag*95],[`half-year`,og/2],[`year`,og]],dj=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=ag,n[1]+=ag),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-ag}e.setExtent(n[0],n[1]);var i=gA(t.splitNumber,10),a=tA(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=uj.length,l=Math.min(cj(uj,a,0,c),c-1),u=uj[l][1],d=uj[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})},VA.registerClass(lj)})),pj,mj,hj,gj,_j,vj,yj,bj=t((()=>{G(),HA(),QA(),vA(),jh(),XA(),oA(),U(),Y(),q(),pj=0,mj=1,hj=2,gj=function(e){W(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=ZA.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[pj]=i[mj]=a[pj]=a[mj]=NaN,Xk(r,t.mapperMethods);var s=Eh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},hj,l),r.powStub=new ZA({breakParsed:l.original}),r.intervalStub=new ZA({breakParsed:l.transformed}),Zk(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Eh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return O(i.getTicks(e||{}),function(e){var i=e.value,o=pA(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Oh(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return YA(this,e,Oh(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(fA(e,this.base))},scale:function(e){return pA(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=fA(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return _j.depth=n,vj.lookup=this._lookup,pA(n===2?e:this.intervalStub.transformOut(e,_j),this.base,vj)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!kn(t,n)||t<=0||n<=0)){var r=yj,i=yj;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[pj]=t,r[mj]=n);var o=this.base;this.intervalStub.setExtent2(e,i[pj]=fA(t,o),i[mj]=fA(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return kn(t[0],t[1])&&Tt(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(VA),VA.registerClass(gj),_j={},vj={},yj=[]})),xj,Sj=t((()=>{xj={value:1,category:1,time:1,log:1}}));function Cj(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;wj(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(D(a,function(e,t){F(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),D(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;D(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function wj(e){return!Ky(e.schema)}function Tj(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function Ej(e,t){return Tj(e,t)?e.getCalculationInfo(`stackResultDimension`):t}var Dj=t((()=>{U(),$y()}));function Oj(e){var t=e.get(`type`);return(t==null||!be(xj,t)&&!VA.getClass(t))&&(t=`value`),t}function kj(e,t,n){var r=Eh(),i;switch(r&&(i=Ij(e,t,n)),t){case`category`:return new qA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Tn()});case`time`:return new lj({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new gj({logBase:e.get(`logBase`),breakOption:i});case`value`:return new ZA({breakOption:i});default:return new((VA.getClass(t))||ZA)({})}}function Aj(e){Bj(e).noOnMyZero=!0}function jj(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Mh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(F(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(P(t)){if(e.type===`category`)return function(n,r){return t(Mj(e,n),n.value-e.scale.getExtent()[0],null)};var r=Eh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(Mj(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function Mj(e,t){var n=e.scale;return uA(n)?n.getLabel(t):t.value}function Nj(e){return e.get(`interval`)??`auto`}function Pj(e){return e.type===`category`&&Nj(e.getLabelModel())===0}function Fj(e){return e===`middle`||e===`center`}function Ij(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Eh()||!n||!Lj(t)?void 0:r}function Lj(e){return e!==`category`}function Rj(e,t,n,r,i,a){var o=lA(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=hA(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function zj(e,t){return uA(e)?e.getRawOrdinalNumber(t.value):t.value}var Bj,Vj=t((()=>{U(),JA(),QA(),HA(),fj(),bj(),Sj(),mg(),jh(),vA(),Y(),oA(),Bj=J()}));function Hj(e,t,n){n||=rM,t?e.dirty|=n:e.dirty&=~n}function Uj(e,t){return t||=rM,e.dirty==null||!!(e.dirty&t)}function Wj(e){if(e)return Uj(e)&&Gj(e,e.label,e),e}function Gj(e,t,n){var r=t.getComputedTransform();e.transform=Kp(e.transform,r);var i=e.localRect=Gp(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=Em.textMargin);for(var d=0;d<4;d++)iM[d]=u===Em.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Em.textMargin&&zp(i,iM,!1,!1);var f=e.rect=Gp(e.rect,i);return r&&f.applyTransform(r),u===Em.minMargin&&zp(f,iM,!1,!1),e.axisAligned=Wp(r),(e.label=e.label||{}).ignore=t.ignore,Hj(e,!1),Hj(e,!0,nM),e}function Kj(e,t,n){return e.transform=Kp(e.transform,n),e.localRect=Gp(e.localRect,t),e.rect=Gp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Wp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function qj(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function Jj(e,t){for(var n=0;n<eM.length;n++){var r=eM[n];e[r]??(e[r]=t[r])}return Wj(e)}function Yj(e){var t=e.obb;return(!t||Uj(e,nM))&&(e.obb=t||=new ep,t.fromBoundingRect(e.localRect,e.transform),Hj(e,!1,nM)),t}function Xj(e,t,n,r,i){var a=e.length,o=tm[t],s=nm[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function Zj(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function Qj(e){var t=[];e.sort(function(e,t){return!!t.suggestIgnore-+!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=Wj(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if($j(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function $j(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:Yj(e).intersect(Yj(t),n,r)}var eM,tM,nM,rM,iM,aM=t((()=>{lm(),Dm(),eM=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],tM=1,nM=2,rM=tM|nM,iM=[0,0,0,0]}));Vj(),aM();var oM=null;function sM(){return oM}var cM=`expandAxisBreak`;function lM(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function uM(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:O(fM(n,r),function(t,n){return{formattedLabel:jj(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?pM(e,t):gM(e)}function dM(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:fM(i,r)}:e.type===`category`?hM(e,t):{ticks:r.getTicks(n)}}function fM(e,t){var n=t.getExtent(),r=[];return D(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Nn(r,Fn,null),at(r),O(r,function(e){return{value:e}})}function pM(e,t){var n=e.getLabelModel(),r=mM(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function mM(e,t,n){var r=AM(e),i=Nj(t),a=n.kind===OM.estimate;if(!a){var o=vM(r,i);if(o)return o}var s,c;P(i)?s=TM(e,i,!1):(c=i===`auto`?bM(e,n):i,s=TM(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return yM(r,i,l),!0}):yM(r,i,l),l}function hM(e,t){var n=kM(e),r=Nj(t),i=vM(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),P(r))a=TM(e,r,!0);else if(r===`auto`){var s=mM(e,e.getLabelModel(),lM(OM.determine));o=s.labelCategoryInterval,a=O(s.labels,function(e){return e.tick})}else o=r,a=TM(e,o,!0);return yM(n,r,{ticks:a,tickCategoryInterval:o})}function gM(e){var t=e.scale.getTicks(),n=jj(e);return{labels:O(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}function _M(e){return function(t){return DM(t)[e]||(DM(t)[e]={list:[]})}}function vM(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function yM(e,t,n){return e.list.push({key:t,value:n}),n}function bM(e,t){if(t.kind===OM.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return DM(e).autoInterval=n,!0}),n}return DM(e).autoInterval??(DM(e).autoInterval=e.calculateCategoryInterval(t))}function xM(e,t){var n=t.kind,r=wM(e),i=jj(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=Ii(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===OM.estimate?(t.out.noPxChangeTryDetermine.push(H(SM,null,e,S,c)),S):CM(e,S,c)??S}function SM(e,t,n){return CM(e,t,n)==null}function CM(e,t,n){var r=EM(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function wM(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function TM(e,t,n){var r=jj(e),i=e.scale,a=[],o=P(t);return _A(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var EM,DM,OM,kM,AM,jM=t((()=>{U(),Gi(),Y(),q(),vA(),EM=J(),DM=J(),OM={estimate:1,determine:2},kM=_M(`axisTick`),AM=_M(`axisLabel`)}));U(),lm(),Zl(),Dm(),Hm(),q(),fT(),jr(),ii(),Vj(),Y(),jh(),Ai(),ai(),Oa(),jM(),vA();var MM=Math.PI,NM=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],PM=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],FM=J(),IM=J(),LM=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function RM(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=cN(e.axisName)&&Fj(e.nameLocation);D(r,function(e){var t=Wj(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?kr(zM,n.transform):Cr(zM),t.transform&&Tr(zM,zM,t.transform),Z.copy(BM,t.localRect),BM.applyTransform(zM),s?s.union(BM):Z.copy(s=new Z(0,0,0,0),BM))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Z(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var zM=Sr(),BM=new Z(0,0,0,0),VM=function(e,t,n,r,i,a){if(Fj(e.nameLocation)){var o=a.stOccupiedRect;o&&HM(Kj({},o,a.transGroup.transform),r,i)}else UM(a.labelInfoList,a.dirVec,r,i)};function HM(e,t,n){var r=new X;$j(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&qj(t,r)}function UM(e,t,n,r){for(var i=X.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||HM(s,n,r)}}var WM=function(){function e(e,t,n,r){this.group=new zd,this._axisModel=e,this._api=t,this._local={},this._shared=r||new LM(VM),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=B(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=B(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:B(e.nameDirection,1),tickDirection:B(e.tickDirection,1),labelDirection:B(e.labelDirection,1),labelOffset:B(e.labelOffset,0),silent:B(e.silent,!0),axisName:r,nameLocation:le(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:cN(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new zd({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new X(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},D(GM,function(r){e[r]&&KM[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=ft(t-e),i,a;return pt(r)?(a=n>0?`top`:`bottom`,i=`center`):pt(r-MM)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<MM?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),GM=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],KM={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Zr(u,u,l),Zr(d,d,l));var p=b({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&kh(r.axis.scale))sM().buildAxisBreakLine(r,i,a,m);else{var h=new Of(b({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));wp(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);F(g)&&(g=[g,g]),(F(_)||I(_))&&(_=[_,_]);var v=rT(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],x=_[1];D([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=nT(g[n],-y/2,-x/2,y,x,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){tN(t,i,s)&&qM(e,t,n,r,i,a,o,OM.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){tN(t,i,s)&&qM(e,t,n,r,i,a,o,OM.determine);var c=$M(e,i,a,r);XM(e,t.labelLayoutList,c),eN(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(cN(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new X(0,0),_=new X(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=Sr();_.transform(Dr(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*MM/180);var b,x;Fj(u)?b=WM.innerTextLayout(e.rotation,y??e.rotation,d):(b=JM(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=ce(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Wl({x:g.x,y:g.y,rotation:b.rotation,silent:WM.isLabelSilent(r),style:mm(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Vp({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=WM.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Yl(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=Wj({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Fj(u)?NM[E]:PM[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function qM(e,t,n,r,i,a,o,s){rN(t)||nN(e,t,i,s,r,o);var c=t.labelLayoutList;aN(e,r,c,a),uN(r,e.rotation,c);var l=e.optionHideOverlap;YM(r,c,l),l&&Qj(A(c,function(e){return e&&!e.label.ignore})),RM(e,n,r,c)}function JM(e,t,n,r){var i=ft(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return pt(i-MM/2)?(o=c?`bottom`:`top`,a=`center`):pt(i-MM*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<MM*1.5&&i>MM/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function YM(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(Pj(r))return;function a(e,a,o){var s=Wj(t[a]),c=Wj(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=FM(s.label).labelInfo.tick;if(cA(l)&&u.notNice||uA(l)&&u.offInterval){ZM(s.label);return}}if(e===!1||s.suggestIgnore){ZM(s.label);return}if(c.suggestIgnore){ZM(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=Jj({marginForce:f},s),c=Jj({marginForce:f},c)}$j(s,c,null,{touchThreshold:d})&&ZM(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function XM(e,t,n){e.showMinorTicks||D(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=IM(r),a=FM(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){ZM(r);return}}})}function ZM(e){e&&(e.ignore=!0)}function QM(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Zr(o,o,t),Zr(s,s,t));var u=new Of({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});wp(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=IM(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function $M(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=QM(i.getTicksCoords(),n.transform,c,S(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function eN(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=S(c.getLineStyle(),S(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=QM(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function tN(e,t,n){if(rN(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),iN(e,null,null,null))}return!0}function nN(e,t,n,r,i,a){var o=i.axis,s=ce(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new zd;n.add(c);var l=lM(r);if(!s||o.scale.isBlank()){iN(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ce(e.raw.labelRotate,u.get(`rotate`))||0)*MM/180,p=WM.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;D(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=zj(o.scale,n);if(m&&m[f]){var y=m[f];L(y)&&y.textStyle&&(l=new Vm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=B(l.getShallow(`alignMinLabel`,!0),x),C=B(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=B(l.getShallow(`verticalAlignMinLabel`,!0),w),E=B(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new Wl({x:0,y:0,rotation:0,silent:WM.isLabelSilent(i),z2:D,style:mm(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:P(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=FM(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Vp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=WM.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var ee=e.tick.break;if(ee){var j=ee.parsedBreak;A.break={start:j.vmin,end:j.vmax}}o.type===`category`&&(A.dataIndex=f),Yl(O).eventData=A,ee&&lN(i,a,O,ee)}h.push(O),c.add(O)}),iN(t,O(h,function(e){return{label:e,priority:FM(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function rN(e){return!!e.labelLayoutList}function iN(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function aN(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);D(n,function(n,a){var o=Wj(n);if(o){var s=o.label,c=FM(s);o.suggestIgnore=s.ignore,s.ignore=!1,va(oN,sN);var l=t.axis;oN.x=l.dataToCoord(zj(l.scale,c.labelInfo.tick)),oN.y=e.labelOffset+e.labelDirection*i,oN.rotation=c.layoutRotation,r.add(oN),oN.updateTransform(),r.remove(oN),oN.decomposeTransform(),va(s,oN),s.markRedraw(),Hj(o,!0),Wj(o)}})}var oN=new Ol,sN=new Ol;function cN(e){return!!e}function lN(e,t,n,r){n.on(`click`,function(n){var i={type:cM,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function uN(e,t,n){var r=Eh();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&FM(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&D(i,function(r){sM().adjustBreakLabelPair(e.axis.inverse,t,[Wj(n[r[0]]),Wj(n[r[1]])])})}}U(),lm(),Gi(),kg(),jr(),Vj(),Dm(),jA(),q();function dN(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function fN(e,t,n,r,i){var a=mN(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Eg(o.get(`padding`)||0),c=o.getFont(),l=Ii(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),pN(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:mm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function pN(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function mN(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Mj(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),F(o)?a=o.replace(`{value}`,a):P(o)&&(a=o(s))}return a}function hN(e,t,n){var r=Sr();return Dr(r,r,n.rotation),Er(r,r,n.position),Dp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function gN(e,t,n,r,i,a){var o=WM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),fN(t,r,i,a,{position:hN(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _N(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function vN(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function yN(e,t,n){return DA(e,{fromStat:{sers:O(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function bN(e,t,n){return[kt(Ot(t[0],t[1]),e-n/2),Ot(e+n/2,kt(t[0],t[1]))]}U();function xN(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),ce(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}G(),q();var SN=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=CN(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=dN(r),f=wN[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}gN(t,e,xN(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=xN(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=hN(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=CN(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Ot(o[1],l[c]),l[c]=kt(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(FA);function CN(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var wN={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:_N([t,r[0]],[t,r[1]],TN(e))}},shadow:function(e,t,n,r,i,a){var o=yN(e,i,a),s=r[1]-r[0],c=bN(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:vN([l,r[0]],[u-l,s],TN(e))}}};function TN(e){return e.dim===`x`?0:1}G(),e_(),Bv();var EN=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.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:Q.color.accent40,throttle:40}},t}($g);U(),Ze(),Y();var DN=J(),ON=D;function kN(e,t,n){if(!K.node){var r=t.getZr();DN(r).records||(DN(r).records={}),AN(r,t);var i=DN(r).records[e]||(DN(r).records[e]={});i.handler=n}}function AN(e,t){if(DN(e).initialized)return;DN(e).initialized=!0,n(`click`,M(NN,`click`)),n(`mousemove`,M(NN,`mousemove`)),n(`mousewheel`,M(NN,`mousewheel`)),n(`globalout`,MN);function n(n,r){e.on(n,function(n){var i=PN(t);ON(DN(e).records,function(e){e&&r(e,n,i.dispatchAction)}),jN(i.pendings,t)})}}function jN(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function MN(e,t,n){e.handler(`leave`,null,n)}function NN(e,t,n,r){t.handler(e,n,r)}function PN(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function FN(e,t){if(!K.node){var n=t.getZr();(DN(n).records||{})[e]&&(DN(n).records[e]=null)}}G(),SC();var IN=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;kN(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){FN(`axisPointer`,t)},t.prototype.dispose=function(e,t){FN(`axisPointer`,t)},t.type=`axisPointer`,t}(xC);U(),Y();function LN(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=gn(a,e);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(O(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}Y(),U(),q();var RN=J();function zN(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||H(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){YN(i)&&(i=LN({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=YN(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||YN(i),f={},p={},m={list:[],map:{}},h={showPointer:M(HN,p),showTooltip:M(UN,m)};D(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);D(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=qN(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&BN(e,o,h,!1,f)}})});var g={};return D(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&D(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,JN(t),JN(e)))),g[e.key]=a}})}),D(g,function(e,t){BN(u[t],e,h,!0,f)}),WN(p,u,f),GN(m,i,e,o),KN(u,o,n),f}}function BN(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=VN(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&b(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function VN(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Tt(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),D(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function HN(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function UN(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=Kk(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function WN(e,t,n){var r=n.axesInfo=[];D(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function GN(e,t,n,r){if(YN(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function KN(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=RN(r)[i]||{},o=RN(r)[i]={};D(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&D(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}D(a,function(e,t){!o[t]&&c.push(l(e))}),D(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function qN(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function JN(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function YN(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}U();function XN(e){Jk.registerAxisPointerClass(`CartesianAxisPointer`,SN),e.registerComponentModel(EN),e.registerComponentView(IN),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!N(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Ik(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},zN)}function ZN(e){if(N(e)){D(e,function(e){ZN(e)});return}C(QN,e)>=0||(QN.push(e),P(e)&&(e={install:e}),e.install($N))}var QN,$N,eP=t((()=>{tO(),SC(),NC(),e_(),Cy(),U(),Hw(),gS(),Gw(),QN=[],$N={registerPreprocessor:SE,registerProcessor:CE,registerPostInit:wE,registerPostUpdate:TE,registerUpdateLifecycle:EE,registerAction:DE,registerCoordinateSystem:OE,registerLayout:jE,registerVisual:ME,registerTransform:$D,registerLoading:PE,registerMap:IE,registerImpl:zw,PRIORITY:iD,ComponentModel:$g,ComponentView:xC,SeriesModel:Sy,ChartView:jC,registerComponentModel:function(e){$g.registerClass(e)},registerComponentView:function(e){xC.registerClass(e)},registerSeriesModel:function(e){Sy.registerClass(e)},registerChartView:function(e){jC.registerClass(e)},registerCustomSeries:function(e,t){Uw(e,t)},registerSubTypeDefaulter:function(e,t){$g.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){cS(e,t)}}}));eP(),G(),e_(),Bv();var tP=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}($g);kg(),Ze();function nP(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function rP(e){if(K.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var iP=rP([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),aP=rP([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function oP(e,t){if(!e)return t;t=vg(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function sP(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}U(),Kb(),uh(),Ze(),kg(),cy();var cP=oP(aP,`transition`),lP=oP(iP,`transform`),uP=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(K.transform3dSupported?`will-change:transform;`:``);function dP(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function fP(e,t,n){if(!F(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=wg(t);var a=dP(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=lP+`:`,l;C([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function pP(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(K.transformSupported?``+lP+i:`,left`+i+`,top`+i)),cP+`:`+a}function mP(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!K.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=K.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+lP+`:`+o+`;`:[[`top`,0],[`left`,0],[iP,o]]}function hP(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=B(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),D([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function gP(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=ry(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(pP(a,n,r)),o&&i.push(`background-color:`+o),D([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=vg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(hP(d)),f!=null&&i.push(`padding:`+Eg(f).join(`px `)+`px`),i.join(`;`)+`;`}function _P(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&$m(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var vP=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,K.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(F(i)?document.querySelector(i):ae(i)?i:P(i)&&i(e.getDom()));_P(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;Lb(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=sP(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=uP+gP(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+mP(i[0],i[1],!0)+(`border-color:`+wg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(F(i)&&n.get(`trigger`)===`item`&&!nP(n)&&(o=fP(n,r,i)),F(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,N(e)||(e=[e]);for(var s=0;s<e.length;s++)ae(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(_P(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;D(mP(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,K.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;eh(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}();U(),Jl(),cy(),Jt();var yP=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),SP(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;L(e)&&Wt(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Wl({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:ry(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),D([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),D([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=xP(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;SP(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=bP(i.borderWidth||0),o=xP(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function bP(e){return Math.max(0,e)}function xP(e){var t=bP(e.shadowBlur||0),n=bP(e.shadowOffsetX||0),r=bP(e.shadowOffsetY||0);return{left:bP(t-n),right:bP(t+n),top:bP(t-r),bottom:bP(t+r)}}function SP(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}G(),U(),Ze(),kg(),q(),lm(),Xg(),Hm(),Vj(),Y(),SC(),mg(),Zl(),$_(),cy(),Iw(),BC();var CP=new Ol({shape:{x:-1,y:-1,width:2,height:2}}),wP=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(K.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=Cn(n.get(`renderMode`));this._tooltipContent=r===`richText`?new yP(t):new vP(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(K.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?FC(this,`_updatePosition`,50,`fixRate`):IC(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);kN(`itemTooltip`,this._api,H(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||K.node||!n.getDom())){var i=EP(r,n);this._ticket=``;var a=r.dataByCoordSys,o=jP(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=CP;c.x=r.x,c.y=r.y,c.update(),Yl(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=LN(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(EP(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&TP([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Yl(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Fw(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Yl(e).dataIndex==null?Yl(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=H(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=TP([t.tooltipOption],r),o=this._renderMode,s=[],c=Uv(`section`,{blocks:[],noHeader:!0}),l=[],u=new sy;D(e,function(e){D(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=mN(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Uv(`section`,{header:f,noHeader:!pe(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),D(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=Mj(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,wg(m.color),o);var h=X_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=TP([a],r).get(`valueFormatter`);p.blocks.push(_?b({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Yv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
9
16
 
10
- `:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=K(n),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=t.positionDefault,p=dn([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),y=new ji;m.marker=y.makeTooltipMarker("item",On(m.color),v);var _=ku(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),T=_.frag,w=T?Bu(b?k({valueFormatter:b},T):T,y,v,S,i.get("useUTC"),p.get("textStyle")):_.text,I="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,I,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=this._renderMode==="html",o=K(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(P(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=H(l),l.content=He(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=t.positionDefault,d=dn(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",m=new ji;this._showOrMove(d,function(){var y=H(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,g,t.offsetX,t.offsetY,t.position,n,m)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,d=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(h)if(P(h)){var g=t.ecModel.get("useUTC"),m=R(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=h,y&&(v=qn(m.axisValue,v,g)),v=vl(v,a,!0)}else if(Y(h)){var _=z(function(S,b){S===this._ticket&&(c.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i,o){if(a==="axis"||R(n))return{color:i||o};if(!R(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Y(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),R(n))a=Ke(n[0],u),i=Ke(n[1],f);else if(N(n)){var p=n;p.width=c[0],p.height=c[1];var g=_r(p,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(P(n)&&l){var m=fw(n,d,c,t.get("borderWidth"));a=m[0],i=m[1]}else{var m=lw(a,i,o,u,f,h?null:20,v?null:20);a=m[0],i=m[1]}if(h&&(a-=yc(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=yc(v)?c[1]/2:v==="bottom"?c[1]:0),sp(t)){var m=uw(a,i,o,u,f);a=m[0],i=m[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&x(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&x(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===g.length,o&&x(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&x(h.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=i[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){fe.node||!n.getDom()||(is(this,"_updatePosition"),this._tooltipContent.dispose(),ms("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(Xe);function dn(r,e,t){var n=e.ecModel,a;t?(a=new ee(t,n,n),a=new ee(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ee&&(o=o.get("tooltip",!0)),P(o)&&(o={formatter:o}),o&&(a=new ee(o,a,n)))}return a}function mc(r,e){return r.dispatchAction||z(e.dispatchAction,e)}function lw(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function uw(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function fw(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function yc(r){return r==="center"||r==="middle"}function cw(r,e,t){var n=Rs(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=$r(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=K(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}function dM(r){gr(ZT),r.registerComponentModel($T),r.registerComponentView(sw),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},je),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},je)}var _c=x;function Sc(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function xc(r,e,t){var n={};return _c(e,function(i){var o=n[i]=a();_c(r[i],function(s,l){if(Le.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Le(u),l==="opacity"&&(u=H(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Le(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function vw(r,e,t){var n;x(t,function(a){e.hasOwnProperty(a)&&Sc(e[a])&&(n=!0)}),n&&x(t,function(a){e.hasOwnProperty(a)&&Sc(e[a])?r[a]=H(e[a]):delete r[a]})}function hw(r,e,t,n){var a={};return x(r,function(i){var o=Le.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return dd(s,c,b)}function f(b,T){gx(s,c,b,T)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=n!=null?h.get(l,c):c,p=t(d),g=e[p],m=a[p],y=0,_=m.length;y<_;y++){var S=m[y];g[S]&&g[S].applyVisual(d,u,f)}}}}}var dw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:V.size.m,backgroundColor:V.color.transparent,borderColor:V.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:V.color.primary},subtextStyle:{fontSize:12,color:V.color.quaternary}},e})(q),pw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=W(t.get("textBaseline"),t.get("textVerticalAlign")),f=new ye({style:Ge(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new ye({style:Ge(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Ko(d,"_"+t.get("target"))}),p&&v.on("click",function(){Ko(p,"_"+t.get("subtarget"))}),K(f).eventData=K(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),h&&i.add(v);var m=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Mi(t,a),S=_r(y,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.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),m=i.getBoundingRect();var T=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var I=new Oe({shape:{x:m.x-T[3],y:m.y-T[0],width:m.width+T[1]+T[3],height:m.height+T[0]+T[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(I)}},e.type="title",e})(Xe);function pM(r){r.registerComponentModel(dw),r.registerComponentView(pw)}var cp={get:function(r,e,t){var n=H((gw[r]||{})[e]);return t&&R(n)?n[n.length-1]:n}},gw={color:{active:["#006edd","#e0ffff"],inactive:[V.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]}},bc=Le.mapVisual,mw=Le.eachVisual,yw=R,bo=x,_w=Xn,Sw=bt,si=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&vw(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=z(t,this),this.controllerVisuals=xc(this.option.controller,n,t),this.targetVisuals=xc(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,n=this.option.seriesTargets;if(n){var a=[];return bo(n,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=$r(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return B(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,n){x(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],R(t)&&(t=t.slice(),u=!0);var f=n?t:u?[c(t[0]),c(t[1])]:c(t);if(P(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(Y(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[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))}},e.prototype.resetExtent=function(){var t=this.option,n=_w([t.min,t.max]);this._dataExtent=n},e.prototype.getDimension=function(t){var n=this,a=this.option.seriesTargets;if(a){var i=Gp(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(t).id});if(i)return i.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var n=t.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return t.getDimensionIndex(a);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});me(i,a),me(o,a);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){yw(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},bo(d,function(g,m){if(Le.isValidType(m)){var y=cp.get(m,"inactive",s);y!=null&&(p[m]=y,m==="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(),g=p||"roundRect";bo(this.stateList,function(m){var y=this.itemSize,_=c[m];_||(_=c[m]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&H(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&H(v)||(s?y[0]:[y[0],y[0]])),_.symbol=bc(_.symbol,function(T){return T==="none"?g:T});var S=_.symbolSize;if(S!=null){var b=-1/0;mw(S,function(T){T>b&&(b=T)}),_.symbolSize=bc(S,function(T){return Sw(T,[0,b],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:V.color.transparent,borderColor:V.color.borderTint,contentColor:V.color.theme[0],inactiveColor:V.color.disabled,borderWidth:0,padding:V.size.m,textGap:10,precision:0,textStyle:{color:V.color.secondary}},e})(q),Tc=[20,140],xw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Tc[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Tc[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):R(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),x(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=Xn((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent(),i=W(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=t)&&(i&&n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=wc(this,"outOfRange",this.getExtent()),a=wc(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:t(v,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=lh(si.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:V.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:V.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:V.color.shadow}}),e})(si);function wc(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}var vp=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=jn(n.get("padding")||0),i=t.getBoundingRect();t.add(new Oe({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="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(t)],h=Le.prepareVisualTypes(c);return x(h,function(v){var d=c[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),Le.dependsOn(v,n)&&d&&d.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api,i=Mi(n,a).refContainer;_h(t,n.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e})(Xe),Mc=[["left","right","width"],["top","bottom","height"]];function hp(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=Mc[o],l=[0,null,10],u={},f=0;f<3;f++)u[Mc[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],h=_r(u,i,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function ka(r,e){return x(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var yt=bt,bw=x,Cc=Math.min,To=Math.max,Tw=12,ww=6,Mw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=z(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=z(this._hideIndicator,this)},e.prototype.doRender=function(t,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(n){var i=n[1-a];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,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new ye({style:Ge(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})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=hp(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new Re;u.add(f),f.add(a.outOfRange=Dc()),f.add(a.inRange=Dc(null,s?Ac(this._orient):null,z(this._dragHandle,this,"all",!1),z(this._dragHandle,this,"all",!0))),f.setClipPath(new Oe({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),h=To(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,h,o),this._createHandle(n,u,1,i,h,o)),this._createIndicator(n,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=z(this._dragHandle,this,a,!1),u=z(this._dragHandle,this,a,!0),f=Ao(t.get("handleSize"),i[0]),c=Yr(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=Ac(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){Hr(m.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),ur(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,d=new ye({cursor:h,draggable:!0,drift:l,onmousemove:function(m){Hr(m.event)},ondragend:u,style:Ge(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},e.prototype._createIndicator=function(t,n,a,i,o){var s=Ao(t.get("indicatorSize"),a[0]),l=Yr(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Wr){var f=l.style;l.useStyle(k({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new ye({silent:!0,invisible:!0,style:Ge(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:ww)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():Ic(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[yt(n[0],a,i,!0),yt(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];ST(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[yt(i[0],o,s,!0),yt(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,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)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Ts(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new Re(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);bw([0,1],function(c){var h=o[c];h.setStyle("fill",n.handlesColor[c]),h.y=t[c];var v=yt(t[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=Br(a.handleLabelPoints[c],Sn(h,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,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(t,"color",h),d=this.getControllerVisual(t,"symbolSize"),p=yt(t,s,u,!0),g=l[0]-d/2,m={x:c.x,y:c.y};c.y=p,c.x=g;var y=Br(f.indicatorLabelPoint,Sn(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,T=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:T?S:"middle",align:T?"center":S});var w={x:g,y:p,style:{fill:v}},I={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=m.x,c.y=m.y,c.animateTo(w,C),_.animateTo(I,C)}else c.attr(w),_.attr(I);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;M<D.length;M++)this.api.enterBlur(D[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Cc(To(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=Cc(To(o[0],t),o[1]);var l=Cw(a,s,o),u=[t-l,t+l],f=yt(t,o,s,!0),c=[yt(u[0],o,s,!0),yt(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(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=[];(n||Ic(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=Pg(h,v);this._dispatchHighDown("downplay",ka(d[0],a)),this._dispatchHighDown("highlight",ka(d[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Nr(t.target,function(l){var u=K(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ka(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=Sn(n,i?null:this.group);return R(t)?Br(t,o,a):Ev(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(vp);function Dc(r,e,t,n){return new Un({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){Hr(a.event)},ondragend:n})}function Cw(r,e,t){var n=Tw/2,a=r.get("hoverLinkDataSize");return a&&(n=yt(a,e,t,!0)/2),n}function Ic(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function Ac(r){return r==="vertical"?"ns-resize":"ew-resize"}var Dw={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Iw=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},Aw=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(hw(n.stateList,n.targetVisuals,z(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(z(Lw,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function Lw(r,e,t,n){for(var a=e.targetVisuals[n],i=Le.prepareVisualTypes(a),o={color:pd(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var Lc=x;function Rw(r){var e=r&&r.visualMap;R(e)||(e=e?[e]:[]),Lc(e,function(t){if(t){Er(t,"splitList")&&!Er(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&R(n)&&Lc(n,function(a){N(a)&&(Er(a,"start")&&!Er(a,"min")&&(a.min=a.start),Er(a,"end")&&!Er(a,"max")&&(a.max=a.end))})}})}function Er(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Rc=!1;function dp(r){Rc||(Rc=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(Dw,Iw),x(Aw,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Rw))}function Ew(r){r.registerComponentModel(xw),r.registerComponentView(Mw),dp(r)}var kw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Pw[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=H(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=B(this._pieceList,function(l){return l=H(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=Le.listVisualTypes(),i=this.isCategory();x(t.pieces,function(s){x(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),x(n,function(s,l){var u=!1;x(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&x(this.stateList,function(f){(t[f]||(t[f]={}))[l]=cp.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)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,x(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;x(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=H(t)},e.prototype.getValueState=function(t){var n=Le.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Le.findPieceIndex(l,a);f===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=t(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.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 x(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=lh(si.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(si),Pw={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),ko(r),x(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;x(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Ec(e,r)},pieces:function(r){var e=this.option;x(e.pieces,function(t,n){N(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.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]=t[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]&&(a.value=o[0])}a.visual=Le.retrieveVisuals(t),r.push(a)},this),Ec(e,r),ko(r),x(r,function(t){var n=t.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function Ec(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var Ow=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=Cn(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),x(l.viewPieceList,function(h){var v=h.piece,d=new Re;d.onclick=z(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=n.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),m=i.get("align")||o;d.add(new ye({style:Ge(i,{x:m==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:m,opacity:W(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),jy(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:ka(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return hp(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(n){var s=new Re,l=this.visualMapModel.textStyleModel;s.add(new ye({style:Ge(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=B(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a,i){var o=Yr(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=H(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,x(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})}},e.type="visualMap.piecewise",e})(vp);function Nw(r){r.registerComponentModel(kw),r.registerComponentView(Ow),dp(r)}function gM(r){gr(Ew),gr(Nw)}var Vw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new Th(this),Ou(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),Ou(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:vt},e})(q),Bw=(function(r){$(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(Xe);function zw(r){r.registerComponentModel(Vw),r.registerComponentView(Bw)}function Fw(r){return My(null,r)}var Hw={isDimensionStacked:sh,enableDataStack:oh,getStackedDimension:by};function Gw(r,e){var t=e;e instanceof ee||(t=new ee(e));var n=g0(t),a=m0(t,n);return r[1]<r[0]&&(r=r.slice().reverse()),Jx(a,t,null,null,r),a}function Uw(r){Zt(r,qx)}function Yw(r,e){return e=e||{},Ge(r,null,null,e.state!=="normal")}const Ww=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:cy,createList:Fw,createScale:Gw,createSymbol:Yr,createTextStyle:Yw,dataStack:Hw,enableHoverEmphasis:Sv,getECData:K,getLayoutRect:_r,mixinAxisModelCommonMethods:Uw},Symbol.toStringTag,{value:"Module"})),Xw=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Eo,asc:Xn,getPercentWithPrecision:pg,getPixelPrecision:dg,getPrecision:Lt,getPrecisionSafe:Kc,isNumeric:jc,isRadianAroundZero:In,linearMap:bt,nice:Ls,numericToNumber:An,parseDate:Pt,parsePercent:Ke,quantile:_g,quantity:qc,quantityExponent:As,reformIntervals:ko,remRadian:Is,round:hg},Symbol.toStringTag,{value:"Module"})),Zw=Object.freeze(Object.defineProperty({__proto__:null,format:qn,parse:Pt,roundTime:Ga},Symbol.toStringTag,{value:"Module"})),$w=Object.freeze(Object.defineProperty({__proto__:null,Arc:di,BezierCurve:bs,BoundingRect:Me,Circle:vi,CompoundPath:Vc,Ellipse:_s,Group:Re,Image:Wr,IncrementalDisplayable:Bc,Line:Xr,LinearGradient:Ts,Polygon:Un,Polyline:hi,RadialGradient:Fc,Rect:Oe,Ring:xs,Sector:Ss,Text:ye,clipPointsByRect:kv,clipRectByRect:Pv,createIcon:Us,extendPath:Iv,extendShape:Dv,getShapeClass:Av,getTransform:Sn,initProps:En,makeImage:Fs,makePath:_i,mergePath:Rv,registerShape:st,resizePath:Hs,updateProps:pr},Symbol.toStringTag,{value:"Module"})),Kw=Object.freeze(Object.defineProperty({__proto__:null,addCommas:fl,capitalFirst:Ky,encodeHTML:He,formatTime:$y,formatTpl:vl,getTextRect:Zy,getTooltipMarker:yh,normalizeCssArray:jn,toCamelCase:cl,truncateText:Up},Symbol.toStringTag,{value:"Module"})),qw=Object.freeze(Object.defineProperty({__proto__:null,bind:z,clone:H,curry:_e,defaults:xe,each:x,extend:k,filter:we,indexOf:ve,inherits:Oc,isArray:R,isFunction:Y,isObject:N,isString:P,map:B,merge:me,reduce:Mn},Symbol.toStringTag,{value:"Module"}));function jw(r){var e=q.extend(r);return q.registerClass(e),e}function Qw(r){var e=Xe.extend(r);return Xe.registerClass(e),e}function Jw(r){var e=pt.extend(r);return pt.registerClass(e),e}function eM(r){var e=ht.extend(r);return ht.registerClass(e),e}function tM(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function rM(r,e){var t=r.label,n=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:tM(n&&n.shape.points)}}var kc=["align","verticalAlign","width","height","fontSize"],ze=new ui,wo=Z(),nM=Z();function Sa(r,e,t){for(var n=0;n<t.length;n++){var a=t[n];e[a]!=null&&(r[a]=e[a])}}var xa=["x","y","rotation"],aM=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();Me.applyTransform(f,f,u),u?ze.setLocalTransform(u):(ze.x=ze.y=ze.rotation=ze.originX=ze.originY=0,ze.scaleX=ze.scaleY=1),ze.rotation=pn(ze.rotation);var c=a.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Me.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:ze.x,y:ze.y,scaleX:ze.scaleX,scaleY:ze.scaleY,rotation:ze.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,a=n.get("labelLayout");(Y(a)||ot(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=K(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function a(_,S){return function(){lf(_,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;Y(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(rM(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=Ke(f.x,t),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=Ke(f.y,n),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=wo(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<kc.length;p++){var g=kc[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",a(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),a=[];x(this._labelList,function(l){l.defaultAttr.ignore||a.push(ns({},l))});var i=we(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=we(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});Ju(i,0,0,t),Ju(o,1,0,n);var s=we(a,function(l){return l.layoutOption.hideOverlap});$0(s),Kh(s)},r.prototype.processLabelsOverall=function(){var e=this;x(this._chartViewList,function(t){var n=t.__model,a=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=wo(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,n),i&&e._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),a=K(e),i=a.dataIndex;if(n&&i!=null){var o=t.getData(a.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");AS(e,LS(s),l),lf(e,c)}},r.prototype._animateLabels=function(e,t){var n=e.getTextContent(),a=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Vr(e))){var i=wo(n),o=i.oldLayout,s=K(e),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=t.getData(s.dataType);if(o){n.attr(o);var h=e.prevStates;h&&(ve(h,"select")>=0&&n.attr(i.oldLayoutSelect),ve(h,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),pr(n,u,t,l)}else if(n.attr(u),!Zs(n).valueAnimation){var c=W(n.style.opacity,1);n.style.opacity=0,En(n,{style:{opacity:c}},t,l)}if(i.oldLayout=u,n.states.select){var v=i.oldLayoutSelect={};Sa(v,u,xa),Sa(v,n.states.select,xa)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};Sa(d,u,xa),Sa(d,n.states.emphasis,xa)}Em(n,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var i=nM(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),pr(a,{shape:p},t)):(a.setShape(p),a.style.strokePercent=0,En(a,{style:{strokePercent:1}},t)),i.oldLayout=p}},r})(),Mo=Z();function iM(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var a=Mo(t).labelManager;a||(a=Mo(t).labelManager=new aM),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var a=Mo(t).labelManager;x(n.updatedSeries,function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}function oM(r){r.registerPainter("canvas",Yp)}function sM(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var ba={};gr([oM,zw]);const lM={init:function(){return Ed.apply(null,arguments)}};gr(iM);const uM=Object.freeze(Object.defineProperty({__proto__:null,Axis:G0,ChartView:ht,ComponentModel:q,ComponentView:Xe,List:qs,Model:ee,PRIORITY:wd,SeriesModel:pt,color:Wp,connect:Fx,dataTool:$x,default:lM,dependencies:Tx,disConnect:Hx,disconnect:kd,dispose:Gx,env:fe,extendChartView:eM,extendComponentModel:jw,extendComponentView:Qw,extendSeriesModel:Jw,format:Kw,getCoordinateSystemDimensions:Yx,getInstanceByDom:Rl,getInstanceById:Ux,getMap:Zx,graphic:$w,helper:Ww,init:Ed,innerDrawElementOnCanvas:Yc,matrix:Xp,number:Xw,parseGeoJSON:Wf,parseGeoJson:Wf,registerAction:$t,registerCoordinateSystem:Nd,registerCustomSeries:Wx,registerLayout:Vd,registerLoading:Nl,registerLocale:el,registerMap:Bd,registerPostInit:Pd,registerPostUpdate:Od,registerPreprocessor:kl,registerProcessor:Pl,registerTheme:El,registerTransform:zd,registerUpdateLifecycle:Li,registerVisual:Kt,setCanvasCreator:Xx,setPlatformAPI:Wc,throttle:Cl,time:Zw,use:gr,util:qw,vector:Zp,version:bx,zrUtil:$p,zrender:Kp},Symbol.toStringTag,{value:"Module"})),fM=sM(uM);var Pc;function cM(){return Pc||(Pc=1,(function(r){(function(e,t){typeof r.nodeName!="string"?t(r,fM):t({},e.echarts)})(ba,function(e,t){var n=function(u){typeof console<"u"&&console&&console.error&&console.error(u)};if(!t){n("ECharts is not Loaded");return}var a="#B9B8CE",i="#100C2A",o=function(){return{axisLine:{lineStyle:{color:a}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},s=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],l={darkMode:!0,color:s,backgroundColor:i,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:a}},textStyle:{color:a},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:a}},dataZoom:{borderColor:"#71708A",textStyle:{color:a},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:a}},timeline:{lineStyle:{color:a},label:{color:a},controlStyle:{color:a,borderColor:a}},calendar:{itemStyle:{color:i},dayLabel:{color:a},monthLabel:{color:a},yearLabel:{color:a}},timeAxis:o(),logAxis:o(),valueAxis:o(),categoryAxis:o(),line:{symbol:"circle"},graph:{color:s},gauge:{title:{color:a}},candlestick:{itemStyle:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}};l.categoryAxis.splitLine.show=!1,t.registerTheme("dark",l)})})(ba)),ba}cM();export{hM as a,dM as b,pM as c,gM as d,oM as e,Ed as i,gr as u};
17
+ `:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Yl(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=TP([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new sy;h.marker=g.makeTooltipMarker(`item`,wg(h.color),d);var _=X_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),x=_.frag,S=x?Yv(y?b({valueFormatter:y},x):x,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,C=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,S,h,C,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Yl(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(F(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=_(a),a.content=ah(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=TP(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new sy;this._showOrMove(d,function(){var n=_(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(F(u)){var p=e.ecModel.get(`useUTC`),m=N(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Rh(m.axisValue,d,p)),d=bg(d,n,!0)}else if(P(u)){var g=H(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||N(t))return{color:r||i};if(!N(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),P(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),N(t))n=zt(t[0],s),r=zt(t[1],c);else if(L(t)){var p=t;p.width=l[0],p.height=l[1];var m=Rg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(F(t)&&o){var h=kP(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=DP(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=AP(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=AP(d)?l[1]/2:d===`bottom`?l[1]:0),nP(e)){var h=OP(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&D(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&D(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&D(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&D(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){K.node||!t.getDom()||(IC(this,`_updatePosition`),this._tooltipContent.dispose(),FN(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(xC);function TP(e,t,n){var r=t.ecModel,i;n?(i=new Vm(n,r,r),i=new Vm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Vm&&(o=o.get(`tooltip`,!0)),F(o)&&(o={formatter:o}),o&&(i=new Vm(o,i,r)))}return i}function EP(e,t){return e.dispatchAction||H(t.dispatchAction,t)}function DP(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function OP(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function kP(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function AP(e){return e===`center`||e===`middle`}function jP(e,t,n){var r=vn(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=yn(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Yl(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}U();function MP(e){ZN(XN),e.registerComponentModel(tP),e.registerComponentView(wP),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},xe),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},xe)}G(),U(),lm(),Zl(),Dm(),Xg(),e_(),SC(),kg(),Bv();var NP=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}($g),PP=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=B(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Wl({style:mm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Wl({style:mm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Tg(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Tg(p,`_`+e.get(`subtarget`))}),Yl(c).eventData=Yl(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Rg(g,zg(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Ol({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(xC);function FP(e){e.registerComponentModel(NP),e.registerComponentView(PP)}U(),Bv();var IP={get:function(e,t,n){var r=_((LP[e]||{})[t]);return n&&N(r)?r[r.length-1]:r}},LP={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.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]}};U(),jw();var RP=D;function zP(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function BP(e,t,n){var r={};return RP(t,function(t){var a=r[t]=i();RP(e[t],function(e,r){if(uk.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new uk(i),r===`opacity`&&(i=_(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new uk(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function VP(e,t,n){var r;D(n,function(e){t.hasOwnProperty(e)&&zP(t[e])&&(r=!0)}),r&&D(n,function(n){t.hasOwnProperty(n)&&zP(t[n])?e[n]=_(t[n]):delete e[n]})}function HP(e,t,n,r){var i={};return D(e,function(e){i[e]=uk.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return Ow(a,l,e)}function c(e,t){Aw(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}G(),U(),Y(),q(),e_(),Bv();var UP=uk.mapVisual,WP=uk.eachVisual,GP=N,KP=D,qP=at,JP=$e,YP=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&VP(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=H(e,this),this.controllerVisuals=BP(this.option.controller,t,e),this.targetVisuals=BP(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return KP(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=yn(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return O(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){D(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],N(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(F(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(P(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=qP([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ee(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};v(r,n),v(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){GP(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},KP(r,function(e,t){if(uk.isValidType(t)){var n=IP.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;KP(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&_(t)||(a?i:[i]),c.symbolSize??=n&&_(n)||(a?s[0]:[s[0],s[0]]),c.symbol=UP(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;WP(l,function(e){e>u&&(u=e)}),c.symbolSize=UP(l,function(e){return JP(e,[0,u],[0,s[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:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}($g);G(),U(),q(),Jm(),Bv();var XP=[20,140],ZP=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=XP[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=XP[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):N(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=at((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=B(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=QP(this,`outOfRange`,this.getExtent()),n=QP(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=Km(YP.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:Q.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Q.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}}),t}(YP);function QP(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}G(),U(),lm(),kg(),Xg(),SC();var $P=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Eg(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Ol({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return D(uk.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),uk.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=zg(t,n).refContainer;Bg(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(xC);q();function eF(e,t,n,r,i,a){e||=0;var o=dt(n[1],-n[0]);if(i!=null&&(i=nF(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(dt(t[1],-t[0]));s=nF(s,[0,o]),i=a=nF(s,[i,a]),r=0}t[0]=nF(t[0],n),t[1]=nF(t[1],n);var c=tF(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=dt(u[0],l):u[1]=dt(u[1],-l),t[r]=nF(t[r],u);var d=tF(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=dt(t[r],c.sign*i)),d=tF(t,r),a!=null&&d.span>a&&(t[1-r]=dt(t[r],d.sign*a)),t}function tF(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function nF(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}U(),Xg();var rF=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function iF(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=rF[o],c=[0,null,10],l={},u=0;u<3;u++)l[rF[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=Rg(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function aF(e,t){return D(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}G(),U(),Uf(),Kb(),lm(),q(),Y(),Gi(),md(),fT(),vl(),Zl(),Dm(),Iw();var oF=$e,sF=D,cF=Math.min,lF=Math.max,uF=12,dF=6,fF=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=H(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=H(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Wl({style:mm(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=iF(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new zd;s.add(c),c.add(n.outOfRange=pF()),c.add(n.inRange=pF(null,a?gF(this._orient):null,H(this._dragHandle,this,`all`,!1),H(this._dragHandle,this,`all`,!0))),c.setClipPath(new Ol({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=lF(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=H(this._dragHandle,this,n,!1),s=H(this._dragHandle,this,n,!0),c=Bi(e.get(`handleSize`),r[0]),l=nT(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=gF(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Gb(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),Xu(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Wl({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Gb(e.event)},ondragend:s,style:mm(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=Bi(e.get(`indicatorSize`),n[0]),o=nT(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof _l){var c=o.style;o.useStyle(b({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new Wl({silent:!0,invisible:!0,style:mm(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:dF)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():hF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[oF(t[0],n,r,!0),oF(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];eF(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[oF(r[0],i,a,!0),oF(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new Hf(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new zd(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);sF([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=oF(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=Dp(n.handleLabelPoints[l],Ep(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=oF(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=Dp(c.indicatorLabelPoint,Ep(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=cF(lF(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[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,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=cF(lF(i[0],e),i[1]);var o=mF(n,a,i),s=[e-o,e+o],c=oF(e,i,a,!0),l=[oF(s[0],i,a,!0),oF(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||hF(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=hn(u,d);this._dispatchHighDown(`downplay`,aF(f[0],n)),this._dispatchHighDown(`highlight`,aF(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Fw(e.target,function(e){var n=Yl(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,aF(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,t,n,r){var i=Ep(t,r?null:this.group);return N(e)?Dp(e,i,n):Op(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}($P);function pF(e,t,n,r){return new xf({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Gb(e.event)},ondragend:r})}function mF(e,t,n){var r=uF/2,i=e.get(`hoverLinkDataSize`);return i&&(r=oF(i,t,n,!0)/2),r}function hF(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function gF(e){return e===`vertical`?`ns-resize`:`ew-resize`}var _F={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},vF=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})};U(),jw();var yF=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(HP(t.stateList,t.targetVisuals,H(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(H(bF,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function bF(e,t,n,r){for(var i=t.targetVisuals[r],a=uk.prepareVisualTypes(i),o={color:kw(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}U();var xF=D;function SF(e){var t=e&&e.visualMap;N(t)||(t=t?[t]:[]),xF(t,function(e){if(e){CF(e,`splitList`)&&!CF(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&N(t)&&xF(t,function(e){L(e)&&(CF(e,`start`)&&!CF(e,`min`)&&(e.min=e.start),CF(e,`end`)&&!CF(e,`max`)&&(e.max=e.end))})}})}function CF(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}U();var wF=!1;function TF(e){wF||(wF=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(_F,vF),D(yF,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(SF))}function EF(e){e.registerComponentModel(ZP),e.registerComponentView(fF),TF(e)}G(),U(),q(),Jm();var DF=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],OF[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=_(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=O(this._pieceList,function(e){return e=_(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=uk.listVisualTypes(),i=this.isCategory();D(t.pieces,function(e){D(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),D(n,function(e,n){var r=!1;D(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&D(this.stateList,function(e){(t[e]||(t[e]={}))[n]=IP.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,D(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;D(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!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=_(e)},t.prototype.getValueState=function(e){var t=uk.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){uk.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return D(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=Km(YP.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}(YP),OF={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),yt(e),D(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;D(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),kF(t,e)},pieces:function(e){var t=this.option;D(t.pieces,function(t,n){L(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=uk.retrieveVisuals(t),e.push(r)},this),kF(t,e),yt(e),D(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function kF(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}G(),U(),lm(),fT(),Xg(),Dm();var AF=function(e){W(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=ce(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),D(o.viewPieceList,function(o){var s=o.piece,u=new zd;u.onclick=H(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Wl({style:mm(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:B(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Jg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:aF(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return iF(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new zd,o=this.visualMapModel.textStyleModel;a.add(new Wl({style:mm(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=O(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=nT(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=_(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,D(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}($P);function jF(e){e.registerComponentModel(DF),e.registerComponentView(AF),TF(e)}eP();function MF(e){ZN(EF),ZN(jF)}function NF(e){var t=e.get(`coordinateSystem`),n=new FF(t),r=IF[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}function PF(e){return e.get(`type`)===`category`}var FF,IF,LF=t((()=>{U(),Y(),FF=function(){function e(e){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=e}return e}(),IF={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Hn).models[0],a=e.getReferringComponents(`yAxis`,Hn).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),PF(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),PF(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Hn).models[0];t.coordSysDims=[`single`],n.set(`single`,i),PF(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Hn).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),PF(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),PF(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();D(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),PF(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Hn).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}}}));function RF(e,t){var n=e.get(`coordinateSystem`),r=Ng.get(n),i;return t&&t.coordSysDims&&(i=O(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=By(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function zF(e,t,n){var r,i;return n&&D(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function BF(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=b_(e)):(i=r.getSource(),a=i.sourceFormat===$l);var o=NF(t),s=RF(t,o),c=n.useEncodeDefaulter,l=P(c)?c:c?M(u_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=_b(i,u),f=zF(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=Cj(t,{schema:d,store:p}),h=new mb(d,t);h.setCalculationInfo(m);var g=f!=null&&VF(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function VF(e){if(e.sourceFormat===`original`)return!N(Qt(HF(e.data||[])))}function HF(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var UF=t((()=>{U(),hb(),bb(),Uy(),Y(),Fg(),LF(),k_(),Dj(),__(),ou()})),WF,GF=t((()=>{WF=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()}));function KF(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),jn(t))}function qF(e,t){return t==null?null:z(t)?NaN:e.parse(t)}function JF(e,t){var n;if(uA(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=N(r)?r:[r,r]}return[YF(n[0]),YF(n[1])]}function YF(e){return Bi(typeof e==`boolean`?0:e,1)||0}function XF(e,t){var n=e.scale;ZF(n,new tI(n,e.model,t,!1,!1),eI)}function ZF(e,t,n){e.rawExtentInfo=t,t.from=n}function QF(e,t,n,r,i){e.rawExtentInfo||XF({scale:e,model:t},i||Tn());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function $F(e,t,n,r){if(n.ctnShp){var i;if(wA(e,function(t){var n=nI.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],En(i,a[0]),Dn(i,a[1]),Aj(e))}}),i){var a=t.getExtent();if(uA(t))e.onBand||t.setExtent2(1,Ot(a[0],a[0]+i[0]),kt(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Ot(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=kt(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}var eI,tI,nI,rI=t((()=>{U(),Gi(),vA(),Y(),Vj(),q(),oA(),EA(),J(),eI=3,tI=function(){function e(e,t,n,r,i){var a=uA(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(sA(e)||lA(e)||cA(e))&&(En(l,qF(e,t.get(`dataMin`,!0))),Dn(l,qF(e,t.get(`dataMax`,!0)))),An(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=qF(e,P(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=qF(e,P(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=JF(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!On(u[0])&&(u[0]=NaN),!On(u[1])&&(u[1]=NaN);var g=s||z(u[0])||z(u[1])||a&&!o,_=sA(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=qF(e,t.get(`startValue`,!0)),x=b!=null;!Tt(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Tt(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),KF(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),KF(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}(),nI=V()}));function iI(e,t){var n=lA(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=mA(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?oI(r,t):aI(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=dA(d)),i[0]||(s[0]=rt(Mt(s[0]/u)*u,l)),i[1]||(s[1]=rt(Nt(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),Rj(e,i,o,s,a,c)}function aI(e,t){var n=gA(t.splitNumber,5),r=tA(e),i=t.minInterval,a=t.maxInterval,o=_t(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=dA(o),c=e.getExtent(),l=[rt(Nt(c[0]/o)*o,s),rt(Mt(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function oI(e,t){var n=gA(t.splitNumber,10),r=e.getExtent(),i=tA(e),a=kt(ht(i),1);n/i*a<=.5&&(a*=10);var o=dA(a),s=[rt(Nt(r[0]/a)*a,o),rt(Mt(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function sI(e,t,n,r,i){var a=QF(e,t,r,n,i),o=sA(e)||cA(e);cI(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&$F(n,e,a,r)}function cI(e,t){lI[e.type](e,t)}var lI,uI=t((()=>{U(),vA(),q(),Vj(),fj(),rI(),oA(),lI={interval:iI,log:iI,time:dj,ordinal:xe}})),dI=n({createDimensions:()=>gb,createList:()=>fI,createScale:()=>pI,createSymbol:()=>nT,createTextStyle:()=>hI,dataStack:()=>gI,enableHoverEmphasis:()=>Ku,getECData:()=>Yl,getLayoutRect:()=>Rg,mixinAxisModelCommonMethods:()=>mI});function fI(e){return BF(null,e)}function pI(e,t){var n=t;t instanceof Vm||(n=new Vm(t));var r=Oj(n),i=kj(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),sI(i,n,null,null,e),i}function mI(e){T(e,WF)}function hI(e,t){return t||={},mm(e,null,null,t.state!==`normal`)}var gI,_I=t((()=>{U(),UF(),Vj(),GF(),Hm(),Xg(),Dj(),Zl(),Dm(),uI(),bb(),fT(),md(),gI={isDimensionStacked:Tj,enableDataStack:Cj,getStackedDimension:Ej}}));function vI(e,t){return Math.abs(e-t)<bI}function yI(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Wc(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!vI(i[0],s[0])||!vI(i[1],s[1]))&&(r+=Wc(i[0],i[1],s[0],s[1],t,n)),r!==0}var bI,xI=t((()=>{Gc(),bI=1e-8}));function SI(e,t){for(var n=0;n<e.length;n++)Zr(e[n],e[n],t)}function CI(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Qr(t,t,a),$r(n,n,a))}}function wI(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var TI,EI,DI,OI,kI,AI=t((()=>{G(),Ai(),ii(),xI(),jr(),U(),TI=[],EI=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),DI=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),OI=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),kI=function(e){W(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return wI(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return D(i,function(t){t.type===`polygon`?CI(t.exterior,n,r,e):D(t.points,function(t){CI(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Z(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(yI(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(yI(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new Z(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(SI(u.exterior,s),D(u.interiors,function(e){SI(e,s)})):D(u.points,function(e){SI(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(EI),function(e){W(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Cr(TI),i=e;i&&!i.isGeoSVGGraphicRoot;)Tr(r,i.getLocalTransform(),r),i=i.parent;return kr(r,r),Zr(n,n,r),n},t}(EI)}));function jI(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return D(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=NI(i,r,n);break;case`Polygon`:MI(i,r,n);break;case`MultiLineString`:MI(i,r,n);break;case`MultiPolygon`:D(i,function(e,t){return MI(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function MI(e,t,n){for(var r=0;r<e.length;r++)e[r]=NI(e[r],t[r],n)}function NI(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function PI(e,t){return e=jI(e),O(A(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new DI(a[0],a.slice(1)));break;case`MultiPolygon`:D(r.coordinates,function(e){e[0]&&i.push(new DI(e[0],e.slice(1)))});break;case`LineString`:i.push(new OI([r.coordinates]));break;case`MultiLineString`:i.push(new OI(r.coordinates))}var o=new kI(n[t||`name`],i,n.cp);return o.properties=n,o})}var FI=t((()=>{U(),AI()})),II=n({MAX_SAFE_INTEGER:()=>Bt,asc:()=>at,getPercentWithPrecision:()=>lt,getPixelPrecision:()=>ct,getPrecision:()=>ot,getPrecisionSafe:()=>st,isNumeric:()=>xt,isRadianAroundZero:()=>pt,linearMap:()=>$e,nice:()=>_t,numericToNumber:()=>bt,parseDate:()=>mt,parsePercent:()=>zt,quantile:()=>vt,quantity:()=>ht,quantityExponent:()=>gt,reformIntervals:()=>yt,remRadian:()=>ft,round:()=>it}),LI=t((()=>{q()})),RI=n({format:()=>Rh,parse:()=>mt,roundTime:()=>Vh}),zI=t((()=>{q(),mg()})),BI=n({Arc:()=>If,BezierCurve:()=>Nf,BoundingRect:()=>Z,Circle:()=>Hd,CompoundPath:()=>Rf,Ellipse:()=>Gd,Group:()=>zd,Image:()=>_l,IncrementalDisplayable:()=>ip,Line:()=>Of,LinearGradient:()=>Hf,Polygon:()=>xf,Polyline:()=>wf,RadialGradient:()=>Wf,Rect:()=>Ol,Ring:()=>mf,Sector:()=>df,Text:()=>Wl,clipPointsByRect:()=>Mp,clipRectByRect:()=>Np,createIcon:()=>Pp,extendPath:()=>_p,extendShape:()=>gp,getShapeClass:()=>yp,getTransform:()=>Ep,initProps:()=>lp,makeImage:()=>xp,makePath:()=>bp,mergePath:()=>im,registerShape:()=>vp,resizePath:()=>Cp,updateProps:()=>cp}),VI=t((()=>{lm()})),HI=n({addCommas:()=>_g,capitalFirst:()=>Cg,encodeHTML:()=>ah,formatTime:()=>Sg,formatTpl:()=>bg,getTextRect:()=>hg,getTooltipMarker:()=>xg,normalizeCssArray:()=>Eg,toCamelCase:()=>vg,truncateText:()=>Ki}),UI=t((()=>{kg()})),WI=n({bind:()=>H,clone:()=>_,curry:()=>M,defaults:()=>S,each:()=>D,extend:()=>b,filter:()=>A,indexOf:()=>C,inherits:()=>w,isArray:()=>N,isFunction:()=>P,isObject:()=>L,isString:()=>F,map:()=>O,merge:()=>v,reduce:()=>k}),GI=t((()=>{U()}));function KI(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function qI(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=DA(e).w;if(!i)return!1;D(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var JI,YI,XI=t((()=>{U(),q(),jM(),vA(),jA(),Vj(),JI=[0,1],YI=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),$e(e,JI,KI(this),t)},e.prototype.coordToData=function(e,t){var n=$e(e,KI(this),JI,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=O(dM(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(zj(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=qI(this,n,r);return O(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(uA(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),O(this.scale.getMinorTicks(e),function(e){return O(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=lM(OM.determine),uM(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return DA(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=lM(OM.determine),xM(this,e)},e}()}));function ZI(e){var t=$g.extend(e);return $g.registerClass(t),t}function QI(e){var t=xC.extend(e);return xC.registerClass(t),t}function $I(e){var t=Sy.extend(e);return Sy.registerClass(t),t}function eL(e){var t=jC.extend(e);return jC.registerClass(t),t}var tL=t((()=>{e_(),SC(),Cy(),NC(),hb(),gS(),jr(),ii(),U(),zo(),BC(),_I(),eP(),p(),FI(),LI(),zI(),VI(),UI(),GI(),Ze(),Hm(),XI(),QT()}));function nL(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function rL(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%mL<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Rc(i),i=Rc(f)}else r=Rc(r),i=Rc(i);r>i&&(i+=mL);var p=Math.atan2(s,o);if(p<0&&(p+=mL),p>=r&&p<=i||p+mL>=r&&p+mL<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function iL(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function aL(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}function oL(e,t,n){var r=aL(t.x,t.y,t.width,t.height,e.x,e.y,_L);return n.set(_L[0],_L[1]),r}function sL(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case hL.M:a=u[p++],o=u[p++],r=a,i=o;break;case hL.L:h=iL(r,i,u[p],u[p+1],d,f,_L,!0),r=u[p++],i=u[p++];break;case hL.C:h=Ra(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,_L),r=u[p++],i=u[p++];break;case hL.Q:h=Ga(r,i,u[p++],u[p++],u[p],u[p+1],d,f,_L),r=u[p++],i=u[p++];break;case hL.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=rL(g,_,y,b,b+x,S,C,f,_L),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case hL.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=aL(a,o,w,T,d,f,_L);break;case hL.Z:h=iL(r,i,a,o,d,f,_L,!0),r=a,i=o;break}h<l&&(l=h,n.set(_L[0],_L[1]))}return l}function cL(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||gL,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&kr([],u),f=t.get(`length2`)||0;l&&bL.copy(l);for(var p=0;p<o.length;p++){var m=o[p];nL(m,0,s,vL,xL),X.scaleAndAdd(yL,vL,xL,f),yL.transform(d);var h=e.getBoundingRect(),g=l?l.distance(yL):e instanceof ll?sL(yL,e.path,bL):oL(yL,h,bL);g<c&&(c=g,yL.transform(u),bL.transform(u),bL.toArray(a[0]),yL.toArray(a[1]),vL.toArray(a[2]))}lL(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}function lL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,vL.fromArray(e[0]),yL.fromArray(e[1]),bL.fromArray(e[2]),X.sub(xL,vL,yL),X.sub(SL,bL,yL);var n=xL.len(),r=SL.len();if(!(n<.001||r<.001)){xL.scale(1/n),SL.scale(1/r);var i=xL.dot(SL);if(Math.cos(t)<i){var a=iL(yL.x,yL.y,bL.x,bL.y,vL.x,vL.y,CL,!1);wL.fromArray(CL),wL.scaleAndAdd(SL,a/Math.tan(Math.PI-t));var o=bL.x===yL.x?(wL.y-yL.y)/(bL.y-yL.y):(wL.x-yL.x)/(bL.x-yL.x);if(isNaN(o))return;o<0?X.copy(wL,yL):o>1&&X.copy(wL,bL),wL.toArray(e[1])}}}}function uL(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function dL(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=ni(r[0],r[1]),a=ni(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=Xr([],r[1],r[0],o/i),c=Xr([],r[1],r[2],o/a),l=Xr([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function fL(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<sd.length;c++){var l=sd[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:B(i.states[l]&&i.states[l].ignore,s))||!B(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&uL(r,!0,l,u);continue}r||(r=new wf,e.setTextGuideLine(r),!d&&(s||!o)&&uL(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),uL(r,!1,l,u)}}if(r){S(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=dL}}function pL(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<od.length;r++){var i=od[r];n[i]=e.getModel([i,t])}return n}var mL,hL,gL,_L,vL,yL,bL,xL,SL,CL,wL,TL=t((()=>{lm(),jc(),Bc(),no(),U(),jr(),ii(),md(),mL=Math.PI*2,hL=Ac.CMD,gL=[`top`,`right`,`bottom`,`left`],_L=[],vL=new X,yL=new X,bL=new X,xL=new X,SL=new X,CL=[],wL=new X}));function EL(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function DL(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:EL(r&&r.shape.points)}}function OL(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var kL,AL,jL,ML,NL,PL,FL=t((()=>{lm(),Zl(),q(),Oa(),TL(),Y(),U(),aM(),Dm(),Bc(),kL=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],AL=new Ta,jL=J(),ML=J(),NL=[`x`,`y`,`rotation`],PL=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();Z.applyTransform(c,c,s),s?AL.setLocalTransform(s):(AL.x=AL.y=AL.rotation=AL.originX=AL.originY=0,AL.scaleX=AL.scaleY=1),AL.rotation=Rc(AL.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();Z.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:AL.x,y:AL.y,scaleX:AL.scaleX,scaleY:AL.scaleY,rotation:AL.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(P(r)||j(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Yl(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){cL(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=P(a.layoutOptionOrCb)?a.layoutOptionOrCb(DL(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=zt(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=zt(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=jL(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<kL.length;m++){var h=kL[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];D(this._labelList,function(e){e.defaultAttr.ignore||r.push(Jj({},e))});var i=A(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=A(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});Xj(i,0,0,t),Xj(a,1,0,n);var o=A(r,function(e){return e.layoutOption.hideOverlap});Zj(o),Qj(o)},e.prototype.processLabelsOverall=function(){var e=this;D(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=jL(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Yl(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);fL(e,pL(o),s),cL(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!up(e))){var i=jL(n),a=i.oldLayout,o=Yl(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(C(u,`select`)>=0&&n.attr(i.oldLayoutSelect),C(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),cp(n,c,t,s)}else if(n.attr(c),!Tm(n).valueAnimation){var d=B(n.style.opacity,1);n.style.opacity=0,lp(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};OL(f,c,NL),OL(f,n.states.select,NL)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};OL(p,c,NL),OL(p,n.states.emphasis,NL)}bm(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=ML(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),cp(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,lp(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}()}));function IL(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=LL(t).labelManager;r||=LL(t).labelManager=new PL,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=LL(t).labelManager;D(n.updatedSeries,function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var LL,RL=t((()=>{Y(),FL(),U(),LL=J()})),zL=t((()=>{tO(),tL(),eP(),RL(),ZN(IL)}));function BL(e,t,n){var r=f.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function VL(e){return!e.__cursors.get(0)}function HL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var UL,WL=t((()=>{G(),U(),xs(),np(),ms(),bT(),QT(),Ai(),Ss(),p(),UL=function(e){W(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=gs,typeof t==`string`?a=BL(t,n,r):L(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(ye(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=HL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=BL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Z(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new Z(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Z(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Z(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}for(var l=HL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;oe(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||gT(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):se(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=kT(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&D(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ps)}));function GL(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function KL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function qL(e,t,n,r){var i=new UL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,JL(i),i}function JL(e){e.__cursorStack=[],e.__cursors=V()}function YL(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function XL(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,YL({key:r})))}function ZL(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function QL(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function $L(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&aR)||s.__builtin__)&&(!(n&oR)||!s.__builtin__)&&(!(n&sR)||s!==e.hoverlayer))&&t(s,a,o,i)}}var eR,tR,nR,rR,iR,aR,oR,sR,cR,lR,uR=t((()=>{xs(),U(),WL(),jx(),Ze(),np(),QT(),Ss(),bT(),p(),eR=1e5,tR=314159,nR=void 0,rR=1,iR=2,aR=1,oR=2,sR=4,cR=aR|sR,lR=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=b({},n||{}),this.dpr=n.devicePixelRatio||gs,this._singleCanvas=i,this.root=e,e.style&&(ye(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=qL(a,this,tR,0);c.initContext(),this._insertLayer(c,tR,0,!0),this._domRoot=e}else{this._width=yT(e,0,n),this._height=yT(e,1,n);var l=this._domRoot=KL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!L(e)?{paintAll:!!e}:e||{},n=B(t.refresh,!0),r=B(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=iR),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return $L(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},oR),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=nR,n!==nR&&(!t&&n===iR&&(t=this._i.hoverlayer=this._ensureLayer(eR)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),HT(i,s,r),c&&(s.style=l)}}i&&(UT(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(eR)},e.prototype.paintOne=function(e,t){VT(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)$L(this._i,function(e){e.afterBrush&&e.afterBrush()},cR),this._paintHoverList(e);else{var i=this;Ax(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(tR).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),$L(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},aR)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return $L(this._i,function(i){var a=!1;if(ZL(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!VL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}ZL(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},cR),K.wxa&&$L(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r)if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=VL(e),c=s&&f.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var p=n[d];if(!(d<l&&!p.notClear)){if(p.__inHover&&(this._hoverLayerDirty=iR),r!=null){var m=p.getPaintRect();m&&m.intersect(r)&&(HT(o,p,a),p.setPrevPaintRect(m))}else HT(o,p,a);if(s&&f.getTime()-c>15){d++;break}}}UT(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=tR,t=0);var i=QL(this._i,e)[t];return i||(i=qL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&v(i,this._layerConfig[e],!0),(n||r&&e!==tR)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&GL(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=QL(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),QL(i,t)[n]=e,!r&&!e.virtual)if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom);e.painter||=this}},e.prototype.eachLayer=function(e,t){return $L(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return $L(this._i,function(n,r){e.call(t,n,r)},aR)},e.prototype.eachOtherLayer=function(e,t){return $L(this._i,function(n,r){e.call(t,n,r)},oR)},e.prototype.getLayers=function(){var e={};return $L(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}$L(n._i,function(e){e.__dirty=!1,ZL(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},cR);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){g(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=XL(o,f),!s.used))if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1;s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}$L(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(VL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(ZL(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===nR&&(n._hoverLayerDirty=rR))},cR)},e.prototype.clear=function(){return $L(this._i,function(e){e.clear(),JL(e)},aR),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,$L(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?v(n[e],t,!0):n[e]=t,$L(this._i,function(e,t){v(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=yT(i,0,r),t=yT(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,$L(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(tR).resize(e,t)}return this},e.prototype.clearLayer=function(e){D(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[tR][0].dom;var t=new UL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;$L(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];HT(n,l,a)}UT(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}()}));function dR(e){e.registerPainter(`canvas`,lR)}var fR=t((()=>{uR()}));function pR(e){e.registerComponentModel(mR),e.registerComponentView(hR)}var mR,hR,gR=t((()=>{G(),e_(),SC(),ou(),Lv(),mR=function(e){W(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new Iv(this),Nv(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Nv(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:au},t}($g),hR=function(e){W(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(xC)})),_R=n({Axis:()=>YI,ChartView:()=>jC,ComponentModel:()=>$g,ComponentView:()=>xC,List:()=>mb,Model:()=>Vm,PRIORITY:()=>iD,SeriesModel:()=>Sy,color:()=>co,connect:()=>gE,dataTool:()=>eO,default:()=>vR,dependencies:()=>BE,disConnect:()=>ZD,disconnect:()=>_E,dispose:()=>vE,env:()=>K,extendChartView:()=>eL,extendComponentModel:()=>ZI,extendComponentView:()=>QI,extendSeriesModel:()=>$I,format:()=>HI,getCoordinateSystemDimensions:()=>kE,getInstanceByDom:()=>yE,getInstanceById:()=>bE,getMap:()=>LE,graphic:()=>BI,helper:()=>dI,init:()=>hE,innerDrawElementOnCanvas:()=>VT,matrix:()=>xr,number:()=>II,parseGeoJSON:()=>PI,parseGeoJson:()=>PI,registerAction:()=>DE,registerCoordinateSystem:()=>OE,registerCustomSeries:()=>AE,registerLayout:()=>jE,registerLoading:()=>PE,registerLocale:()=>hh,registerMap:()=>IE,registerPostInit:()=>wE,registerPostUpdate:()=>TE,registerPreprocessor:()=>SE,registerProcessor:()=>CE,registerTheme:()=>xE,registerTransform:()=>$D,registerUpdateLifecycle:()=>EE,registerVisual:()=>ME,setCanvasCreator:()=>FE,setPlatformAPI:()=>a,throttle:()=>PC,time:()=>RI,use:()=>ZN,util:()=>WI,vector:()=>Mr,version:()=>zE,zrUtil:()=>m,zrender:()=>tS}),vR,yR=t((()=>{zL(),eP(),tO(),fR(),gR(),RL(),ZN([dR,pR]),vR={init:function(){return hE.apply(null,arguments)}},ZN(IL)})),bR=r((t=>{(function(n,r){typeof define==`function`&&define.amd?define([`exports`,`echarts`],r):typeof t==`object`&&typeof t.nodeName!=`string`?r(t,(yR(),e(_R))):r({},n.echarts)})(t,function(e,t){var n=function(e){typeof console<`u`&&console&&console.error&&console.error(e)};if(!t){n(`ECharts is not Loaded`);return}var r=`#B9B8CE`,i=`#100C2A`,a=function(){return{axisLine:{lineStyle:{color:r}},splitLine:{lineStyle:{color:`#484753`}},splitArea:{areaStyle:{color:[`rgba(255,255,255,0.02)`,`rgba(255,255,255,0.05)`]}},minorSplitLine:{lineStyle:{color:`#20203B`}}}},o=[`#4992ff`,`#7cffb2`,`#fddd60`,`#ff6e76`,`#58d9f9`,`#05c091`,`#ff8a45`,`#8d48e3`,`#dd79ff`],s={darkMode:!0,color:o,backgroundColor:i,axisPointer:{lineStyle:{color:`#817f91`},crossStyle:{color:`#817f91`},label:{color:`#fff`}},legend:{textStyle:{color:r}},textStyle:{color:r},title:{textStyle:{color:`#EEF1FA`},subtextStyle:{color:`#B9B8CE`}},toolbox:{iconStyle:{borderColor:r}},dataZoom:{borderColor:`#71708A`,textStyle:{color:r},brushStyle:{color:`rgba(135,163,206,0.3)`},handleStyle:{color:`#353450`,borderColor:`#C5CBE3`},moveHandleStyle:{color:`#B0B6C3`,opacity:.3},fillerColor:`rgba(135,163,206,0.2)`,emphasis:{handleStyle:{borderColor:`#91B7F2`,color:`#4D587D`},moveHandleStyle:{color:`#636D9A`,opacity:.7}},dataBackground:{lineStyle:{color:`#71708A`,width:1},areaStyle:{color:`#71708A`}},selectedDataBackground:{lineStyle:{color:`#87A3CE`},areaStyle:{color:`#87A3CE`}}},visualMap:{textStyle:{color:r}},timeline:{lineStyle:{color:r},label:{color:r},controlStyle:{color:r,borderColor:r}},calendar:{itemStyle:{color:i},dayLabel:{color:r},monthLabel:{color:r},yearLabel:{color:r}},timeAxis:a(),logAxis:a(),valueAxis:a(),categoryAxis:a(),line:{symbol:`circle`},graph:{color:o},gauge:{title:{color:r}},candlestick:{itemStyle:{color:`#FD1050`,color0:`#0CF49B`,borderColor:`#FD1050`,borderColor0:`#0CF49B`}}};s.categoryAxis.splitLine.show=!1,t.registerTheme(`dark`,s)})}));export{FP as a,ZN as c,tO as d,MF as i,Fk as l,fR as n,MP as o,dR as r,eP as s,bR as t,hE as u};