import{_ as Qy,a as tm,A as qk,r as Ko,B as Kk,C as jk,D as Jk,o as wn,f as jo,k as Bt,y as em,z as rm,E as am,G as Qk,F as $M,s as UM,H as tR,l as xn,u as ng,I as ZM,j as se,i as Le,m as ls,J as eR,b as Da,g as E_,x as O_,K as rR}from"./index.e6d357a4.js";var aR="/assets/dashboard.70e55b71.png";//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var XM;function j(){return XM.apply(null,arguments)}function nR(r){XM=r}function Ur(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Fi(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Ft(r,t){return Object.prototype.hasOwnProperty.call(r,t)}function nm(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var t;for(t in r)if(Ft(r,t))return!1;return!0}function Ke(r){return r===void 0}function Ua(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function bu(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function qM(r,t){var e=[],a,n=r.length;for(a=0;a>>0,a;for(a=0;a0)for(e=0;e=0;return(i?e?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+a}var lm=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ju=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Pc={},Jo={};function lt(r,t,e,a){var n=a;typeof a=="string"&&(n=function(){return this[a]()}),r&&(Jo[r]=n),t&&(Jo[t[0]]=function(){return pa(n.apply(this,arguments),t[1],t[2])}),e&&(Jo[e]=function(){return this.localeData().ordinal(n.apply(this,arguments),r)})}function uR(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function fR(r){var t=r.match(lm),e,a;for(e=0,a=t.length;e=0&&ju.test(r);)r=r.replace(ju,a),ju.lastIndex=0,e-=1;return r}var hR={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function vR(r){var t=this._longDateFormat[r],e=this._longDateFormat[r.toUpperCase()];return t||!e?t:(this._longDateFormat[r]=e.match(lm).map(function(a){return a==="MMMM"||a==="MM"||a==="DD"||a==="dddd"?a.slice(1):a}).join(""),this._longDateFormat[r])}var cR="Invalid date";function dR(){return this._invalidDate}var pR="%d",gR=/\d{1,2}/;function yR(r){return this._ordinal.replace("%d",r)}var mR={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function _R(r,t,e,a){var n=this._relativeTime[e];return ba(n)?n(r,t,e,a):n.replace(/%d/i,r)}function SR(r,t){var e=this._relativeTime[r>0?"future":"past"];return ba(e)?e(t):e.replace(/%s/i,t)}var Al={};function Ve(r,t){var e=r.toLowerCase();Al[e]=Al[e+"s"]=Al[t]=r}function kr(r){return typeof r=="string"?Al[r]||Al[r.toLowerCase()]:void 0}function um(r){var t={},e,a;for(a in r)Ft(r,a)&&(e=kr(a),e&&(t[e]=r[a]));return t}var QM={};function Be(r,t){QM[r]=t}function xR(r){var t=[],e;for(e in r)Ft(r,e)&&t.push({unit:e,priority:QM[e]});return t.sort(function(a,n){return a.priority-n.priority}),t}function Lv(r){return r%4===0&&r%100!==0||r%400===0}function wr(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function Lt(r){var t=+r,e=0;return t!==0&&isFinite(t)&&(e=wr(t)),e}function ms(r,t){return function(e){return e!=null?(tA(this,r,e),j.updateOffset(this,t),this):Ah(this,r)}}function Ah(r,t){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+t]():NaN}function tA(r,t,e){r.isValid()&&!isNaN(e)&&(t==="FullYear"&&Lv(r.year())&&r.month()===1&&r.date()===29?(e=Lt(e),r._d["set"+(r._isUTC?"UTC":"")+t](e,r.month(),Nv(e,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+t](e))}function wR(r){return r=kr(r),ba(this[r])?this[r]():this}function bR(r,t){if(typeof r=="object"){r=um(r);var e=xR(r),a,n=e.length;for(a=0;a68?1900:2e3)};var fA=ms("FullYear",!0);function HR(){return Lv(this.year())}function WR(r,t,e,a,n,i,o){var s;return r<100&&r>=0?(s=new Date(r+400,t,e,a,n,i,o),isFinite(s.getFullYear())&&s.setFullYear(r)):s=new Date(r,t,e,a,n,i,o),s}function Yl(r){var t,e;return r<100&&r>=0?(e=Array.prototype.slice.call(arguments),e[0]=r+400,t=new Date(Date.UTC.apply(null,e)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(r)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ch(r,t,e){var a=7+t-e,n=(7+Yl(r,0,a).getUTCDay()-t)%7;return-n+a-1}function hA(r,t,e,a,n){var i=(7+e-a)%7,o=Ch(r,a,n),s=1+7*(t-1)+i+o,l,u;return s<=0?(l=r-1,u=Dl(l)+s):s>Dl(r)?(l=r+1,u=s-Dl(r)):(l=r,u=s),{year:l,dayOfYear:u}}function $l(r,t,e){var a=Ch(r.year(),t,e),n=Math.floor((r.dayOfYear()-a-1)/7)+1,i,o;return n<1?(o=r.year()-1,i=n+za(o,t,e)):n>za(r.year(),t,e)?(i=n-za(r.year(),t,e),o=r.year()+1):(o=r.year(),i=n),{week:i,year:o}}function za(r,t,e){var a=Ch(r,t,e),n=Ch(r+1,t,e);return(Dl(r)-a+n)/7}lt("w",["ww",2],"wo","week");lt("W",["WW",2],"Wo","isoWeek");Ve("week","w");Ve("isoWeek","W");Be("week",5);Be("isoWeek",5);et("w",Qt);et("ww",Qt,hr);et("W",Qt);et("WW",Qt,hr);Au(["w","ww","W","WW"],function(r,t,e,a){t[a.substr(0,1)]=Lt(r)});function YR(r){return $l(r,this._week.dow,this._week.doy).week}var $R={dow:0,doy:6};function UR(){return this._week.dow}function ZR(){return this._week.doy}function XR(r){var t=this.localeData().week(this);return r==null?t:this.add((r-t)*7,"d")}function qR(r){var t=$l(this,1,4).week;return r==null?t:this.add((r-t)*7,"d")}lt("d",0,"do","day");lt("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});lt("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});lt("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});lt("e",0,0,"weekday");lt("E",0,0,"isoWeekday");Ve("day","d");Ve("weekday","e");Ve("isoWeekday","E");Be("day",11);Be("weekday",11);Be("isoWeekday",11);et("d",Qt);et("e",Qt);et("E",Qt);et("dd",function(r,t){return t.weekdaysMinRegex(r)});et("ddd",function(r,t){return t.weekdaysShortRegex(r)});et("dddd",function(r,t){return t.weekdaysRegex(r)});Au(["dd","ddd","dddd"],function(r,t,e,a){var n=e._locale.weekdaysParse(r,a,e._strict);n!=null?t.d=n:bt(e).invalidWeekday=r});Au(["d","e","E"],function(r,t,e,a){t[a]=Lt(r)});function KR(r,t){return typeof r!="string"?r:isNaN(r)?(r=t.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function jR(r,t){return typeof r=="string"?t.weekdaysParse(r)%7||7:isNaN(r)?null:r}function vm(r,t){return r.slice(t,7).concat(r.slice(0,t))}var JR="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),vA="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),QR="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tE=Mu,eE=Mu,rE=Mu;function aE(r,t){var e=Ur(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return r===!0?vm(e,this._week.dow):r?e[r.day()]:e}function nE(r){return r===!0?vm(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function iE(r){return r===!0?vm(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function oE(r,t,e){var a,n,i,o=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)i=wa([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(i,"").toLocaleLowerCase();return e?t==="dddd"?(n=le.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=le.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=le.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=le.call(this._weekdaysParse,o),n!==-1||(n=le.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=le.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=le.call(this._shortWeekdaysParse,o),n!==-1||(n=le.call(this._weekdaysParse,o),n!==-1)?n:(n=le.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=le.call(this._minWeekdaysParse,o),n!==-1||(n=le.call(this._weekdaysParse,o),n!==-1)?n:(n=le.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function sE(r,t,e){var a,n,i;if(this._weekdaysParseExact)return oE.call(this,r,t,e);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(n=wa([2e3,1]).day(a),e&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[a]=new RegExp(i.replace(".",""),"i")),e&&t==="dddd"&&this._fullWeekdaysParse[a].test(r))return a;if(e&&t==="ddd"&&this._shortWeekdaysParse[a].test(r))return a;if(e&&t==="dd"&&this._minWeekdaysParse[a].test(r))return a;if(!e&&this._weekdaysParse[a].test(r))return a}}function lE(r){if(!this.isValid())return r!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=KR(r,this.localeData()),this.add(r-t,"d")):t}function uE(r){if(!this.isValid())return r!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return r==null?t:this.add(r-t,"d")}function fE(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var t=jR(r,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function hE(r){return this._weekdaysParseExact?(Ft(this,"_weekdaysRegex")||cm.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Ft(this,"_weekdaysRegex")||(this._weekdaysRegex=tE),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function vE(r){return this._weekdaysParseExact?(Ft(this,"_weekdaysRegex")||cm.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ft(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=eE),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cE(r){return this._weekdaysParseExact?(Ft(this,"_weekdaysRegex")||cm.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ft(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rE),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function cm(){function r(f,h){return h.length-f.length}var t=[],e=[],a=[],n=[],i,o,s,l,u;for(i=0;i<7;i++)o=wa([2e3,1]).day(i),s=ir(this.weekdaysMin(o,"")),l=ir(this.weekdaysShort(o,"")),u=ir(this.weekdays(o,"")),t.push(s),e.push(l),a.push(u),n.push(s),n.push(l),n.push(u);t.sort(r),e.sort(r),a.sort(r),n.sort(r),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+e.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function dm(){return this.hours()%12||12}function dE(){return this.hours()||24}lt("H",["HH",2],0,"hour");lt("h",["hh",2],0,dm);lt("k",["kk",2],0,dE);lt("hmm",0,0,function(){return""+dm.apply(this)+pa(this.minutes(),2)});lt("hmmss",0,0,function(){return""+dm.apply(this)+pa(this.minutes(),2)+pa(this.seconds(),2)});lt("Hmm",0,0,function(){return""+this.hours()+pa(this.minutes(),2)});lt("Hmmss",0,0,function(){return""+this.hours()+pa(this.minutes(),2)+pa(this.seconds(),2)});function cA(r,t){lt(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}cA("a",!0);cA("A",!1);Ve("hour","h");Be("hour",13);function dA(r,t){return t._meridiemParse}et("a",dA);et("A",dA);et("H",Qt);et("h",Qt);et("k",Qt);et("HH",Qt,hr);et("hh",Qt,hr);et("kk",Qt,hr);et("hmm",aA);et("hmmss",nA);et("Hmm",aA);et("Hmmss",nA);Zt(["H","HH"],me);Zt(["k","kk"],function(r,t,e){var a=Lt(r);t[me]=a===24?0:a});Zt(["a","A"],function(r,t,e){e._isPm=e._locale.isPM(r),e._meridiem=r});Zt(["h","hh"],function(r,t,e){t[me]=Lt(r),bt(e).bigHour=!0});Zt("hmm",function(r,t,e){var a=r.length-2;t[me]=Lt(r.substr(0,a)),t[Gr]=Lt(r.substr(a)),bt(e).bigHour=!0});Zt("hmmss",function(r,t,e){var a=r.length-4,n=r.length-2;t[me]=Lt(r.substr(0,a)),t[Gr]=Lt(r.substr(a,2)),t[Na]=Lt(r.substr(n)),bt(e).bigHour=!0});Zt("Hmm",function(r,t,e){var a=r.length-2;t[me]=Lt(r.substr(0,a)),t[Gr]=Lt(r.substr(a))});Zt("Hmmss",function(r,t,e){var a=r.length-4,n=r.length-2;t[me]=Lt(r.substr(0,a)),t[Gr]=Lt(r.substr(a,2)),t[Na]=Lt(r.substr(n))});function pE(r){return(r+"").toLowerCase().charAt(0)==="p"}var gE=/[ap]\.?m?\.?/i,yE=ms("Hours",!0);function mE(r,t,e){return r>11?e?"pm":"PM":e?"am":"AM"}var pA={calendar:sR,longDateFormat:hR,invalidDate:cR,ordinal:pR,dayOfMonthOrdinalParse:gR,relativeTime:mR,months:kR,monthsShort:iA,week:$R,weekdays:JR,weekdaysMin:QR,weekdaysShort:vA,meridiemParse:gE},ee={},Vs={},Ul;function _E(r,t){var e,a=Math.min(r.length,t.length);for(e=0;e0;){if(n=Vv(i.slice(0,e).join("-")),n)return n;if(a&&a.length>=e&&_E(i,a)>=e-1)break;e--}t++}return Ul}function xE(r){return r.match("^[^/\\\\]*$")!=null}function Vv(r){var t=null,e;if(ee[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&xE(r))try{t=Ul._abbr,e=require,e("./locale/"+r),On(t)}catch{ee[r]=null}return ee[r]}function On(r,t){var e;return r&&(Ke(t)?e=en(r):e=pm(r,t),e?Ul=e:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Ul._abbr}function pm(r,t){if(t!==null){var e,a=pA;if(t.abbr=r,ee[r]!=null)jM("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=ee[r]._config;else if(t.parentLocale!=null)if(ee[t.parentLocale]!=null)a=ee[t.parentLocale]._config;else if(e=Vv(t.parentLocale),e!=null)a=e._config;else return Vs[t.parentLocale]||(Vs[t.parentLocale]=[]),Vs[t.parentLocale].push({name:r,config:t}),null;return ee[r]=new sm(og(a,t)),Vs[r]&&Vs[r].forEach(function(n){pm(n.name,n.config)}),On(r),ee[r]}else return delete ee[r],null}function wE(r,t){if(t!=null){var e,a,n=pA;ee[r]!=null&&ee[r].parentLocale!=null?ee[r].set(og(ee[r]._config,t)):(a=Vv(r),a!=null&&(n=a._config),t=og(n,t),a==null&&(t.abbr=r),e=new sm(t),e.parentLocale=ee[r],ee[r]=e),On(r)}else ee[r]!=null&&(ee[r].parentLocale!=null?(ee[r]=ee[r].parentLocale,r===On()&&On(r)):ee[r]!=null&&delete ee[r]);return ee[r]}function en(r){var t;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Ul;if(!Ur(r)){if(t=Vv(r),t)return t;r=[r]}return SE(r)}function bE(){return sg(ee)}function gm(r){var t,e=r._a;return e&&bt(r).overflow===-2&&(t=e[Oa]<0||e[Oa]>11?Oa:e[sa]<1||e[sa]>Nv(e[Ee],e[Oa])?sa:e[me]<0||e[me]>24||e[me]===24&&(e[Gr]!==0||e[Na]!==0||e[Ei]!==0)?me:e[Gr]<0||e[Gr]>59?Gr:e[Na]<0||e[Na]>59?Na:e[Ei]<0||e[Ei]>999?Ei:-1,bt(r)._overflowDayOfYear&&(tsa)&&(t=sa),bt(r)._overflowWeeks&&t===-1&&(t=IR),bt(r)._overflowWeekday&&t===-1&&(t=LR),bt(r).overflow=t),r}var TE=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ME=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,AE=/Z|[+-]\d\d(?::?\d\d)?/,Ju=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],DE=/^\/?Date\((-?\d+)/i,CE=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,IE={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function gA(r){var t,e,a=r._i,n=TE.exec(a)||ME.exec(a),i,o,s,l,u=Ju.length,f=kc.length;if(n){for(bt(r).iso=!0,t=0,e=u;tDl(o)||r._dayOfYear===0)&&(bt(r)._overflowDayOfYear=!0),e=Yl(o,0,r._dayOfYear),r._a[Oa]=e.getUTCMonth(),r._a[sa]=e.getUTCDate()),t=0;t<3&&r._a[t]==null;++t)r._a[t]=a[t]=n[t];for(;t<7;t++)r._a[t]=a[t]=r._a[t]==null?t===2?1:0:r._a[t];r._a[me]===24&&r._a[Gr]===0&&r._a[Na]===0&&r._a[Ei]===0&&(r._nextDay=!0,r._a[me]=0),r._d=(r._useUTC?Yl:WR).apply(null,a),i=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[me]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==i&&(bt(r).weekdayMismatch=!0)}}function VE(r){var t,e,a,n,i,o,s,l,u;t=r._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,e=No(t.GG,r._a[Ee],$l(Jt(),1,4).year),a=No(t.W,1),n=No(t.E,1),(n<1||n>7)&&(l=!0)):(i=r._locale._week.dow,o=r._locale._week.doy,u=$l(Jt(),i,o),e=No(t.gg,r._a[Ee],u.year),a=No(t.w,u.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+i,(t.e<0||t.e>6)&&(l=!0)):n=i),a<1||a>za(e,i,o)?bt(r)._overflowWeeks=!0:l!=null?bt(r)._overflowWeekday=!0:(s=hA(e,a,n,i,o),r._a[Ee]=s.year,r._dayOfYear=s.dayOfYear)}j.ISO_8601=function(){};j.RFC_2822=function(){};function mm(r){if(r._f===j.ISO_8601){gA(r);return}if(r._f===j.RFC_2822){yA(r);return}r._a=[],bt(r).empty=!0;var t=""+r._i,e,a,n,i,o,s=t.length,l=0,u,f;for(n=JM(r._f,r._locale).match(lm)||[],f=n.length,e=0;e0&&bt(r).unusedInput.push(o),t=t.slice(t.indexOf(a)+a.length),l+=a.length),Jo[i]?(a?bt(r).empty=!1:bt(r).unusedTokens.push(i),CR(i,a,r)):r._strict&&!a&&bt(r).unusedTokens.push(i);bt(r).charsLeftOver=s-l,t.length>0&&bt(r).unusedInput.push(t),r._a[me]<=12&&bt(r).bigHour===!0&&r._a[me]>0&&(bt(r).bigHour=void 0),bt(r).parsedDateParts=r._a.slice(0),bt(r).meridiem=r._meridiem,r._a[me]=BE(r._locale,r._a[me],r._meridiem),u=bt(r).era,u!==null&&(r._a[Ee]=r._locale.erasConvertYear(u,r._a[Ee])),ym(r),gm(r)}function BE(r,t,e){var a;return e==null?t:r.meridiemHour!=null?r.meridiemHour(t,e):(r.isPM!=null&&(a=r.isPM(e),a&&t<12&&(t+=12),!a&&t===12&&(t=0)),t)}function zE(r){var t,e,a,n,i,o,s=!1,l=r._f.length;if(l===0){bt(r).invalidFormat=!0,r._d=new Date(NaN);return}for(n=0;nthis?this:r:Iv()});function SA(r,t){var e,a;if(t.length===1&&Ur(t[0])&&(t=t[0]),!t.length)return Jt();for(e=t[0],a=1;athis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function oO(){if(!Ke(this._isDSTShifted))return this._isDSTShifted;var r={},t;return om(r,this),r=mA(r),r._a?(t=r._isUTC?wa(r._a):Jt(r._a),this._isDSTShifted=this.isValid()&&jE(r._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function sO(){return this.isValid()?!this._isUTC:!1}function lO(){return this.isValid()?this._isUTC:!1}function wA(){return this.isValid()?this._isUTC&&this._offset===0:!1}var uO=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Kr(r,t){var e=r,a=null,n,i,o;return nh(r)?e={ms:r._milliseconds,d:r._days,M:r._months}:Ua(r)||!isNaN(+r)?(e={},t?e[t]=+r:e.milliseconds=+r):(a=uO.exec(r))?(n=a[1]==="-"?-1:1,e={y:0,d:Lt(a[sa])*n,h:Lt(a[me])*n,m:Lt(a[Gr])*n,s:Lt(a[Na])*n,ms:Lt(ug(a[Ei]*1e3))*n}):(a=fO.exec(r))?(n=a[1]==="-"?-1:1,e={y:jn(a[2],n),M:jn(a[3],n),w:jn(a[4],n),d:jn(a[5],n),h:jn(a[6],n),m:jn(a[7],n),s:jn(a[8],n)}):e==null?e={}:typeof e=="object"&&("from"in e||"to"in e)&&(o=hO(Jt(e.from),Jt(e.to)),e={},e.ms=o.milliseconds,e.M=o.months),i=new Bv(e),nh(r)&&Ft(r,"_locale")&&(i._locale=r._locale),nh(r)&&Ft(r,"_isValid")&&(i._isValid=r._isValid),i}Kr.fn=Bv.prototype;Kr.invalid=KE;function jn(r,t){var e=r&&parseFloat(r.replace(",","."));return(isNaN(e)?0:e)*t}function z_(r,t){var e={};return e.months=t.month()-r.month()+(t.year()-r.year())*12,r.clone().add(e.months,"M").isAfter(t)&&--e.months,e.milliseconds=+t-+r.clone().add(e.months,"M"),e}function hO(r,t){var e;return r.isValid()&&t.isValid()?(t=Sm(t,r),r.isBefore(t)?e=z_(r,t):(e=z_(t,r),e.milliseconds=-e.milliseconds,e.months=-e.months),e):{milliseconds:0,months:0}}function bA(r,t){return function(e,a){var n,i;return a!==null&&!isNaN(+a)&&(jM(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=a,a=i),n=Kr(e,a),TA(this,n,r),this}}function TA(r,t,e,a){var n=t._milliseconds,i=ug(t._days),o=ug(t._months);!r.isValid()||(a=a==null?!0:a,o&&sA(r,Ah(r,"Month")+o*e),i&&tA(r,"Date",Ah(r,"Date")+i*e),n&&r._d.setTime(r._d.valueOf()+n*e),a&&j.updateOffset(r,i||o))}var vO=bA(1,"add"),cO=bA(-1,"subtract");function MA(r){return typeof r=="string"||r instanceof String}function dO(r){return Zr(r)||bu(r)||MA(r)||Ua(r)||gO(r)||pO(r)||r===null||r===void 0}function pO(r){var t=Fi(r)&&!nm(r),e=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,i,o=a.length;for(n=0;ne.valueOf():e.valueOf()9999?ah(e,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ba(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ah(e,"Z")):ah(e,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function LO(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",t="",e,a,n,i;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),e="["+r+'("]',a=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(e+a+n+i)}function PO(r){r||(r=this.isUtc()?j.defaultFormatUtc:j.defaultFormat);var t=ah(this,r);return this.localeData().postformat(t)}function kO(r,t){return this.isValid()&&(Zr(r)&&r.isValid()||Jt(r).isValid())?Kr({to:this,from:r}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function RO(r){return this.from(Jt(),r)}function EO(r,t){return this.isValid()&&(Zr(r)&&r.isValid()||Jt(r).isValid())?Kr({from:this,to:r}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function OO(r){return this.to(Jt(),r)}function AA(r){var t;return r===void 0?this._locale._abbr:(t=en(r),t!=null&&(this._locale=t),this)}var DA=Pr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function CA(){return this._locale}var Ih=1e3,Qo=60*Ih,Lh=60*Qo,IA=(365*400+97)*24*Lh;function ts(r,t){return(r%t+t)%t}function LA(r,t,e){return r<100&&r>=0?new Date(r+400,t,e)-IA:new Date(r,t,e).valueOf()}function PA(r,t,e){return r<100&&r>=0?Date.UTC(r+400,t,e)-IA:Date.UTC(r,t,e)}function NO(r){var t,e;if(r=kr(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(e=this._isUTC?PA:LA,r){case"year":t=e(this.year(),0,1);break;case"quarter":t=e(this.year(),this.month()-this.month()%3,1);break;case"month":t=e(this.year(),this.month(),1);break;case"week":t=e(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=e(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ts(t+(this._isUTC?0:this.utcOffset()*Qo),Lh);break;case"minute":t=this._d.valueOf(),t-=ts(t,Qo);break;case"second":t=this._d.valueOf(),t-=ts(t,Ih);break}return this._d.setTime(t),j.updateOffset(this,!0),this}function VO(r){var t,e;if(r=kr(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(e=this._isUTC?PA:LA,r){case"year":t=e(this.year()+1,0,1)-1;break;case"quarter":t=e(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=e(this.year(),this.month()+1,1)-1;break;case"week":t=e(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=e(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=e(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Lh-ts(t+(this._isUTC?0:this.utcOffset()*Qo),Lh)-1;break;case"minute":t=this._d.valueOf(),t+=Qo-ts(t,Qo)-1;break;case"second":t=this._d.valueOf(),t+=Ih-ts(t,Ih)-1;break}return this._d.setTime(t),j.updateOffset(this,!0),this}function BO(){return this._d.valueOf()-(this._offset||0)*6e4}function zO(){return Math.floor(this.valueOf()/1e3)}function FO(){return new Date(this.valueOf())}function GO(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function HO(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function WO(){return this.isValid()?this.toISOString():null}function YO(){return im(this)}function $O(){return bn({},bt(this))}function UO(){return bt(this).overflow}function ZO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}lt("N",0,0,"eraAbbr");lt("NN",0,0,"eraAbbr");lt("NNN",0,0,"eraAbbr");lt("NNNN",0,0,"eraName");lt("NNNNN",0,0,"eraNarrow");lt("y",["y",1],"yo","eraYear");lt("y",["yy",2],0,"eraYear");lt("y",["yyy",3],0,"eraYear");lt("y",["yyyy",4],0,"eraYear");et("N",xm);et("NN",xm);et("NNN",xm);et("NNNN",nN);et("NNNNN",iN);Zt(["N","NN","NNN","NNNN","NNNNN"],function(r,t,e,a){var n=e._locale.erasParse(r,a,e._strict);n?bt(e).era=n:bt(e).invalidEra=r});et("y",_s);et("yy",_s);et("yyy",_s);et("yyyy",_s);et("yo",oN);Zt(["y","yy","yyy","yyyy"],Ee);Zt(["yo"],function(r,t,e,a){var n;e._locale._eraYearOrdinalRegex&&(n=r.match(e._locale._eraYearOrdinalRegex)),e._locale.eraYearOrdinalParse?t[Ee]=e._locale.eraYearOrdinalParse(r,n):t[Ee]=parseInt(r,10)});function XO(r,t){var e,a,n,i=this._eras||en("en")._eras;for(e=0,a=i.length;e=0)return i[a]}function KO(r,t){var e=r.since<=r.until?1:-1;return t===void 0?j(r.since).year():j(r.since).year()+(t-r.offset)*e}function jO(){var r,t,e,a=this.localeData().eras();for(r=0,t=a.length;ri&&(t=i),cN.call(this,r,t,e,a,n))}function cN(r,t,e,a,n){var i=hA(r,t,e,a,n),o=Yl(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}lt("Q",0,"Qo","quarter");Ve("quarter","Q");Be("quarter",7);et("Q",eA);Zt("Q",function(r,t){t[Oa]=(Lt(r)-1)*3});function dN(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}lt("D",["DD",2],"Do","date");Ve("date","D");Be("date",9);et("D",Qt);et("DD",Qt,hr);et("Do",function(r,t){return r?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Zt(["D","DD"],sa);Zt("Do",function(r,t){t[sa]=Lt(r.match(Qt)[0])});var RA=ms("Date",!0);lt("DDD",["DDDD",3],"DDDo","dayOfYear");Ve("dayOfYear","DDD");Be("dayOfYear",4);et("DDD",kv);et("DDDD",rA);Zt(["DDD","DDDD"],function(r,t,e){e._dayOfYear=Lt(r)});function pN(r){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?t:this.add(r-t,"d")}lt("m",["mm",2],0,"minute");Ve("minute","m");Be("minute",14);et("m",Qt);et("mm",Qt,hr);Zt(["m","mm"],Gr);var gN=ms("Minutes",!1);lt("s",["ss",2],0,"second");Ve("second","s");Be("second",15);et("s",Qt);et("ss",Qt,hr);Zt(["s","ss"],Na);var yN=ms("Seconds",!1);lt("S",0,0,function(){return~~(this.millisecond()/100)});lt(0,["SS",2],0,function(){return~~(this.millisecond()/10)});lt(0,["SSS",3],0,"millisecond");lt(0,["SSSS",4],0,function(){return this.millisecond()*10});lt(0,["SSSSS",5],0,function(){return this.millisecond()*100});lt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});lt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});lt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});lt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ve("millisecond","ms");Be("millisecond",16);et("S",kv,eA);et("SS",kv,hr);et("SSS",kv,rA);var Tn,EA;for(Tn="SSSS";Tn.length<=9;Tn+="S")et(Tn,_s);function mN(r,t){t[Ei]=Lt(("0."+r)*1e3)}for(Tn="S";Tn.length<=9;Tn+="S")Zt(Tn,mN);EA=ms("Milliseconds",!1);lt("z",0,0,"zoneAbbr");lt("zz",0,0,"zoneName");function _N(){return this._isUTC?"UTC":""}function SN(){return this._isUTC?"Coordinated Universal Time":""}var $=Tu.prototype;$.add=vO;$.calendar=_O;$.clone=SO;$.diff=DO;$.endOf=VO;$.format=PO;$.from=kO;$.fromNow=RO;$.to=EO;$.toNow=OO;$.get=wR;$.invalidAt=UO;$.isAfter=xO;$.isBefore=wO;$.isBetween=bO;$.isSame=TO;$.isSameOrAfter=MO;$.isSameOrBefore=AO;$.isValid=YO;$.lang=DA;$.locale=AA;$.localeData=CA;$.max=YE;$.min=WE;$.parsingFlags=$O;$.set=bR;$.startOf=NO;$.subtract=cO;$.toArray=GO;$.toObject=HO;$.toDate=FO;$.toISOString=IO;$.inspect=LO;typeof Symbol!="undefined"&&Symbol.for!=null&&($[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$.toJSON=WO;$.toString=CO;$.unix=zO;$.valueOf=BO;$.creationData=ZO;$.eraName=jO;$.eraNarrow=JO;$.eraAbbr=QO;$.eraYear=tN;$.year=fA;$.isLeapYear=HR;$.weekYear=sN;$.isoWeekYear=lN;$.quarter=$.quarters=dN;$.month=lA;$.daysInMonth=zR;$.week=$.weeks=XR;$.isoWeek=$.isoWeeks=qR;$.weeksInYear=hN;$.weeksInWeekYear=vN;$.isoWeeksInYear=uN;$.isoWeeksInISOWeekYear=fN;$.date=RA;$.day=$.days=lE;$.weekday=uE;$.isoWeekday=fE;$.dayOfYear=pN;$.hour=$.hours=yE;$.minute=$.minutes=gN;$.second=$.seconds=yN;$.millisecond=$.milliseconds=EA;$.utcOffset=QE;$.utc=eO;$.local=rO;$.parseZone=aO;$.hasAlignedHourOffset=nO;$.isDST=iO;$.isLocal=sO;$.isUtcOffset=lO;$.isUtc=wA;$.isUTC=wA;$.zoneAbbr=_N;$.zoneName=SN;$.dates=Pr("dates accessor is deprecated. Use date instead.",RA);$.months=Pr("months accessor is deprecated. Use month instead",lA);$.years=Pr("years accessor is deprecated. Use year instead",fA);$.zone=Pr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",tO);$.isDSTShifted=Pr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",oO);function xN(r){return Jt(r*1e3)}function wN(){return Jt.apply(null,arguments).parseZone()}function OA(r){return r}var Ht=sm.prototype;Ht.calendar=lR;Ht.longDateFormat=vR;Ht.invalidDate=dR;Ht.ordinal=yR;Ht.preparse=OA;Ht.postformat=OA;Ht.relativeTime=_R;Ht.pastFuture=SR;Ht.set=oR;Ht.eras=XO;Ht.erasParse=qO;Ht.erasConvertYear=KO;Ht.erasAbbrRegex=rN;Ht.erasNameRegex=eN;Ht.erasNarrowRegex=aN;Ht.months=OR;Ht.monthsShort=NR;Ht.monthsParse=BR;Ht.monthsRegex=GR;Ht.monthsShortRegex=FR;Ht.week=YR;Ht.firstDayOfYear=ZR;Ht.firstDayOfWeek=UR;Ht.weekdays=aE;Ht.weekdaysMin=iE;Ht.weekdaysShort=nE;Ht.weekdaysParse=sE;Ht.weekdaysRegex=hE;Ht.weekdaysShortRegex=vE;Ht.weekdaysMinRegex=cE;Ht.isPM=pE;Ht.meridiem=mE;function Ph(r,t,e,a){var n=en(),i=wa().set(a,t);return n[e](i,r)}function NA(r,t,e){if(Ua(r)&&(t=r,r=void 0),r=r||"",t!=null)return Ph(r,t,e,"month");var a,n=[];for(a=0;a<12;a++)n[a]=Ph(r,a,e,"month");return n}function bm(r,t,e,a){typeof r=="boolean"?(Ua(t)&&(e=t,t=void 0),t=t||""):(t=r,e=t,r=!1,Ua(t)&&(e=t,t=void 0),t=t||"");var n=en(),i=r?n._week.dow:0,o,s=[];if(e!=null)return Ph(t,(e+i)%7,a,"day");for(o=0;o<7;o++)s[o]=Ph(t,(o+i)%7,a,"day");return s}function bN(r,t){return NA(r,t,"months")}function TN(r,t){return NA(r,t,"monthsShort")}function MN(r,t,e){return bm(r,t,e,"weekdays")}function AN(r,t,e){return bm(r,t,e,"weekdaysShort")}function DN(r,t,e){return bm(r,t,e,"weekdaysMin")}On("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var t=r%10,e=Lt(r%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return r+e}});j.lang=Pr("moment.lang is deprecated. Use moment.locale instead.",On);j.langData=Pr("moment.langData is deprecated. Use moment.localeData instead.",en);var Ca=Math.abs;function CN(){var r=this._data;return this._milliseconds=Ca(this._milliseconds),this._days=Ca(this._days),this._months=Ca(this._months),r.milliseconds=Ca(r.milliseconds),r.seconds=Ca(r.seconds),r.minutes=Ca(r.minutes),r.hours=Ca(r.hours),r.months=Ca(r.months),r.years=Ca(r.years),this}function VA(r,t,e,a){var n=Kr(t,e);return r._milliseconds+=a*n._milliseconds,r._days+=a*n._days,r._months+=a*n._months,r._bubble()}function IN(r,t){return VA(this,r,t,1)}function LN(r,t){return VA(this,r,t,-1)}function F_(r){return r<0?Math.floor(r):Math.ceil(r)}function PN(){var r=this._milliseconds,t=this._days,e=this._months,a=this._data,n,i,o,s,l;return r>=0&&t>=0&&e>=0||r<=0&&t<=0&&e<=0||(r+=F_(hg(e)+t)*864e5,t=0,e=0),a.milliseconds=r%1e3,n=wr(r/1e3),a.seconds=n%60,i=wr(n/60),a.minutes=i%60,o=wr(i/60),a.hours=o%24,t+=wr(o/24),l=wr(BA(t)),e+=l,t-=F_(hg(l)),s=wr(e/12),e%=12,a.days=t,a.months=e,a.years=s,this}function BA(r){return r*4800/146097}function hg(r){return r*146097/4800}function kN(r){if(!this.isValid())return NaN;var t,e,a=this._milliseconds;if(r=kr(r),r==="month"||r==="quarter"||r==="year")switch(t=this._days+a/864e5,e=this._months+BA(t),r){case"month":return e;case"quarter":return e/3;case"year":return e/12}else switch(t=this._days+Math.round(hg(this._months)),r){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return t*24+a/36e5;case"minute":return t*1440+a/6e4;case"second":return t*86400+a/1e3;case"millisecond":return Math.floor(t*864e5)+a;default:throw new Error("Unknown unit "+r)}}function RN(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Lt(this._months/12)*31536e6:NaN}function rn(r){return function(){return this.as(r)}}var EN=rn("ms"),ON=rn("s"),NN=rn("m"),VN=rn("h"),BN=rn("d"),zN=rn("w"),FN=rn("M"),GN=rn("Q"),HN=rn("y");function WN(){return Kr(this)}function YN(r){return r=kr(r),this.isValid()?this[r+"s"]():NaN}function no(r){return function(){return this.isValid()?this._data[r]:NaN}}var $N=no("milliseconds"),UN=no("seconds"),ZN=no("minutes"),XN=no("hours"),qN=no("days"),KN=no("months"),jN=no("years");function JN(){return wr(this.days()/7)}var ka=Math.round,Wo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function QN(r,t,e,a,n){return n.relativeTime(t||1,!!e,r,a)}function tV(r,t,e,a){var n=Kr(r).abs(),i=ka(n.as("s")),o=ka(n.as("m")),s=ka(n.as("h")),l=ka(n.as("d")),u=ka(n.as("M")),f=ka(n.as("w")),h=ka(n.as("y")),v=i<=e.ss&&["s",i]||i0,v[4]=a,QN.apply(null,v)}function eV(r){return r===void 0?ka:typeof r=="function"?(ka=r,!0):!1}function rV(r,t){return Wo[r]===void 0?!1:t===void 0?Wo[r]:(Wo[r]=t,r==="s"&&(Wo.ss=t-1),!0)}function aV(r,t){if(!this.isValid())return this.localeData().invalidDate();var e=!1,a=Wo,n,i;return typeof r=="object"&&(t=r,r=!1),typeof r=="boolean"&&(e=r),typeof t=="object"&&(a=Object.assign({},Wo,t),t.s!=null&&t.ss==null&&(a.ss=t.s-1)),n=this.localeData(),i=tV(this,!e,a,n),e&&(i=n.pastFuture(+this,i)),n.postformat(i)}var Rc=Math.abs;function vo(r){return(r>0)-(r<0)||+r}function Fv(){if(!this.isValid())return this.localeData().invalidDate();var r=Rc(this._milliseconds)/1e3,t=Rc(this._days),e=Rc(this._months),a,n,i,o,s=this.asSeconds(),l,u,f,h;return s?(a=wr(r/60),n=wr(a/60),r%=60,a%=60,i=wr(e/12),e%=12,o=r?r.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=vo(this._months)!==vo(s)?"-":"",f=vo(this._days)!==vo(s)?"-":"",h=vo(this._milliseconds)!==vo(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(e?u+e+"M":"")+(t?f+t+"D":"")+(n||a||r?"T":"")+(n?h+n+"H":"")+(a?h+a+"M":"")+(r?h+o+"S":"")):"P0D"}var Vt=Bv.prototype;Vt.isValid=qE;Vt.abs=CN;Vt.add=IN;Vt.subtract=LN;Vt.as=kN;Vt.asMilliseconds=EN;Vt.asSeconds=ON;Vt.asMinutes=NN;Vt.asHours=VN;Vt.asDays=BN;Vt.asWeeks=zN;Vt.asMonths=FN;Vt.asQuarters=GN;Vt.asYears=HN;Vt.valueOf=RN;Vt._bubble=PN;Vt.clone=WN;Vt.get=YN;Vt.milliseconds=$N;Vt.seconds=UN;Vt.minutes=ZN;Vt.hours=XN;Vt.days=qN;Vt.weeks=JN;Vt.months=KN;Vt.years=jN;Vt.humanize=aV;Vt.toISOString=Fv;Vt.toString=Fv;Vt.toJSON=Fv;Vt.locale=AA;Vt.localeData=CA;Vt.toIsoString=Pr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fv);Vt.lang=DA;lt("X",0,0,"unix");lt("x",0,0,"valueOf");et("x",Ev);et("X",MR);Zt("X",function(r,t,e){e._d=new Date(parseFloat(r)*1e3)});Zt("x",function(r,t,e){e._d=new Date(Lt(r))});//! moment.js j.version="2.29.4";nR(Jt);j.fn=$;j.min=$E;j.max=UE;j.now=ZE;j.utc=wa;j.unix=xN;j.months=bN;j.isDate=bu;j.locale=On;j.invalid=Iv;j.duration=Kr;j.isMoment=Zr;j.weekdays=MN;j.parseZone=wN;j.localeData=en;j.isDuration=nh;j.monthsShort=TN;j.weekdaysMin=DN;j.defineLocale=pm;j.updateLocale=wE;j.locales=bE;j.weekdaysShort=AN;j.normalizeUnits=kr;j.relativeTimeRounding=eV;j.relativeTimeThreshold=rV;j.calendarFormat=mO;j.prototype=$;j.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var vg=function(r,t){return vg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},vg(r,t)};function E(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vg(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var nV=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),iV=function(){function r(){this.browser=new nV,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!="undefined"}return r}(),bi=new iV;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(bi.wxa=!0,bi.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?bi.worker=!0:typeof navigator=="undefined"?(bi.node=!0,bi.svgSupported=!0):oV(navigator.userAgent,bi);function oV(r,t){var e=t.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var Pt=bi,Tm=12,zA="sans-serif",Fn=Tm+"px "+zA,sV=20,lV=100,uV="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fV(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function PV(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[a]=e?Y_(s,o):Y_(o,s))}function $A(r){return r.nodeName.toUpperCase()==="CANVAS"}var kV=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Nc=[],RV=Pt.browser.firefox&&+Pt.browser.version.split(".")[0]<39;function Sg(r,t,e,a){return e=e||{},a?U_(r,t,e):RV&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):U_(r,t,e),e}function U_(r,t,e){if(Pt.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if($A(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(_g(Nc,r,a,n)){e.zrX=Nc[0],e.zrY=Nc[1];return}}e.zrX=e.zrY=0}function Pm(r){return r||window.event}function mr(r,t,e){if(t=Pm(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Sg(r,o,t,e)}else{Sg(r,t,t,e);var i=EV(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&kV.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function EV(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function xg(r,t,e,a){r.addEventListener(t,e,a)}function OV(r,t,e,a){r.removeEventListener(t,e,a)}var Xa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Z_(r){return r.which===2||r.which===3}var NV=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(!!n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&a&&a.length>1){var i=X_(a)/X_(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=VV(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},UA="silent";function BV(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:zV}}function zV(){Xa(this.event)}var FV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Rr),zs=function(){function r(t,e){this.x=t,this.y=e}return r}(),GV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ZA=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o._hovered=new zs(0,0),o.storage=e,o.painter=a,o.painterRoot=i,n=n||new FV,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new AV(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(GV,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,n=e.zrY,i=XA(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new zs(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new zs(0,0)},t.prototype.dispatch=function(e,a){var n=this[e];n&&n.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,n){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+a,s=BV(a,e,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,n){for(var i=this.storage.getDisplayList(),o=new zs(e,a),s=i.length-1;s>=0;s--){var l=void 0;if(i[s]!==n&&!i[s].ignore&&(l=HV(i[s],e,a))&&(!o.topTarget&&(o.topTarget=i[s]),l!==UA)){o.target=i[s];break}}return o},t.prototype.processGesture=function(e,a){this._gestureMgr||(this._gestureMgr=new NV);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;e.gestureEvent=o;var s=new zs;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Rr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){ZA.prototype[r]=function(t){var e=t.zrX,a=t.zrY,n=XA(this,e,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(e,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Mn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function HV(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?UA:!0}return!1}function XA(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var WV=ZA,qA=32,Fs=7;function YV(r){for(var t=0;r>=qA;)t|=r&1,r>>=1;return r+t}function q_(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function $V(r,t,e){for(e--;t>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Bc(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function zc(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function UV(r,t){var e=Fs,a,n,i=0;r.length;var o=[];a=[],n=[];function s(c,d){a[i]=c,n[i]=d,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=Fs||b>=Fs);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=e;;){var T=0,M=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],M++,T=0,--g===1){D=!0;break}while((T|M)=0;y--)r[x+y]=r[w+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(M=g-Bc(r[m],o,0,g,g-1,t),M!==0){for(S-=M,_-=M,g-=M,x=S+1,w=_+1,y=0;y=Fs||M>=Fs);if(D)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;ys&&(l=s),K_(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var sr=1,dl=2,Vo=4,j_=!1;function Fc(){j_||(j_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function J_(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var ZV=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=J_}return r.prototype.traverse=function(t,e){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(Fc(),f.z=0),isNaN(f.z2)&&(Fc(),f.z2=0),isNaN(f.zlevel)&&(Fc(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,a);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,a);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,a)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,a=t.length;e=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),XV=ZV,KA;KA=Pt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var wg=KA,uh={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-uh.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?uh.bounceIn(r*2)*.5:uh.bounceOut(r*2-1)*.5+.5}},jA=uh,tf=Math.pow,Nn=Math.sqrt,Rh=1e-8,JA=1e-4,Q_=Nn(3),ef=1/3,la=io(),br=io(),es=io();function Cn(r){return r>-Rh&&rRh||r<-Rh}function ge(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function t1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Eh(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Cn(f)&&Cn(h))if(Cn(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[c++]=d)}else{var p=h*h-4*f*v;if(Cn(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y)}else if(p>0){var m=Nn(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-tf(-_,ef):_=tf(_,ef),S<0?S=-tf(-S,ef):S=tf(S,ef);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[c++]=d)}else{var w=(2*f*s-3*o*h)/(2*Nn(f*f*f)),x=Math.acos(w)/3,b=Nn(f),T=Math.cos(x),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Q_*Math.sin(x)))/(3*o),M=(-s+b*(T-Q_*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[c++]=d),y>=0&&y<=1&&(i[c++]=y),M>=0&&M<=1&&(i[c++]=M)}}return c}function tD(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(Cn(o)){if(QA(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Cn(f))n[0]=-i/(2*o);else if(f>0){var h=Nn(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Gn(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function eD(r,t,e,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;la[0]=l,la[1]=u;for(var m=0;m<1;m+=.05)br[0]=ge(r,e,n,o,m),br[1]=ge(t,a,i,s,m),g=Gi(la,br),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Cn(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=Nn(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function rD(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function ql(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function aD(r,t,e,a,n,i,o,s,l){var u,f=.005,h=1/0;la[0]=o,la[1]=s;for(var v=0;v<1;v+=.05){br[0]=Se(r,e,n,v),br[1]=Se(t,a,i,v);var c=Gi(la,br);c=0&&c=1?1:Eh(0,a,i,1,l,s)&&ge(0,n,o,1,s[0])}}}var QV=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||he,this.ondestroy=t.ondestroy||he,this.onrestart=t.onrestart||he,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=J(t)?t:jA[t]||km(t)},r}(),tB=QV,nD=function(){function r(t){this.value=t}return r}(),eB=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new nD(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),rB=function(){function r(t){this._list=new eB,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new nD(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Cu=rB,e1={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Yr(r){return r=Math.round(r),r<0?0:r>255?255:r}function aB(r){return r=Math.round(r),r<0?0:r>360?360:r}function Kl(r){return r<0?0:r>1?1:r}function Gc(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Yr(parseFloat(t)/100*255):Yr(parseInt(t,10))}function us(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Kl(parseFloat(t)/100):Kl(parseFloat(t))}function Hc(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function In(r,t,e){return r+(t-r)*e}function yr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function Tg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var iD=new Cu(20),rf=null;function po(r,t){rf&&Tg(rf,t),rf=iD.put(r,rf||t.slice())}function lr(r,t){if(!!r){t=t||[];var e=iD.get(r);if(e)return Tg(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in e1)return Tg(t,e1[a]),po(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){yr(t,0,0,0,1);return}return yr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),po(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){yr(t,0,0,0,1);return}return yr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),po(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?yr(t,+u[0],+u[1],+u[2],1):yr(t,0,0,0,1);f=us(u.pop());case"rgb":if(u.length!==3){yr(t,0,0,0,1);return}return yr(t,Gc(u[0]),Gc(u[1]),Gc(u[2]),f),po(r,t),t;case"hsla":if(u.length!==4){yr(t,0,0,0,1);return}return u[3]=us(u[3]),Mg(u,t),po(r,t),t;case"hsl":if(u.length!==3){yr(t,0,0,0,1);return}return Mg(u,t),po(r,t),t;default:return}}yr(t,0,0,0,1)}}function Mg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=us(r[1]),n=us(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],yr(t,Yr(Hc(o,i,e+1/3)*255),Yr(Hc(o,i,e)*255),Yr(Hc(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function nB(r){if(!!r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,h=((i-e)/6+o/2)/o,v=((i-a)/6+o/2)/o;t===i?l=v-h:e===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Ag(r,t){var e=lr(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return Ha(e,e.length===4?"rgba":"rgb")}}function Wc(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=Yr(In(o[0],s[0],l)),e[1]=Yr(In(o[1],s[1],l)),e[2]=Yr(In(o[2],s[2],l)),e[3]=Kl(In(o[3],s[3],l)),e}}function iB(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=lr(t[n]),s=lr(t[i]),l=a-n,u=Ha([Yr(In(o[0],s[0],l)),Yr(In(o[1],s[1],l)),Yr(In(o[2],s[2],l)),Kl(In(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Il(r,t,e,a){var n=lr(r);if(r)return n=nB(n),t!=null&&(n[0]=aB(t)),e!=null&&(n[1]=us(e)),a!=null&&(n[2]=us(a)),Ha(Mg(n),"rgba")}function Oh(r,t){var e=lr(r);if(e&&t!=null)return e[3]=Kl(t),Ha(e,"rgba")}function Ha(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Nh(r,t){var e=lr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Vh=Math.round;function fs(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=lr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var r1=1e-4;function Ln(r){return r-r1}function af(r){return Vh(r*1e3)/1e3}function Dg(r){return Vh(r*1e4)/1e4}function oB(r){return"matrix("+af(r[0])+","+af(r[1])+","+af(r[2])+","+af(r[3])+","+Dg(r[4])+","+Dg(r[5])+")"}var sB={left:"start",right:"end",center:"middle",middle:"middle"};function lB(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function uB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function fB(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function oD(r){return r&&!!r.image}function hB(r){return r&&!!r.svgElement}function vB(r){return oD(r)||hB(r)}function sD(r){return r.type==="linear"}function lD(r){return r.type==="radial"}function cB(r){return r&&(r.type==="linear"||r.type==="radial")}function Yv(r){return"url(#"+r+")"}function uD(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function fD(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*oh,n=ct(r.scaleX,1),i=ct(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Vh(o*oh)+"deg, "+Vh(s*oh)+"deg)"),l.join(" ")}var dB=function(){return Pt.hasGlobalWindow&&J(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Cg=Array.prototype.slice;function Ra(r,t,e){return(t-r)*e+r}function Yc(r,t,e,a){for(var n=t.length,i=0;ia?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=n1,l=e;if(Oe(e)){var u=mB(e);s=u,(u===1&&!At(e[0])||u===2&&!At(e[0][0]))&&(o=!0)}else if(At(e)&&!Xl(e))s=of;else if(Y(e))if(!isNaN(+e))s=of;else{var f=lr(e);f&&(l=f,s=pl)}else if(Hv(e)){var h=B({},l);h.colorStops=F(e.colorStops,function(c){return{offset:c.offset,color:lr(c.color)}}),sD(e)?s=Ig:lD(e)&&(s=Lg),l=h}i===0?this.valType=s:(s!==this.valType||s===n1)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return a&&(v.easing=a,v.easingFunc=J(a)?a:jA[a]||km(a)),n.push(v),v},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=sf(n),u=i1(n),f=0;f=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;fe);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(!!(c&&d)){this._lastFr=f,this._lastFrP=e;var g=d.percent-c.percent,y=g===0?1:v((e-c.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?Gs:t[l];if((sf(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?c.rawValue:d.rawValue;else if(sf(i))i===hh?Yc(m,c[n],d[n],y):pB(m,c[n],d[n],y);else if(i1(i)){var _=c[n],S=d[n],w=i===Ig;t[l]={type:w?"linear":"radial",x:Ra(_.x,S.x,y),y:Ra(_.y,S.y,y),colorStops:F(_.colorStops,function(b,T){var M=S.colorStops[T];return{offset:Ra(b.offset,M.offset,y),color:fh(Yc([],b.color,M.color,y))}}),global:S.global},w?(t[l].x2=Ra(_.x2,S.x2,y),t[l].y2=Ra(_.y2,S.y2,y)):t[l].r=Ra(_.r,S.r,y)}else if(u)Yc(m,c[n],d[n],y),a||(t[l]=fh(m));else{var x=Ra(c[n],d[n],y);a?this._additiveValue=x:t[l]=x}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===of?t[a]=t[a]+n:e===pl?(lr(t[a],Gs),nf(Gs,Gs,n,1),t[a]=fh(Gs)):e===hh?nf(t[a],t[a],n,1):e===hD&&a1(t[a],t[a],n,1)},r}(),Rm=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Dm("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,xt(e),a)},r.prototype.whenWithKeys=function(t,e,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Ll(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Ll(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a0)){this._started=1;for(var e=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Yo(){return new Date().getTime()}var SB=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}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 a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(!!e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=Yo()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(wg(a),!e._paused&&e.update())}wg(a)},t.prototype.start=function(){this._running||(this._time=Yo(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yo(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yo()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new Rm(e,a.loop);return this.addAnimator(n),n},t}(Rr),xB=SB,wB=300,$c=Pt.domSupported,Uc=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=F(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),o1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},s1=!1;function Pg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function bB(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Zc(r){r&&(r.zrByTouch=!0)}function TB(r,t){return mr(r.dom,new MB(r,t),!0)}function vD(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var MB=function(){function r(t,e){this.stopPropagation=he,this.stopImmediatePropagation=he,this.preventDefault=he,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Br={mousedown:function(r){r=mr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=mr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=mr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=mr(this.dom,r);var t=r.toElement||r.relatedTarget;vD(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){s1=!0,r=mr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){s1||(r=mr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=mr(this.dom,r),Zc(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Br.mousemove.call(this,r),Br.mousedown.call(this,r)},touchmove:function(r){r=mr(this.dom,r),Zc(r),this.handler.processGesture(r,"change"),Br.mousemove.call(this,r)},touchend:function(r){r=mr(this.dom,r),Zc(r),this.handler.processGesture(r,"end"),Br.mouseup.call(this,r),+new Date-+this.__lastTouchMomentf1||r<-f1}var Qn=[],go=[],qc=Ir(),Kc=Math.abs,kB=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Jn(this.rotation)||Jn(this.x)||Jn(this.y)||Jn(this.scaleX-1)||Jn(this.scaleY-1)||Jn(this.skewX)||Jn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&u1(a);return}a=a||Ir(),e?this.getLocalTransform(a):u1(a),t&&(e?Wa(a,t,a):Em(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Qn);var a=Qn[0]<0?-1:1,n=Qn[1]<0?-1:1,i=((Qn[0]-a)*e+a)/Qn[0]||0,o=((Qn[1]-n)*e+n)/Qn[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ir(),xs(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Wa(go,t.invTransform,e),e=go);var a=this.originX,n=this.originY;(a||n)&&(qc[4]=a,qc[5]=n,Wa(go,e,qc),go[4]-=a,go[5]-=n,e=go),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&Me(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&Me(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Kc(t[0]-1)>1e-10&&Kc(t[3]-1)>1e-10?Math.sqrt(Kc(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){dD(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;e[4]=-d*i-v*p*o,e[5]=-p*o-c*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=c*i,e[2]=v*o,u&&oo(e,e,u),e[4]+=a+f,e[5]+=n+h,e},r.initDefaultProps=function(){var t=r.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}(),r}(),ma=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dD(r,t){for(var e=0;ed&&(d=_,pd&&(d=S,y=a.x&&t<=a.x+a.width&&e>=a.y&&e<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ti.x=ri.x=e.x,ti.y=ai.y=e.y,ei.x=ai.x=e.x+e.width,ei.y=ri.y=e.y+e.height,ti.transform(a),ai.transform(a),ei.transform(a),ri.transform(a),t.x=lf(ti.x,ei.x,ri.x,ai.x),t.y=lf(ti.y,ei.y,ri.y,ai.y);var l=uf(ti.x,ei.x,ri.x,ai.x),u=uf(ti.y,ei.y,ri.y,ai.y);t.width=l-t.x,t.height=u-t.y},r}(),gt=EB,h1={};function ur(r,t){t=t||Fn;var e=h1[t];e||(e=h1[t]=new Cu(500));var a=e.get(r);return a==null&&(a=Za.measureText(r,t).width,e.put(r,a)),a}function v1(r,t,e,a){var n=ur(r,t),i=Uv(t),o=gl(0,n,e),s=Bo(0,i,a),l=new gt(o,s,n,i);return l}function Iu(r,t,e,a){var n=((r||"")+"").split(` `),i=n.length;if(i===1)return v1(n[0],t,e,a);for(var o=new gt(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function zh(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",h="top";if(a instanceof Array)l+=Xr(a[0],e.width),u+=Xr(a[1],e.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var jc="__zr_normal__",Jc=ma.concat(["ignore"]),OB=ga(ma,function(r,t){return r[t]=!0,r},{ignore:!1}),yo={},NB=new gt(0,0,0,0),Nm=function(){function r(t){this.id=HA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(e),a.position!=null){var f=NB;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(yo,a,f):zh(yo,a,f),i.x=yo.x,i.y=yo.y,o=yo.align,s=yo.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Xr(h[0],f.width),c=Xr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var d=a.offset;d&&(i.x+=d[0],i.y+=d[1],u||(i.originX=-d[0],i.originY=-d[1]));var p=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=sr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Og:Eg},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&lr(e);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Ha(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(tt(t))for(var a=t,n=xt(a),i=0;i0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(jc,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===jc,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(pt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Dm("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,a,f),v&&v.useState(t,e,a,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~sr),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~sr)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=pt(n,t),o=pt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var v=0;v0||n.force&&!o.length){var T=void 0,M=void 0,D=void 0;if(s){M={},v&&(T={});for(var S=0;S<_;S++){var y=p[S];M[y]=e[y],v?T[y]=a[y]:e[y]=a[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=Ll(e[y]),BB(e,a,y)}}var w=new Rm(e,!1,!1,h?zt(d,function(I){return I.targetName===t}):null);w.targetName=t,n.scope&&(w.scope=n.scope),v&&T&&w.whenWithKeys(0,T,p),D&&w.whenWithKeys(0,D,p),w.whenWithKeys(u==null?500:u,s?M:a,p).delay(f||0),r.addAnimator(w,t),o.push(w)}}var gD=Nm,yD=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}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 a=this._children,n=0;n=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=pt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=pt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}function H(r,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 Y(r)?$B(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function ne(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),_D),r=(+r).toFixed(t),e?r:+r}function Dr(r){return r.sort(function(t,e){return t-e}),r}function fa(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return UB(r)}function UB(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function SD(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(Math.abs(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function ZB(r,t,e){if(!r[t])return 0;var a=ga(r,function(d,p){return d+(isNaN(p)?0:p)},0);if(a===0)return 0;for(var n=Math.pow(10,e),i=F(r,function(d){return(isNaN(d)?0:d)/a*n*100}),o=n*100,s=F(i,function(d){return Math.floor(d)}),l=ga(s,function(d,p){return d+p},0),u=F(i,function(d,p){return d-s[p]});lf&&(f=u[v],h=v);++s[h],u[h]=0,++l}return s[t]/n}function XB(r,t){var e=Math.max(fa(r),fa(t)),a=r+t;return e>_D?a:ne(a,e)}var p1=9007199254740991;function xD(r){var t=Math.PI*2;return(r%t+t)%t}function Fh(r){return r>-d1&&r=10&&t++,t}function wD(r,t){var e=Vm(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function ed(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function g1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a=0||i&&pt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var S5=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],x5=Qi(S5),w5=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return x5(this,t,e)},r}(),Vg=new Cu(50);function b5(r){if(typeof r=="string"){var t=Vg.get(r);return t&&t.image}else return r}function Gm(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Vg.get(r),o={hostEl:e,cb:a,cbPayload:n};if(i)t=i.image,!Xv(t)&&i.pending.push(o);else{var s=Za.loadImage(r,S1,S1);s.__zrImageSrc=r,Vg.put(r,s.__cachedImgObj={image:s,pending:[o]})}return t}else return r;else return t}function S1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=ur(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function OD(r,t){var e=t.containerWidth,a=t.font,n=t.contentWidth;if(!e)return"";var i=ur(r,a);if(i<=e)return r;for(var o=0;;o++){if(i<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?M5(r,n,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(r.length*n/i):0;r=r.substr(0,s),i=ur(r,a)}return r===""&&(r=t.placeholder),r}function M5(r,t,e,a){for(var n=0,i=0,o=r.length;ic&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&i&&f!=null)for(var p=ED(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&ad(e,r.substring(s,u),t,o),ad(e,l[2],t,o,l[1]),s=rd.lastIndex}sn){w>0?(m.tokens=m.tokens.slice(0,w),g(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var I=b.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=ur(x.text,D);else{if(L){var P=b.backgroundColor,k=P&&P.image;k&&(k=b5(k),Xv(k)&&(x.width=Math.max(x.width,k.width*C/k.height)))}var R=d&&a!=null?a-S:null;R!=null&&R0&&d+a.accumWidth>a.width&&(f=t.split(` `),u=!0),a.accumWidth=d}else{var p=ND(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=t.split(` `);for(var g=0;g=33&&t<=383}var P5=ga(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function k5(r){return L5(r)?!!P5[r]:!0}function ND(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;he:n+f+c>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):d?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Bg="__zr_style_"+Math.round(Math.random()*10),Hi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Hi[Bg]=!0;var w1=["z","z2","invisible"],R5=["invisible"],E5=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=xt(e),n=0;n1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(ff[0]=sd(n)*e+r,ff[1]=od(n)*a+t,hf[0]=sd(i)*e+r,hf[1]=od(i)*a+t,u(s,ff,hf),f(l,ff,hf),n=n%ii,n<0&&(n=n+ii),i=i%ii,i<0&&(i=i+ii),n>i&&!o?i+=ii:nn&&(vf[0]=sd(c)*e+r,vf[1]=od(c)*a+t,u(s,vf,s),f(l,vf,l))}var Wt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},oi=[],si=[],Qr=[],ln=[],ta=[],ea=[],ld=Math.min,ud=Math.max,li=Math.cos,ui=Math.sin,Ia=Math.abs,zg=Math.PI,gn=zg*2,fd=typeof Float32Array!="undefined",Ys=[];function hd(r){var t=Math.round(r/zg*1e8)/1e8;return t%2*zg}function VD(r,t){var e=hd(r[0]);e<0&&(e+=gn);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=gn?n=e+gn:t&&e-n>=gn?n=e-gn:!t&&e>n?n=e+(gn-hd(e-n)):t&&e0&&(this._ux=Ia(a/Bh/t)||0,this._uy=Ia(a/Bh/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Wt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Ia(t-this._xi),n=Ia(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Wt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Wt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Wt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Ys[0]=n,Ys[1]=i,VD(Ys,o),n=Ys[0],i=Ys[1];var s=i-n;return this.addData(Wt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=li(i)*a+t,this._yi=ui(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Wt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Wt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&fd&&(this.data=new Float32Array(e));for(var a=0;af.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Qr[0]=Qr[1]=ta[0]=ta[1]=Number.MAX_VALUE,ln[0]=ln[1]=ea[0]=ea[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;oa||Ia(_)>n||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Wt.C:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++],x=t[v++],b=t[v++];p=qV(i,o,S,w,g,y,x,b,10),i=x,o=b;break}case Wt.Q:{var S=t[v++],w=t[v++],g=t[v++],y=t[v++];p=jV(i,o,S,w,g,y,10),i=g,o=y;break}case Wt.A:var T=t[v++],M=t[v++],D=t[v++],C=t[v++],I=t[v++],L=t[v++],P=L+I;v+=1,t[v++],d&&(s=li(I)*D+T,l=ui(I)*C+M),p=ud(D,C)*ld(gn,Math.abs(L)),i=li(P)*D+T,o=ui(P)*C+M;break;case Wt.R:{s=i=t[v++],l=o=t[v++];var k=t[v++],R=t[v++];p=k*2+R*2;break}case Wt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,h,v,c=e<1,d,p,g=0,y=0,m,_=0,S,w;if(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m))return;t:for(var x=0;x0&&(t.lineTo(S,w),_=0),b){case Wt.M:s=u=a[x++],l=f=a[x++],t.moveTo(u,f);break;case Wt.L:{h=a[x++],v=a[x++];var M=Ia(h-u),D=Ia(v-f);if(M>n||D>i){if(c){var C=d[y++];if(g+C>m){var I=(m-g)/C;t.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=C}t.lineTo(h,v),u=h,f=v,_=0}else{var L=M*M+D*D;L>_&&(S=h,w=v,_=L)}break}case Wt.C:{var P=a[x++],k=a[x++],R=a[x++],N=a[x++],O=a[x++],V=a[x++];if(c){var C=d[y++];if(g+C>m){var I=(m-g)/C;Gn(u,P,R,O,I,oi),Gn(f,k,N,V,I,si),t.bezierCurveTo(oi[1],si[1],oi[2],si[2],oi[3],si[3]);break t}g+=C}t.bezierCurveTo(P,k,R,N,O,V),u=O,f=V;break}case Wt.Q:{var P=a[x++],k=a[x++],R=a[x++],N=a[x++];if(c){var C=d[y++];if(g+C>m){var I=(m-g)/C;ql(u,P,R,I,oi),ql(f,k,N,I,si),t.quadraticCurveTo(oi[1],si[1],oi[2],si[2]);break t}g+=C}t.quadraticCurveTo(P,k,R,N),u=R,f=N;break}case Wt.A:var G=a[x++],W=a[x++],X=a[x++],at=a[x++],dt=a[x++],Et=a[x++],kt=a[x++],mt=!a[x++],nt=X>at?X:at,St=Ia(X-at)>.001,vt=dt+Et,q=!1;if(c){var C=d[y++];g+C>m&&(vt=dt+Et*(m-g)/C,q=!0),g+=C}if(St&&t.ellipse?t.ellipse(G,W,X,at,kt,dt,vt,mt):t.arc(G,W,nt,dt,vt,mt),q)break t;T&&(s=li(dt)*X+G,l=ui(dt)*at+W),u=li(vt)*X+G,f=ui(vt)*at+W;break;case Wt.R:s=u=a[x],l=f=a[x+1],h=a[x++],v=a[x++];var ut=a[x++],Xt=a[x++];if(c){var C=d[y++];if(g+C>m){var wt=m-g;t.moveTo(h,v),t.lineTo(h+ld(wt,ut),v),wt-=ut,wt>0&&t.lineTo(h+ut,v+ld(wt,Xt)),wt-=Xt,wt>0&&t.lineTo(h+ud(ut-wt,0),v+Xt),wt-=ut,wt>0&&t.lineTo(h,v+ud(Xt-wt,0));break t}g+=C}t.rect(h,v,ut,Xt);break;case Wt.Z:if(c){var C=d[y++];if(g+C>m){var I=(m-g)/C;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=C}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Wt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function mn(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||or+s&&i>e+s||it+h&&f>a+h&&f>i+h&&f>s+h||fr+h&&u>e+h&&u>n+h&&u>o+h||ut+u&&l>a+u&&l>i+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=$s);var v=Math.atan2(l,s);return v<0&&(v+=$s),v>=a&&v<=n||v+$s>=a&&v+$s<=n}function Ea(r,t,e,a,n,i){if(i>t&&i>a||in?s:0}var un=Sa.CMD,fi=Math.PI*2,G5=1e-4;function H5(r,t){return Math.abs(r-t)t&&u>a&&u>i&&u>s||u1&&W5(),c=ge(t,a,i,s,Sr[0]),v>1&&(d=ge(t,a,i,s,Sr[1]))),v===2?gt&&s>a&&s>i||s=0&&u<=1){for(var f=0,h=Se(t,a,i,u),v=0;ve||s<-e)return 0;var l=Math.sqrt(e*e-s*s);He[0]=-l,He[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=fi-1e-4){a=0,n=fi;var f=i?1:-1;return o>=He[0]+r&&o<=He[1]+r?f:0}if(a>n){var h=a;a=n,n=h}a<0&&(a+=fi,n+=fi);for(var v=0,c=0;c<2;c++){var d=He[c];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=fi+p),(p>=a&&p<=n||p+fi>=a&&p+fi<=n)&&(p>Math.PI/2&&p1&&(e||(s+=Ea(l,u,f,h,a,n))),g&&(l=i[d],u=i[d+1],f=l,h=u),p){case un.M:f=i[d++],h=i[d++],l=f,u=h;break;case un.L:if(e){if(mn(l,u,i[d],i[d+1],t,a,n))return!0}else s+=Ea(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case un.C:if(e){if(z5(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=Y5(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case un.Q:if(e){if(BD(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=$5(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case un.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],w=i[d++],x=i[d++];d+=1;var b=!!(1-i[d++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=Ea(l,u,v,c,a,n);var T=(a-y)*S/_+y;if(e){if(F5(y,m,S,w,w+x,b,t,T,n))return!0}else s+=U5(y,m,S,w,w+x,b,T,n);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case un.R:f=l=i[d++],h=u=i[d++];var M=i[d++],D=i[d++];if(v=f+M,c=h+D,e){if(mn(f,h,v,h,t,a,n)||mn(v,h,v,c,t,a,n)||mn(v,c,f,c,t,a,n)||mn(f,c,f,h,t,a,n))return!0}else s+=Ea(v,h,v,c,a,n),s+=Ea(f,c,f,h,a,n);break;case un.Z:if(e){if(mn(l,u,f,h,t,a,n))return!0}else s+=Ea(l,u,f,h,a,n);l=f,u=h;break}}return!e&&!H5(u,h)&&(s+=Ea(l,u,f,h,a,n)||0),s!==0}function Z5(r,t,e){return zD(r,0,!1,t,e)}function X5(r,t,e,a){return zD(r,t,!0,e,a)}var Gh=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Hi),q5={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qv.style)},vd=ma.concat(["invisible","culling","z","z2","zlevel","parent"]),K5=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s.5?Eg:a>.2?LB:Og}else if(e)return Og}return Eg},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(Y(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Nh(e,0)0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Vo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),X5(s,l/u,e,a)))return!0}if(this.hasFill())return Z5(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Vo,this._rect&&(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(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:B(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Vo)},t.prototype.createStyle=function(e){return Wv(Gh,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=B({},n.shape),B(u,a.shape)):(u=B({},i?this.shape:n.shape),B(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=xt(u),v=0;v0},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return Wv(j5,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var a=e.text;a!=null?a+="":a="";var n=Iu(a,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Lr);FD.prototype.type="tspan";var Jl=FD,J5=Q({x:0,y:0},Hi),Q5={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qv.style)};function tz(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var GD=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Wv(J5,e)},t.prototype._getSize=function(e){var a=this.style,n=a[e];if(n!=null)return n;var i=tz(a.image)?a.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Q5},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new gt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Lr);GD.prototype.type="image";var Ce=GD;function ez(r,t){var e=t.x,a=t.y,n=t.width,i=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>i&&(h=l+u,l*=i/h,u*=i/h),s+f>i&&(h=s+f,s*=i/h,f*=i/h),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var $o=Math.round;function HD(r,t,e){if(!!t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&($o(a*2)===$o(n*2)&&(r.x1=r.x2=Ni(a,s,!0)),$o(i*2)===$o(o*2)&&(r.y1=r.y2=Ni(i,s,!0))),r}}function WD(r,t,e){if(!!t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Ni(a,s,!0),r.y=Ni(n,s,!0),r.width=Math.max(Ni(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(Ni(n+o,s,!1)-r.y,o===0?0:1)),r}}function Ni(r,t,e){if(!t)return r;var a=$o(r*2);return(a+$o(t))%2===0?a/2:(a+(e?1:-1))/2}var rz=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),az={},YD=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new rz},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=WD(az,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?ez(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(_t);YD.prototype.type="rect";var Tt=YD,D1={fill:"#000"},C1=2,nz={style:Q({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},qv.style)},$D=function(r){E(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=D1,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),M-=P.width,I-=P.width,L--;for(C+=(i-(C-g)-(m-I)-M)/2;D<=L;)P=x[D],this._placeToken(P,e,T,y,C+P.width/2,"center",_),C+=P.width,D++;y+=T}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=i+n/2;f==="top"?h=i+e.height/2:f==="bottom"&&(h=i+n-e.height/2);var v=!e.isLineHolder&&cd(u);v&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var c=!!u.backgroundColor,d=e.textPadding;d&&(o=E1(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Jl),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=R1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),w=k1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=C1,y.stroke):null),x=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Fn,g.opacity=Fa(u.opacity,a.opacity,1),L1(g,u),w&&(g.lineWidth=Fa(u.lineWidth,a.lineWidth,_),g.lineDash=ct(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new gt(gl(g.x,b,g.textAlign),Bo(g.y,T,g.textBaseline),b,T))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,v=l&&!h,c=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(Tt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=ct(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(Ce),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ct(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Fa(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return ZD(e)&&(a=[e.fontStyle,e.fontWeight,UD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Hr(a)||e.textFont||e.font},t}(Lr),iz={left:!0,right:1,center:1},oz={top:1,bottom:1,middle:1},I1=["fontStyle","fontWeight","fontSize","fontFamily"];function UD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Tm+"px":r+"px"}function L1(r,t){for(var e=0;e=0,i=!1;if(r instanceof _t){var o=XD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(mo(s)||mo(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=B({},a),u=B({},u),u.fill=s):!mo(u.fill)&&mo(s)?(i=!0,a=B({},a),u=B({},u),u.fill=z1(s)):!mo(u.stroke)&&mo(l)&&(i||(a=B({},a),u=B({},u)),u.stroke=z1(l)),a.style=u}}if(a&&a.z2==null){i||(a=B({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f!=null?f:bs)}return a}function cz(r,t,e){if(e&&e.z2==null){e=B({},e);var a=r.z2SelectLift;e.z2=r.z2+(a!=null?a:lz)}return e}function dz(r,t,e){var a=pt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:hz(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:a?n:i.opacity*.1},o),e.style=o),e}function dd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return vz(this,r,t,e);if(r==="blur")return dz(this,r,e);if(r==="select")return cz(this,r,e)}return e}function to(r){r.stateProxy=dd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=dd),e&&(e.stateProxy=dd)}function G1(r,t){!eC(r,t)&&!r.__highByOuter&&an(r,qD)}function H1(r,t){!eC(r,t)&&!r.__highByOuter&&an(r,KD)}function Ka(r,t){r.__highByOuter|=1<<(t||0),an(r,qD)}function ja(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&an(r,KD)}function JD(r){an(r,Ym)}function $m(r){an(r,jD)}function QD(r){an(r,uz)}function tC(r){an(r,fz)}function eC(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function rC(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Hm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){jD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Gg(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Yi(r,t,e){Vi(r,!0),an(r,to),Wg(r,t,e)}function Sz(r){Vi(r,!1)}function ie(r,t,e,a){a?Sz(r):Yi(r,t,e)}function Wg(r,t,e){var a=ot(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var Y1=["emphasis","blur","select"],xz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function De(r,t,e,a){e=e||"itemStyle";for(var n=0;n1&&(o*=pd(d),s*=pd(d));var p=(n===i?-1:1)*pd((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=p*o*c/s,y=p*-s*v/o,m=(r+e)/2+df(h)*g-cf(h)*y,_=(t+a)/2+cf(h)*g+df(h)*y,S=X1([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=X1(w,x);if($g(w,x)<=-1&&(b=Us),$g(w,x)>=1&&(b=0),b<0){var T=Math.round(b/Us*1e6)/1e6;b=Us*2+T%2*Us}f.addData(u,m,_,o,s,S,b,h,i)}var Dz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Cz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Iz(r){var t=new Sa;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Sa.CMD,l=r.match(Dz);if(!l)return t;for(var u=0;uP*P+k*k&&(T=D,M=C),{cx:T,cy:M,x0:-f,y0:-h,x1:T*(n/w-1),y1:M*(n/w-1)}}function Nz(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Vz(r,t){var e,a=yl(t.r,0),n=yl(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=K1(u-l),d=c>gd&&c%gd;if(d>Vr&&(c=d),!(a>Vr))r.moveTo(f,h);else if(c>gd-Vr)r.moveTo(f+a*So(l),h+a*hi(l)),r.arc(f,h,a,l,u,!v),n>Vr&&(r.moveTo(f+n*So(u),h+n*hi(u)),r.arc(f,h,n,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,M=void 0,D=void 0,C=void 0,I=void 0,L=void 0,P=void 0,k=a*So(l),R=a*hi(l),N=n*So(u),O=n*hi(u),V=c>Vr;if(V){var G=t.cornerRadius;G&&(e=Nz(G),p=e[0],g=e[1],y=e[2],m=e[3]);var W=K1(a-n)/2;if(_=ra(W,y),S=ra(W,m),w=ra(W,p),x=ra(W,g),M=b=yl(_,S),D=T=yl(w,x),(b>Vr||T>Vr)&&(C=a*So(u),I=a*hi(u),L=n*So(l),P=n*hi(l),cVr){var St=ra(y,M),vt=ra(m,M),q=pf(L,P,k,R,a,St,v),ut=pf(C,I,N,O,a,vt,v);r.moveTo(f+q.cx+q.x0,h+q.cy+q.y0),M0&&r.arc(f+q.cx,h+q.cy,St,Pe(q.y0,q.x0),Pe(q.y1,q.x1),!v),r.arc(f,h,a,Pe(q.cy+q.y1,q.cx+q.x1),Pe(ut.cy+ut.y1,ut.cx+ut.x1),!v),vt>0&&r.arc(f+ut.cx,h+ut.cy,vt,Pe(ut.y1,ut.x1),Pe(ut.y0,ut.x0),!v))}else r.moveTo(f+k,h+R),r.arc(f,h,a,l,u,!v);if(!(n>Vr)||!V)r.lineTo(f+N,h+O);else if(D>Vr){var St=ra(p,D),vt=ra(g,D),q=pf(N,O,C,I,n,-vt,v),ut=pf(k,R,L,P,n,-St,v);r.lineTo(f+q.cx+q.x0,h+q.cy+q.y0),D0&&r.arc(f+q.cx,h+q.cy,vt,Pe(q.y0,q.x0),Pe(q.y1,q.x1),!v),r.arc(f,h,n,Pe(q.cy+q.y1,q.cx+q.x1),Pe(ut.cy+ut.y1,ut.cx+ut.x1),v),St>0&&r.arc(f+ut.cx,h+ut.cy,St,Pe(ut.y1,ut.x1),Pe(ut.y0,ut.x0),!v))}else r.lineTo(f+N,h+O),r.arc(f,h,n,u,l,v)}r.closePath()}}}var Bz=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),hC=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Bz},t.prototype.buildPath=function(e,a){Vz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(_t);hC.prototype.type="sector";var tr=hC,zz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),vC=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(_t);vC.prototype.type="ring";var Qv=vC;function Fz(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,h;if(a){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v=2){if(a){var i=Fz(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sci[1]){if(s=!1,i)return s;var f=Math.abs(ci[0]-vi[1]),h=Math.abs(vi[0]-ci[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Dt(r,t,e,a,n,i){jm("update",r,t,e,a,n,i)}function qt(r,t,e,a,n,i){jm("enter",r,t,e,a,n,i)}function rs(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Q1(r){return!r.isGroup}function sF(r){return r.shape!=null}function Ru(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Q1(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return sF(o)&&(s.shape=B({},o.shape)),s}var i=a(r);t.traverse(function(o){if(Q1(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Dt(o,l,e,ot(o).dataIndex)}}})}function MC(r,t){return F(r,function(e){var a=e[0];a=Yh(a,t.x),a=$h(a,t.x+t.width);var n=e[1];return n=Yh(n,t.y),n=$h(n,t.y+t.height),[a,n]})}function lF(r,t){var e=Yh(r.x,t.x),a=$h(r.x+r.width,t.x+t.width),n=Yh(r.y,t.y),i=$h(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Eu(r,t,e){var a=B({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),Q(n,e),new Ce(a)):ec(r.replace("path://",""),a,e,"center")}function ml(r,t,e,a,n){for(var i=0,o=n[n.length-1];i1)return!1;var g=yd(c,d,f,h)/v;return!(g<0||g>1)}function yd(r,t,e,a){return r*a-e*t}function uF(r){return r<=1e-6&&r>=-1e-6}function Ms(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=Y(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(xt(l),function(f){Z(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ot(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:Q({content:a,formatterParams:s},n)}}function tS(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function qn(r,t){if(r)if(z(r))for(var e=0;e=0&&s.push(l)}),s}}function Kn(r,t){return ht(ht({},r,!0),t,!0)}var wF={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"}},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:". "}}}},bF={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},Zh="ZH",Qm="EN",ru=Qm,yh={},t0={},RC=Pt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Zh)>-1?Zh:ru}():ru;function EC(r,t){r=r.toUpperCase(),t0[r]=new $t(t),yh[r]=t}function TF(r){if(Y(r)){var t=yh[r.toUpperCase()]||{};return r===Zh||r===Qm?rt(t):ht(rt(t),rt(yh[ru]),!1)}else return ht(rt(r),rt(yh[ru]),!1)}function Xg(r){return t0[r]}function MF(){return t0[ru]}EC(Qm,wF);EC(Zh,bF);var e0=1e3,r0=e0*60,Nl=r0*60,Ar=Nl*24,iS=Ar*365,_l={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},mf="{yyyy}-{MM}-{dd}",oS={year:"{yyyy}",month:"{yyyy}-{MM}",day:mf,hour:mf+" "+_l.hour,minute:mf+" "+_l.minute,second:mf+" "+_l.second,millisecond:_l.none},Sd=["year","month","day","hour","minute","second","millisecond"],OC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function di(r,t){return r+="","0000".substr(0,t-r.length)+r}function as(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 AF(r){return r===as(r)}function DF(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function nc(r,t,e,a){var n=_a(r),i=n[a0(e)](),o=n[ns(e)]()+1,s=Math.floor((o-1)/4)+1,l=n[ic(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[au(e)](),h=(f-1)%12+1,v=n[oc(e)](),c=n[sc(e)](),d=n[lc(e)](),p=a instanceof $t?a:Xg(a||RC)||MF(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,i%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,di(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,di(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,di(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,di(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,di(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,di(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,di(d,3)).replace(/{S}/g,d+"")}function CF(r,t,e,a,n){var i=null;if(Y(e))i=e;else if(J(e))i=e(r.value,t,{level:r.level});else{var o=B({},_l);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(z(i)){var h=r.level==null?0:r.level>=0?r.level:i.length+r.level;h=Math.min(h,i.length-1),i=i[h]}}return nc(new Date(r.value),i,n,a)}function NC(r,t){var e=_a(r),a=e[ns(t)]()+1,n=e[ic(t)](),i=e[au(t)](),o=e[oc(t)](),s=e[sc(t)](),l=e[lc(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&i===0,c=v&&n===1,d=c&&a===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function sS(r,t,e){var a=At(r)?_a(r):r;switch(t=t||NC(r,e),t){case"year":return a[a0(e)]();case"half-year":return a[ns(e)]()>=6?1:0;case"quarter":return Math.floor((a[ns(e)]()+1)/4);case"month":return a[ns(e)]();case"day":return a[ic(e)]();case"half-day":return a[au(e)]()/24;case"hour":return a[au(e)]();case"minute":return a[oc(e)]();case"second":return a[sc(e)]();case"millisecond":return a[lc(e)]()}}function a0(r){return r?"getUTCFullYear":"getFullYear"}function ns(r){return r?"getUTCMonth":"getMonth"}function ic(r){return r?"getUTCDate":"getDate"}function au(r){return r?"getUTCHours":"getHours"}function oc(r){return r?"getUTCMinutes":"getMinutes"}function sc(r){return r?"getUTCSeconds":"getSeconds"}function lc(r){return r?"getUTCMilliseconds":"getMilliseconds"}function IF(r){return r?"setUTCFullYear":"setFullYear"}function VC(r){return r?"setUTCMonth":"setMonth"}function BC(r){return r?"setUTCDate":"setDate"}function zC(r){return r?"setUTCHours":"setHours"}function FC(r){return r?"setUTCMinutes":"setMinutes"}function GC(r){return r?"setUTCSeconds":"setSeconds"}function HC(r){return r?"setUTCMilliseconds":"setMilliseconds"}function WC(r){if(!bD(r))return Y(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function YC(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Cs=Lm,LF=/([&<>"'])/g,PF={"&":"&","<":"<",">":">",'"':""","'":"'"};function or(r){return r==null?"":(r+"").replace(LF,function(t,e){return PF[e]})}function qg(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Hr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?_a(r):r;if(isNaN(+l)){if(s)return"-"}else return nc(l,a,e)}if(t==="ordinal")return cg(r)?n(r):At(r)&&i(r)?r+"":"-";var u=qa(r);return i(u)?WC(u):cg(r)?n(r):typeof r=="boolean"?r+"":"-"}var lS=["a","b","c","d","e","f","g"],xd=function(r,t){return"{"+r+(t==null?"":t)+"}"};function $C(r,t,e){z(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function eo(r,t){return t=t||"transparent",Y(r)?r:tt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Xh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var mh=A,UC=["left","right","top","bottom","width","height"],Bi=[["width","left","right"],["height","top","bottom"]];function n0(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);c=i+p,c>a||l.newline?(i=0,c=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+e,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=c+e:o=d+e)})}var Ui=n0;st(n0,"vertical");st(n0,"horizontal");function EF(r,t,e){var a=t.width,n=t.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n);return(isNaN(i)||isNaN(parseFloat(r.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=Cs(e||0),{width:Math.max(s-i-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function pe(r,t,e){e=Cs(e||0);var a=t.width,n=t.height,i=H(r.left,a),o=H(r.top,n),s=H(r.right,a),l=H(r.bottom,n),u=H(r.width,a),f=H(r.height,n),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-i),isNaN(f)&&(f=n-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(i)&&(i=a-s-u-v),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}i=i||0,o=o||0,isNaN(u)&&(u=a-v-i-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new gt(i+e[3],o+e[0],u,f);return d.margin=e,d}function uc(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new gt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=pe(Q({width:u.width,height:u.height},t),e,a),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(i.x=v,i.y=c):(i.x+=v,i.y+=c),i===r&&r.markRedraw(),!0}function OF(r,t){return r[Bi[t][0]]!=null||r[Bi[t][1]]!=null&&r[Bi[t][2]]!=null}function nu(r){var t=r.layoutMode||r.constructor.layoutMode;return tt(t)?t:t?{type:t}:null}function Wn(r,t,e){var a=e&&e.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Bi[0],0),i=o(Bi[1],1);u(Bi[0],r,n),u(Bi[1],r,i);function o(f,h){var v={},c=0,d={},p=0,g=2;if(mh(f,function(_){d[_]=r[_]}),mh(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&p++}),a[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!c)return d;if(c>=g)return v;for(var y=0;y=0;l--)s=ht(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Lu(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},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}($t);RD(Ls,$t);Zv(Ls);SF(Ls);xF(Ls,VF);function VF(r){var t=[];return A(Ls.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return ha(e).main}),r!=="dataset"&&pt(t,"dataset")<=0&&t.unshift("dataset"),t}var Mt=Ls,XC="";typeof navigator!="undefined"&&(XC=navigator.platform||"");var xo="rgba(0, 0, 0, 0.2)",BF={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:XC.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},qC=K(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Er="original",Ne="arrayRows",Or="objectRows",Ta="keyedColumns",Vn="typedArray",KC="unknown",da="column",Ps="row",Te={Must:1,Might:2,Not:3},jC=Ct();function zF(r){jC(r).datasetMap=K()}function JC(r,t,e){var a={},n=o0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=jC(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(p,g){var y=tt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(a[y],0,m),c(i,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;mt)return r[a];return r[e-1]}function e2(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:YF(a,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function $F(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var _f,Zs,fS,hS="\0_ec_inner",UF=1,r2=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new $t(i),this._locale=new $t(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=dS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,dS(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?fS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=K(),u=a&&a.replaceMergeMainTypeMap;zF(this),A(e,function(h,v){h!=null&&(Mt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):n[v]=n[v]==null?rt(h):ht(n[v],h,!0))}),u&&u.each(function(h,v){Mt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Mt.topologicalTravel(s,Mt.getAllClassMainTypes(),f,this);function f(h){var v=HF(this,h,Gt(e[h])),c=i.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=CD(c,v,d);i5(p,h,Mt),n[h]=null,i.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;A(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",M=Mt.getClass(h,S.keyInfo.subType,!T);if(!M)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===M)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var D=B({componentIndex:w},S.keyInfo);x=new M(b,this,this,D),B(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,i.set(h,y),o.set(h,m),h==="series"&&_f(this)}this._seriesIndices||_f(this)},t.prototype.getOption=function(){var e=rt(this.option);return A(e,function(a,n){if(Mt.hasClass(n)){for(var i=Gt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!jl(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[hS],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function aG(r,t){return r.join(",")===t.join(",")}var nG=QF,Nr=A,iu=tt,pS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function bd(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,a=pS.length;e=0;p--){var g=r[p];if(s||(c=g.data.rawIndexOf(g.stackedByDimension,v)),c>=0){var y=g.data.getByRawIndex(g.stackResultDimension,c);if(h>=0&&y>0||h<=0&&y<0){h=XB(h,y),d=y;break}}}return a[0]=h,a[1]=d,a})})}var fc=function(){function r(t){this.data=t.data||(t.sourceFormat===Ta?{}:[]),this.sourceFormat=t.sourceFormat||KC,this.seriesLayoutBy=t.seriesLayoutBy||da,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;ap&&(p=_)}c[0]=d,c[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};wS=(t={},t[Ne+"_"+da]={pure:!0,appendData:i},t[Ne+"_"+Ps]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Or]={pure:!0,appendData:i},t[Ta]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Er]={appendData:i},t[Vn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return hs(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function AS(r){var t,e;return tt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Vl(r){return new xG(r)}var xG=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||i==="reset")&&(this._dirty=!1,h=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!a&&(h||c1&&a>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},bG=function(){function r(t,e){if(!At(e)){var a="";Rt(a)}this._opFn=d2[t],this._rvalFloat=qa(e)}return r.prototype.evaluate=function(t){return At(t)?this._opFn(t,this._rvalFloat):this._opFn(qa(t),this._rvalFloat)},r}(),p2=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=At(t)?t:qa(t),n=At(e)?e:qa(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=Y(t),l=Y(e);s&&(a=l?t:0),l&&(n=s?e:0)}return an?-this._resultLT:0},r}(),TG=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=qa(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=qa(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function MG(r,t){return r==="eq"||r==="ne"?new TG(r==="eq",t):Z(d2,r)?new bG(r,t):null}var AG=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Bn(t,e)},r}();function DG(r,t){var e=new AG,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==da&&Rt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Z(l,y)&&Rt(_),l[y]=m}});else for(var f=0;f65535?OG:NG}function wo(){return[1/0,-1/0]}function VG(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function IS(r,t,e,a,n){var i=m2[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&at)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,a){var n=this._chunks,i=n[t],o=[];if(!i)return o;a==null&&(a=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=c[n[0]],_=c[n[1]],S=t[n[1]][0],w=t[n[1]][1],y=0;y=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;yt[D][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,v,c=new(qs(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;df&&(f=h,v=S)}C>0&&Cf-d&&(l=f-d,s.length=l);for(var p=0;ph[1]&&(h[1]=y),v[c++]=m}return i._count=c,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(!!this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();il&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Bn(e[i],this._dimensions[i])}Ad={arrayRows:t,objectRows:function(e,a,n,i){return Bn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Bn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),_2=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(Sf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=fr(s)?Vn:Er,i=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=ct(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=ct(h.sourceHeader,v.sourceHeader),p=ct(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;n=g?[Jg(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[Jg(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&PS(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&PS(h),s.push(f),l.push(u._getVersionSign())}),a?o=RG(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[dG(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=b2(n);i>=t&&(t=i+ +(a&&(!i||ty(n)&&!n.noHeader)))}),t}return 0}function FG(r,t,e,a){var n=t.noHeader,i=HG(b2(t)),o=[],s=t.blocks||[];$e(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new p2(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,p){var g=t.valueFormatter,y=w2(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?i.html:0,a);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(i.richText):ey(o.join(""),n?e:i.html);if(n)return h;var v=qg(t.header,"ordinal",r.useUTC),c=x2(a,r.renderMode).nameStyle;return r.renderMode==="richText"?T2(r,v,c)+i.richText+h:ey('
'+or(v)+"
"+h,e)}function GG(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],F(S,function(w,x){return qg(w,z(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),v=i?"":qg(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value),p=!s||!i,g=!s&&i,y=x2(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":T2(r,v,m))+(o?"":$G(r,d,p,g,_)):ey((s?"":h)+(i?"":WG(v,!s,m))+(o?"":YG(d,p,g,_)),e)}}function kS(r,t,e,a,n,i){if(!!r){var o=w2(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function HG(r){return{html:BG[r],richText:zG[r]}}function ey(r,t){var e='
',a="margin: "+t+"px 0 0";return'
'+r+e+"
"}function WG(r,t,e){var a=t?"margin-left:2px":"";return''+or(r)+""}function YG(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+F(r,function(o){return or(o)}).join("  ")+""}function T2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function $G(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,i)}function M2(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return eo(a)}function A2(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Dd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=TD()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=RF({color:e,type:t,renderMode:a,markerId:n});return Y(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};z(e)?A(e,function(i){return B(a,i)}):B(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function D2(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=z(s),u=M2(t,e),f,h,v,c;if(o>1||l&&!o){var d=UG(s,t,e,i,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);c=f=hs(n,e,i[0]),h=p.type}else c=f=l?s[0]:s;var g=Bm(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return _e("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[_e("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Hr(_),value:f,valueType:h})].concat(v||[])})}function UG(r,t,e,a,n){var i=t.getData(),o=ga(r,function(h,v,c){var d=i.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(h){f(hs(i,e,h),h)}):A(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(_e("nameValue",{markerType:"subItem",markerColor:n,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var fn=Ct();function xf(r,t){return r.getName(t)||r.getId(t)}var _h="__universalTransitionEnabled",vc=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Vl({count:XG,reset:qG}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=fn(this).sourceManager=new _2(this);i.prepareSource();var o=this.getInitialData(e,n);ES(o,this),this.dataTask.context.data=o,fn(this).dataBeforeProcessed=o,RS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=nu(this),i=n?Is(e):{},o=this.subType;Mt.hasClass(o)&&(o+="Series"),ht(e,a.getTheme().get(this.subType)),ht(e,this.getDefaultOption()),ji(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Wn(e,i,n)},t.prototype.mergeOption=function(e,a){e=ht(this.option,e,!0),this.fillDataTextStyle(e.data);var n=nu(this);n&&Wn(this.option,e,n);var i=fn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);ES(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,fn(this).dataBeforeProcessed=o,RS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!fr(e))for(var a=["show"],n=0;nthis.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=s0.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(!!n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[xf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[_h])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){tt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,a)}},t.registerClass=function(e){return Mt.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}(Mt);ce(vc,h0);ce(vc,s0);RD(vc,Mt);function RS(r){var t=r.name;Bm(r)||(r.name=ZG(r)||t)}function ZG(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function XG(r){return r.model.getRawData().count()}function qG(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),KG}function KG(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ES(r,t){A(dg(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,st(jG,t))})}function jG(r,t){var e=ry(r);return e&&e.setOutputEnd((t||this).count()),t}function ry(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var jt=vc,c0=function(){function r(){this.group=new it,this.uid=Ds("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Fm(c0);Zv(c0);var re=c0;function ks(){var r=Ct();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var C2=Ct(),JG=ks(),d0=function(){function r(){this.group=new it,this.uid=Ds("viewChart"),this.renderTask=Vl({plan:QG,reset:t3}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||NS(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);!i||NS(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){qn(this.group,t)},r.markUpdateMethod=function(t,e){C2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function OS(r,t,e){r&&tu(r)&&(t==="emphasis"?Ka:ja)(r,e)}function NS(r,t,e){var a=Ji(r,t),n=t&&t.highlightKey!=null?bz(t.highlightKey):null;a!=null?A(Gt(a),function(i){OS(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){OS(i,e,n)})}Fm(d0);Zv(d0);function QG(r){return JG(r.model)}function t3(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&C2(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),e3[l]}var e3={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ut=d0,qh="\0__throttleOriginMethod",VS="\0__throttleRate",BS="\0__throttleType";function p0(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function h(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d=0?h():o=setTimeout(h,-s),n=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function Rs(r,t,e,a){var n=r[t];if(!!n){var i=n[qh]||n,o=n[BS],s=n[VS];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=p0(i,e,a==="debounce"),n[qh]=i,n[BS]=a,n[VS]=e}return n}}function ou(r,t){var e=r[t];e&&e[qh]&&(e.clear&&e.clear(),r[t]=e[qh])}var zS=Ct(),FS={itemStyle:Qi(kC,!0),lineStyle:Qi(PC,!0)},r3={lineStyle:"stroke",itemStyle:"fill"};function I2(r,t){var e=r.visualStyleMapper||FS[t];return e||(console.warn("Unkown style type '"+t+"'."),FS.itemStyle)}function L2(r,t){var e=r.visualDrawType||r3[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var a3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=I2(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=L2(r,a),u=o[l],f=J(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var p=r.getDataParams(d),g=B({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},Ks=new $t,n3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=I2(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Ks.option=l[a];var u=n(Ks),f=o.ensureUniqueItemVisual(s,"style");B(f,u),Ks.option.decal&&(o.setItemVisual(s,"decal",Ks.option.decal),Ks.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},i3={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),zS(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=zS(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=L2(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],h=i.getItemVisual(f,"colorFromPalette");if(h){var v=i.ensureUniqueItemVisual(f,"style"),c=a.getName(u)||u+"",d=a.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},wf=Math.PI;function o3(r,t){t=t||{},Q(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new it,a=new Tt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new It({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Tt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new qm({shape:{startAngle:-wf/2,endAngle:-wf/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:wf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:wf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var s3=function(){function r(t,e,a,n){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=K();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";$e(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var p=o.getPerformArgs(v,n.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Vl({plan:v3,reset:c3,count:p3}));c.context={model:h,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Vl({reset:l3});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=K(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";$e(!t.createOnAllSeries,c),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(h=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Vl({reset:u3,onDirty:h3})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return J(t)&&(t={overallReset:t,seriesType:g3(t)}),t.uid=Ds("stageHandler"),e&&(t.visualType=e),t},r}();function l3(r){r.overallReset(r.ecModel,r.api,r.payload)}function u3(r){return r.overallProgress&&f3}function f3(){this.agent.dirty(),this.getDownstream().dirty()}function h3(){this.agent&&this.agent.dirty()}function v3(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function c3(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Gt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?F(t,function(e,a){return P2(a)}):d3}var d3=P2(0);function P2(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ay=["symbol","symbolSize","symbolRotate","symbolOffset"],YS=ay.concat(["symbolKeepAspect"]),S3={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:At(r)?[r]:z(r)?r:null}function y0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&B3(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=F(e,function(i){return i/n}),a/=n)}return[e,a]}var z3=new Sa(!0);function Jh(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function $S(r){return typeof r=="string"&&r!=="none"}function Qh(r){var t=r.fill;return t!=null&&t!=="none"}function US(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function ZS(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function iy(r,t,e){var a=Gm(t.image,t.__image,e);if(Xv(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*oh),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function F3(r,t,e,a){var n,i=Jh(e),o=Qh(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||z3,h=t.__dirty;if(!a){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,p=i&&!!c.colorStops,g=o&&!!v.image,y=i&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=h?ny(r,v,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?ny(r,c,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?iy(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?iy(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:i=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,M;r.setLineDash&&e.lineDash&&(n=y0(t),T=n[0],M=n[1]);var D=!0;(u||h&Vo)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,a),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=M),a||(e.strokeFirst?(i&&ZS(r,e),o&&US(r,e)):(o&&US(r,e),i&&ZS(r,e))),T&&r.setLineDash([])}function G3(r,t,e){var a=t.__image=Gm(e.image,t.__image,t,t.onload);if(!(!a||!Xv(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,v=s-f;r.drawImage(a,u,f,h,v,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function H3(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Fn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=y0(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Jh(e)&&r.strokeText(n,e.x,e.y),Qh(e)&&r.fillText(n,e.x,e.y)):(Qh(e)&&r.fillText(n,e.x,e.y),Jh(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var XS=["shadowBlur","shadowOffsetX","shadowOffsetY"],qS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function B2(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){Qe(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Hi.opacity:o}(a||t.blend!==e.blend)&&(i||(Qe(r,n),i=!0),r.globalCompositeOperation=t.blend||Hi.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[ke]){if(this._disposed){this.id;return}var i,o,s;if(tt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ke]=!0,!this._model||a){var l=new nG(this._api),u=this._theme,f=this._model=new a2;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},sy);var h={seriesTransition:s,optionChanged:!0};if(n)this[qe]={silent:i,updateParams:h},this[ke]=!1,this.getZr().wakeUp();else{try{To(this),hn.update.call(this,null,h)}catch(v){throw this[qe]=null,this[ke]=!1,v}this._ssr||this._zr.flush(),this[qe]=null,this[ke]=!1,js.call(this,i),Js.call(this,i)}}},t.prototype.setTheme=function(){},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||t4&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!Pt.svgSupported){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(fx[n]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();A(zl,function(_,S){if(_.group===n){var w=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=Za.createCanvas(),y=c1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(v,function(_){var S=_.left-l,w=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Tt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(v,function(_){var S=new Ce({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a){return kd(this,"convertToPixel",e,a)},t.prototype.convertFromPixel=function(e,a){return kd(this,"convertFromPixel",e,a)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=kl(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(i=i||h.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=kl(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g0(s,l,a):Vu(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(p4,function(a){var n=function(i){var o=e.getModel(),s=i.target,l,u=a==="globalout";if(u?l={}:s&&Uo(s,function(d){var p=ot(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=B({},p.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=i,l.type=a,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(a,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(a,n,e)}),A(Bl,function(a,n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),A(["selectchanged"],function(a){e._messageCenter.on(a,function(n){this.trigger(a,n)},e)}),w3(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&LD(this.getDom(),S0,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete zl[a.id]},t.prototype.resize=function(e){if(!this[ke]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[qe]&&(i==null&&(i=this[qe].silent),n=!0,this[qe]=null),this[ke]=!0;try{n&&To(this),hn.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[ke]=!1,o}this[ke]=!1,js.call(this,i),Js.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(tt(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!ly[e]){var n=ly[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=B({},e);return a.type=Bl[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(tt(a)||(a={silent:!!a}),!!tv[e.type]&&!!this._model){if(this[ke]){this._pendingActions.push(e);return}var n=a.silent;Ed.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Pt.browser.weChat&&this._throttledZrFlush(),js.call(this,n),Js.call(this,n)}},t.prototype.updateLabelLayout=function(){zr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){To=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Pd(h,!0),Pd(h,!1),v.plan()},Pd=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_v.get("hoverLayerThreshold")&&!Pt.node&&!Pt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,d=h.get("zlevel")||0;v.eachRendered(function(p){return l(p,c,d,-1/0),!0})}}function l(h,v,c,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(rs(y))return;if(y instanceof _t&&Tz(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}lx=function(h){return new(function(v){E(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},c.prototype.enterEmphasis=function(d,p){Ka(d,p),vr(h)},c.prototype.leaveEmphasis=function(d,p){ja(d,p),vr(h)},c.prototype.enterBlur=function(d){JD(d),vr(h)},c.prototype.leaveBlur=function(d){$m(d),vr(h)},c.prototype.enterSelect=function(d){QD(d),vr(h)},c.prototype.leaveSelect=function(d){tC(d),vr(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c}(n2))(h)},Q2=function(h){function v(c,d){for(var p=0;p=0)){hx.push(e);var i=E2.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function iI(r,t){ly[r]=t}function b4(r,t,e){var a=Q3("registerMap");a&&a(r,t,e)}var T4=kG;lo(m0,a3);lo(cc,n3);lo(cc,i3);lo(m0,S3);lo(cc,x3);lo(Z2,K3);aI(o2);nI(a4,vG);iI("default",o3);Ma({type:Wi,event:Wi,update:Wi},he);Ma({type:dh,event:dh,update:dh},he);Ma({type:Rl,event:Rl,update:Rl},he);Ma({type:ph,event:ph,update:ph},he);Ma({type:El,event:El,update:El},he);rI("light",y3);rI("dark",m3);var vx=[],M4={registerPreprocessor:aI,registerProcessor:nI,registerPostInit:_4,registerPostUpdate:S4,registerUpdateLifecycle:x0,registerAction:Ma,registerCoordinateSystem:x4,registerLayout:w4,registerVisual:lo,registerTransform:T4,registerLoading:iI,registerMap:b4,registerImpl:J3,PRIORITY:v4,ComponentModel:Mt,ComponentView:re,SeriesModel:jt,ChartView:Ut,registerComponentModel:function(r){Mt.registerClass(r)},registerComponentView:function(r){re.registerClass(r)},registerSeriesModel:function(r){jt.registerClass(r)},registerChartView:function(r){Ut.registerClass(r)},registerSubTypeDefaulter:function(r,t){Mt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){YB(r,t)}};function yt(r){if(z(r)){A(r,function(t){yt(t)});return}pt(vx,r)>=0||(vx.push(r),J(r)&&(r={install:r}),r.install(M4))}function Qs(r){return r==null?0:r.length||1}function cx(r){return r}var A4=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||cx,this._newKeyGetter=n||cx,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var c=0;c1)for(var s=0;s30}var tl=tt,vn=F,R4=typeof Int32Array=="undefined"?Array:Int32Array,E4="e\0\0",dx=-1,O4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],N4=["_approximateExtent"],px,Df,el,rl,Vd,Cf,Bd,V4=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var a,n=!1;sI(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Er;if(l&&!n.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),z(i)?i=i.slice():tl(i)&&(i=B({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,tl(e)?B(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){tl(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Fg(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:vn(this.dimensions,this._getDimInfo,this),this.hostModel)),Vd(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];!J(a)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(Im(arguments)))})},r.internalField=function(){px=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new R4(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}(),Ye=V4;function zu(r,t){l0(r)||(r=u0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=K(),i=[],o=z4(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&fI(o),l=a===r.dimensionsDefine,u=l?uI(r):lI(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=K(f),v=new y2(o),c=0;c0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function z4(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;tt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function F4(r,t,e){var a=t.data;if(e||a.hasOwnProperty(r)){for(var n=0;a.hasOwnProperty(r+n);)n++;r+=n}return t.set(r,!0),r}var G4=function(){function r(t){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=t}return r}();function H4(r){var t=r.get("coordinateSystem"),e=new G4(t),a=W4[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var W4={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",fe).models[0],i=r.getReferringComponents("yAxis",fe).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Mo(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Mo(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",fe).models[0];t.coordSysDims=["single"],e.set("single",n),Mo(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",fe).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Mo(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Mo(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Mo(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Mo(r){return r.get("type")==="category"}function Y4(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;$4(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(A(i,function(m,_){Y(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:h}}function $4(r){return!sI(r.schema)}function Yn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function hI(r,t){return Yn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function U4(r,t){var e=r.get("coordinateSystem"),a=Nu.get(e),n;return t&&t.coordSysDims&&(n=F(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=rv(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Z4(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function nn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=u0(r)):(n=a.getSource(),i=n.sourceFormat===Er);var o=H4(t),s=U4(t,o),l=e.useEncodeDefaulter,u=J(l)?l:l?st(JC,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},h=zu(n,f),v=Z4(h.dimensions,e.createInvertedIndices,o),c=i?null:a.getSharedDataStore(h),d=Y4(t,{schema:h,store:c}),p=new Ye(h,t);p.setCalculationInfo(d);var g=v!=null&&X4(n)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:c,null,g),p}function X4(r){if(r.sourceFormat===Er){var t=q4(r.data||[]);return!z(ws(t))}}function q4(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Zv(vI);var on=vI,K4=0,j4=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++K4}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&F(a,J4);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!Y(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function J4(r){return tt(r)&&r.value!=null?r.value:r+""}var uy=j4;function fy(r){return r.type==="interval"||r.type==="log"}function Q4(r,t,e,a){var n={},i=r[1]-r[0],o=n.interval=wD(i/t,!0);e!=null&&oa&&(o=n.interval=a);var s=n.intervalPrecision=cI(o),l=n.niceTickExtent=[ne(Math.ceil(r[0]/o)*o,s),ne(Math.floor(r[1]/o)*o,s)];return tH(l,r),n}function zd(r){var t=Math.pow(10,Vm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,ne(e*t)}function cI(r){return fa(r)+2}function gx(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function tH(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),gx(r,0,t),gx(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function dc(r,t){return r>=t[0]&&r<=t[1]}function pc(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function gc(r,t){return r*(t[1]-t[0])+t[0]}var dI=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new uy({})),z(n)&&(n=new uy({categories:F(n,function(i){return tt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:Y(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),dc(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),pc(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(gc(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(on);on.registerClass(dI);var b0=dI,mi=ne,pI=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return dc(e,this._extent)},t.prototype.normalize=function(e){return pc(e,this._extent)},t.prototype.scale=function(e){return gc(e,this._extent)},t.prototype.setExtent=function(e,a){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(a)||(n[1]=parseFloat(a))},t.prototype.unionExtent=function(e){var a=this._extent;e[0]a[1]&&(a[1]=e[1]),this.setExtent(a[0],a[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=cI(e)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:i[1];return n[1]>f&&(e?s.push({value:mi(f+a,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks(!0),n=[],i=this.getExtent(),o=1;oi[0]&&c0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function mI(r){var t=aH(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),h=i.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=H(a.get("barWidth"),s),p=H(a.get("barMaxWidth"),s),g=H(a.get("barMinWidth")||(bI(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:M0(i),stackId:T0(a)})}),_I(e)}function _I(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=a.barMaxWidth;h&&(l[u].maxWidth=h);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=xt(i).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,o),f=H(a.gap,1),h=a.remainedWidth,v=a.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,p;A(i,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function nH(r,t,e){if(r&&t){var a=r[M0(t)];return a!=null&&e!=null?a[T0(e)]:a}}function SI(r,t){var e=yI(r,t),a=mI(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=T0(n),u=a[M0(s)][l],f=u.offset,h=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function xI(r){return{seriesType:r,plan:ks(),reset:function(t){if(!!wI(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),h=Yn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),c=iH(n,i),d=bI(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&va(w*3),b=d&&l&&va(w*3),T=d&&va(w),M=a.master.getRect(),D=v?M.width:M.height,C,I=S.getStore(),L=0;(C=_.next())!=null;){var P=I.get(h?g:o,C),k=I.get(s,C),R=c,N=void 0;h&&(N=+P-I.get(o,C));var O=void 0,V=void 0,G=void 0,W=void 0;if(v){var X=a.dataToPoint([P,k]);if(h){var at=a.dataToPoint([N,k]);R=at[0]}O=R,V=X[1]+m,G=X[0]-R,W=y,Math.abs(G)>>1;r[n][1]n&&(this._approxInterval=n);var s=If.length,l=Math.min(oH(If,this._approxInterval,0,s),s-1);this._interval=If[l][1],this._minLevelUnit=If[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return At(e)?e:+_a(e)},t.prototype.contain=function(e){return dc(this.parse(e),this._extent)},t.prototype.normalize=function(e){return pc(this.parse(e),this._extent)},t.prototype.scale=function(e){return gc(e,this._extent)},t.type="time",t}($n),If=[["second",e0],["minute",r0],["hour",Nl],["quarter-day",Nl*6],["half-day",Nl*12],["day",Ar*1.2],["half-week",Ar*3.5],["week",Ar*7],["month",Ar*31],["quarter",Ar*95],["half-year",iS/2],["year",iS]];function sH(r,t,e,a){var n=_a(t),i=_a(e),o=function(d){return sS(n,d,a)===sS(i,d,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function lH(r,t){return r/=Ar,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function uH(r){var t=30*Ar;return r/=t,r>6?6:r>3?3:r>2?2:1}function fH(r){return r/=Nl,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function yx(r,t){return r/=t?r0:e0,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function hH(r){return wD(r,!0)}function vH(r,t,e){var a=new Date(r);switch(as(t)){case"year":case"month":a[VC(e)](0);case"day":a[BC(e)](1);case"hour":a[zC(e)](0);case"minute":a[FC(e)](0);case"second":a[GC(e)](0),a[HC(e)](0)}return a.getTime()}function cH(r,t,e,a){var n=1e4,i=OC,o=0;function s(D,C,I,L,P,k,R){for(var N=new Date(C),O=C,V=N[L]();O1&&k===0&&I.unshift({value:I[0].value-O})}}for(var k=0;k=a[0]&&m<=a[1]&&h++)}var _=(a[1]-a[0])/t;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===i[c]))break}f=[]}}}for(var S=zt(F(u,function(D){return zt(D,function(C){return C.value>=a[0]&&C.value<=a[1]&&!C.notAdd})}),function(D){return D.length>0}),w=[],x=S.length-1,c=0;c0;)i*=10;var s=[ne(gH(a[0]/i)*i),ne(pH(a[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Fl.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=cr(e)/cr(this.base),dc(e,this._extent)},t.prototype.normalize=function(e){return e=cr(e)/cr(this.base),pc(e,this._extent)},t.prototype.scale=function(e){return e=gc(e,this._extent),Lf(this.base,e)},t.type="log",t}(on),AI=A0.prototype;AI.getMinorTicks=Fl.getMinorTicks;AI.getLabel=Fl.getLabel;function Pf(r,t){return dH(r,fa(t))}on.registerClass(A0);var yH=A0,mH=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[SH[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=_H[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),_H={min:"_determinedMin",max:"_determinedMax"},SH={min:"_dataMin",max:"_dataMax"};function DI(r,t,e){var a=r.rawExtentInfo;return a||(a=new mH(r,t,e),r.rawExtentInfo=a,a)}function kf(r,t){return t==null?null:Xl(t)?NaN:r.parse(t)}function CI(r,t){var e=r.type,a=DI(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=yI("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=mI(s),f=xH(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function xH(r,t,e,a){var n=e.axis.getExtent(),i=n[1]-n[0],o=nH(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/i,v=f/h-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function vs(r,t){var e=t,a=CI(r,e),n=a.extent,i=e.get("splitNumber");r instanceof yH&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function yc(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new b0({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new MI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(on.getClass(t)||$n)}}function wH(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Fu(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(n,i){return r.scale.getFormattedLabel(n,i,a)}}(t):Y(t)?function(a){return function(n){var i=r.scale.getLabel(n),o=a.replace("{value}",i!=null?i:"");return o}}(t):J(t)?function(a){return function(n,i){return e!=null&&(i=n.value-e),a(D0(r,n),i,n.level!=null?{level:n.level}:null)}}(t):function(a){return r.scale.getLabel(a)}}function D0(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function bH(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var a,n,i=e.getExtent();e instanceof b0?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Fu(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;fr[1]&&(r[1]=n[1])})}var Gu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),AH=1e-8;function _x(r,t){return Math.abs(r-t)n&&(a=o,n=l)}if(a)return CH(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Sx(s.exterior,n,i,e):A(s.points,function(l){Sx(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new gt(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function PH(r,t){return r=LH(r),F(zt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new xx(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new xx(l[0],l.slice(1)))});break;case"LineString":i.push(new bx([n.coordinates]));break;case"MultiLineString":i.push(new bx(n.coordinates))}var s=new PI(a[t||"name"],i,a.cp);return s.properties=a,s})}var fu=Ct();function kH(r){return r.type==="category"?EH(r):NH(r)}function RH(r,t){return r.type==="category"?OH(r,t):{ticks:F(r.scale.getTicks(),function(e){return e.value})}}function EH(r){var t=r.getLabelModel(),e=RI(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function RI(r,t){var e=EI(r,"labels"),a=C0(t),n=OI(e,a);if(n)return n;var i,o;return J(a)?i=BI(r,a):(o=a==="auto"?VH(r):a,i=VI(r,o)),NI(e,a,{labels:i,labelCategoryInterval:o})}function OH(r,t){var e=EI(r,"ticks"),a=C0(t),n=OI(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),J(a))i=BI(r,a,!0);else if(a==="auto"){var s=RI(r,r.getLabelModel());o=s.labelCategoryInterval,i=F(s.labels,function(l){return l.tickValue})}else o=a,i=VI(r,o,!0);return NI(e,a,{ticks:i,tickCategoryInterval:o})}function NH(r){var t=r.scale.getTicks(),e=Fu(r);return{labels:F(t,function(a,n){return{level:a.level,formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function EI(r,t){return fu(r)[t]||(fu(r)[t]=[])}function OI(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(a)),h=Math.abs(u*Math.sin(a)),v=0,c=0;l<=i[1];l+=s){var d=0,p=0,g=Iu(e({value:l}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,v=Math.max(v,d,7),c=Math.max(c,p,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=fu(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function zH(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function VI(r,t,e){var a=Fu(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=II(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);c&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function BI(r,t,e){var a=r.scale,n=Fu(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),i}var Tx=[0,1],FH=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return SD(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Mx(a,n.count())),Nt(t,Tx,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Mx(a,n.count()));var i=Nt(t,a,Tx,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=RH(this,e),n=a.ticks,i=F(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return GH(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=F(a,function(i){return F(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return kH(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(){return BH(this)},r}();function Mx(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function GH(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],o=t[1]={coord:i[0]};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s},t.push(o)}var h=i[0]>i[1];v(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&v(i[0],t[0].coord)&&t.unshift({coord:i[0]}),v(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&v(o.coord,i[1])&&t.push({coord:i[1]});function v(c,d){return c=ne(c),d=ne(d),h?c>d:cn&&(n+=al);var c=Math.atan2(s,o);if(c<0&&(c+=al),c>=a&&c<=n||c+al>=a&&c+al<=n)return l[0]=f,l[1]=h,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function nv(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,h=a-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function zI(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Fr=[];function $H(r,t,e){var a=zI(t.x,t.y,t.width,t.height,r.x,r.y,Fr);return e.set(Fr[0],Fr[1]),a}function UH(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,h=r.x,v=r.y,c=0;c0){t=t/180*Math.PI,Wr.fromArray(r[0]),Yt.fromArray(r[1]),oe.fromArray(r[2]),ft.sub(ca,Wr,Yt),ft.sub(ua,oe,Yt);var e=ca.len(),a=ua.len();if(!(e<.001||a<.001)){ca.scale(1/e),ua.scale(1/a);var n=ca.dot(ua),i=Math.cos(t);if(i1&&ft.copy(We,oe),We.toArray(r[1])}}}}function ZH(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Wr.fromArray(r[0]),Yt.fromArray(r[1]),oe.fromArray(r[2]),ft.sub(ca,Yt,Wr),ft.sub(ua,oe,Yt);var a=ca.len(),n=ua.len();if(!(a<.001||n<.001)){ca.scale(1/a),ua.scale(1/n);var i=ca.dot(t),o=Math.cos(e);if(i=l)ft.copy(We,oe);else{We.scaleAndAdd(ua,s/Math.tan(Math.PI/2-f));var h=oe.x!==Yt.x?(We.x-Yt.x)/(oe.x-Yt.x):(We.y-Yt.y)/(oe.y-Yt.y);if(isNaN(h))return;h<0?ft.copy(We,Yt):h>1&&ft.copy(We,oe)}We.toArray(r[1])}}}}function Dx(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function XH(r,t){var e=t.smooth,a=t.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=Mn(a[0],a[1]),i=Mn(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=sh([],a[1],a[0],o/n),l=sh([],a[1],a[2],o/i),u=sh([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f0&&i&&w(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=p.rect[t]-a,m=n-g.rect[t]-g.rect[e]}function S(T,M,D){if(T<0){var C=Math.min(M,-T);if(C>0){w(C*D,0,o);var I=C+T;I<0&&x(-I*D,1)}else x(-T*D,1)}}function w(T,M,D){T!==0&&(u=!0);for(var C=M;C0)for(var I=0;I0;I--){var R=D[I-1]*k;w(-R,I,o)}}}function b(T){var M=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),C=0;C0?w(D,0,C+1):w(-D,o-C-1,o),T-=D,T<=0)return}return u}function qH(r,t,e,a){return HI(r,"x","width",t,e,a)}function WI(r,t,e,a){return HI(r,"y","height",t,e,a)}function YI(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new gt(0,0,0,0);function a(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var n=0;n=0&&a.attr(i.oldLayoutSelect),pt(v,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Dt(a,u,e,l)}else if(a.attr(u),!As(a).valueAnimation){var h=ct(a.style.opacity,1);a.style.opacity=0,qt(a,{style:{opacity:h}},e,l)}if(i.oldLayout=u,a.states.select){var c=i.oldLayoutSelect={};Rf(c,u,Ef),Rf(c,a.states.select,Ef)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Rf(d,u,Ef),Rf(d,a.states.emphasis,Ef)}LC(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=JH(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Dt(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,qt(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}(),tW=QH,Wd=Ct();function eW(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=Wd(e).labelManager;n||(n=Wd(e).labelManager=new tW),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=Wd(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var Yd=Math.sin,$d=Math.cos,$I=Math.PI,Si=Math.PI*2,rW=180/$I,aW=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=Ln(h-Si)||(f?u>=Si:-u>=Si),c=u>0?u%Si:u%Si+Si,d=!1;v?d=!0:Ln(h)?d=!1:d=c>=$I==!!f;var p=t+a*$d(o),g=e+n*Yd(o);this._start&&this._add("M",p,g);var y=Math.round(i*rW);if(v){var m=1/this._p,_=(f?1:-1)*(Si-m);this._add("A",a,n,y,1,+f,t+a*$d(o+_),e+n*Yd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*$d(s),w=e+n*Yd(s);this._add("A",a,n,y,+d,+f,S,w)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,n,i,o,s,l,u){for(var f=[],h=this._p,v=1;v"}function vW(r){return""}function P0(r,t){t=t||{};var e=t.newline?` `:"";function a(n){var i=n.children,o=n.tag,s=n.attrs;return hW(o,s)+(n.text||"")+(i?""+e+F(i,function(l){return a(l)}).join(e)+e:"")+vW(o)}return a(r)}function cW(r,t,e){e=e||{};var a=e.newline?` `:"",n=" {"+a,i=a+"}",o=F(xt(r),function(l){return l+n+F(xt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=F(xt(t),function(l){return"@keyframes "+l+n+F(xt(t[l]),function(u){return u+n+F(xt(t[l][u]),function(f){var h=t[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":[""].join(a)}function cy(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Ix(r,t,e,a){return ye("svg","root",{width:r,height:t,xmlns:ZI,"xmlns:xlink":XI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var Lx={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Ti="transform-origin";function dW(r,t,e){var a=B({},r.shape);B(a,t),r.buildPath(e,a);var n=new UI;return n.reset(uD(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function pW(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Ti]=e+"px "+a+"px")}var gW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KI(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function yW(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=cy(e.zrId);u.animation=!0,mc(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=xt(f),c=v.length;if(!!c){o=v[c-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=KI(n,e);return i.replace(o,s)}}function Px(r){return Y(r)?Lx[r]?"cubic-bezier("+Lx[r]+")":km(r)?r:"":""}function mc(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof Km){var s=yW(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var mt=KI(b,e);return mt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}var hu=Math.round;function jI(r){return r&&Y(r.src)}function JI(r){return r&&J(r.toDataURL)}function k0(r,t,e,a){lW(function(n,i){var o=n==="fill"||n==="stroke";o&&cB(i)?MW(t,r,n,a):o&&vB(i)?AW(e,r,n,a):r[n]=i},t,e,!1),TW(e,r,a)}function kx(r){return Ln(r[0]-1)&&Ln(r[1])&&Ln(r[2])&&Ln(r[3]-1)}function mW(r){return Ln(r[4])&&Ln(r[5])}function R0(r,t,e){if(t&&!(mW(t)&&kx(t))){var a=e?10:1e4;r.transform=kx(t)?"translate("+hu(t[4]*a)/a+" "+hu(t[5]*a)/a+")":oB(t)}}function Rx(r,t,e){for(var a=r.points,n=[],i=0;ii?(d=e[l+1]==null?null:e[l+1].elm,rL(r,d,e,n,l)):ov(r,t,a,i))}function zo(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(E0(r,t),dy(t.text)?oa(a)&&oa(n)?a!==n&&PW(e,a,n):oa(n)?(oa(r.text)&&Ud(e,""),rL(e,null,n,0,n.length-1)):oa(a)?ov(e,a,0,a.length-1):oa(r.text)&&Ud(e,""):r.text!==t.text&&(oa(a)&&ov(e,a,0,a.length-1),Ud(e,t.text)))}function kW(r,t){if(xl(r,t))zo(r,t);else{var e=r.elm,a=tL(e);vu(t),a!==null&&(Pi(a,t.elm,eL(e)),ov(a,[r],0,0))}return t}var RW=0,EW=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Fx(),this.configLayer=Fx(),this.storage=e,this._opts=a=B({},a),this.root=t,this._id="zr"+RW++,this._oldVNode=Ix(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=qI("svg");E0(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",kW(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Ox(t,cy(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._backgroundColor,n=this._width,i=this._height,o=cy(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var s=[];if(a&&a!=="none"){var l=fs(a),u=l.color,f=l.opacity;this._bgVNode=ye("rect","bg",{width:n,height:i,x:"0",y:"0",id:"0",fill:u,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=ye("g","main",{},[]);this._paintList(e,o,h?h.children:s),h&&s.push(h);var v=F(xt(o.defs),function(p){return o.defs[p]});if(v.length&&s.push(ye("defs","defs",{},v)),t.animation){var c=cW(o.cssNodes,o.cssAnims,{newline:!0});if(c){var d=ye("style","stl",{},[],c);s.push(d)}}return Ix(n,i,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},P0(this.renderToVNode({animation:ct(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ct(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var a=fs(t),n=a.color,i=a.opacity;e.elm.setAttribute("fill",n),i<1&&e.elm.setAttribute("fill-opacity",i)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,f=0;f=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var D=c.dpr,C=0;C0&&t>n[0]){for(l=0;lt);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n0?Of:0),this._needsManuallyCompositing),f.__builtin__||Dm("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),n.__dirty&sr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?ht(a[t],e,!0):a[t]=e;for(var n=0;n-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(jt),$W=YW;function cs(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=hs(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o=0&&a.push(t[i])}return a.join(" ")}var UW=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o){this.removeAll();var s=ve(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=ZW,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ka(this.childAt(0))},t.prototype.downplay=function(){ja(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e){var a=this.childAt(0);a.draggable=e,a.cursor=e?"move":a.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):Dt(v,c,s,a),qr(v)}if(this._updateCommon(e,a,l,n,i),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,qt(v,c,s,a)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,h,v,c,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,h=i.selectItemStyle,v=i.focus,c=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=be(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Es(e.getItemVisual(a,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(a,"style"),b=x.fill;if(s instanceof Ce){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(a,"liftZ"),D=this._z2;M!=null?D==null&&(this._z2=s.z2,s.z2+=M):D!=null&&(s.z2=D,this._z2=null);var C=o&&o.useNameLabel;ze(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:b,defaultOpacity:x.opacity});function I(k){return C?e.getName(k):cs(e,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");if(L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f,g){var P=Math.max(At(g)?g:1.1,3/this._sizeY);L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P}this.setSymbolScale(1),ie(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=ot(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Hn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Hn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Bu(e.getItemVisual(a,"symbolSize"))},t}(it);function ZW(r,t){this.parent.drift(r,t)}var Hu=UW;function Xd(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Wx(r){return r!=null&&!tt(r)&&(r={isIgnore:r}),r||{}}function Yx(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:be(t),cursorStyle:t.get("cursor")}}var XW=function(){function r(t){this.group=new it,this._SymbolCtor=t||Hu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Wx(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Yx(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};i||a.removeAll(),t.diff(i).add(function(h){var v=f(h);if(Xd(t,v,h,e)){var c=new o(t,h,l,u);c.setPosition(v),t.setItemGraphicEl(h,c),a.add(c)}}).update(function(h,v){var c=i.getItemGraphicEl(v),d=f(h);if(!Xd(t,d,h,e)){a.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)a.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?c.attr(y):Dt(c,y,n)}a.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=i.getItemGraphicEl(h);v&&v.fadeOut(function(){a.remove(v)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Yx(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=Wx(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0?e=a[0]:a[1]<0&&(e=a[1]),e}function iL(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function KW(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function jW(r,t,e,a,n,i,o,s){for(var l=KW(r,t),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=nL(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||p<0)break;if(Zi(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var w=p+i,x=t[w*2],b=t[w*2+1];x===y&&b===m&&g=a||Zi(x,b))c=y,d=m;else{D=x-u,C=b-f;var P=y-u,k=x-y,R=m-f,N=b-m,O=void 0,V=void 0;if(s==="x"){O=Math.abs(P),V=Math.abs(k);var G=D>0?1:-1;c=y-G*O*o,d=m,I=y+G*V*o,L=m}else if(s==="y"){O=Math.abs(R),V=Math.abs(N);var W=C>0?1:-1;c=y,d=m-W*O*o,I=y,L=m+W*V*o}else O=Math.sqrt(P*P+R*R),V=Math.sqrt(k*k+N*N),M=V/(V+O),c=y-D*o*(1-M),d=m-C*o*(1-M),I=y+D*o*M,L=m+C*o*M,I=cn(I,dn(x,y)),L=cn(L,dn(b,m)),I=dn(I,cn(x,y)),L=dn(L,cn(b,m)),D=I-y,C=L-m,c=y-D*O/V,d=m-C*O/V,c=cn(c,dn(u,y)),d=cn(d,dn(f,m)),c=dn(c,cn(u,y)),d=dn(d,cn(f,m)),D=y-c,C=m-d,I=y+D*V/O,L=m+C*V/O}r.bezierCurveTo(h,v,c,d,y,m),h=I,v=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var oL=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),JW=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oL},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Zi(n[o*2-2],n[o*2-1]);o--);for(;i=0){var S=u?(d-l)*_+l:(c-s)*_+s;return u?[e,S]:[S,e]}s=c,l=d;break;case o.C:c=i[h++],d=i[h++],p=i[h++],g=i[h++],y=i[h++],m=i[h++];var w=u?Eh(s,c,p,y,e,f):Eh(l,d,g,m,e,f);if(w>0)for(var x=0;x=0){var S=u?ge(l,d,g,m,b):ge(s,c,p,y,b);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(_t),QW=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(oL),sL=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new QW},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Zi(n[s*2-2],n[s*2-1]);s--);for(;ot){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function r6(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(!!i){var l=t.getAxis(n),u=F(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=e6(u,n==="x"?e.getWidth():e.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[c-1].coord+d,y=g-p;if(y<.001)return"transparent";A(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new ku(0,0,0,0,v,!0);return m[n]=p,m[n+"2"]=g,m}}}function a6(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(!!i&&!(n&&n6(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function n6(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;oa)return!1;return!0}function i6(r,t){return isNaN(r)||isNaN(t)}function o6(r){for(var t=r.length/2;t>0&&i6(r[t*2-2],r[t*2-1]);t--);return t-1}function qx(r,t){return[r[t*2],r[t*2+1]]}function s6(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function fL(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}ot(p).seriesIndex=e.seriesIndex,ie(p,N,O,V);var W=Xx(e.get("smooth")),X=e.get("smoothMonotone");if(p.setShape({smooth:W,smoothMonotone:X,connectNulls:T}),g){var at=l.getCalculationInfo("stackedOnSeries"),dt=0;g.useStyle(Q(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),at&&(dt=Xx(at.get("smooth"))),g.setShape({smooth:W,stackedOnSmooth:dt,smoothMonotone:X,connectNulls:T}),De(g,e,"areaStyle"),ot(g).seriesIndex=e.seriesIndex,ie(g,N,O,V)}var Et=function(kt){i._changePolyState(kt)};l.eachItemGraphicEl(function(kt){kt&&(kt.onHoverStateChange=Et)}),this._polyline.onHoverStateChange=Et,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=C,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,a){ot(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Ji(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=e.get("zlevel"),c=e.get("z");u=new Hu(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ut.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Ji(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ut.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Hh(this._polyline,e),a&&Hh(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new JW({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new sL({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");J(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=J(h)?h(null):h;e.eachItemGraphicEl(function(c,d){var p=c;if(p){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,w=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var T=J(h)?h(d):f*b+v,M=p.getSymbolPath(),D=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(fL(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new It({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=o6(l);f>=0&&(ze(s,be(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?aL(o,c):cs(o,h)},enableTextSetter:!0},l6(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var h=n.getLayout("points"),v=n.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),b=y?"x":"y",T=s6(h,S,b),M=T.range,D=M[1]-M[0],C=void 0;if(D>=1){if(D>1&&!c){var I=qx(h,M[0]);u.attr({x:I[0]+w,y:I[1]+x}),o&&(C=v.getRawValue(M[0]))}else{var I=f.getPointOn(S,b);I&&u.attr({x:I[0]+w,y:I[1]+x});var L=v.getRawValue(M[0]),P=v.getRawValue(M[1]);o&&(C=PD(n,d,L,P,T.t))}i.lastFrameIndex=M[0]}else{var k=e===1||i.lastFrameIndex>0?M[0]:0,I=qx(h,k);o&&(C=v.getRawValue(k)),u.attr({x:I[0]+w,y:I[1]+x})}o&&As(u).setLabelText(C)}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=jW(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(c=pn(v.current,n,o,l),d=pn(v.stackedOnCurrent,n,o,l),p=pn(v.next,n,o,l),g=pn(v.stackedOnNext,n,o,l)),Zx(c,p)>3e3||f&&Zx(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:p}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),Dt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Dt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=a.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){i==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/c));var d=void 0;Y(i)?d=h6[i]:J(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/c,d,v6))}}}}}function c6(r){r.registerChartView(f6),r.registerSeriesModel($W),r.registerLayout(Yu("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hL("line"))}var vL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return nn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var a=this.coordinateSystem;if(a&&a.clampData){var n=a.dataToPoint(a.clampData(e)),i=this.getData(),o=i.getLayout("offset"),s=i.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return n[l]+=o+s/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(jt);jt.registerClass(vL);var sv=vL,d6=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return nn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Kn(sv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(sv),p6=d6,g6=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),y6=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new g6},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,h=a.endAngle,v=a.clockwise,c=Math.PI*2,d=v?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(!!this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){eu(i,e,ot(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Ut),Kx={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=Kd(t.x,r.x),s=jd(t.x+t.width,n),l=Kd(t.y,r.y),u=jd(t.y+t.height,i),f=sn?s:o,t.y=h&&l>i?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=jd(t.r,r.r),i=Kd(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},jx={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new Tt({shape:B({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?lv:tr,f=new u({shape:a,z2:1});f.name="item";var h=cL(n);if(f.calculateTextPosition=m6(h,{isRoundCap:u===lv}),i){var v=f.shape,c=n?"r":"endAngle",d={};v[c]=n?0:a.startAngle,d[c]=a[c],(s?Dt:qt)(f,{shape:d},i)}return f}};function w6(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function Jx(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Dt:qt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Dt:qt)(e,{shape:u},f,n)}function Qx(r,t){for(var e=0;e0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function M6(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function cL(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function ew(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");u&&r.attr("cursor",u);var f=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",h=be(a);ze(r,h,{labelFetcher:i,labelDataIndex:e,defaultText:cs(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var v=r.getTextContent();if(s&&v){var c=a.get(["label","position"]);r.textConfig.inside=c==="middle"?!0:null,_6(r,c==="outside"?f:c,cL(o),a.get(["label","rotate"]))}IC(v,h,i.getRawValue(e),function(p){return aL(t,p)});var d=a.getModel(["emphasis"]);ie(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),De(r,a),M6(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function A6(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var D6=function(){function r(){}return r}(),rw=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new D6},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f=0?e:null},30,!1);function C6(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=i.length/3;f=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function dL(r,t,e){if(uo(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function I6(r,t,e){var a=r.type==="polar"?tr:Tt;return new a({shape:dL(t,e,r),silent:!0,z2:0})}var L6=x6;function P6(r){r.registerChartView(L6),r.registerSeriesModel(p6),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,st(SI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hL("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var zf=Math.PI*2,iw=Math.PI/180;function pL(r,t){return pe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function gL(r,t){var e=pL(r,t),a=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]),z(a)||(a=[a,a]);var i=H(e.width,t.getWidth()),o=H(e.height,t.getHeight()),s=Math.min(i,o),l=H(a[0],i)+e.x,u=H(a[1],o)+e.y,f=H(n[0],s/2),h=H(n[1],s/2);return{cx:l,cy:u,r0:f,r:h}}function k6(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=pL(a,e),s=gL(a,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-a.get("startAngle")*iw,c=a.get("minAngle")*iw,d=0;n.each(i,function(D){!isNaN(D)&&d++});var p=n.getSum(i),g=Math.PI/(p||d)*2,y=a.get("clockwise"),m=a.get("roseType"),_=a.get("stillShowZeroSum"),S=n.getDataExtent(i);S[0]=0;var w=zf,x=0,b=v,T=y?1:-1;if(n.setLayout({viewRect:o,r:f}),n.each(i,function(D,C){var I;if(isNaN(D)){n.setItemLayout(C,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:f});return}m!=="area"?I=p===0&&_?g:D*g:I=zf/d,Ie?y:g,w=Math.abs(_.label.y-e);if(w>=S.maxY){var x=_.label.x-t-_.len2*n,b=a+_.len,T=Math.abs(x)r.unconstrainedWidth?null:c:null;a.setStyle("width",d)}var p=a.getBoundingRect();i.width=p.width;var g=(a.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-h)/2}}}function Jd(r){return r.position==="center"}function O6(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*R6,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}t.each(function(x){var b=t.getItemGraphicEl(x),T=b.shape,M=b.getTextContent(),D=b.getTextGuideLine(),C=t.getItemModel(x),I=C.getModel("label"),L=I.get("position")||C.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),k=I.get("alignTo"),R=H(I.get("edgeDistance"),u),N=I.get("bleedMargin"),O=C.getModel("labelLine"),V=O.get("length");V=H(V,u);var G=O.get("length2");if(G=H(G,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":X>0?"left":"right"}var ae=Math.PI,te=0,Ie=I.get("rotate");if(At(Ie))te=Ie*(ae/180);else if(L==="center")te=0;else if(Ie==="radial"||Ie===!0){var Aa=X<0?-W+ae:-W;te=Aa}else if(Ie==="tangential"&&L!=="outside"&&L!=="outer"){var Ze=Math.atan2(X,at);Ze<0&&(Ze=ae*2+Ze);var Ku=at>0;Ku&&(Ze=ae+Ze),te=Ze-ae}if(i=!!te,M.x=dt,M.y=Et,M.rotation=te,M.setStyle({verticalAlign:"middle"}),nt){M.setStyle({align:mt});var Ic=M.states.select;Ic&&(Ic.x+=M.x,Ic.y+=M.y)}else{var sn=M.getBoundingRect().clone();sn.applyTransform(M.getComputedTransform());var R_=(M.style.margin||0)+2.1;sn.y-=R_/2,sn.height+=R_,e.push({label:M,labelLine:D,position:L,len:V,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ft(X,at),linePoints:kt,textAlign:mt,labelDistance:P,labelAlignTo:k,edgeDistance:R,bleedMargin:N,rect:sn,unconstrainedWidth:sn.width,labelStyleWidth:M.style.width})}b.setTextConfig({inside:nt})}}),!i&&r.get("avoidLabelOverlap")&&E6(e,a,n,l,u,v,f,h);for(var p=0;p0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=i.r0}},t.type="pie",t}(Ut),B6=V6;function Os(r,t,e){t=z(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=zu(a,t).dimensions,i=new Ye(n,r);return i.initData(a,e),i}var z6=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}(),Uu=z6,F6=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uu(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Os(this,{coordDimensions:["value"],encodeDefaulter:st(i0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=[];return a.each(a.mapDimension("value"),function(o){i.push(o)}),n.percent=ZB(i,e,a.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){ji(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(jt),G6=F6;function H6(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(At(o)&&!isNaN(o)&&o<0)})}}}function W6(r){r.registerChartView(B6),r.registerSeriesModel(G6),V2("pie",r.registerAction),r.registerLayout(st(k6,"pie")),r.registerProcessor($u("pie")),r.registerProcessor(H6("pie"))}var Y6=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return nn(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(jt),$6=Y6,mL=4,U6=function(){function r(){}return r}(),Z6=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new U6},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]=0;u--){var f=u*2,h=i[f]-s/2,v=i[f+1]-l/2;if(e>=h&&a>=v&&e<=h+s&&a<=v+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,h=-1/0,v=0;v=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),q6=X6,K6=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Yu("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new q6:new Wu,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ut),j6=K6,J6=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Mt),Q6=J6,gy=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fe).models[0]},t.type="cartesian2dAxis",t}(Mt);ce(gy,Gu);var _L={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},tY=ht({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_L),O0=ht({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},_L),eY=ht({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},O0),rY=Q({logBase:10},O0),SL={category:tY,value:O0,time:eY,log:rY},aY={value:1,category:1,time:1,log:1};function ds(r,t,e,a){A(aY,function(n,i){var o=ht(ht({},SL[i],!0),a,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=nu(this),c=v?Is(f):{},d=h.getTheme();ht(f,d.get(i+"Axis")),ht(f,this.getDefaultOption()),f.type=sw(f),v&&Wn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=uy.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",sw)}function sw(r){return r.type||(r.data?"category":"value")}var nY=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),zt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),iY=nY,yy=["x","y"];function lw(r){return r.type==="interval"||r.type==="time"}var oY=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=yy,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!lw(e)||!lw(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-n[0]*f,c=o[1]-i[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=xs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Me(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a){var n=[];if(this._invTransform)return Me(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(a[0],a[1]),o=Math.max(e[0],e[1])-n,s=Math.max(a[0],a[1])-i;return new gt(n,i,o,s)},t}(iY),sY=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Jr),lY=sY;function my(r,t,e){e=e||{};var a=r.coordinateSystem,n=t.axis,i={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=a.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,d=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[v.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),xe(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function uw(r){return r.get("coordinateSystem")==="cartesian2d"}function fw(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,fe).models[0];t[a]=i}),t}var Qd=Math.log;function xL(r,t,e){var a=$n.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,!0),o=n.length-1,s=a.getInterval.call(e),l=CI(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=Qd(r.base);u=[Qd(u[0])/v,Qd(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=a.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=a.getInterval.call(r),p=u[0],g=u[1];if(f&&h)d=(g-p)/o;else if(f)for(g=u[0]+d*o;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=zd(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=zd(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=ne(g-m),p<0&&u[0]>=0?(p=0,g=ne(m)):g>0&&u[1]<=0&&(g=0,p=-ne(m))}var _=(n[0].value-i[0].value)/s,S=(n[o].value-i[o].value)/s;a.setExtent.call(r,p+d*_,g+d*S),a.setInterval.call(r,d),(_||S)&&a.setNiceExtent.call(r,p+d,g-d)}var uY=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yy,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=xt(o),u=l.length;if(!!u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,p=c.scale;fy(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(vs(p,d),fy(p)&&(s=c))}f.length&&(s||(s=f.pop(),vs(s.scale,s.model)),A(f,function(g){xL(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){hw(a,"y",o,i)}),A(a.y,function(o){hw(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=t.getBoxLayoutParams(),i=!a&&t.get("containLabel"),o=pe(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=bH(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),fY(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}tt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n0?"top":"bottom",i="center"):Fh(n-kn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),cw={axisLine:function(r,t,e,a){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var i=t.axis.getExtent(),o=a.transform,s=[i[0],0],l=[i[1],0];o&&(Me(s,s,o),Me(l,l,o));var u=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new we({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var v=t.get(["axisLine","symbolSize"]);Y(h)&&(h=[h,h]),(Y(v)||At(v))&&(v=[v,v]);var c=Es(t.get(["axisLine","symbolOffset"])||0,v),d=v[0],p=v[1];A([{rotate:r.rotation+Math.PI/2,offset:c[0],r:0},{rotate:r.rotation-Math.PI/2,offset:c[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(h[y]!=="none"&&h[y]!=null){var m=ve(h[y],-d/2,-p/2,d,p,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,a){var n=dY(e,a,t,r),i=gY(e,a,t,r);if(cY(t,i,n),pY(e,a,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=GI(F(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));YI(o)}},axisName:function(r,t,e,a){var n=xe(r.axisName,t.get("name"));if(!!n){var i=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,pw(i)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*kn/180);var d;pw(i)?v=Xi.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=vY(r.rotation,i,c||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(v.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=xe(r.nameTruncateMaxWidth,g.maxWidth,d),_=new It({x:h[0],y:h[1],rotation:v.rotation,silent:Xi.isLabelSilent(t),style:Kt(s,{text:n,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Ms({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var S=Xi.makeAxisEventDataBase(t);S.targetType="axisName",S.name=n,ot(_).eventData=S}a.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function vY(r,t,e,a){var n=xD(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Fh(n-kn/2)?(o=l?"bottom":"top",i="center"):Fh(n-kn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",nkn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function cY(r,t,e){if(!II(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],v=e[e.length-2];a===!1?(dr(i),dr(u)):dw(i,o)&&(a?(dr(o),dr(f)):(dr(i),dr(u))),n===!1?(dr(s),dr(h)):dw(l,s)&&(n?(dr(l),dr(v)):(dr(s),dr(h)))}}function dr(r){r&&(r.ignore=!0)}function dw(r,t){var e=r&&r.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(!(!e||!a)){var n=$v([]);return oo(n,n,-r.rotation),e.applyTransform(Wa([],n,r.getLocalTransform())),a.applyTransform(Wa([],n,t.getLocalTransform())),e.intersect(a)}}function pw(r){return r==="middle"||r==="center"}function wL(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l=0||r===t}function wY(r){var t=N0(r);if(!!t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=_y(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=Q({color:d.color},l));var g=ht(rt(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!1);if(u||(g.name=""),Y(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else J(f)&&(g.name=f(g.name,g));var m=new $t(g,null,this.ecModel);return ce(m,Gu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ht({lineStyle:{color:"#bbb"}},nl.axisLine),axisLabel:Ff(nl.axisLabel,!1),axisTick:Ff(nl.axisTick,!1),splitLine:Ff(nl.splitLine,!0),splitArea:Ff(nl.splitArea,!0),indicator:[]},t}(Mt),BY=VY,zY=["axisLine","axisTickLabel","axisName"],FY=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes(),i=F(n,function(o){var s=o.model.get("showName")?o.name:"",l=new Qa(o.model,{axisName:s,position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A(i,function(o){A(zY,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),d=z(v)?v:[v],p=z(c)?c:[c],g=[],y=[];function m(k,R,N){var O=N%R.length;return k[O]=k[O]||[],O}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,w=a.cy,x=0;x<_.length;x++){if(f){var b=m(g,d,x);g[b].push(new xa({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,p,x);y[b].push(new Qv({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,M=F(n,function(k,R){var N=k.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),F(N,function(O){return a.coordToPoint(O.coord,R)})}),D=[],x=0;x<=T;x++){for(var C=[],I=0;I3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;rp(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(i),v=(i>0?1:-1)*(h>3?.4:h>1?.15:.05);rp(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!xw(this._zr,"globalPan")){var a=e.pinchScale>1?1.1:1/1.1;rp(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(Rr);function rp(r,t,e,a,n){r.pointerChecker&&r.pointerChecker(a,n.originX,n.originY)&&(Xa(a.event),CL(r,t,e,a,n))}function CL(r,t,e,a,n){n.isAvailableBehavior=U(xh,null,e,a),r.trigger(t,n)}function xh(r,t,e){var a=e[r];return!r||a&&(!Y(a)||t.event[a+"Key"])}var Zu=KY;function B0(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function z0(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(a-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var jY={axisPointer:1,tooltip:1,brush:1};function Sc(r,t,e){var a=t.getComponentByElement(r.topTarget),n=a&&a.coordinateSystem;return a&&a!==e&&!jY.hasOwnProperty(a.mainType)&&n&&n.model!==e}function IL(r){if(Y(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var ap,uv={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ww=xt(uv),fv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},bw=xt(fv),JY=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=IL(t);this._defsUsePending=[];var n=new it;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),nr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;e$(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=xc(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=PL(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var c=n;n=new it,n.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Tt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:i}},r.prototype._parseNode=function(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=ap[s];if(f&&Z(ap,s)){l=f.call(this,t,e);var h=t.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var c=Tw[s];if(c&&Z(Tw,s)){var d=c.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new Jl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pr(e,a),nr(t,a,this._defsUsePending,!1,!1),QY(a,e);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,e.add(a),a},r.internalField=function(){ap={g:function(t,e){var a=new it;return pr(e,a),nr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new Tt;return pr(e,a),nr(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new xa;return pr(e,a),nr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new we;return pr(e,a),nr(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Xm;return pr(e,a),nr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Dw(a));var i=new er({shape:{points:n||[]},silent:!0});return pr(e,i),nr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=Dw(a));var i=new rr({shape:{points:n||[]},silent:!0});return pr(e,i),nr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Ce;return pr(e,a),nr(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new it;return pr(e,s),nr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new it;return pr(e,s),nr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=sC(a);return pr(e,n),nr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Tw={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new ku(t,e,a,n);return Mw(r,i),Aw(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new SC(t,e,a);return Mw(r,n),Aw(r,n),n}};function Mw(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Aw(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};LL(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function pr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Q(t.__inheritedStyle,r.__inheritedStyle))}function Dw(r){for(var t=xc(r),e=[],a=0;a0;i-=2){var o=a[i],s=a[i-1],l=xc(o);switch(n=n||Ir(),s){case"translate":ya(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Om(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":oo(n,n,-parseFloat(l[0])*np);break;case"skewX":var u=Math.tan(parseFloat(l[0])*np);Wa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*np);Wa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var Iw=/([^\s:;]+)\s*:\s*([^:;]+)/g;function LL(r,t,e){var a=r.getAttribute("style");if(!!a){Iw.lastIndex=0;for(var n;(n=Iw.exec(a))!=null;){var i=n[1],o=Z(uv,i)?uv[i]:null;o&&(t[o]=n[2]);var s=Z(fv,i)?fv[i]:null;s&&(e[s]=n[2])}}}function i$(r,t,e){for(var a=0;a0,g={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=K(),a=K(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(c,d){return d&&(c=d(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g=0)&&(v=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ze(t,be(a),{labelFetcher:v,labelDataIndex:h,defaultText:e},c);var d=t.getTextContent();if(d&&(kL(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Ew(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):ot(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Ow(r,t,e,a,n){r.data||Ms({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Nw(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return ie(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&wz(t,n,e),o}function Vw(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(jt),D$=A$;function C$(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=pe(w,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function R$(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var E$=function(){function r(){this.dimensions=EL}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Gw(l+s,l,B({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=Hw,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=F(o,function(f){return f.get("nameMap")}),u=new Gw(s,s,B({nameMap:Cm(l)},n(o[0])));u.zoomLimit=xe.apply(null,F(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=Hw,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,R$(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=K(),s=0;s=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function W$(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){U$(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=Z$(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function Y$(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function Yw(r){return arguments.length?r:K$}function wl(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function $$(r,t){return pe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function U$(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function Z$(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,h=s.hierNode.modifier;s=ip(s),i=op(i),s&&i;){n=ip(n),o=op(o),n.hierNode.ancestor=r;var v=s.hierNode.prelim+h-i.hierNode.prelim-u+a(s,i);v>0&&(q$(X$(s,r,e),r,v),u+=v,l+=v),h+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!ip(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=h-l),i&&!op(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function ip(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function op(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function X$(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function q$(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function K$(r,t){return r.parentNode===t.parentNode?1:2}var j$=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),J$=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new j$},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,h=1-f,v=H(a.forkPosition,1),c=[];c[f]=o[f],c[h]=o[h]+(l[h]-o[h])*v,e.moveTo(o[0],o[1]),e.lineTo(c[0],c[1]),e.moveTo(s[0],s[1]),c[f]=s[f],e.lineTo(c[0],c[1]),c[f]=l[f],e.lineTo(c[0],c[1]),e.lineTo(l[0],l[1]);for(var d=1;dm.x,w||(S=S-Math.PI));var b=w?"left":"right",T=s.getModel("label"),M=T.get("rotate"),D=M*(Math.PI/180),C=g.getTextContent();C&&(g.setTextConfig({position:T.get("position")||b,rotation:M==null?-S:D,origin:"center"}),C.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(ot(e).focus=L),tU(n,o,f,e,d,c,p,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var k=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===Pu||Hh(e.__edge,P)}})}function tU(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),h=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new tc({shape:wy(f,h,v,n,n)})),Dt(p,{shape:wy(f,h,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;me&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},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 t=this.parentNode.children,e=0;e=0){var a=e.getData().tree.root,n=r.targetNode;if(Y(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function GL(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function Y0(r,t){var e=GL(r);return pt(e,t)>=0}function wc(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var hU=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new $t(n,this,this.ecModel),o=W0.createTree(a,this,s);function s(h){h.wrapMethod("getItemModel",function(v,c){var d=o.getNodeByDataIndex(c);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(h){var v=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=v&&v.collapsed!=null?!v.collapsed:h.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return _e("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=wc(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(jt),vU=hU;function cU(r,t,e){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)e.push(n[i])}}function dU(r,t){r.eachSeriesByType("tree",function(e){pU(e,t)})}function pU(r,t){var e=$$(r,t);r.layoutInfo=e;var a=r.get("layout"),n=0,i=0,o=null;a==="radial"?(n=2*Math.PI,i=Math.min(e.height,e.width)/2,o=Yw(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(n=e.width,i=e.height,o=Yw());var s=r.getData().tree.root,l=s.children[0];if(l){H$(s),cU(l,W$,o),s.hierNode.modifier=-l.hierNode.prelim,ol(l,Y$);var u=l,f=l,h=l;ol(l,function(_){var S=_.getLayout().x;Sf.getLayout().x&&(f=_),_.depth>h.depth&&(h=_)});var v=u===f?1:o(u,f)/2,c=v-u.getLayout().x,d=0,p=0,g=0,y=0;if(a==="radial")d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),ol(l,function(_){g=(_.getLayout().x+c)*d,y=(_.depth-1)*p;var S=wl(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(p=i/(f.getLayout().x+v+c),d=n/(h.depth-1||1),ol(l,function(_){y=(_.getLayout().x+c)*p,g=m==="LR"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(d=n/(f.getLayout().x+v+c),p=i/(h.depth-1||1),ol(l,function(_){g=(_.getLayout().x+c)*d,y=m==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)}))}}}function gU(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");B(s,o)})})}function yU(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=a.coordinateSystem,i=G0(n,t);a.setCenter&&a.setCenter(i.center),a.setZoom&&a.setZoom(i.zoom)})})}function mU(r){r.registerChartView(eU),r.registerSeriesModel(vU),r.registerLayout(dU),r.registerVisual(gU),yU(r)}var qw=["treemapZoomToNode","treemapRender","treemapMove"];function _U(r){for(var t=0;t1;)i=i.parentNode;var o=jg(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var SU=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};WL(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new $t({itemStyle:o},this,a);i=e.levels=xU(i,a);var l=F(i||[],function(h){return new $t(h,s,a)},this),u=W0.createTree(n,this,f);function f(h){h.wrapMethod("getItemModel",function(v,c){var d=u.getNodeByDataIndex(c),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return _e("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=wc(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=K(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.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 a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){HL(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",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:"#fff",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}(jt);function WL(r){var t=0;A(r.children,function(a){WL(a);var n=a.value;z(n)&&(n=n[0]),t+=n});var e=r.value;z(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),z(r.value)?r.value[0]=e:r.value=e}function xU(r,t){var e=Gt(t.get("color")),a=Gt(t.get(["aria","decal","decals"]));if(!!e){r=r||[];var n,i;A(r,function(s){var l=new $t(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}var wU=SU,bU=8,Kw=8,sp=5,TU=function(){function r(t){this.group=new it,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,u,l),this._renderContent(t,u,s,l,n),uc(o,u.pos,u.box)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=de(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+bU*2,e.emptyItemWidth);e.totalWidth+=s+Kw,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i){for(var o=0,s=e.emptyItemWidth,l=t.get(["breadcrumb","height"]),u=EF(e.pos,e.box),f=e.totalWidth,h=e.renderList,v=h.length-1;v>=0;v--){var c=h[v],d=c.node,p=c.width,g=c.text;f>u.width&&(f-=p-s,p=s,g=null);var y=new er({shape:{points:MU(o,0,p,l,v===h.length-1,v===0)},style:Q(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new It({style:{text:g,fill:n.getTextColor(),font:n.getFont()}}),textConfig:{position:"inside"},z2:bs*1e4,onclick:st(i,d)});y.disableLabelAnimation=!0,this.group.add(y),AU(y,t,d),o+=p+Kw}},r.prototype.remove=function(){this.group.removeAll()},r}();function MU(r,t,e,a,n,i){var o=[[n?r:r-sp,t],[r+e,t],[r+e,t+a],[n?r:r-sp,t+a]];return!i&&o.splice(2,0,[r+e+sp,t+a/2]),!n&&o.push([r,t+a/2]),o}function AU(r,t,e){ot(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&wc(e,t)}}var DU=TU,CU=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;nJw||Math.abs(e.dy)>Jw)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.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 a=e.originX,n=e.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new gt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,n-=l.y;var u=Ir();ya(u,u,[-a,-n]),Om(u,u,[e.scale,e.scale]),ya(u,u,[a,n]),s.applyTransform(u),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 a=this;e.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(!!i){var o=a.findTarget(n.offsetX,n.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._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&&Xh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new DU(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&(Y0(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=sl(),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,a){var n,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(e,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Ut);function sl(){return{nodeGroup:[],background:[],content:[]}}function EU(r,t,e,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),v=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var c=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,w=_&&_.length,x=v.getModel("itemStyle"),b=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),M=v.getModel(["select","itemStyle"]),D=x.get("borderRadius")||0,C=dt("nodeGroup",by);if(!C)return;if(l.add(C),C.x=f.x||0,C.y=f.y||0,C.markRedraw(),hv(C).nodeWidth=c,hv(C).nodeHeight=d,f.isAboveViewRoot)return C;var I=dt("background",jw,u,PU);I&&V(C,I,w&&f.upperLabelHeight);var L=v.getModel("emphasis"),P=L.get("focus"),k=L.get("blurScope"),R=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(w)tu(C)&&Vi(C,!1),I&&(Vi(I,!R),h.setItemGraphicEl(o.dataIndex,I),Wg(I,N,k));else{var O=dt("content",jw,u,kU);O&&G(C,O),I.disableMorphing=!0,I&&tu(I)&&Vi(I,!1),Vi(C,!R),h.setItemGraphicEl(o.dataIndex,C),Wg(C,N,k)}return C;function V(mt,nt,St){var vt=ot(nt);if(vt.dataIndex=o.dataIndex,vt.seriesIndex=r.seriesIndex,nt.setShape({x:0,y:0,width:c,height:d,r:D}),g)W(nt);else{nt.invisible=!1;var q=o.getVisual("style"),ut=q.stroke,Xt=eb(x);Xt.fill=ut;var wt=Ai(b);wt.fill=b.get("borderColor");var ae=Ai(T);ae.fill=T.get("borderColor");var te=Ai(M);if(te.fill=M.get("borderColor"),St){var Ie=c-2*p;X(nt,ut,q.opacity,{x:p,y:0,width:Ie,height:S})}else nt.removeTextContent();nt.setStyle(Xt),nt.ensureState("emphasis").style=wt,nt.ensureState("blur").style=ae,nt.ensureState("select").style=te,to(nt)}mt.add(nt)}function G(mt,nt){var St=ot(nt);St.dataIndex=o.dataIndex,St.seriesIndex=r.seriesIndex;var vt=Math.max(c-2*p,0),q=Math.max(d-2*p,0);if(nt.culling=!0,nt.setShape({x:p,y:p,width:vt,height:q,r:D}),g)W(nt);else{nt.invisible=!1;var ut=o.getVisual("style"),Xt=ut.fill,wt=eb(x);wt.fill=Xt,wt.decal=ut.decal;var ae=Ai(b),te=Ai(T),Ie=Ai(M);X(nt,Xt,ut.opacity,null),nt.setStyle(wt),nt.ensureState("emphasis").style=ae,nt.ensureState("blur").style=te,nt.ensureState("select").style=Ie,to(nt)}mt.add(nt)}function W(mt){!mt.invisible&&i.push(mt)}function X(mt,nt,St,vt){var q=v.getModel(vt?tb:Qw),ut=de(v.get("name"),null),Xt=q.getShallow("show");ze(mt,be(v,vt?tb:Qw),{defaultText:Xt?ut:null,inheritColor:nt,defaultOpacity:St,labelFetcher:r,labelDataIndex:o.dataIndex});var wt=mt.getTextContent();if(!!wt){var ae=wt.style,te=Lm(ae.padding||0);vt&&(mt.setTextConfig({layoutRect:vt}),wt.disableLabelLayout=!0),wt.beforeUpdate=function(){var Aa=Math.max((vt?vt.width:mt.shape.width)-te[1]-te[3],0),Ze=Math.max((vt?vt.height:mt.shape.height)-te[0]-te[2],0);(ae.width!==Aa||ae.height!==Ze)&&wt.setStyle({width:Aa,height:Ze})},ae.truncateMinChar=2,ae.lineOverflow="truncate",at(ae,vt,f);var Ie=wt.getState("emphasis");at(Ie?Ie.style:null,vt,f)}}function at(mt,nt,St){var vt=mt?mt.text:null;if(!nt&&St.isLeafRoot&&vt!=null){var q=r.get("drillDownIcon",!0);mt.text=q?q+" "+vt:vt}}function dt(mt,nt,St,vt){var q=m!=null&&e[mt][m],ut=n[mt];return q?(e[mt][m]=null,Et(ut,q)):g||(q=new nt,q instanceof Lr&&(q.z2=OU(St,vt)),kt(ut,q)),t[mt][y]=q}function Et(mt,nt){var St=mt[y]={};nt instanceof by?(St.oldX=nt.x,St.oldY=nt.y):St.oldShape=B({},nt.shape)}function kt(mt,nt){var St=mt[y]={},vt=o.parentNode,q=nt instanceof it;if(vt&&(!a||a.direction==="drillDown")){var ut=0,Xt=0,wt=n.background[vt.getRawIndex()];!a&&wt&&wt.oldShape&&(ut=wt.oldShape.width,Xt=wt.oldShape.height),q?(St.oldX=0,St.oldY=Xt):St.oldShape={x:ut,y:Xt,width:0,height:0}}St.fadein=!q}}function OU(r,t){return r*LU+t}var NU=RU,pu=A,VU=tt,vv=-1,$0=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=rt(t);this.type=a,this.mappingMethod=e,this._normalizeData=FU[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(lp(n),BU(n)):e==="category"?n.categories?zU(n):lp(n,!0):($e(e!=="linear"||n.dataExtent),lp(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return xt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){tt(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=z(t)?[]:tt(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&pu(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(z(t))t=t.slice();else if(VU(t)){var e=[];pu(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function lp(r,t){var e=r.visual,a=[];tt(e)?pu(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),YL(r,a)}function Hf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Ty([0,1])}}function rb(r){var t=this.option.visual;return t[Math.round(Nt(r,[0,1],[0,t.length-1],!0))]||{}}function ll(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function bl(r){var t=this.option.visual;return t[this.option.loop&&r!==vv?r%t.length:r]}function Di(){return this.option.visual[0]}function Ty(r){return{linear:function(t){return Nt(t,r,this.option.visual,!0)},category:bl,piecewise:function(t,e){var a=My.call(this,e);return a==null&&(a=Nt(t,r,this.option.visual,!0)),a},fixed:Di}}function My(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=$0.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function YL(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=F(t,function(e){var a=lr(e);return a||[0,0,0,1]})),t}var FU={linear:function(r){return Nt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=$0.findPieceIndex(r,t,!0);if(e!=null)return Nt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?vv:t},fixed:he};function Wf(r,t,e){return r?t<=e:t=e.length||p===e[p.depth]){var y=UU(n,l,p,g,d,a);UL(p,y,e,a)}})}}}function WU(r,t,e){var a=B({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function ab(r){var t=up(r,"color");if(t){var e=up(r,"colorAlpha"),a=up(r,"colorSaturation");return a&&(t=Il(t,null,null,a)),e&&(t=Oh(t,e)),t}}function YU(r,t){return t!=null?Il(t,null,null,r):null}function up(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function $U(r,t,e,a,n,i){if(!(!i||!i.length)){var o=fp(t,"color")||n.color!=null&&n.color!=="none"&&(fp(t,"colorAlpha")||fp(t,"colorSaturation"));if(!!o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var f=t.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var v=new Ae(h);return $L(v).drColorMappingBy=f,v}}}function fp(r,t){var e=r.get(t);return z(e)&&e.length?{name:t,range:e}:null}function UU(r,t,e,a,n,i){var o=B({},t);if(n){var s=n.type,l=s==="color"&&$L(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var gu=Math.max,cv=Math.min,nb=xe,U0=A,ZL=["itemStyle","borderWidth"],ZU=["itemStyle","gapWidth"],XU=["upperLabel","show"],qU=["upperLabel","height"],KU={seriesType:"treemap",reset:function(r,t,e,a){var n=e.getWidth(),i=e.getHeight(),o=r.option,s=pe(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=o.size||[],u=H(nb(s.width,l[0]),n),f=H(nb(s.height,l[1]),i),h=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=du(a,v,r),d=h==="treemapRender"||h==="treemapMove"?a.rootRect:null,p=r.getViewRoot(),g=GL(p);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?r8(r,c,p,u,f):d?[d.width,d.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(S),XL(p,_,!1,0),S=p.getLayout(),U0(g,function(x,b){var T=(g[b+1]||p).getValue();x.setLayout(B({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var w=r.getData().tree.root;w.setLayout(a8(s,d,c),!0),r.setLayoutInfo(s),qL(w,new gt(-s.x,-s.y,n,i),g,p,0)}};function XL(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(ZL),u=s.get(ZU)/2,f=KL(s),h=Math.max(l,f),v=l-u,c=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),n=gu(n-2*v,0),i=gu(i-v-c,0);var d=n*i,p=jU(r,s,d,t,e,a);if(!!p.length){var g={x:v,y:c,width:n,height:i},y=cv(n,i),m=1/0,_=[];_.area=0;for(var S=0,w=p.length;S=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*ts[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function e8(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;ia&&(a=o));var l=r.area*r.area,u=t*t*e;return l?gu(u*a/l,l/(u*n)):1/0}function ib(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(n||f>e[l[o]])&&(f=e[l[o]]);for(var h=0,v=r.length;hp1&&(u=p1),i=s}ua&&(a=t);var i=a%2?a+2:a+3;n=[];for(var o=0;o0&&(w[0]=-w[0],w[1]=-w[1]);var b=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);h[0].8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*b+f[0],i.y=f[1]+M,d=S[0]<0?"right":"left",i.originX=-y*b,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+M,d="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*b+h[0],i.y=h[1]+M,d=S[0]>=0?"right":"left",i.originX=y*b,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(it),X0=w8,b8=function(){function r(t){this.group=new it,this._LineCtor=t||X0}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=fb(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;!t||t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=fb(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!T8(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0}function fb(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:be(t)}}function hb(r){return isNaN(r[0])||isNaN(r[1])}function pp(r){return r&&!hb(r[0])&&!hb(r[1])}var q0=b8,gp=[],yp=[],mp=[],Co=Se,_p=Gi,vb=Math.abs;function cb(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){gp[0]=Co(a[0],n[0],i[0],f),gp[1]=Co(a[1],n[1],i[1],f);var h=vb(_p(gp,t)-l);h=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function Sp(r,t){var e=[],a=ql,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[Ga(u[0]),Ga(u[1])],u[2]&&u.__original.push(Ga(u[2])));var v=u.__original;if(u[2]!=null){if(Ge(n[0],v[0]),Ge(n[1],v[2]),Ge(n[2],v[1]),f&&f!=="none"){var c=Ml(s.node1),d=cb(n,v[0],c*t);a(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(h&&h!=="none"){var c=Ml(s.node2),d=cb(n,v[1],c*t);a(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}Ge(u[0],n[0]),Ge(u[1],n[2]),Ge(u[2],n[1])}else{if(Ge(i[0],v[0]),Ge(i[1],v[1]),Oi(o,i[1],i[0]),Du(o,o),f&&f!=="none"){var c=Ml(s.node1);pg(i[0],i[0],o,c*t)}if(h&&h!=="none"){var c=Ml(s.node2);pg(i[1],i[1],o,-c*t)}Ge(u[0],i[0]),Ge(u[1],i[1])}})}function db(r){return r.type==="view"}var M8=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Wu,i=new q0,o=this.group;this._controller=new Zu(a.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(db(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Dt(u,f,e)}Sp(e.getGraph(),Tl(e));var h=e.getData();s.updateData(h);var v=e.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(e,a,n),clearTimeout(this._layoutTimeout);var c=e.forceLayout,d=e.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d),h.graph.eachNode(function(m){var _=m.dataIndex,S=m.getGraphicEl(),w=m.getModel();if(!!S){S.off("drag").off("dragend");var x=w.get("draggable");x&&S.on("drag",function(){c&&(c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,d),c.setFixed(_),h.setItemLayout(_,[S.x,S.y]))}).on("dragend",function(){c&&c.setUnfixed(_)}),S.setDraggable(x&&!!c);var b=w.get(["emphasis","focus"]);b==="adjacency"&&(ot(S).focus=m.getAdjacentDataIndices())}}),h.graph.eachEdge(function(m){var _=m.getGraphicEl(),S=m.getModel().get(["emphasis","focus"]);!_||S==="adjacency"&&(ot(_).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var p=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),g=h.getLayout("cx"),y=h.getLayout("cy");h.eachItemGraphicEl(function(m,_){var S=h.getItemModel(_),w=S.get(["label","rotate"])||0,x=m.getSymbolPath();if(p){var b=h.getItemLayout(_),T=Math.atan2(b[1]-y,b[0]-g);T<0&&(T=Math.PI*2+T);var M=b[0]=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){for(var a=this.edges,n=a.length,i=0;i=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Ci||(e=this._nodesMap[Io(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}ce(Ci,nP("hostGraph","data"));ce(aP,nP("hostGraph","edgeData"));var C8=D8;function iP(r,t,e,a,n){for(var i=new C8(a),o=0;o "+v)),u++)}var c=e.get("coordinateSystem"),d;if(c==="cartesian2d"||c==="polar")d=nn(r,e);else{var p=Nu.get(c),g=p?p.dimensions||[]:[];pt(g,"value")<0&&g.concat(["value"]);var y=zu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new Ye(y,e),d.initData(r)}var m=new Ye(["value"],e);return m.initData(l,s),n&&n(d,m),zL({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var I8=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Uu(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ji(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){f8(this);var s=iP(i,n,this,!0,l);return A(s.edges,function(u){h8(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var h=$t.prototype.getModel;function v(d,p){var g=h.call(this,d,p);return g.resolveParentPath=c,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=c,d.getModel=v,d});function c(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),_e("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var h=D2({series:this,dataIndex:e,multipleSeries:a});return h},t.prototype._updateCategoriesData=function(){var e=F(this.option.categories||[],function(n){return n.value!=null?n:B({value:0},n)}),a=new Ye(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(jt),L8=I8,P8={type:"graphRoam",event:"graphRoam",update:"none"};function k8(r){r.registerChartView(A8),r.registerSeriesModel(L8),r.registerProcessor(i8),r.registerVisual(o8),r.registerVisual(s8),r.registerLayout(v8),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,d8),r.registerLayout(g8),r.registerCoordinateSystem("graphView",{dimensions:Xu.dimensions,create:m8}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},he),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},he),r.registerAction(P8,function(t,e){e.eachComponent({mainType:"series",query:t},function(a){var n=a.coordinateSystem,i=G0(n,t);a.setCenter&&a.setCenter(i.center),a.setZoom&&a.setZoom(i.zoom)})})}var R8=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),E8=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new R8},t.prototype.buildPath=function(e,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(_t),O8=E8;function N8(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=H(e[0],t.getWidth()),s=H(e[1],t.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function $f(r,t){var e=r==null?"":r+"";return t&&(Y(t)?e=t.replace("{value}",e):J(t)&&(e=t(r))),e}var V8=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=N8(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,h=e.getModel("axisLine"),v=h.get("roundCap"),c=v?lv:tr,d=h.get("show"),p=h.getModel("lineStyle"),g=p.get("width"),y=[u,f];VD(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=0;d&&S=T&&(M===0?0:i[M-1][0]).8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:G}),silent:!0}))}if(m.get("show")&&R!==S){var N=m.get("distance");N=N?N+f:f;for(var W=0;W<=w;W++){P=Math.cos(T),k=Math.sin(T);var X=new we({shape:{x1:P*(d-N)+v,y1:k*(d-N)+c,x2:P*(d-b-N)+v,y2:k*(d-b-N)+c},silent:!0,style:I});I.stroke==="auto"&&X.setStyle({stroke:i((R+W/w)/S)}),h.add(X),T+=D}T-=D}else T+=M}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var h=this.group,v=this._data,c=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),w=+e.get("max"),x=[S,w],b=[s,l];function T(D,C){var I=m.getItemModel(D),L=I.getModel("pointer"),P=H(L.get("width"),o.r),k=H(L.get("length"),o.r),R=e.get(["pointer","icon"]),N=L.get("offsetCenter"),O=H(N[0],o.r),V=H(N[1],o.r),G=L.get("keepAspect"),W;return R?W=ve(R,O-P/2,V-k,P,k,null,G):W=new O8({shape:{angle:-Math.PI/2,width:P,r:k,x:O,y:V}}),W.rotation=-(C+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function M(D,C){var I=g.get("roundCap"),L=I?lv:tr,P=g.get("overlap"),k=P?g.get("width"):f/m.count(),R=P?o.r-k:o.r-(D+1)*k,N=P?o.r:o.r-D*k,O=new L({shape:{startAngle:s,endAngle:C,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:N}});return P&&(O.z2=w-m.get(_,D)%w),O}(y||p)&&(m.diff(v).add(function(D){var C=m.get(_,D);if(p){var I=T(D,s);qt(I,{rotation:-((isNaN(+C)?b[0]:Nt(C,x,b,!0))+Math.PI/2)},e),h.add(I),m.setItemGraphicEl(D,I)}if(y){var L=M(D,s),P=g.get("clip");qt(L,{shape:{endAngle:Nt(C,x,b,P)}},e),h.add(L),Fg(e.seriesIndex,m.dataType,D,L),d[D]=L}}).update(function(D,C){var I=m.get(_,D);if(p){var L=v.getItemGraphicEl(C),P=L?L.rotation:s,k=T(D,P);k.rotation=P,Dt(k,{rotation:-((isNaN(+I)?b[0]:Nt(I,x,b,!0))+Math.PI/2)},e),h.add(k),m.setItemGraphicEl(D,k)}if(y){var R=c[C],N=R?R.shape.endAngle:s,O=M(D,N),V=g.get("clip");Dt(O,{shape:{endAngle:Nt(I,x,b,V)}},e),h.add(O),Fg(e.seriesIndex,m.dataType,D,O),d[D]=O}}).execute(),m.each(function(D){var C=m.getItemModel(D),I=C.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),k=I.get("disabled");if(p){var R=m.getItemGraphicEl(D),N=m.getItemVisual(D,"style"),O=N.fill;if(R instanceof Ce){var V=R.style;R.useStyle(B({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},N))}else R.useStyle(N),R.type!=="pointer"&&R.setColor(O);R.setStyle(C.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(Nt(m.get(_,D),x,[0,1],!0))),R.z2EmphasisLift=0,De(R,C),ie(R,L,P,k)}if(y){var G=d[D];G.useStyle(m.getItemVisual(D,"style")),G.setStyle(C.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,De(G,C),ie(G,L,P,k)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=ve(s,a.cx-o/2+H(l[0],a.r),a.cy-o/2+H(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),h=+e.get("max"),v=new it,c=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){c[y]=new It({silent:!0}),d[y]=new It({silent:!0})}).update(function(y,m){c[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new it,w=i(Nt(_,[f,h],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),T=o.cx+H(b[0],o.r),M=o.cy+H(b[1],o.r),D=c[y];D.attr({z2:g?0:2,style:Kt(x,{x:T,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),S.add(D)}var C=m.getModel("detail");if(C.get("show")){var I=C.get("offsetCenter"),L=o.cx+H(I[0],o.r),P=o.cy+H(I[1],o.r),k=H(C.get("width"),o.r),R=H(C.get("height"),o.r),N=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,D=d[y],O=C.get("formatter");D.attr({z2:g?0:2,style:Kt(C,{x:L,y:P,text:$f(_,O),width:isNaN(k)?null:k,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:N})}),IC(D,{normal:C},_,function(G){return $f(G,O)}),p&&LC(D,y,l,e,{getFormattedLabel:function(G,W,X,at,dt,Et){return $f(Et?Et.interpolatedValue:_,O)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=c,this._detailEls=d},t.type="gauge",t}(Ut),B8=V8,z8=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Os(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(jt),F8=z8;function G8(r){r.registerChartView(B8),r.registerSeriesModel(F8)}var H8=["itemStyle","opacity"],W8=function(r){E(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new rr,s=new It;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(H8);f=f==null?1:f,n||qr(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,qt(i,{style:{opacity:f}},o,a)):Dt(i,{style:{opacity:f},shape:{points:l.points}},o,a),De(i,s),this._updateLabel(e,a),ie(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),f=u.label,h=e.getItemVisual(a,"style"),v=h.fill;ze(o,be(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:h.opacity,defaultText:e.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:v,outsideFill:v});var c=f.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new ft(c[0][0],c[0][1]):null},Dt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),I0(n,L0(l),{stroke:v})},t}(er),Y8=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new W8(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);eu(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Ut),$8=Y8,U8=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Uu(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Os(this,{coordDimensions:["value"],encodeDefaulter:st(i0,this)})},t.prototype._defaultLabelLine=function(e){ji(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(jt),Z8=U8;function X8(r,t){return pe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function q8(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();od7)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!wp(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function wp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var y7=p7,m7=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&ht(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=zt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Mt),_7=m7,S7=function(r){E(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Jr),x7=S7;function ho(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Lo(n,[0,o])),i!=null&&(i=Math.max(i,n!=null?n:0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Lo(s,[0,o]),n=i=Lo(s,[n,i]),a=0}t[0]=Lo(t[0],e),t[1]=Lo(t[1],e);var l=bp(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Lo(t[a],f);var h;return h=bp(t,a),n!=null&&(h.sign!==l.sign||h.spani&&(t[1-a]=t[a]+h.sign*i),t}function bp(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Lo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Tp=A,sP=Math.min,lP=Math.max,yb=Math.floor,w7=Math.ceil,mb=ne,b7=Math.PI,T7=function(){function r(t,e,a){this.type="parallel",this._axesMap=K(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;Tp(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new x7(o,yc(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(!!t.contains(a,e)){var n=a.getData();Tp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),vs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=pe(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=Uf(t.get("axisExpandWidth"),l),h=Uf(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=t.get("axisExpandWindow"),d;if(c)d=Uf(c[1]-c[0],l),c[1]=c[0]+d;else{d=Uf(f*(h-1),l);var p=t.get("axisExpandCenter")||yb(u/2);c=[f*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[yb(mb(c[0]/f,1))+1,w7(mb(c[1]/f,1))-1],m=g/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Tp(a,function(o,s){var l=(n.axisExpandable?A7:M7)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:b7/2,vertical:0},h=[u[i].x+t.x,u[i].y+t.y],v=f[i],c=Ir();oo(c,c,v),ya(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;fi*(1-h[0])?(u="jump",l=s-i*(1-h[2])):(l=s-i*h[1])>=0&&(l=s-i*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?ho(l,n,o,"all"):u="none";else{var c=n[1]-n[0],d=o[1]*s/c;n=[lP(0,d-c/2)],n[1]=sP(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r}();function Uf(r,t){return sP(lP(r,t[0]),t[1])}function M7(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function A7(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r=0;n--)Dr(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;iR7}function pP(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function gP(r,t,e,a){var n=new it;return n.add(new Tt({name:"main",style:Q0(e),silent:!0,draggable:!0,cursor:"move",drift:st(wb,r,t,n,["n","s","w","e"]),ondragend:st(ao,t,{isEnd:!0})})),A(a,function(i){n.add(new Tt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:st(wb,r,t,n,i),ondragend:st(ao,t,{isEnd:!0})}))}),n}function yP(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=ps(n,E7),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],h=e[1][1],v=f-i+n/2,c=h-i+n/2,d=f-o,p=h-s,g=d+n,y=p+n;Pa(r,t,"main",o,s,d,p),a.transformable&&(Pa(r,t,"w",l,u,i,y),Pa(r,t,"e",v,u,i,y),Pa(r,t,"n",l,u,g,i),Pa(r,t,"s",l,c,g,i),Pa(r,t,"nw",l,u,i,i),Pa(r,t,"ne",v,u,i,i),Pa(r,t,"sw",l,c,i,i),Pa(r,t,"se",v,c,i,i))}function Ly(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(Q0(e)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Py(r,i[0]):G7(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?N7[s]+"-resize":null})})}function Pa(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(W7(t_(r,t,[[a,n],[a+i,n+o]])))}function Q0(r){return Q({strokeNoScale:!0},r.brushStyle)}function mP(r,t,e,a){var n=[mu(r,e),mu(t,a)],i=[ps(r,e),ps(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function F7(r){return $i(r.group)}function Py(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=rc(e[t],F7(r));return a[n]}function G7(r,t){var e=[Py(r,t[0]),Py(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function wb(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=_P(t,n,i);A(a,function(u){var f=O7[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(mP(s[0][0],s[1][0],s[0][1],s[1][1])),K0(t,e),ao(t,{isEnd:!1})}function H7(r,t,e,a){var n=t.__brushOption.range,i=_P(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),K0(r,t),ao(r,{isEnd:!1})}function _P(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function t_(r,t,e){var a=dP(r,t);return a&&a!==ro?a.clipPath(e,r._transform):rt(e)}function W7(r){var t=mu(r[0][0],r[1][0]),e=mu(r[0][1],r[1][1]),a=ps(r[0][0],r[1][0]),n=ps(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function Y7(r,t,e){if(!(!r._brushType||U7(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=J0(r,t,e);if(!r._dragging)for(var o=0;oa.getWidth()||e<0||e>a.getHeight()}var Tc={lineX:Mb(0),lineY:Mb(1),rect:{createCover:function(r,t){function e(a){return a}return gP({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=pP(r);return mP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){yP(r,t,e,a)},updateCommon:Ly,contain:Ry},polygon:{createCover:function(r,t){var e=new it;return e.add(new rr({name:"main",style:Q0(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new er({name:"main",draggable:!0,drift:st(H7,r,t),ondragend:st(ao,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:t_(r,t,e)})},updateCommon:Ly,contain:Ry}};function Mb(r){return{createCover:function(t,e){return gP({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=pP(t),a=mu(e[0][r],e[1][r]),n=ps(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=dP(t,e);if(o!==ro&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),yP(t,e,l,n)},updateCommon:Ly,contain:Ry}}var e_=B7;function xP(r){return r=r_(r),function(t){return MC(t,r)}}function wP(r,t){return r=r_(r),function(e){var a=t!=null?t:e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function bP(r,t,e){var a=r_(r);return function(n,i){return a.contain(i[0],i[1])&&!Sc(n,t,e)}}function r_(r){return gt.create(r)}var Z7=["axisLine","axisTickLabel","axisName"],X7=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new e_(a.getZr())).on("brush",U(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!q7(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!e.get("show")){var s=j7(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,h=e.axis.dim,v=l.getAxisLayout(h),c=B({strokeContainThreshold:f},v),d=new Qa(e,c);A(Z7,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,e,s,f,n),Ru(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=gt.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:xP(h),isTargetByCursor:bP(h,s,i),getLinearBrushOtherExtent:wP(h,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(K7(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=F(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(re);function q7(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function K7(r){var t=r.axis;return F(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function j7(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var J7=X7,Q7={type:"axisAreaSelect",event:"axisAreaSelected"};function t9(r){r.registerAction(Q7,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var e9={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function TP(r){r.registerComponentView(y7),r.registerComponentModel(_7),r.registerCoordinateSystem("parallel",L7),r.registerPreprocessor(h7),r.registerComponentModel(_b),r.registerComponentView(J7),ds(r,"parallel",_b,e9),t9(r)}function r9(r){yt(TP),r.registerChartView(a7),r.registerSeriesModel(s7),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,f7)}var a9=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),n9=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new a9},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){Ka(this)},t.prototype.downplay=function(){ja(this)},t}(_t),i9=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this.group,l=e.layoutInfo,u=l.width,f=l.height,h=e.getData(),v=e.getData("edge"),c=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(d){var p=new n9,g=ot(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),w=d.node1.getModel(),x=w.get("localX"),b=w.get("localY"),T=d.node2.getLayout(),M=d.node2.getModel(),D=M.get("localX"),C=M.get("localY"),I=d.getLayout(),L,P,k,R,N,O,V,G;switch(p.shape.extent=Math.max(1,I.dy),p.shape.orient=c,c==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(b!=null?b*f:S.y)+S.dy,k=(D!=null?D*u:T.x)+I.ty,R=C!=null?C*f:T.y,N=L,O=P*(1-_)+R*_,V=k,G=P*_+R*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(b!=null?b*f:S.y)+I.sy,k=D!=null?D*u:T.x,R=(C!=null?C*f:T.y)+I.ty,N=L*(1-_)+k*_,O=P,V=L*_+k*(1-_),G=R),p.setShape({x1:L,y1:P,x2:k,y2:R,cpx1:N,cpy1:O,cpx2:V,cpy2:G}),p.useStyle(m.getItemStyle()),p.style.fill){case"source":p.style.fill=d.node1.getVisual("color"),p.style.decal=d.node1.getVisual("style").decal;break;case"target":p.style.fill=d.node2.getVisual("color"),p.style.decal=d.node2.getVisual("style").decal;break;case"gradient":var W=d.node1.getVisual("color"),X=d.node2.getVisual("color");Y(W)&&Y(X)&&(p.style.fill=new ku(0,0,+(c==="horizontal"),+(c==="vertical"),[{color:W,offset:0},{color:X,offset:1}]))}var at=y.getModel("emphasis");De(p,y,"lineStyle",function(Et){return Et.getItemStyle()}),s.add(p),v.setItemGraphicEl(d.dataIndex,p);var dt=at.get("focus");ie(p,dt==="adjacency"?d.getAdjacentDataIndices():dt,at.get("blurScope"),at.get("disabled")),ot(p).dataType="edge"}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new Tt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ze(S,be(g),{labelFetcher:e,labelDataIndex:d.dataIndex,defaultText:d.id}),S.disableLabelAnimation=!0,S.setStyle("fill",d.getVisual("color")),S.setStyle("decal",d.getVisual("style").decal),De(S,g),s.add(S),h.setItemGraphicEl(d.dataIndex,S),ot(S).dataType="node";var w=_.get("focus");ie(S,w==="adjacency"?d.getAdjacentDataIndices():w,_.get("blurScope"),_.get("disabled"))}),h.eachItemGraphicEl(function(d,p){var g=h.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:h.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(o9(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Ut);function o9(r,t,e){var a=new Tt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return qt(a,{shape:{width:r.width+20}},t,e),a}var s9=i9,l9=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links,i=e.data||e.nodes,o=e.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new $t(o[l],this,a));if(i&&n){var u=iP(i,n,this,!0,f);return u.data}function f(h,v){h.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,d){var p=c.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(c.parentModel=_)}return c})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(c){return isNaN(c)||c==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return _e("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),h=f.getLayout().value,v=this.getDataParams(e,n).data.name;return _e("nameValue",{name:v!=null?v+"":null,value:h,noValue:i(h)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(jt),u9=l9;function f9(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=h9(e,t);e.layoutInfo=i;var o=i.width,s=i.height,l=e.getGraph(),u=l.nodes,f=l.edges;c9(u);var h=zt(u,function(p){return p.getLayout().value===0}),v=h.length!==0?0:e.get("layoutIterations"),c=e.get("orient"),d=e.get("nodeAlign");v9(u,f,a,n,o,s,v,c,d)})}function h9(r,t){return pe(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v9(r,t,e,a,n,i,o,s,l){d9(r,t,e,n,i,s,l),m9(r,t,i,n,a,o,s),D9(r,s)}function c9(r){A(r,function(t){var e=zn(t.outEdges,dv),a=zn(t.inEdges,dv),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function d9(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],f=[],h=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),p.setLayout({depth:y?g.depth:h},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;mh-1?c:h-1;o&&o!=="left"&&p9(r,o,i,b);var T=i==="vertical"?(n-e)/b:(a-e)/b;y9(r,T,i)}function MP(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function p9(r,t,e,a){if(t==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s0;i--)l*=.99,x9(s,l,o),Mp(s,n,e,a,o),A9(s,l,o),Mp(s,n,e,a,o)}function _9(r,t){var e=[],a=t==="vertical"?"y":"x",n=Ng(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function S9(r,t,e,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(h){u+=h.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;f0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=n==="vertical"?a:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var c=h-2;c>=0;--c)l=o[c],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function x9(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=zn(n.outEdges,w9,e)/zn(n.outEdges,dv);if(isNaN(i)){var o=n.outEdges.length;i=o?zn(n.outEdges,b9,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Un(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Un(n,e))*t;n.setLayout({y:l},!0)}}})})}function w9(r,t){return Un(r.node2,t)*r.getValue()}function b9(r,t){return Un(r.node2,t)}function T9(r,t){return Un(r.node1,t)*r.getValue()}function M9(r,t){return Un(r.node1,t)}function Un(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function dv(r){return r.getValue()}function zn(r,t,e){for(var a=0,n=r.length,i=-1;++ii&&(i=s)}),A(a,function(o){var s=new Ae({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}function I9(r){r.registerChartView(s9),r.registerSeriesModel(u9),r.registerLayout(f9),r.registerVisual(C9),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var AP=function(){function r(){}return r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,h=this._baseAxisDim=u[f],v=u[1-f],c=[n,i],d=c[f].get("type"),p=c[1-f].get("type"),g=t.data;if(g&&l){var y=[];A(g,function(S,w){var x;z(S)?(x=S.slice(),S.unshift(w)):z(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(w)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:rv(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:rv(p),dimsDef:m.slice()}];return Os(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:st(JC,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),DP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(jt);ce(DP,AP,!0);var L9=DP,P9=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),h=Ab(f,i,u,l,!0);i.setItemGraphicEl(u,h),o.add(h)}}).update(function(u,f){var h=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(h);return}var v=i.getItemLayout(u);h?(qr(h),CP(v,h,i,u)):h=Ab(v,i,u,l),o.add(h),i.setItemGraphicEl(u,h)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(Ut),k9=function(){function r(){}return r}(),R9=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new k9},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();ip){var S=[y,_];a.push(S)}}}return{boxData:e,outliers:a}}var H9={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Ne){var a="";Rt(a)}var n=G9(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function W9(r){r.registerSeriesModel(L9),r.registerChartView(O9),r.registerVisual(N9),r.registerLayout(V9),r.registerTransform(H9)}var Y9=["color","borderColor"],$9=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){qn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var h=a.getItemLayout(f);if(s&&Db(u,h))return;var v=Ap(h,f,!0);qt(v,{shape:{points:h.ends}},e,f),Dp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}}).update(function(f,h){var v=n.getItemGraphicEl(h);if(!a.hasValue(f)){i.remove(v);return}var c=a.getItemLayout(f);if(s&&Db(u,c)){i.remove(v);return}v?(Dt(v,{shape:{points:c.ends}},e,f),qr(v)):v=Ap(c),Dp(v,a,f,o),i.add(v),a.setItemGraphicEl(f,v)}).remove(function(f){var h=n.getItemGraphicEl(f);h&&i.remove(h)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),Ib(e,this.group);var a=e.get("clip",!0)?_c(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=Ap(s);Dp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){Ib(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ut),U9=function(){function r(){}return r}(),Z9=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new U9},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(_t);function Ap(r,t,e){var a=r.ends;return new Z9({shape:{points:e?X9(a,r):a},z2:100})}function Db(r,t){for(var e=!0,a=0;a0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]),i=e.getModel("itemStyle").getItemStyle(Y9);t.useStyle(i),t.style.fill=null,t.style.stroke=n}var K9=$9,IP=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,a,n){var i=a.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(jt);ce(IP,AP,!0);var j9=IP;function J9(r){!r||!z(r.series)||A(r.series,function(t){tt(t)&&t.type==="k"&&(t.type="candlestick")})}var Q9=["itemStyle","borderColor"],tZ=["itemStyle","borderColor0"],eZ=["itemStyle","color"],rZ=["itemStyle","color0"],aZ={seriesType:"candlestick",plan:ks(),performRawSeries:!0,reset:function(r,t){function e(i,o){return o.get(i>0?eZ:rZ)}function a(i,o){return o.get(i>0?Q9:tZ)}if(!t.isSeriesFiltered(r)){var n=r.pipelineContext.large;return!n&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=e(u,l),f.stroke=a(u,l)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}},nZ=aZ,iZ={seriesType:"candlestick",plan:ks(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=oZ(r,e),n=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),l=F(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],h=l[2],v=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:c};function c(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),w=m.get(f,y),x=m.get(h,y),b=m.get(v,y),T=Math.min(S,w),M=Math.max(S,w),D=k(T,_),C=k(M,_),I=k(x,_),L=k(b,_),P=[];R(P,C,0),R(P,D,1),P.push(O(L),O(C),O(I),O(D)),g.setItemLayout(y,{sign:Pb(m,y,S,w,f),initBaseline:S>w?C[i]:D[i],ends:P,brushRect:N(x,b,_)})}function k(V,G){var W=[];return W[n]=G,W[i]=V,isNaN(G)||isNaN(V)?[NaN,NaN]:t.dataToPoint(W)}function R(V,G,W){var X=G.slice(),at=G.slice();X[n]=gh(X[n]+a/2,1,!1),at[n]=gh(at[n]-a/2,1,!0),W?V.push(X,at):V.push(at,X)}function N(V,G,W){var X=k(V,W),at=k(G,W);return X[n]-=a/2,at[n]-=a/2,{x:X[0],y:X[1],width:a,height:at[1]-X[1]}}function O(V){return V[n]=gh(V[n],1),V}}function d(p,g){for(var y=va(p.count*4),m=0,_,S=[],w=[],x,b=g.getStore();(x=p.next())!=null;){var T=b.get(s,x),M=b.get(u,x),D=b.get(f,x),C=b.get(h,x),I=b.get(v,x);if(isNaN(T)||isNaN(C)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=Pb(b,x,M,D,f),S[n]=T,S[i]=C,_=t.dataToPoint(S,null,w),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,w),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Pb(r,t,e,a,n){var i;return e>a?i=-1:e0?r.get(n,t-1)<=a?1:-1:1,i}function oZ(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=H(ct(r.get("barMaxWidth"),n),n),o=H(ct(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?H(s,n):Math.max(Math.min(n/2,i),o)}var sZ=iZ;function lZ(r){r.registerChartView(K9),r.registerSeriesModel(j9),r.registerPreprocessor(J9),r.registerVisual(nZ),r.registerLayout(sZ)}function kb(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var uZ=function(r){E(t,r);function t(e,a){var n=r.call(this)||this,i=new Hu(e,a),o=new it;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var h=void 0;J(f)?h=f(n):h=f,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l)}this._period=s,this._loop=l}},t.prototype._animateSymbol=function(e,a,n,i){if(a>0){e.__t=0;var o=this,s=e.animate("",i).when(a,{__t:1}).delay(n).during(function(){o._updateSymbolPosition(e)});i||s.done(function(){o.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return Mn(e.__p1,e.__cp1)+Mn(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t,s=[e.x,e.y],l=s.slice(),u=Se,f=bg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var h=f(a[0],i[0],n[0],o),v=f(a[1],i[1],n[1],o);e.rotation=-Math.atan2(v,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),h=n[l],v=n[l+1];e.x=h[0]*(1-f)+f*v[0],e.y=h[1]*(1-f)+f*v[1];var c=v[0]-h[0],d=v[1]-h[1];e.rotation=-Math.atan2(d,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(LP),_Z=mZ,SZ=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),xZ=function(r){E(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SZ},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o0){e.moveTo(n[o++],n[o++]);for(var l=1;l0){var c=(u+h)/2-(f-v)*i,d=(f+v)/2-(h-u)*i;e.quadraticCurveTo(c,d,h,v)}else e.lineTo(h,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u0)for(var h=i[u++],v=i[u++],c=1;c0){var g=(h+d)/2-(v-p)*o,y=(v+p)/2-(d-h)*o;if(BD(h,v,g,y,d,p,s,e,a))return l}else if(mn(h,v,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),bZ=wZ,TZ={seriesType:"lines",plan:ks(),reset:function(r){var t=r.coordinateSystem;if(!!t){var e=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(e){for(var u=0,f=n.start;f0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var h=e.get("clip",!0)&&_c(e.coordinateSystem,!1,e);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=kP.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new bZ:new q0(o?i?_Z:PP:i?LP:X0),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Ut),AZ=MZ,DZ=typeof Uint32Array=="undefined"?Array:Uint32Array,CZ=typeof Float64Array=="undefined"?Array:Float64Array;function Rb(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=F(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Cm([n,e[0],e[1]])}))}var IZ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Rb(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Rb(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=dg(this._flatCoords,a.flatCoords),this._flatCoordsOffset=dg(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(jt),LZ=IZ;function Zf(r){return r instanceof Array||(r=[r,r]),r}var PZ={seriesType:"lines",reset:function(r){var t=Zf(r.get("symbol")),e=Zf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Zf(s.getShallow("symbol",!0)),u=Zf(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}},kZ=PZ;function RZ(r){r.registerChartView(AZ),r.registerSeriesModel(LZ),r.registerLayout(kP),r.registerVisual(kZ)}var EZ=256,OZ=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Za.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,h=this.canvas,v=h.getContext("2d"),c=t.length;h.width=e,h.height=a;for(var d=0;d0){var I=o(_)?l:u;_>0&&(_=_*D+T),w[x++]=I[C],w[x++]=I[C+1],w[x++]=I[C+2],w[x++]=I[C+3]*_*256}else x+=4}return v.putImageData(S,0,0),h},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Za.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}(),NZ=OZ;function VZ(r,t,e){var a=r[1]-r[0];t=F(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=t[0]&&a<=t[1]}}function Eb(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var zZ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Eb(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(Eb(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){qn(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,a,n,i,o){var s=e.coordinateSystem,l=uo(s,"cartesian2d"),u,f,h,v;if(l){var c=s.getAxis("x"),d=s.getAxis("y");u=c.getBandWidth()+.5,f=d.getBandWidth()+.5,h=c.scale.getExtent(),v=d.scale.getExtent()}for(var p=this.group,g=e.getData(),y=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),_=e.getModel(["select","itemStyle"]).getItemStyle(),S=e.get(["itemStyle","borderRadius"]),w=be(e),x=e.getModel("emphasis"),b=x.get("focus"),T=x.get("blurScope"),M=x.get("disabled"),D=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],C=n;Ch[1]||kv[1])continue;var R=s.dataToPoint([P,k]);I=new Tt({shape:{x:R[0]-u/2,y:R[1]-f/2,width:u,height:f},style:L})}else{if(isNaN(g.get(D[1],C)))continue;I=new Tt({z2:1,shape:s.dataToRect([g.get(D[0],C)]).contentShape,style:L})}if(g.hasItemOption){var N=g.getItemModel(C),O=N.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),S=N.get(["itemStyle","borderRadius"]),b=O.get("focus"),T=O.get("blurScope"),M=O.get("disabled"),w=be(N)}I.shape.r=S;var V=e.getRawValue(C),G="-";V&&V[2]!=null&&(G=V[2]+""),ze(I,w,{labelFetcher:e,labelDataIndex:C,defaultOpacity:L.opacity,defaultText:G}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=m,I.ensureState("select").style=_,ie(I,b,T,M),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(C,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new NZ;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),h=e.getRoamTransform();f.applyTransform(h);var v=Math.max(f.x,0),c=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(b,T,M){var D=e.dataToPoint([b,T]);return D[0]-=v,D[1]-=c,D.push(M),D}),S=n.getExtent(),w=n.type==="visualMap.continuous"?BZ(S,n.option.range):VZ(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var x=new Ce({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(Ut),FZ=zZ,GZ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return nn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Nu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(jt),HZ=GZ;function WZ(r){r.registerChartView(FZ),r.registerSeriesModel(HZ)}var YZ=["itemStyle","borderWidth"],Ob=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Cp=new xa,$Z=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:Ob[+f],categoryDim:Ob[1-+f]};return o.diff(s).add(function(c){if(!!o.hasValue(c)){var d=Vb(o,c),p=Nb(o,c,d,v),g=Bb(o,v,p);o.setItemGraphicEl(c,g),i.add(g),Fb(g,v,p)}}).update(function(c,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(c)){i.remove(p);return}var g=Vb(o,c),y=Nb(o,c,g,v),m=BP(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(c,null),p=null),p?JZ(p,v,y):p=Bb(o,v,y,!0),o.setItemGraphicEl(c,p),p.__pictorialSymbolMeta=y,i.add(p),Fb(p,v,y)}).remove(function(c){var d=s.getItemGraphicEl(c);d&&zb(s,c,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){zb(i,ot(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Ut);function Nb(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),v={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};UZ(e,i,n,a,v),ZZ(r,t,n,i,o,v.boundingLength,v.pxSign,f,a,v),XZ(e,v.symbolScale,u,a,v);var c=v.symbolSize,d=Es(e.get("symbolOffset"),c);return qZ(e,c,n,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function UZ(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(z(o)){var h=[Ip(s,o[0])-l,Ip(s,o[1])-l];h[1]0?1:-1}function Ip(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function ZZ(r,t,e,a,n,i,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(e[h.wh]),c=r.getItemVisual(t,"symbolSize"),d;z(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=H(d[h.index],v),d[f.index]=H(d[f.index],a?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function XZ(r,t,e,a,n){var i=r.get(YZ)||0;i&&(Cp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Cp.updateTransform(),i/=Cp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function qZ(r,t,e,a,n,i,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,d=h.pxSign,p=Math.max(t[c.index]+s,0),g=p;if(a){var y=Math.abs(l),m=xe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,t[c.index]),w=Math.max(p+S*2,0),x=_?0:S*2,b=bD(a),T=b?a:Gb((y+x)/w),M=y-T*p;S=M/2/(_?T:Math.max(T-1,1)),w=p+S*2,x=_?0:S*2,!b&&a!=="fixed"&&(T=u?Gb((Math.abs(u)+x)/w):0),g=T*w-x,h.repeatTimes=T,h.symbolMargin=S}var D=d*(g/2),C=h.pathPosition=[];C[v.index]=e[v.wh]/2,C[c.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(C[0]+=i[0],C[1]+=i[1]);var I=h.bundlePosition=[];I[v.index]=e[v.xy],I[c.index]=e[c.xy];var L=h.barRectShape=B({},e);L[c.wh]=d*Math.max(Math.abs(e[c.wh]),Math.abs(C[c.index]+D)),L[v.wh]=e[v.wh];var P=h.clipShape={};P[v.xy]=-e[v.xy],P[v.wh]=f.ecSize[v.wh],P[c.xy]=0,P[c.wh]=e[c.wh]}function RP(r){var t=r.symbolPatternSize,e=ve(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function EP(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,h=i[t.valueDim.index]+o+e.symbolMargin*2;for(a_(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:y<0)&&(m=u-1-p),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function OP(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?is(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=RP(e),n.add(i),is(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function NP(r,t,e){var a=B({},t.barRectShape),n=r.__pictorialBarRect;n?is(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new Tt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function VP(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)Dt(n,{shape:i},s,l);else{i[o.wh]=0,n=new Tt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],Ou[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function Vb(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=KZ,e.isAnimationEnabled=jZ,e}function KZ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function jZ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Bb(r,t,e,a){var n=new it,i=new it;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?EP(n,t,e):OP(n,t,e),NP(n,e,a),VP(n,t,e,a),n.__pictorialShapeStr=BP(r,e),n.__pictorialSymbolMeta=e,n}function JZ(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;Dt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?EP(r,t,e,!0):OP(r,t,e,!0),NP(r,e,!0),VP(r,t,e,!0)}function zb(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];a_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Hn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function BP(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function a_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function is(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&Ou[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function Fb(r,t,e){var a=e.dataIndex,n=e.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),h=i.get("blurScope"),v=i.get("scale");a_(r,function(p){if(p instanceof Ce){var g=p.style;p.useStyle(B({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var c=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;ze(d,be(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:cs(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:c}),ie(r,f,h,i.get("disabled"))}function Gb(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var QZ=$Z,tX=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Kn(sv.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(sv),eX=tX;function rX(r){r.registerChartView(QZ),r.registerSeriesModel(eX),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,st(SI,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,xI("pictorialBar"))}var aX=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,h=u.boundaryGap;s.x=0,s.y=f.y+h[0];function v(g){return g.name}var c=new Ja(this._layersSeries||[],l,v,v),d=[];c.add(U(p,this,"add")).update(U(p,this,"update")).remove(U(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],w=[],x,b=l[y].indices,T=0;Ti&&(i=s),a.push(s)}for(var u=0;ui&&(i=h)}return{y0:n,max:i}}function fX(r){r.registerChartView(iX),r.registerSeriesModel(sX),r.registerLayout(lX),r.registerProcessor($u("themeRiver"))}var hX=2,vX=4,cX=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=hX,o.textConfig={inside:!0},ot(o).seriesIndex=a.seriesIndex;var s=new It({z2:vX,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ot(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),h=B({},f);h.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=uu(c,o));var d=Xo(l.getModel("itemStyle"),h,!0);B(h,d),A(Ue,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var w=Xo(S,h);w&&(_.shape=w)}),e?(s.setShape(h),s.shape.r=f.r0,Dt(s,{shape:{r:f.r}},n,a.dataIndex)):(Dt(s,{shape:h},n),qr(s)),s.useStyle(v),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;ie(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),h=this,v=h.getTextContent(),c=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?D=0:D=(o.r+o.r0)/2,I="center"):I==="left"?(D=o.r0+C,l>Math.PI/2&&(I="right")):I==="right"&&(D=o.r-C,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=D*u+o.cx,S.y=D*f+o.cy;var L=g(m,"rotate"),P=0;L==="radial"?(P=-l,P<-Math.PI/2&&(P+=Math.PI)):L==="tangential"?(P=Math.PI/2-l,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):At(L)&&(P=L*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _==null?i.get(m):_}v.dirtyStyle()},t}(tr),Wb=cX,Ey="sunburstRootToNode",Yb="sunburstHighlight",dX="sunburstUnhighlight";function pX(r){r.registerAction({type:Ey,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(n,i){var o=du(t,[Ey],n);if(o){var s=n.getViewRoot();s&&(t.direction=Y0(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:Yb,update:"none"},function(t,e,a){t=B({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i){var o=du(t,[Yb],i);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(B(t,{type:"highlight"}))}),r.registerAction({type:dX,update:"updateView"},function(t,e,a){t=B({},t),a.dispatchAction(B(t,{type:"downplay"}))})}var gX=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,h=e.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];d(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function d(m,_){if(m.length===0&&_.length===0)return;new Ja(_,m,S,S).add(w).update(w).remove(st(w,null)).execute();function S(x){return x.getId()}function w(x,b){var T=x==null?null:m[x],M=b==null?null:_[b];p(T,M)}}function p(m,_){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new Wb(m,e,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){!m||m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new Wb(m,e,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Xh(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Ey,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Ut),yX=gX,mX=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};zP(n);var i=this._levelModels=F(e.levels||[],function(l){return new $t(l,this,a)},this),o=W0.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var h=o.getNodeByDataIndex(f),v=i[h.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=wc(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){HL(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(jt);function zP(r){var t=0;A(r.children,function(a){zP(a);var n=a.value;z(n)&&(n=n[0]),t+=n});var e=r.value;z(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),z(r.value)?r.value[0]=e:r.value=e}var _X=mX,$b=Math.PI/180;function SX(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");z(i)||(i=[0,i]),z(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=H(n[0],o),f=H(n[1],s),h=H(i[0],l/2),v=H(i[1],l/2),c=-a.get("startAngle")*$b,d=a.get("minAngle")*$b,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&FP(g,m);var _=0;A(g.children,function(R){!isNaN(R.getValue())&&_++});var S=g.getValue(),w=Math.PI/(S||_)*2,x=g.depth>0,b=g.height-(x?-1:1),T=(v-h)/(b||1),M=a.get("clockwise"),D=a.get("stillShowZeroSum"),C=M?1:-1,I=function(R,N){if(!!R){var O=N;if(R!==p){var V=R.getValue(),G=S===0&&D?w:V*w;G1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&Y(s)&&(s=Ag(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");B(u,l)})})}function bX(r){r.registerChartView(yX),r.registerSeriesModel(_X),r.registerLayout(st(SX,"sunburst")),r.registerProcessor(st($u,"sunburst")),r.registerVisual(wX),pX(r)}var Ub={color:"fill",borderColor:"stroke"},TX={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ya=Ct(),MX=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return nn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Ya(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(jt),AX=MX;function DX(r,t){return t=t||[0,0],F(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function CX(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:U(DX,r)}}}function IX(r,t){return t=t||[0,0],F([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function LX(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:U(IX,r)}}}function PX(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function kX(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:U(PX,r)}}}function RX(r,t){return t=t||[0,0],F(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function EX(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:U(RX,r)}}}function OX(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)}}}}function GP(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Z(r,"text")))}function HP(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},Z(a,"text")&&(o.text=a.text),Z(a,"rich")&&(o.rich=a.rich),Z(a,"textFill")&&(o.fill=a.textFill),Z(a,"textStroke")&&(o.stroke=a.textStroke),Z(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Z(a,"fontSize")&&(o.fontSize=a.fontSize),Z(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Z(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Z(a,"textPosition")&&(n.position=a.textPosition),Z(a,"textOffset")&&(n.offset=a.textOffset),Z(a,"textRotation")&&(n.rotation=a.textRotation),Z(a,"textDistance")&&(n.distance=a.textDistance)}return Zb(o,r),A(o.rich,function(l){Zb(l,l)}),{textConfig:n,textContent:i}}function Zb(r,t){!t||(t.font=t.textFont||t.font,Z(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Z(t,"textAlign")&&(r.align=t.textAlign),Z(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Z(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Z(t,"textWidth")&&(r.width=t.textWidth),Z(t,"textHeight")&&(r.height=t.textHeight),Z(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Z(t,"textPadding")&&(r.padding=t.textPadding),Z(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Z(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Z(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Z(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Z(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Z(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Z(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function Xb(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";qb(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||"#fff",!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||"#000"),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){qb(s,s)}),a}function qb(r,t){!t||(Z(t,"fill")&&(r.textFill=t.fill),Z(t,"stroke")&&(r.textStroke=t.fill),Z(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Z(t,"font")&&(r.font=t.font),Z(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Z(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Z(t,"fontSize")&&(r.fontSize=t.fontSize),Z(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Z(t,"align")&&(r.textAlign=t.align),Z(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Z(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Z(t,"width")&&(r.textWidth=t.width),Z(t,"height")&&(r.textHeight=t.height),Z(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Z(t,"padding")&&(r.textPadding=t.padding),Z(t,"borderColor")&&(r.textBorderColor=t.borderColor),Z(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Z(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Z(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Z(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Z(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Z(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Z(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Z(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Z(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Z(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var WP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Kb=xt(WP);ga(ma,function(r,t){return r[t]=1,r},{});ma.join(", ");var pv=["","style","shape","extra"],gs=Ct();function n_(r,t,e,a,n){var i=r+"Animation",o=Ts(r,a,n)||{},s=gs(t).userDuring;return o.duration>0&&(o.during=s?U(FX,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,e[i]),o}function wh(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=gs(r),u=t.style;l.userDuring=t.during;var f={},h={};if(HX(r,t,h),Jb("shape",t,h),Jb("extra",t,h),!i&&s&&(GX(r,t,f),jb("shape",r,t,f),jb("extra",r,t,f),WX(r,t,u,f)),h.style=u,NX(r,h,o),BX(r,t),s)if(i){var v={};A(pv,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),B(d?v[d]:v,p.enterFrom))});var c=n_("enter",r,t,e,n);c.duration>0&&r.animateFrom(v,c)}else VX(r,t,n||0,e,f);YP(r,t),u?r.dirty():r.markRedraw()}function YP(r,t){for(var e=gs(r).leaveToProps,a=0;a0&&r.animateFrom(n,i)}}function BX(r,t){Z(t,"silent")&&(r.silent=t.silent),Z(t,"ignore")&&(r.ignore=t.ignore),r instanceof Lr&&Z(t,"invisible")&&(r.invisible=t.invisible),r instanceof _t&&Z(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var na={},zX={setTransform:function(r,t){return na.el[r]=t,this},getTransform:function(r){return na.el[r]},setShape:function(r,t){var e=na.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=na.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=na.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=na.el.style;if(t)return t[r]},setExtra:function(r,t){var e=na.el.extra||(na.el.extra={});return e[r]=t,this},getExtra:function(r){var t=na.el.extra;if(t)return t[r]}};function FX(){var r=this,t=r.el;if(!!t){var e=gs(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}na.el=t,a(zX)}}function jb(r,t,e,a){var n=e[r];if(!!n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),qi(l))B(o,i);else for(var u=Gt(l),f=0;f=0){!o&&(o=a[r]={});for(var c=xt(i),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!i&&(i=a.style={});for(var d=xt(e),u=0;u=0?t.getStore().get(N,k):void 0}var O=t.get(R.name,k),V=R&&R.ordinalMeta;return V?V.categories[O]:O}function x(P,k){k==null&&(k=u);var R=t.getItemVisual(k,"style"),N=R&&R.fill,O=R&&R.opacity,V=m(k,Rn).getItemStyle();N!=null&&(V.fill=N),O!=null&&(V.opacity=O);var G={inheritColor:Y(N)?N:"#000"},W=_(k,Rn),X=Kt(W,null,G,!1,!0);X.text=W.getShallow("show")?ct(r.getFormattedLabel(k,Rn),cs(t,k)):null;var at=Uh(W,G,!1);return M(P,V),V=Xb(V,X,at),P&&T(V,P),V.legacy=!0,V}function b(P,k){k==null&&(k=u);var R=m(k,$a).getItemStyle(),N=_(k,$a),O=Kt(N,null,null,!0,!0);O.text=N.getShallow("show")?Fa(r.getFormattedLabel(k,$a),r.getFormattedLabel(k,Rn),cs(t,k)):null;var V=Uh(N,null,!0);return M(P,R),R=Xb(R,O,V),P&&T(R,P),R.legacy=!0,R}function T(P,k){for(var R in k)Z(k,R)&&(P[R]=k[R])}function M(P,k){P&&(P.textFill&&(k.textFill=P.textFill),P.textPosition&&(k.textPosition=P.textPosition))}function D(P,k){if(k==null&&(k=u),Z(Ub,P)){var R=t.getItemVisual(k,"style");return R?R[Ub[P]]:null}if(Z(TX,P))return t.getItemVisual(k,P)}function C(P){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return rH(Q({axis:k},P))}}function I(){return e.getCurrentSeriesIndices()}function L(P){return CC(P,e)}}function tq(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Rp(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=u_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&ie(s,a.focus,a.blurScope,a.emphasisDisabled),s}function u_(r,t,e,a,n,i){var o=-1,s=t;t&&XP(t,a,n)&&(o=pt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=s_(a),s&&qX(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),gr.normal.cfg=gr.normal.conOpt=gr.emphasis.cfg=gr.emphasis.conOpt=gr.blur.cfg=gr.blur.conOpt=gr.select.cfg=gr.select.conOpt=null,gr.isLegacy=!1,rq(u,e,a,n,l,gr),eq(u,e,a,n,l),l_(r,u,e,a,gr,n,l),Z(a,"info")&&(Ya(u).info=a.info);for(var f=0;f=0?i.replaceAt(u,o):i.add(u),u}function XP(r,t,e){var a=Ya(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&oq(i)&&qP(i)!==a.customPathData||n==="image"&&Z(o,"image")&&o.image!==a.customImagePath}function eq(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&XP(o,i,a)&&(o=null),o||(o=s_(i),r.setClipPath(o)),l_(null,o,t,i,null,a,n)}}function rq(r,t,e,a,n,i){if(!r.isGroup){tT(e,null,i),tT(e,$a,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=s_(o),r.setTextContent(f)),l_(null,f,t,o,null,a,n);for(var h=o&&o.style,v=0;v=f;h--){var v=t.childAt(h);Mc(v,Ya(t).option,n)}}}function nq(r){new Ja(r.oldChildren,r.newChildren,eT,eT,r).add(rT).update(rT).remove(iq).execute()}function eT(r,t){var e=r&&r.name;return e!=null?e:ZX+t}function rT(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;u_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function iq(r){var t=this.context,e=t.oldChildren[r];Mc(e,Ya(e).option,t.seriesModel)}function qP(r){return r&&(r.pathData||r.d)}function oq(r){return r&&(Z(r,"pathData")||Z(r,"d"))}function sq(r){r.registerChartView(jX),r.registerSeriesModel(AX)}var ki=Ct(),aT=rt,Ep=U,lq=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new it,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=st(nT,e,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}oT(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=N0(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=ki(t).pointerEl=new Ou[i.type](aT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=ki(t).labelEl=new It(aT(e.label));t.add(i),iT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=ki(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=ki(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),iT(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Eu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Xa(u.event)},onmousedown:Ep(this._onHandleDragMove,this,0,0),drift:Ep(this._onHandleDragMove,this),ondragend:Ep(this._onHandleDragEnd,this)}),a.add(n)),oT(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Rs(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){nT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Op(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(!!a){this._dragging=!0;var n=this.updateHandleTransform(Op(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Op(n)),ki(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ou(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function nT(r,t,e,a){KP(ki(e).lastProp,a)||(ki(e).lastProp=a,t?Dt(e,a,r):(e.stopAnimation(),e.attr(a)))}function KP(r,t){if(tt(r)&&tt(t)){var e=!0;return A(t,function(a,n){e=e&&KP(r[n],a)}),!!e}else return r===t}function iT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Op(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function oT(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}var h_=lq;function v_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function jP(r,t,e,a,n){var i=e.get("value"),o=JP(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Cs(s.get("padding")||0),u=s.getFont(),f=Iu(o,u),h=n.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=n.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),uq(h,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Kt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function uq(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function JP(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:D0(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Y(o)?i=o.replace("{value}",i):J(o)&&(i=o(s))}return i}function c_(r,t,e){var a=Ir();return oo(a,a,e.rotation),ya(a,a,e.position),$r([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function QP(r,t,e,a,n,i){var o=Qa.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),jP(t,a,n,i,{position:c_(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function d_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function tk(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function sT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var fq=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=lT(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=v_(i),c=hq[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=my(l.model,n);QP(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=my(a.axis.grid.model,a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=c_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=lT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=a[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:c,tooltipOption:d[f]}},t}(h_);function lT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var hq={line:function(r,t,e){var a=d_([t,e[0]],[t,e[1]],uT(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:tk([t-a/2,e[0]],[a,n],uT(r))}}};function uT(r){return r.dim==="x"?0:1}var vq=fq,cq=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Mt),dq=cq,Ba=Ct(),pq=A;function ek(r,t,e){if(!Pt.node){var a=t.getZr();Ba(a).records||(Ba(a).records={}),gq(a,t);var n=Ba(a).records[r]||(Ba(a).records[r]={});n.handler=e}}function gq(r,t){if(Ba(r).initialized)return;Ba(r).initialized=!0,e("click",st(fT,"click")),e("mousemove",st(fT,"mousemove")),e("globalout",mq);function e(a,n){r.on(a,function(i){var o=_q(t);pq(Ba(r).records,function(s){s&&n(s,i,o.dispatchAction)}),yq(o.pendings,t)})}}function yq(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function mq(r,t,e){r.handler("leave",null,e)}function fT(r,t,e,a){t.handler(r,e,a)}function _q(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Vy(r,t){if(!Pt.node){var e=t.getZr(),a=(Ba(e).records||{})[r];a&&(Ba(e).records[r]=null)}}var Sq=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";ek("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Vy("axisPointer",a)},t.prototype.dispose=function(e,a){Vy("axisPointer",a)},t.type="axisPointer",t}(re),xq=Sq;function rk(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Ji(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=i.mapDimension(v),p=[];p[c]=i.get(d,o),p[1-c]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(F(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var hT=Ct();function wq(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||U(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){bh(n)&&(n=rk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=bh(n),u=i.axesInfo,f=s.axesInfo,h=a==="leave"||bh(n),v={},c={},d={list:[],map:{}},p={showPointer:st(Tq,c),showTooltip:st(Mq,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=Iq(u,S);if(!h&&_&&(!u||b)){var T=b&&b.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&vT(S,T,p,!1,v)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,w){var x=c[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,cT(S),cT(y)))),g[y.key]=b}})}),A(g,function(y,m){vT(f[m],y,p,!0,v)}),Aq(c,f,v),Dq(d,n,r,o),Cq(f,o,e),v}}function vT(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=bq(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function bq(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,e);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,n=h,i.length=0),A(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function Tq(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function Mq(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=cu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function Aq(r,t,e){var a=e.axesInfo=[];A(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function Dq(r,t,e,a){if(bh(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function Cq(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=hT(a)[n]||{},o=hT(a)[n]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Iq(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function cT(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function bh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function qu(r){fo.registerAxisPointerClass("CartesianAxisPointer",vq),r.registerComponentModel(dq),r.registerComponentView(xq),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=yY(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},wq)}function Lq(r){yt(DL),yt(qu)}var Pq=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(a),v=i.get("type");if(v&&v!=="none"){var c=v_(i),d=Rq[v](s,l,h,f);d.style=c,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=kq(a,n,i,l,p);jP(e,n,i,o,g)},t}(h_);function kq(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,h;if(i.dim==="radius"){var v=Ir();oo(v,v,s),ya(v,v,[a.cx,a.cy]),u=$r([o,-n],v);var c=t.getModel("axisLabel").get("rotate")||0,d=Qa.innerTextLayout(s,c*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var Rq={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:d_(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:sT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:sT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},Eq=Pq,Oq=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Mt),Nq=Oq,p_=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",fe).models[0]},t.type="polarAxis",t}(Mt);ce(p_,Gu);var Vq=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(p_),Bq=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(p_),g_=function(r){E(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(Jr);g_.prototype.dataToRadius=Jr.prototype.dataToCoord;g_.prototype.radiusToData=Jr.prototype.coordToData;var zq=g_,Fq=Ct(),y_=function(r){E(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Iu(s==null?"":s+"",a.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),d=Fq(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-c)<=1&&Math.abs(g-o)<=1&&p>c?c=p:(d.lastTickCount=o,d.lastAutoInterval=c),c},t}(Jr);y_.prototype.dataToAngle=Jr.prototype.dataToCoord;y_.prototype.angleToData=Jr.prototype.coordToData;var Gq=y_,ak=["radius","angle"],Hq=function(){function r(t){this.dimensions=ak,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new zq,this._angleAxis=new Gq,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var a=this.pointToCoord(t);return[this._radiusAxis.radiusToData(a[0],e),this._angleAxis.angleToData(a[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=us;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],a=t[1]/180*Math.PI,n=Math.cos(a)*e+this.cx,i=-Math.sin(a)*e+this.cy;return[n,i]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,h=this.r,v=this.r0;return f<=h*h&&f>=v*v}}},r.prototype.convertToPixel=function(t,e,a){var n=dT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=dT(e);return n===this?this.pointToData(a):null},r}();function dT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var Wq=Hq;function Yq(r,t,e){var a=t.get("center"),n=e.getWidth(),i=e.getHeight();r.cx=H(a[0],n),r.cy=H(a[1],i);var o=r.getRadiusAxis(),s=Math.min(n,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function $q(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(av(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(av(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),vs(a.scale,a.model),vs(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Uq(r){return r.mainType==="angleAxis"}function pT(r,t){if(r.type=t.get("type"),r.scale=yc(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),Uq(t)){r.inverse=r.inverse!==t.get("clockwise");var e=t.get("startAngle");r.setExtent(e,e+(r.inverse?-360:360))}t.axis=r,r.model=t}var Zq={dimensions:ak,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new Wq(n+"");i.update=$q;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");pT(o,l),pT(s,u),Yq(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",fe).models[0];a.coordinateSystem=n.coordinateSystem}}),e}},Xq=Zq,qq=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function qf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function gT(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var Kq=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=F(n.getViewLabels(),function(f){f=rt(f);var h=n.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(v),f});gT(u),gT(s),A(qq,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&jq[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(fo),jq={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=qf(e),l=s?0:1,u;i[l]===0?u=new xa({shape:{cx:e.cx,cy:e.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Qv({shape:{cx:e.cx,cy:e.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[qf(e)],u=F(a,function(f){return new we({shape:Xf(e,[l,l+s],f.coord)})});r.add(Mr(u,{style:Q(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(!!n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[qf(e)],f=[],h=0;hy?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var w=s[d];tt(w)&&w.textStyle&&(c=new $t(w.textStyle,l,l.ecModel))}var x=new It({silent:Qa.isLabelSilent(t),style:Kt(c,{x:g[0],y:g[1],fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var b=Qa.makeAxisEventDataBase(t);b.targetType="axisLabel",b.value=h.rawLabel,ot(x).eventData=b}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h=0?"p":"n",L=b;w&&(a[f][C]||(a[f][C]={p:b,n:b}),L=a[f][C][I]);var P=void 0,k=void 0,R=void 0,N=void 0;if(d.dim==="radius"){var O=d.dataToCoord(D)-b,V=l.dataToCoord(C);Math.abs(O)=N})}}})}function oK(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=ik(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),h=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;t[l]=h;var c=nk(a);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var d=H(a.get("barWidth"),f),p=H(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!v[c].width&&(d=Math.min(h.remainedWidth,d),v[c].width=d,h.remainedWidth-=d),p&&(v[c].maxWidth=p),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=H(a.categoryGap,o),l=H(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),A(i,function(p,g){var y=p.maxWidth;y&&y=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),a=this.getRect(),n=[],i=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[i]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-i]=i===0?a.y+a.height/2:a.x+a.width/2,n},r.prototype.convertToPixel=function(t,e,a){var n=yT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=yT(e);return n===this?this.pointToData(a):null},r}();function yT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function _K(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new mK(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",fe).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var SK={create:_K,dimensions:sk},xK=SK,mT=["x","y"],wK=["width","height"],bK=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Vp(l,1-mv(s)),f=l.dataToPoint(a)[0],h=i.get("type");if(h&&h!=="none"){var v=v_(i),c=TK[h](s,f,u);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=By(n);QP(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=By(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=c_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=mv(o),u=Vp(s,l),f=[e.x,e.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var h=Vp(s,1-l),v=(h[1]+h[0])/2,c=[v,v];return c[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},t}(h_),TK={line:function(r,t,e){var a=d_([t,e[0]],[t,e[1]],mv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:tk([t-a/2,e[0]],[a,n],mv(r))}}};function mv(r){return r.isHorizontal()?0:1}function Vp(r,t){var e=r.getRect();return[e[mT[t]],e[mT[t]]+e[wK[t]]]}var MK=bK,AK=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(re);function DK(r){yt(qu),fo.registerAxisPointerClass("SingleAxisPointer",MK),r.registerComponentView(AK),r.registerComponentView(pK),r.registerComponentModel(Np),ds(r,"single",Np,Np.defaultOption),r.registerCoordinateSystem("single",xK)}var CK=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=Is(e);r.prototype.init.apply(this,arguments),_T(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),_T(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Mt);function _T(r,t){var e=r.cellSize,a;z(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=F([0,1],function(i){return OF(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Wn(r,t,{type:"box",ignoreSize:n})}var IK=CK,LK=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,h=new Tt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=a.start,v=0;h.time<=a.end.time;v++){d(h.formatedDate),v===0&&(h=s.getDateInfo(a.start.y+"-"+a.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new rr({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return Y(e)&&e?kF(e,a):J(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=n==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new It({z2:30,style:Kt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||Y(s))&&(s&&(a=Xg(s)||a),s=a.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p=n.start.time&&a.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Bp)-Math.floor(e[0].time/Bp)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),h=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&en.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n);a.push(i),n.coordinateSystem=i}),t.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=a[n.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function ST(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var RK=kK;function EK(r){r.registerComponentModel(IK),r.registerComponentView(PK),r.registerCoordinateSystem("calendar",RK)}function OK(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function xT(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function NK(r,t,e){var a=B({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(ht(n,a,!0),Wn(n,a,{ignoreSize:!0}),ZC(e,n),Kf(e,n),Kf(e,n,"shape"),Kf(e,n,"style"),Kf(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var lk=["transition","enterFrom","leaveTo"],VK=lk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Kf(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?lk:VK,n=0;n=0;f--){var h=n[f],v=de(h.id,null),c=v!=null?o.get(v):null;if(!!c){var d=c.parent,y=xr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=uc(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!xr(c).isNew&&S){for(var w=h.transition,x={},b=0;b=0)?x[T]=M:c[T]=M}Dt(c,x,e,0)}else c.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Th(n,xr(n).option,a,e._lastGraphicModel)}),this._elMap=K()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(re);function zy(r){var t=Z(wT,r)?wT[r]:Jm(r),e=new t({});return xr(e).type=r,e}function bT(r,t,e,a){var n=zy(e);return t.add(n),a.set(r,n),xr(n).id=r,xr(n).isNew=!0,n}function Th(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Th(i,t,e,a)}),Mc(r,t,a),e.removeKey(xr(r).id))}function TT(r,t,e,a){if(!r.isGroup){var n=r;n.cursor=ct(t.cursor,Lr.prototype.cursor),n.z=ct(t.z,e||0),n.zlevel=ct(t.zlevel,a||0);var i=t.z2;i!=null&&(n.z2=i||0)}A(xt(t),function(o){var s=t[o];o.indexOf("on")===0&&J(s)&&(r[o]=s)}),r.draggable=t.draggable,t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function GK(r){return r=B({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(UC),function(t){delete r[t]}),r}function HK(r,t,e){var a=ot(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ot(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function WK(r){r.registerComponentModel(zK),r.registerComponentView(FK),r.registerPreprocessor(function(t){var e=t.graphic;z(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var MT=["x","y","radius","angle","single"],YK=["cartesian2d","polar","singleAxis"];function $K(r){var t=r.get("coordinateSystem");return pt(YK,t)>=0}function En(r){return r+"Axis"}function UK(r,t){var e=K(),a=[],n=K();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var d=e.get(v);d&&d[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(e.get(h)||e.set(h,[]))[v]=!0})}return a}function uk(r){var t=r.ecModel,e={infoList:[],infoMap:K()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(En(a),n);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var zp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),ZK=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=AT(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=AT(e);ht(this.option,e,!0),ht(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=K(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(MT,function(n){var i=this.getReferringComponents(En(n),u5);if(!!i.specified){a=!0;var o=new zp;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var h=u[0];if(!!h){var v=new zp;if(v.add(h.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",fe).models[0];c&&A(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",fe).models[0]&&v.add(d.componentIndex)})}}}i&&A(MT,function(u){if(!!i){var f=n.findComponents({mainType:En(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new zp;h.add(f[0].componentIndex),e.set(u,h),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(En(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(En(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(d=!0),w&&(p=!0)}return g&&d&&p})}else Fo(f,function(c){if(i==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});Fo(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;Fo(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Nt(a[0]+o,a,[0,100],!0):i!=null&&(o=Nt(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(!!e){var n=SD(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function tj(r,t,e){var a=[1/0,-1/0];Fo(e,function(o){MH(a,o.getData(),t)});var n=r.getAxisModel(),i=DI(n.axis.scale,n,a).calculate();return[i.min,i.max]}var ej=QK,rj={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(En(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new ej(n,i,s,r),e.push(o.__dzAxisProxy))});var a=K();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},aj=rj;function nj(r){r.registerAction("dataZoom",function(t,e){var a=UK(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var CT=!1;function __(r){CT||(CT=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,aj),nj(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ij(r){r.registerComponentModel(qK),r.registerComponentView(JK),__(r)}var Tr=function(){function r(){}return r}(),fk={};function Go(r,t){fk[r]=t}function hk(r){return fk[r]}var oj=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(a,n){var i=hk(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),ht(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Mt),sj=oj;function lj(r,t,e){var a=t.getBoxLayoutParams(),n=t.get("padding"),i={width:e.getWidth(),height:e.getHeight()},o=pe(a,i,n);Ui(t.get("orient"),r,t.get("itemGap"),o.width,o.height),uc(r,a,i,n)}function vk(r,t){var e=Cs(t.get("padding")),a=t.getItemStyle(["color","opacity"]);return a.fill=t.get("backgroundColor"),r=new Tt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var uj=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),h=[];A(u,function(d,p){h.push(p)}),new Ja(this._featureNames||[],h).add(v).update(v).remove(st(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],y=h[p],m=u[g],_=new $t(m,e,e.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(fj(g))S={onclick:_.option.onclick,featureName:g};else{var w=hk(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=Ds("toolbox-feature"),S.model=_,S.ecModel=a,S.api=n;var x=S instanceof Tr;if(!g&&y){x&&S.dispose&&S.dispose(a,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(a,n);return}c(_,S,g),_.setIconStatus=function(b,T){var M=this.option,D=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[b]=T,D[b]&&(T==="emphasis"?Ka:ja)(D[b])},S instanceof Tr&&S.render&&S.render(_,a,n,i)}function c(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Tr&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;Y(_)?(w={},w[g]=_):w=_,Y(S)?(x={},x[g]=S):x=S;var b=d.iconPaths={};A(w,function(T,M){var D=Eu(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var C=D.ensureState("emphasis");C.style=m.getItemStyle();var I=new It({style:{text:x[M],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(I),Ms({el:D,componentModel:e,itemName:M,formatterParamsExtra:{title:x[M]}}),D.__title=x[M],D.on("mouseover",function(){var L=m.getItemStyle(),P=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",M])!=="emphasis"&&n.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",M])==="emphasis"?Ka:ja)(D),o.add(D),D.on("click",U(p.onclick,p,a,n,M)),b[M]=D})}lj(o,e,n),o.add(vk(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!J(_)&&p){var S=_.style||(_.style={}),w=Iu(p,It.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,T=!1;b+w.height>n.getHeight()&&(y.position="top",T=!0);var M=T?-5-w.height:s+10;x+w.width/2>n.getWidth()?(y.position=["100%",M],S.align="right"):x-w.width/2<0&&(y.position=[0,M],S.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Tr&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Tr&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Tr&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(re);function fj(r){return r.indexOf("my")===0}var hj=uj,vj=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Pt.browser;if(J(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];c&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=n.get("lang"),b='',T=window.open();T.document.write(b),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Tr),cj=vj,IT="__ec_magicType_stack__",dj=[["line","bar"],["stack"]],pj=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(!!LT[n]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=LT[n](v,c,h,i);d&&(Q(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,fe).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(dj,function(h){pt(h,n)>=0&&A(h,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=ht({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Tr),LT={line:function(r,t,e,a){if(r==="bar")return ht({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return ht({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===IT;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),ht({id:t,stack:n?"":IT},a.get(["option","stack"])||{},!0)}};Ma({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var gj=pj,Ac=new Array(60).join("-"),ys=" ";function yj(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function mj(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(F(e.series,function(c){return c.name})),l=[n.model.getCategories()];A(e.series,function(c){var d=c.getRawData();l.push(c.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ys)],f=0;f=0)return!0}var Fy=new RegExp("["+ys+"]+","g");function wj(r){for(var t=r.split(/\n+/g),e=_v(t.shift()).split(Fy),a=[],n=F(e,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function Ij(r){var t=S_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return ck(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function Lj(r){dk(r).snapshots=null}function Pj(r){return S_(r).length}function S_(r){var t=dk(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var kj=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){Lj(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Tr);Ma({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var Rj=kj,Ej=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Oj=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=PT(e,t);A(Nj,function(o,s){(!a||!a.include||pt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Fp[a.brushType](0,i,n);a.__rangeOffset={offset:OT[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=Fp[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Fp[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?OT[a.brushType](i.values,o.offset,Vj(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return F(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:xP(n),isTargetByCursor:bP(n,t,a.coordSysModel),getLinearBrushOtherExtent:wP(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&pt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=PT(e,t),i=0;ir[1]&&r.reverse(),r}function PT(r,t){return kl(r,t,{includeMainTypes:Ej})}var Nj={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=K(),o={},s={};!e&&!a&&!n||(A(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(h,v){(pt(e,h.getAxis("x").model)>=0||pt(a,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:RT.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:RT.geo})})}},kT=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],RT={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform($i(r)),t}},Fp={lineX:st(ET,0),lineY:st(ET,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[Gy([n[0],i[0]]),Gy([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=F(e,function(o){var s=r?t.pointToData(o,a):t.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function ET(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Gy(F([0,1],function(s){return t?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var OT={lineX:st(NT,0),lineY:st(NT,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return F(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function NT(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function Vj(r,t){var e=VT(r),a=VT(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function VT(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var x_=Oj,Hy=A,Bj=n5("toolbox-dataZoom_"),zj=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new e_(n.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),Hj(e,a,this,i,n),Gj(e,a)},t.prototype.onclick=function(e,a,n){Fj[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new x_(w_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),Cj(i,n),this._dispatchZoomAction(n);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,i),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=ho(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var d=c.getAxisModel(u,f.componentIndex);d&&(v=c)}),v}},t.prototype._dispatchZoomAction=function(e){var a=[];Hy(e,function(n,i){a.push(rt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},t}(Tr),Fj={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Ij(this.ecModel))}};function w_(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Gj(r,t){r.setIconStatus("back",Pj(t)>1?"emphasis":"normal")}function Hj(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new x_(w_(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}GF("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=w_(a),o=kl(r,i);Hy(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Hy(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:Bj+u+h};v[f]=h,n.push(v)}return n});var Wj=zj;function Yj(r){r.registerComponentModel(sj),r.registerComponentView(hj),Go("saveAsImage",cj),Go("magicType",gj),Go("dataView",Dj),Go("dataZoom",Wj),Go("restore",Rj),yt(ij)}var $j=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Mt),Uj=$j;function pk(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function gk(r){if(!!Pt.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e-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,h=o+n,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*n)/2+Math.SQRT2*n-(v-h)/2)*100)/100;s+=";"+i+":-"+c+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'
'}function Qj(r,t){var e="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+e,n="opacity"+a+",visibility"+a;return t||(a=" "+r+"s "+e,n+=Pt.transformSupported?","+b_+a:",left"+a+",top"+a),qj+":"+n}function BT(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Pt.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Pt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+b_+":"+o+";":[["top",0],["left",0],[yk,o]]}function tJ(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+n),A(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function eJ(r,t,e){var a=[],n=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=A2(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),t&&n&&a.push(Qj(n,e)),i&&a.push("background-color:"+i),A(["width","color","radius"],function(c){var d="border-"+c,p=YC(d),g=r.get(p);g!=null&&a.push(d+":"+g+(c==="color"?"":"px"))}),a.push(tJ(f)),h!=null&&a.push("padding:"+Cs(h).join("px ")+"px"),a.join(";")+";"}function zT(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&IV(r,o,document.body,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var rJ=function(){function r(t,e,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Pt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),o=this._appendToBody=a&&a.appendToBody;zT(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;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=i.handler,f=i.painter.getViewportRoot();mr(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(t){var e=this._container,a=Xj(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=Kj+eJ(t,!this._firstShow,this._longHide)+BT(i[0],i[1],!0)+("border-color:"+eo(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Y(i)&&a.get("trigger")==="item"&&!pk(a)&&(s=Jj(a,n,i)),Y(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api;if(this._lastX!=null&&this._lastY!=null&&e.get("triggerOn")!=="none"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,a,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Pt.node||!n.getDom())){var o=HT(i,n);this._ticket="";var s=i.dataByCoordSys,l=hJ(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=oJ;f.x=i.x,f.y=i.y,f.update(),ot(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var h=rk(i,a),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(HT(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var f=u.getData(),h=ul([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(!!i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){this._lastDataByCoordSys=null;var s,l;Uo(n,function(u){if(ot(u).dataIndex!=null)return s=u,!0;if(ot(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,a):l?this._showComponentItemTooltip(e,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=U(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=ul([a.tooltipOption],i),l=this._renderMode,u=[],f=_e("section",{blocks:[],noHeader:!0}),h=[],v=new Dd;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=JP(w,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),b=_e("section",{header:x,noHeader:!Hr(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),A(_.seriesDataIndices,function(T){var M=n.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,C=M.getDataParams(D);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=D0(S.axis,{value:w}),C.axisValueLabel=x,C.marker=v.makeTooltipMarker("item",eo(C.color),l);var I=AS(M.formatTooltip(D,!0,null)),L=I.frag;if(L){var P=ul([M],i).get("valueFormatter");b.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&h.push(I.text),u.push(C)}})}})}),f.blocks.reverse(),h.reverse();var c=a.position,d=s.get("order"),p=kS(f,v,l,d,n.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?` `:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=ot(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=e.positionDefault,p=ul([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Dd;y.marker=m.makeTooltipMarker("item",eo(y.color),c);var _=AS(u.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?kS(w?B({valueFormatter:w},x):x,m,c,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=ot(a),o=i.tooltipConfig,s=o.option||{};if(Y(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,v=ul(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",p=new Dd;this._showOrMove(v,function(){var g=rt(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,d,e.offsetX,e.offsetY,e.position,a,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var c=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(Y(v)){var g=e.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=nc(y.axisValue,c,g)),c=$C(c,n,!0)}else if(J(v)){var _=U(function(S,w){S===this._ticket&&(h.setContent(w,f,e,p,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i){if(n==="axis"||z(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var h=o.getSize(),v=e.get("align"),c=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),J(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(a))n=H(a[0],u),i=H(a[1],f);else if(tt(a)){var p=a;p.width=h[0],p.height=h[1];var g=pe(p,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(Y(a)&&l){var y=fJ(a,d,h,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=lJ(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=WT(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=WT(c)?h[1]/2:c==="bottom"?h[1]:0),pk(e)){var y=uJ(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(v,c){var d=h[c]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Pt.node||!a.getDom()||(ou(this,"_updatePosition"),this._tooltipContent.dispose(),Vy("itemTooltip",a))},t.type="tooltip",t}(re);function ul(r,t,e){var a=t.ecModel,n;e?(n=new $t(e,a,a),n=new $t(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof $t&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(n=new $t(o,n,a)))}return n}function HT(r,t){return r.dispatchAction||U(t.dispatchAction,t)}function lJ(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function uJ(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function fJ(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function WT(r){return r==="center"||r==="middle"}function hJ(r,t,e){var a=zm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Lu(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ot(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var vJ=sJ;function cJ(r){yt(qu),r.registerComponentModel(Uj),r.registerComponentView(vJ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},he),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},he)}var dJ=["rect","polygon","keep","clear"];function pJ(r,t){var e=Gt(r?r.brush:[]);if(!!e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;z(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),gJ(s),t&&!s.length&&s.push.apply(s,dJ)}}function gJ(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var YT=A;function $T(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Wy(r,t,e){var a={};return YT(t,function(i){var o=a[i]=n();YT(r[i],function(s,l){if(!!Ae.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ae(u),l==="opacity"&&(u=rt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ae(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function _k(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&$T(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&$T(t[n])?r[n]=rt(t[n]):delete r[n]})}function yJ(r,t,e,a,n,i){var o={};A(r,function(h){var v=Ae.prepareVisualTypes(t[h]);o[h]=v});var s;function l(h){return g0(e,s,h)}function u(h,v){N2(e,s,h,v)}i==null?e.each(f):e.each([i],f);function f(h,v){s=i==null?h:v;var c=e.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var d=a.call(n,h),p=t[d],g=o[d],y=0,m=g.length;yt[0][1]&&(t[0][1]=i[0]),i[1]t[1][1]&&(t[1][1]=i[1])}return t&&KT(t)}};function KT(r){return new gt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var MJ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new e_(a.getZr())).on("brush",U(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){Sk(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:rt(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:rt(n),$from:a})},t.type="brush",t}(re),AJ=MJ,DJ="#ddd",CJ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&_k(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:DJ},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){!e||(this.areas=F(e,function(a){return jT(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=jT(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Mt);function jT(r,t){return ht({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new $t(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}var IJ=CJ,LJ=["rect","polygon","lineX","lineY","keep","clear"],PJ=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:LJ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Tr),kJ=PJ;function RJ(r){r.registerComponentView(AJ),r.registerComponentModel(IJ),r.registerPreprocessor(pJ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,SJ),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},he),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},he),Go("brush",kJ)}var EJ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Mt),OJ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ct(e.get("textBaseline"),e.get("textVerticalAlign")),f=new It({style:Kt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new It({style:Kt(s,{text:v,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,c.silent=!p&&!g,d&&f.on("click",function(){Xh(d,"_"+e.get("target"))}),p&&c.on("click",function(){Xh(p,"_"+e.get("subtarget"))}),ot(f).eventData=ot(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),v&&i.add(c);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=pe(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=i.getBoundingRect();var w=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var b=new Tt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(b)}},t.type="title",t}(re);function NJ(r){r.registerComponentModel(EJ),r.registerComponentView(OJ)}var VJ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var h=de(ws(u),""),v;tt(u)?(v=rt(u),v.value=f):v=f,o.push(v),i.push(h)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new Ye([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Mt),JT=VJ,xk=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=Kn(JT.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(JT);ce(xk,h0.prototype);var BJ=xk,zJ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(re),FJ=zJ,GJ=function(r){E(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Jr),HJ=GJ,Hp=Math.PI,QT=Ct(),WJ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return _e("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=$J(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Hp/2},h=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),c=v.get("show",!0),d=c?v.get("itemSize"):0,p=c?v.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Hp/180;var m,_,S,w=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),b=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),M=0,D=h;w==="left"||w==="bottom"?(x&&(m=[0,0],M+=g),b&&(_=[M,0],M+=g),T&&(S=[D-d,0],D-=g)):(x&&(m=[D-d,0],D-=g),b&&(_=[0,0],M+=g),T&&(S=[D-d,0],D-=g));var C=[M,D];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:h,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:C,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Ir(),l=o.x,u=o.y+o.height;ya(s,s,[-l,-u]),oo(s,s,-Hp/2),ya(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),v=m(i.getBoundingRect()),c=[n.x,n.y],d=[i.x,i.y];d[0]=c[0]=f[0][0];var p=e.labelPosOpt;if(p==null||Y(p)){var g=p==="+"?0:1;_(c,h,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(c,h,f,1,g),d[1]=c[1]+p}n.setPosition(c),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,T){S[b]+=x[b][T]-w[b][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=YJ(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new HJ("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new it;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(!!i.get(["lineStyle","show"])){var s=new we({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new we({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),d=h.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:U(o._changeTimeline,o,u.value)},g=tM(h,v,a,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),Yi(g);var y=ot(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new It({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:U(o._changeTimeline,o,h),silent:!1,style:Kt(c,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Kt(d),y.ensureState("progress").style=Kt(p),a.add(y),Yi(y),QT(y).dataIndex=h,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),h=i.get("inverse",!0);v(e.nextBtnPosition,"next",U(this._changeTimeline,this,h?"-":"+")),v(e.prevBtnPosition,"prev",U(this._changeTimeline,this,h?"+":"-")),v(e.playPosition,f?"stop":"play",U(this._handlePlayClick,this,!f),!0);function v(c,d,p,g){if(!!c){var y=Xr(ct(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=UJ(i,d+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),Yi(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=U(u._handlePointerDrag,u),h.ondragend=U(u._handlePointerDragend,u),eM(h,u._progressLine,s,n,i,!0)},onUpdate:function(h){eM(h,u._progressLine,s,n,i)}};this._currentPointer=tM(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Dr(i.getExtent().slice());n>o[1]&&(n=o[1]),n=0&&(o[i]=+o[i].toFixed(v)),[o,h]}var Wp={min:st(Qf,"min"),max:st(Qf,"max"),average:st(Qf,"average"),median:st(Qf,"median")};function Su(r,t){var e=r.getData(),a=r.coordinateSystem;if(t&&!eQ(t)&&!z(t.coord)&&a){var n=a.dimensions,i=bk(t,e,a,r);if(t=rt(t),t.type&&Wp[t.type]&&i.baseAxis&&i.valueAxis){var o=pt(n,i.baseAxis.dim),s=pt(n,i.valueAxis.dim),l=Wp[t.type](e,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else{for(var u=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis],f=0;f<2;f++)Wp[u[f]]&&(u[f]=M_(e,e.mapDimension(n[f]),u[f]));t.coord=u}}return t}function bk(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(rQ(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function rQ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function xu(r,t){return r&&r.containData&&t.coord&&!tQ(t)?r.containData(t.coord):!0}function Tk(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Bn(o,t[i])}:function(e,a,n,i){return Bn(e.value,t[i])}}function M_(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Yp=Ct(),aQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=K()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Yp(s).keep=!1}),a.eachSeries(function(s){var l=Xn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Yp(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(e){Yp(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=Xn.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?JD(l):$m(l))})}})},t.type="marker",t}(re),A_=aQ;function aM(r,t,e){var a=t.coordinateSystem;r.each(function(n){var i=r.getItemModel(n),o,s=H(i.get("x"),e.getWidth()),l=H(i.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(r.getValues(r.dimensions,n));else if(a){var u=r.get(a.dimensions[0],n),f=r.get(a.dimensions[1],n);o=a.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(n,o)})}var nQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Xn.getMarkerModelFromSeries(i,"markPoint");o&&(aM(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Wu),h=iQ(o,e,a);a.setData(h),aM(a.getData(),e,i),h.each(function(v){var c=h.getItemModel(v),d=c.getShallow("symbol"),p=c.getShallow("symbolSize"),g=c.getShallow("symbolRotate"),y=c.getShallow("symbolOffset"),m=c.getShallow("symbolKeepAspect");if(J(d)||J(p)||J(g)||J(y)){var _=a.getRawValue(v),S=a.getDataParams(v);J(d)&&(d=d(_,S)),J(p)&&(p=p(_,S)),J(g)&&(g=g(_,S)),J(y)&&(y=y(_,S))}var w=c.getModel("itemStyle").getItemStyle(),x=Vu(l,"color");w.fill||(w.fill=x),h.setItemVisual(v,{symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:w})}),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl(function(v){v.traverse(function(c){ot(c).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(A_);function iQ(r,t,e){var a;r?a=F(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return B(B({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ye(a,e),i=F(e.get("data"),st(Su,t));r&&(i=zt(i,st(xu,r)));var o=Tk(!!r,a);return n.initData(i,null,o),n}var oQ=nQ;function sQ(r){r.registerComponentModel(QJ),r.registerComponentView(oQ),r.registerPreprocessor(function(t){T_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var lQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Xn),uQ=lQ,th=Ct(),fQ=function(r,t,e,a){var n=r.getData(),i;if(z(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=xe(a.yAxis,a.xAxis);else{var u=bk(a,n,t,r);s=u.valueAxis;var f=hI(n,u.valueDataDim);l=M_(n,f,o)}var h=s.dim==="x"?0:1,v=1-h,c=rt(a),d={coord:[]};c.type=null,c.coord=[],c.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&At(l)&&(l=+l.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=l,i=[c,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Su(r,i[0]),Su(r,i[1]),B({},i[2])];return g[2].type=g[2].type||null,ht(g[2],g[0]),ht(g[2],g[1]),g};function Sv(r){return!isNaN(r)&&!isFinite(r)}function nM(r,t,e,a){var n=1-r,i=a.dimensions[r];return Sv(t[n])&&Sv(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function hQ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(nM(1,e,a,r)||nM(0,e,a,r)))return!0}return xu(r,t[0])&&xu(r,t[1])}function $p(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=H(o.get("x"),n.getWidth()),u=H(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,h=r.get(f[0],t),v=r.get(f[1],t);s=i.dataToPoint([h,v])}if(uo(i,"cartesian2d")){var c=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Sv(r.get(f[0],t))?s[0]=c.toGlobalCoord(c.getExtent()[e?0:1]):Sv(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var vQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Xn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=th(o).from,u=th(o).to;l.each(function(f){$p(l,f,!0,i,n),$p(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new q0);this.group.add(f.group);var h=cQ(o,e,a),v=h.from,c=h.to,d=h.line;th(a).from=v,th(a).to=c,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");z(p)||(p=[p,p]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),h.from.each(function(S){_(v,S,!0),_(c,S,!1)}),d.each(function(S){var w=d.getItemModel(S).getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),w.stroke==null&&(w.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:w})}),f.updateData(d),h.line.eachItemGraphicEl(function(S,w){S.traverse(function(x){ot(x).dataModel=a})});function _(S,w,x){var b=S.getItemModel(w);$p(S,w,x,e,i);var T=b.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Vu(l,"color")),S.setItemVisual(w,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:ct(b.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ct(b.get("symbolRotate",!0),y[x?0:1]),symbolSize:ct(b.get("symbolSize"),g[x?0:1]),symbol:ct(b.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(A_);function cQ(r,t,e){var a;r?a=F(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return B(B({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new Ye(a,e),i=new Ye(a,e),o=new Ye([],e),s=F(e.get("data"),st(fQ,t,r,e));r&&(s=zt(s,st(hQ,r)));var l=Tk(!!r,a);return n.initData(F(s,function(u){return u[0]}),null,l),i.initData(F(s,function(u){return u[1]}),null,l),o.initData(F(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}var dQ=vQ;function pQ(r){r.registerComponentModel(uQ),r.registerComponentView(dQ),r.registerPreprocessor(function(t){T_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var gQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Xn),yQ=gQ,eh=Ct(),mQ=function(r,t,e,a){var n=Su(r,a[0]),i=Su(r,a[1]),o=n.coord,s=i.coord;o[0]=xe(o[0],-1/0),o[1]=xe(o[1],-1/0),s[0]=xe(s[0],1/0),s[1]=xe(s[1],1/0);var l=Cm([{},n,i]);return l.coord=[n.coord,i.coord],l.x0=n.x,l.y0=n.y,l.x1=i.x,l.y1=i.y,l};function xv(r){return!isNaN(r)&&!isFinite(r)}function iM(r,t,e,a){var n=1-r;return xv(t[n])&&xv(e[n])}function _Q(r,t){var e=t.coord[0],a=t.coord[1];return uo(r,"cartesian2d")&&e&&a&&(iM(1,e,a)||iM(0,e,a))?!0:xu(r,{coord:e,x:t.x0,y:t.y0})||xu(r,{coord:a,x:t.x1,y:t.y1})}function oM(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=H(o.get(e[0]),n.getWidth()),u=H(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(e,t));else{var f=r.get(e[0],t),h=r.get(e[1],t),v=[f,h];i.clampData&&i.clampData(v,v),s=i.dataToPoint(v,!0)}if(uo(i,"cartesian2d")){var c=i.getAxis("x"),d=i.getAxis("y"),f=r.get(e[0],t),h=r.get(e[1],t);xv(f)?s[0]=c.toGlobalCoord(c.getExtent()[e[0]==="x0"?0:1]):xv(h)&&(s[1]=d.toGlobalCoord(d.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var sM=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],SQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=Xn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=F(sM,function(h){return oM(s,l,h,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new it});this.group.add(f.group),this.markKeep(f);var h=xQ(o,e,a);a.setData(h),h.each(function(v){var c=F(sM,function(T){return oM(h,v,T,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(h.get("x0",v)),d.parse(h.get("x1",v))],_=[p.parse(h.get("y0",v)),p.parse(h.get("y1",v))];Dr(m),Dr(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),w=!S;h.setItemLayout(v,{points:c,allClipped:w});var x=h.getItemModel(v).getModel("itemStyle").getItemStyle(),b=Vu(l,"color");x.fill||(x.fill=b,Y(x.fill)&&(x.fill=Oh(x.fill,.4))),x.stroke||(x.stroke=b),h.setItemVisual(v,"style",x)}),h.diff(eh(f).data).add(function(v){var c=h.getItemLayout(v);if(!c.allClipped){var d=new er({shape:{points:c.points}});h.setItemGraphicEl(v,d),f.group.add(d)}}).update(function(v,c){var d=eh(f).data.getItemGraphicEl(c),p=h.getItemLayout(v);p.allClipped?d&&f.group.remove(d):(d?Dt(d,{shape:{points:p.points}},a,v):d=new er({shape:{points:p.points}}),h.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var c=eh(f).data.getItemGraphicEl(v);f.group.remove(c)}).execute(),h.eachItemGraphicEl(function(v,c){var d=h.getItemModel(c),p=h.getItemVisual(c,"style");v.useStyle(h.getItemVisual(c,"style")),ze(v,be(d),{labelFetcher:a,labelDataIndex:c,defaultText:h.getName(c)||"",inheritColor:Y(p.fill)?Oh(p.fill,1):"#000"}),De(v,d),ie(v,null,null,d.get(["emphasis","disabled"])),ot(v).dataModel=a}),eh(f).data=h,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(A_);function xQ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=F(r&&r.dimensions,function(u){var f=t.getData(),h=f.getDimensionInfo(f.mapDimension(u))||{};return B(B({},h),{name:u,ordinalMeta:null})});n=F(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new Ye(n,e)}else n=[{name:"value",type:"float"}],a=new Ye(n,e);var s=F(e.get("data"),st(mQ,t,r,e));r&&(s=zt(s,st(_Q,r)));var l=r?function(u,f,h,v){var c=u.coord[Math.floor(v/2)][v%2];return Bn(c,n[v])}:function(u,f,h,v){return Bn(u.value,n[v])};return a.initData(s,null,l),a.hasItemOption=!0,a}var wQ=SQ;function bQ(r){r.registerComponentModel(yQ),r.registerComponentView(wQ),r.registerPreprocessor(function(t){T_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var TQ=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},MQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),z(a)&&A(a,function(i,o){Y(i)&&(i={type:i}),a[o]=ht(i,TQ(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Mt),$y=MQ,Po=st,Uy=A,rh=it,AQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new rh),this.group.add(this._selectorGroup=new rh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},v=e.get("padding"),c=pe(f,h,v),d=this.layoutInner(e,o,c,i,l,u),p=pe(Q({width:d.width,height:d.height},f),h,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=vk(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=K(),h=a.get("selectedMode"),v=[];n.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),Uy(a.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new rh;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,p,d,c,a,e,_,w,S,h);x.on("click",Po(lM,p,null,i,v)).on("mouseover",Po(Zy,y.name,null,i,v)).on("mouseout",Po(Xy,y.name,null,i,v)),f.set(p,!0)}else n.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),D=T.getItemVisual(M,"style"),C=T.getItemVisual(M,"legendIcon"),I=lr(D.fill);I&&I[3]===0&&(I[3]=.2,D=B(B({},D),{fill:Ha(I,"rgba")}));var L=this._createItem(b,p,d,c,a,e,{},D,C,h);L.on("click",Po(lM,null,p,i,v)).on("mouseover",Po(Zy,null,p,i,v)).on("mouseout",Po(Xy,null,p,i,v)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();Uy(e,function(u){var f=u.type,h=new It({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);ze(h,{normal:v,emphasis:c},{defaultText:u.title}),Yi(h)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,h){var v=e.visualDrawType,c=o.get("itemWidth"),d=o.get("itemHeight"),p=o.isSelected(a),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon");f=m||f||"roundRect";var _=DQ(f,i,l,u,v,p),S=new rh,w=i.getModel("textStyle");if(J(e.getLegendIcon)&&(!m||m==="inherit"))S.add(e.getLegendIcon({itemWidth:c,itemHeight:d,icon:f,iconRotate:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var x=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;S.add(CQ({itemWidth:c,itemHeight:d,icon:f,iconRotate:x,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var b=s==="left"?c+5:-5,T=s,M=o.get("formatter"),D=a;Y(M)&&M?D=M.replace("{name}",a!=null?a:""):J(M)&&(D=M(a));var C=i.get("inactiveColor");S.add(new It({style:Kt(w,{text:D,x:b,y:d/2,fill:p?w.getTextColor():C,align:T,verticalAlign:"middle"})}));var I=new Tt({shape:S.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&Ms({el:I,componentModel:o,itemName:a,itemTooltipOption:L.option}),S.add(I),S.eachChild(function(P){P.silent=!0}),I.silent=!h,this.getContentGroup().add(S),Yi(S),S.__legendDataIndex=n,S},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ui(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ui("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(re);function DQ(r,t,e,a,n,i){function o(d,p){d.lineWidth==="auto"&&(d.lineWidth=p.lineWidth>0?2:0),Uy(d,function(g,y){d[y]==="inherit"&&(d[y]=p[y])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=r.lastIndexOf("empty",0)===0?"fill":"stroke";l.decal=a.decal,l.fill==="inherit"&&(l.fill=a[n]),l.stroke==="inherit"&&(l.stroke=a[u]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?a:e).opacity),o(l,a);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(o(h,e),l.fill==="auto"&&(l.fill=a.fill),l.stroke==="auto"&&(l.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var v=t.get("inactiveBorderWidth"),c=l[u];l.lineWidth=v==="auto"?a.lineWidth>0&&c?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:l,lineStyle:h}}function CQ(r){var t=r.icon||"roundRect",e=ve(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function lM(r,t,e,a){Xy(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Zy(r,t,e,a)}function Mk(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;an[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ct(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=p?n[o]:c[o],w[s]=Math.max(c[s],d[s]),w[l]=Math.min(0,d[l]+m[1-i]),h.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new Tt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Dt(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),w},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=a[h]!=null,c=n.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Up[o],l=Zp[o],u=this._findTargetItemIndex(a),f=n.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i=b&&x.s<=b+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a!=null?a:i},t.type="legend.scroll",t}(Ak),EQ=RQ;function OQ(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function NQ(r){yt(Dk),r.registerComponentModel(kQ),r.registerComponentView(EQ),OQ(r)}function VQ(r){yt(Dk),yt(NQ)}var BQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Kn(_u.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_u),zQ=BQ,D_=Ct();function FQ(r,t,e){D_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function GQ(r,t){for(var e=D_(r).coordSysRecordMap,a=e.keys(),n=0;na[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function UQ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=D_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=K());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=uk(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,HQ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=K());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Ck(n,i);return}var f=$Q(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),Rs(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ZQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),FQ(n,e,{pan:U(Xp.pan,this),zoom:U(Xp.zoom,this),scrollMove:U(Xp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){GQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(m_),Xp={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(!!o){var s=qp[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ho(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:hM(function(r,t,e,a,n,i){var o=qp[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:hM(function(r,t,e,a,n,i){var o=qp[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function hM(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(!!s){var l=r(o,s,t,e,a,n);if(ho(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var qp={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}},XQ=ZQ;function Ik(r){__(r),r.registerComponentModel(zQ),r.registerComponentView(XQ),UQ(r)}var qQ=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Kn(_u.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(_u),KQ=qQ,vl=Tt,vM=7,jQ=1,Kp=30,JQ=7,cl="horizontal",cM="vertical",QQ=5,ttt=["line","bar","candlestick","scatter"],ett={easing:"cubicOut",duration:100,delay:0},rtt=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Rs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ou(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?JQ:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===cl?{right:s.width-o.x-o.width,top:s.height-Kp-vM-i,width:o.width,height:Kp}:{right:vM,top:o.y,width:Kp,height:o.height},u=Is(e.option);A(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=pe(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===cM&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===cl&&!o?{scaleY:l?1:-1,scaleX:1}:n===cl&&o?{scaleY:l?1:-1,scaleX:-1}:n===cM&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new vl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new vl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim?i.getShadowDim():e.otherDim;if(s==null)return;var l=this._shadowPolygonPts,u=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var f=o.getDataExtent(s),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var v=[0,a[1]],c=[0,a[0]],d=[[a[0],0],[0,0]],p=[],g=c[1]/(o.count()-1),y=0,m=Math.round(o.count()/a[0]),_;o.each([s],function(T,M){if(m>0&&M%m){y+=g;return}var D=T==null||isNaN(T)||T==="",C=D?0:Nt(T,f,v,!0);D&&!_&&M?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!D&&_&&(d.push([y,0]),p.push([y,0])),d.push([y,C]),p.push([y,C]),y+=g,_=D}),l=this._shadowPolygonPts=d,u=this._shadowPolylinePts=p}this._shadowData=o,this._shadowDim=s,this._shadowSize=[a[0],a[1]];var S=this.dataZoomModel;function w(T){var M=S.getModel(T?"selectedDataBackground":"dataBackground"),D=new it,C=new er({shape:{points:l},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new rr({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(C),D.add(I),D}for(var x=0;x<3;x++){var b=w(x===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&pt(ttt,u.get("type"))<0)){var f=i.getComponent(En(o),s).axis,h=att(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=a.filler=new vl({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new vl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:jQ,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!jh[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=ve(S,-1,0,2,2,null,!0);w.attr({cursor:dM(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=H(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Yi(w);var T=l.get("handleColor");T!=null&&(w.style.fill=T),o.add(n[_]=w);var M=l.getModel("textStyle");e.add(i[_]=new It({silent:!0,invisible:!0,style:Kt(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var c=v;if(h){var d=H(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Tt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=ve(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));c=a.moveZone=new Tt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:dM(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Nt(e[0],[0,100],a,!0),Nt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ho(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Nt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Nt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Dr([Nt(i[0],o,l,!0),Nt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Dr(n.slice()),o=this._size;A([0,1],function(c){var d=a.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[c]+(c?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;fa[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new ft(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Dr([Nt(n.x,o,s,!0),Nt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Xa(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new vl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?ett:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=uk(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(m_);function att(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function dM(r){return r==="vertical"?"ns-resize":"ew-resize"}var ntt=rtt;function Lk(r){r.registerComponentModel(KQ),r.registerComponentView(ntt),__(r)}function itt(r){yt(Ik),yt(Lk)}var ott={get:function(r,t,e){var a=rt((stt[r]||{})[t]);return e&&z(a)?a[a.length-1]:a}},stt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Pk=ott,pM=Ae.mapVisual,ltt=Ae.eachVisual,utt=z,gM=A,ftt=Dr,htt=Nt,vtt=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&_k(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=U(e,this),this.controllerVisuals=Wy(this.option.controller,a,e),this.targetVisuals=Wy(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,a=[];return e==null||e==="all"?this.ecModel.eachSeries(function(n,i){a.push(i)}):a=Gt(e),a},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(e)&&(e=e.slice(),u=!0);var f=a?e:u?[h(e[0]),h(e[1])]:h(e);if(Y(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(J(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=ftt([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});ht(i,n),ht(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(h){utt(a.color)&&!h.inRange&&(h.inRange={color:a.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,v,c){var d=h[v],p=h[c];d&&!p&&(p=h[c]={},gM(d,function(g,y){if(!!Ae.isValidType(y)){var m=Pk.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";gM(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&rt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&rt(c)||(s?m[0]:[m[0],m[0]])),_.symbol=pM(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var w=-1/0;ltt(S,function(x){x>w&&(w=x)}),_.symbolSize=pM(S,function(x){return htt(x,[0,w],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Mt),wv=vtt,yM=[20,140],ctt=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=yM[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=yM[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Dr((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=mM(this,"outOfRange",this.getExtent()),n=mM(this,"inRange",this.option.range.slice()),i=[];function o(c,d){i.push({value:c,color:e(c,d)})}for(var s=0,l=0,u=n.length,f=a.length;le[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new it(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(!!this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent();gtt([0,1],function(f){var h=o[f];h.setStyle("fill",a.handlesColor[f]),h.y=e[f];var v=ia(e[f],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=c/l[0],h.x=l[0]-c/2;var d=$r(n.handleLabelPoints[f],$i(h,this.group));s[f].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(!!h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=ia(e,s,u,!0),g=l[0]-d/2,y={x:h.x,y:h.y};h.y=p,h.x=g;var m=$r(f.indicatorLabelPoint,$i(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:g,y:p,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(b,M),_.animateTo(T,M)}else h.attr(b),_.attr(T);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var C=0;Co[1]&&(h[1]=1/0),a&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||wM(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var d=s5(v,c);this._dispatchHighDown("downplay",Mh(d[0],n)),this._dispatchHighDown("highlight",Mh(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a=e.target,n=this.visualMapModel;if(!(!a||ot(a).dataIndex==null)){var i=ot(a),o=this.ecModel.getSeriesByIndex(i.seriesIndex);if(!!n.isTargetSeries(o)){var s=o.getData(i.dataType),l=s.getStore().get(n.getDataDimensionIndex(s),i.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Mtt(r,t,e,a){for(var n=t.targetVisuals[a],i=Ae.prepareVisualTypes(n),o={color:Vu(r.getData(),"color")},s=0,l=i.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(wtt,btt),A(Ttt,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Att))}function Ok(r){r.registerComponentModel(dtt),r.registerComponentView(xtt),Ek(r)}var Dtt=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],Ctt[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=rt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=F(this._pieceList,function(l){return l=rt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Ae.listVisualTypes(),i=this.isCategory();A(e.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&A(this.stateList,function(f){(e[f]||(e[f]={}))[l]=Pk.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=rt(e)},t.prototype.getValueState=function(e){var a=Ae.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ae.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,h){var v=i.getRepresentValue({interval:f});h||(h=i.getValueState(v));var c=e(v,h);f[0]===-1/0?n[0]=c:f[1]===1/0?n[1]=c:a.push({value:f[0],color:c},{value:f[1],color:c})}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 A(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=Kn(wv.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}(wv),Ctt={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o","\u2265"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function AM(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Itt=Dtt,Ltt=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=a.itemSize,f=this._getViewData(),h=f.endsText,v=xe(a.get("showLabel",!0),!h);h&&this._renderEndsText(e,h[0],u,v,l),A(f.viewPieceList,function(c){var d=c.piece,p=new it;p.onclick=U(this._onItemClick,this,d),this._enableHoverLink(p,c.indexInModelPieceList);var g=a.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);p.add(new It({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}e.add(p)},this),h&&this._renderEndsText(e,h[1],u,v,l),Ui(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Mh(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return Rk(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(!!a){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new It({style:Kt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=F(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n){e.add(ve(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color")))},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=rt(n.selected),o=a.getSelectedMapKey(e);n.selectedMode==="single"?(i[o]=!0,A(i,function(s,l){i[l]=l===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},t.type="visualMap.piecewise",t}(kk),Ptt=Ltt;function Nk(r){r.registerComponentModel(Itt),r.registerComponentView(Ptt),Ek(r)}function ktt(r){yt(Ok),yt(Nk)}var Rtt={label:{enabled:!0},decal:{show:!1}},DM=Ct(),Ett={};function Ott(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=rt(Rtt);ht(a.label,r.getLocaleModel().get("aria"),!1),ht(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var h=K();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),DM(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(J(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=jg(v.ecModel,v.name,Ett,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=DM(v).scope;c.each(function(w){var x=c.getRawIndex(w);p[x]=w});var y=d.count();d.each(function(w){var x=p[w],b=d.getName(w)||w+"",T=jg(v.ecModel,b,g,y),M=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(M,T))})}function S(w,x){var b=w?B(B({},x),w):x;return b.dirty=!0,b}})}}function i(){var u=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=Q(f.option,u),!!f.get("enabled")){var h=t.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var v=r.getSeriesCount(),c=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,p=Math.min(v,d),g;if(!(v<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=v>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,M){if(M1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>c){var P=f.get(["data","partialData"]);D+=o(P,{displayCnt:c})}else D+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),R=f.get(["data","separator","end"]),N=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Btt=function(){function r(t){var e=this._condVal=Y(t)?new RegExp(t):SV(t)?t:null;if(e==null){var a="";Rt(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return Y(e)?this._condVal.test(t):At(e)?this._condVal.test(t+""):!1},r}(),ztt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Ftt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&a.push(n),n=[L,P]}function f(L,P,k,R){qo(L,k)&&qo(P,R)||n.push(L,P,k,R,k,R)}function h(L,P,k,R,N,O){var V=Math.abs(P-L),G=Math.tan(V/4)*4/3,W=PT:C2&&a.push(n),a}function Ky(r,t,e,a,n,i,o,s,l,u){if(qo(r,e)&&qo(t,a)&&qo(n,o)&&qo(i,s)){l.push(o,s);return}var f=2/u,h=f*f,v=o-r,c=s-t,d=Math.sqrt(v*v+c*c);v/=d,c/=d;var p=e-r,g=a-t,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&T=0){l.push(o,s);return}var M=[],D=[];Gn(r,e,n,o,.5,M),Gn(t,a,i,s,.5,D),Ky(M[0],D[0],M[1],D[1],M[2],D[2],M[3],D[3],l,u),Ky(M[4],D[4],M[5],D[5],M[6],D[6],M[7],D[7],l,u)}function tet(r,t){var e=qy(r),a=[];t=t||1;for(var n=0;n0)for(var u=0;uMath.abs(u),h=Bk([l,u],f?0:1,t),v=(f?s:u)/h.length,c=0;cn,o=Bk([a,n],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",h=r[s]/o.length,v=0;v1?null:new ft(p*l+r,p*u+t)}function aet(r,t,e){var a=new ft;ft.sub(a,e,t),a.normalize();var n=new ft;ft.sub(n,r,t);var i=n.dot(a);return i}function Ro(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function net(r,t,e){for(var a=r.length,n=[],i=0;io?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),net(t,u,f)}function bv(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);bv(r,i[0],n,a),bv(r,i[1],e-n,a)}return a}function iet(r,t){for(var e=[],a=0;a0)for(var w=a/e,x=-a/2;x<=a/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),M=0,_=0;_0;u/=2){var f=0,h=0;(r&u)>0&&(f=1),(t&u)>0&&(h=1),s+=u*u*(3*f^h),h===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Av(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=F(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(h,e),a=Math.max(f,a),n=Math.max(h,n),[f,h]}),o=F(i,function(s,l){return{cp:s,z:pet(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gk(r){return uet(r.path,r.count)}function jy(){return{fromIndividuals:[],toIndividuals:[],count:0}}function get(r,t,e){var a=[];function n(w){for(var x=0;x=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var met={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;NM(r)&&(u=r,f=t),NM(t)&&(u=t,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,M=m?b:x[0];if(Tv(T))h({many:[T],one:M},!0,_,S,!0);else{var D=s?Q({delay:s(_,S)},l):l;I_(T,M,D),i(T,M,T,M,D)}}else for(var C=Q({dividePath:met[e],individualDelay:s&&function(N,O,V,G){return s(N+_,S)}},l),I=m?get(x,b,C):yet(b,x,C),L=I.fromIndividuals,P=I.toIndividuals,k=L.length,R=0;Rt.length,c=u?VM(f,u):VM(v?t:r,[v?r:t]),d=0,p=0;pHk))for(var n=a.getIndices(),i=xet(a),o=0;o0&&S.group.traverse(function(x){x instanceof _t&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function zM(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function FM(r){return z(r)?r.sort().join(","):r}function _n(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Tet(r,t){var e=K(),a=K(),n=K();return A(r.oldSeries,function(i,o){var s=r.oldData[o],l=zM(i),u=FM(l);a.set(u,s),z(l)&&A(l,function(f){n.set(f,{data:s,key:u})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.getData(),s=zM(i),l=FM(s),u=a.get(l);if(u)e.set(l,{oldSeries:[{divide:_n(u),data:u}],newSeries:[{divide:_n(o),data:o}]});else if(z(s)){var f=[];A(s,function(c){var d=a.get(c);d&&f.push({divide:_n(d),data:d})}),f.length&&e.set(l,{oldSeries:f,newSeries:[{data:o,divide:_n(o)}]})}else{var h=n.get(s);if(h){var v=e.get(h.key);v||(v={oldSeries:[{data:h.data,divide:_n(h.data)}],newSeries:[]},e.set(h.key,v)),v.newSeries.push({data:o,divide:_n(o)})}}}}),e}function GM(r,t){for(var e=0;e=0&&n.push({data:t.oldData[s],divide:_n(t.oldData[s]),dim:o.dimension})}),A(Gt(r.to),function(o){var s=GM(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({data:l,divide:_n(l),dim:o.dimension})}}),n.length>0&&i.length>0&&Wk(n,i,a)}function Aet(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Gt(a.seriesTransition),function(n){A(Gt(n.to),function(i){for(var o=a.updatedSeries,s=0;s(em("data-v-19c5604b"),r=r(),rm(),r),Cet={class:"dashboard-line-box"},Iet=Det(()=>Bt("div",{class:"dashboard-line-title"}," \u8BBF\u95EE\u8D8B\u52BF ",-1)),Let=tm({setup(r){for(var t=[],e=1;e<13;e++)t.push(`${e}\u6708`);for(var a=[220,182,191,234,290,330,310,123,442,321,90,149],e=0;e{n.value=y4(i.value),s()},s=()=>{n.value.setOption({grid:{left:"40",right:"20",top:"40",bottom:"20"},xAxis:{data:t,axisTick:{show:!1},axisLine:{show:!1},z:10},yAxis:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#999"}},dataZoom:[{type:"inside"}],series:[{type:"bar",barWidth:"40%",itemStyle:{borderRadius:[5,5,0,0],color:"#188df0"},emphasis:{itemStyle:{color:"#188df0"}},data:a}]})};return Kk(async()=>{await jk(),o()}),Jk(()=>{!n.value||(n.value.dispose(),n.value=null)}),(l,u)=>(wn(),jo("div",Cet,[Iet,Bt("div",{ref_key:"echart",ref:i,class:"dashboard-line"},null,512)]))}});var Pet=Qy(Let,[["__scopeId","data-v-19c5604b"]]);const ket=am.create();function Ret(r){return ket({url:"https://api.github.com/repos/simple321vip/violin-home/commits?page="+r,method:"get"})}const Eet=(r,t)=>(r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),Math.floor((r.getMonth()+3)/3),r.getMilliseconds(),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length))),t),Oet=(r,t)=>(t||(t="yyyy-MM-dd hh:mm:ss"),Eet(new Date(r),t).toLocaleString());const Net=r=>(em("data-v-554f7f6a"),r=r(),rm(),r),Vet={class:"commit-table"},Bet=Net(()=>Bt("div",{class:"commit-table-title"}," \u66F4\u65B0\u65E5\u5FD7 ",-1)),zet={class:"log"},Fet={class:"flex-1 flex key-box"},Get={class:"flex-5 flex message"},Het={class:"flex-3 flex form"},Wet=tm({setup(r){const t=Ko(!0),e=Qk([]);return(()=>{Ret(0).then(({data:n})=>{t.value=!1,n.forEach((i,o)=>{i.commit.message&&o<10&&e.push({from:Oet(i.commit.author.date,"yyyy-MM-dd"),title:i.commit.author.name,showDayAndMonth:!0,message:i.commit.message})})})})(),(n,i)=>(wn(),jo("div",Vet,[Bet,Bt("div",zet,[(wn(!0),jo($M,null,UM(ng(e),(o,s)=>(wn(),jo("div",{key:s,class:"log-item"},[Bt("div",Fet,[Bt("span",{class:tR(["key",s<3&&"top"])},xn(s+1),3)]),Bt("div",Get,xn(o.message),1),Bt("div",Het,xn(o.from),1)]))),128))])]))}});var Yet=Qy(Wet,[["__scopeId","data-v-554f7f6a"]]);const Yk=Ko("\u5BF9\u4E0D\u8D77\u4E3B\u4EBA\uFF0C\u6211\u8FD8\u6CA1\u6709\u83B7\u5F97\u5929\u6C14\u4FE1\u606F\uFF0C\u6682\u65F6\u65E0\u6CD5\u663E\u793A\u54DF\u3002"),Jy="8e8baa8a7317586c29ec694895de6e0a",$et=()=>(Uet(),Yk),Uet=async()=>{if(Jy.length==1)return!1;const r=await am.get("https://restapi.amap.com/v3/ip?key="+Jy);r.data.adcode&&Zet(r.data.adcode)},Zet=async r=>{const t=await am.get("https://restapi.amap.com/v3/weather/weatherInfo?key="+Jy+"&extensions=base&city="+r);if(t.data.status==="1"){const e=t.data.lives[0];Yk.value=e.city+" \u5929\u6C14\uFF1A"+e.weather+" \u6E29\u5EA6\uFF1A"+e.temperature+"\u6444\u6C0F\u5EA6 \u98CE\u5411\uFF1A"+e.winddirection+" \u98CE\u529B\uFF1A"+e.windpower+"\u7EA7 \u7A7A\u6C14\u6E7F\u5EA6\uFF1A"+e.humidity}},Xet={"Content-Type":"application/json;charsetset=UTF-8"},qet=()=>ZM({url:"/wiki/api/v1/reader/blogs/count",method:"GET",headers:Xet});var Ket=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},e=Symbol("test"),a=Object(e);if(typeof e=="string"||Object.prototype.toString.call(e)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[e]=n;for(e in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==n||o.enumerable!==!0)return!1}return!0},HM=typeof Symbol!="undefined"&&Symbol,jet=Ket,Jet=function(){return typeof HM!="function"||typeof Symbol!="function"||typeof HM("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jet()},Qet="Function.prototype.bind called on incompatible ",eg=Array.prototype.slice,trt=Object.prototype.toString,ert="[object Function]",rrt=function(t){var e=this;if(typeof e!="function"||trt.call(e)!==ert)throw new TypeError(Qet+e);for(var a=eg.call(arguments,1),n,i=function(){if(this instanceof n){var f=e.apply(this,a.concat(eg.call(arguments)));return Object(f)===f?f:this}else return e.apply(t,a.concat(eg.call(arguments)))},o=Math.max(0,e.length-a.length),s=[],l=0;l1&&typeof e!="boolean")throw new os('"allowMissing" argument must be a boolean');var a=crt(t),n=a.length>0?a[0]:"",i=drt("%"+n+"%",e),o=i.name,s=i.value,l=!1,u=i.alias;u&&(n=u[0],frt(a,urt([0,1],u)));for(var f=1,h=!0;f=a.length){var p=Ki(s,v);h=!!p,h&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[v]}else h=Dv(s,v),s=s[v];h&&!l&&(ss[o]=s)}}return s},Uk={exports:{}};(function(r){var t=L_,e=P_,a=e("%Function.prototype.apply%"),n=e("%Function.prototype.call%"),i=e("%Reflect.apply%",!0)||t.call(n,a),o=e("%Object.getOwnPropertyDescriptor%",!0),s=e("%Object.defineProperty%",!0),l=e("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}r.exports=function(h){var v=i(t,n,arguments);if(o&&s){var c=o(v,"length");c.configurable&&s(v,"length",{value:1+l(0,h.length-(arguments.length-1))})}return v};var u=function(){return i(t,a,arguments)};s?s(r.exports,"apply",{value:u}):r.exports.apply=u})(Uk);var Zk=P_,Xk=Uk.exports,prt=Xk(Zk("String.prototype.indexOf")),grt=function(t,e){var a=Zk(t,!!e);return typeof a=="function"&&prt(t,".prototype.")>-1?Xk(a):a},k_=P_,Ns=grt;k_("%TypeError%");k_("%WeakMap%",!0);k_("%Map%",!0);Ns("WeakMap.prototype.get",!0);Ns("WeakMap.prototype.set",!0);Ns("WeakMap.prototype.has",!0);Ns("Map.prototype.get",!0);Ns("Map.prototype.set",!0);Ns("Map.prototype.has",!0);(function(){for(var r=[],t=0;t<256;++t)r.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return r})();const yrt=()=>ZM({url:"/bookmark/api/v1/bookmark/count",method:"GET"});const Cc=r=>(em("data-v-44c6ce06"),r=r(),rm(),r),mrt={class:"page"},_rt={class:"gva-card-box"},Srt={class:"gva-card gva-top-card"},xrt={class:"gva-top-card-left"},wrt=Cc(()=>Bt("div",{class:"gva-top-card-left-title"},"\u6211\u7684\u4E3B\u4EBA\uFF0C\u6211\u4EEC\u53C8\u89C1\u9762\u4E86\uFF0C\u6211\u6709\u4EC0\u4E48\u80FD\u5E2E\u52A9\u4F60\u4E48^_^",-1)),brt={class:"gva-top-card-left-dot"},Trt={class:"gva-top-card-left-rows"},Mrt={class:"flex-center"},Art={class:"flex-center"},Drt={class:"gva-top-card-left-item"},Crt={class:"gva-top-card-left-item"},Irt=ls(" \u671F\u8D27\u4EA4\u6613\u65F6\u95F4\xA0 "),Lrt=ls("\xA0 9:00-11:30 \xA0 "),Prt=ls("\xA0 13:30-15:00 \xA0 "),krt=ls("\xA0 21:00-23:00 "),Rrt=Cc(()=>Bt("img",{src:aR,class:"gva-top-card-right"},null,-1)),Ert={class:"gva-card-box"},Ort=Cc(()=>Bt("div",{class:"card-header"},[Bt("span",null,"\u5FEB\u6377\u5165\u53E3")],-1)),Nrt={class:"quick-entrance-item"},Vrt={class:"gva-card-box"},Brt={class:"gva-card"},zrt=Cc(()=>Bt("div",{class:"card-header"},[Bt("span",null,"\u6570\u636E\u7EDF\u8BA1")],-1)),Frt={class:"echart-box"},Grt=tm({setup(r){const t=$et();eR();let e=Ko(j().format("YYYY\u5E74MM\u6708DD\u65E5 HH:mm:ss"));const a=Ko({wiki_count:0,bookmark_count:0}),n=Ko([{label:"Jenkins",icon:"camera",name:"Jenkins",color:"#ff9c6e",bg:"rgba(255, 156, 110,.3)"},{label:"argo-cd",icon:"monitor",name:"argocd",color:"#69c0ff",bg:"rgba(92, 219, 211,.3)"},{label:"wiki",icon:"document",name:"wiki",color:"#b37feb",bg:"rgba(185, 192, 255,.3)"},{label:"\u4EE3\u7801\u751F\u6210\u5668",icon:"cpu",name:"autoCode",color:"#ffd666",bg:"rgba(255, 214, 102,.3)"},{label:"\u8868\u5355\u751F\u6210\u5668",icon:"document-checked",name:"formCreate",color:"#ff85c0",bg:"rgba(255, 133, 192,.3)"},{label:"\u5173\u4E8E\u6211\u4EEC",icon:"user",name:"about",color:"#5cdbd3",bg:"rgba(92, 219, 211,.3)"}]),i=o=>{switch(o){case"Jenkins":window.open("https://www.violin-home.cn/jenkins/","_blank");break;case"argocd":window.open("https://www.violin-home.cn/argo-cd/","_blank");break;case"wiki":window.open("https://www.violin-home.cn/docs#/guan/","_blank");break}};return setInterval(()=>{e.value=j().format("YYYY\u5E74MM\u6708DD\u65E5 HH:mm:ss")},1e3),qet().then(o=>{const s=o.data;a.value.wiki_count=s.count}),yrt().then(o=>{const s=o.data;a.value.bookmark_count=s.count}),(o,s)=>{const l=Da("sort"),u=Da("el-icon"),f=Da("el-col"),h=Da("avatar"),v=Da("el-row"),c=Da("Sunrise"),d=Da("Sunny"),p=Da("Moon"),g=Da("el-card");return wn(),jo("div",mrt,[Bt("div",_rt,[Bt("div",Srt,[Bt("div",xrt,[wrt,Bt("div",brt,xn(ng(t)),1),Bt("div",Trt,[se(v,null,{default:Le(()=>[se(f,{span:8,xs:24,sm:8},{default:Le(()=>[Bt("div",Mrt,[se(u,{class:"dashboard-icon"},{default:Le(()=>[se(l)]),_:1}),ls(" wiki\u6570\u91CF ("+xn(a.value.wiki_count)+") ",1)])]),_:1}),se(f,{span:8,xs:24,sm:8},{default:Le(()=>[Bt("div",Art,[se(u,{class:"dashboard-icon"},{default:Le(()=>[se(h)]),_:1}),ls(" bookmark\u6570\u91CF ("+xn(a.value.bookmark_count)+") ",1)])]),_:1})]),_:1})]),Bt("div",Drt,[Bt("div",null,xn(ng(e)),1)]),Bt("div",Crt,[Bt("div",null,[Irt,se(u,{color:"yellow"},{default:Le(()=>[se(c)]),_:1}),Lrt,se(u,{color:"gold"},{default:Le(()=>[se(d)]),_:1}),Prt,se(u,{color:"blue"},{default:Le(()=>[se(p)]),_:1}),krt])])]),Rrt])]),Bt("div",Ert,[se(g,{class:"gva-card quick-entrance"},{header:Le(()=>[Ort]),default:Le(()=>[se(v,{gutter:20},{default:Le(()=>[(wn(!0),jo($M,null,UM(n.value,(y,m)=>(wn(),E_(f,{key:m,span:4,xs:8,class:"quick-entrance-items",onClick:_=>i(y.name)},{default:Le(()=>[Bt("div",Nrt,[Bt("div",{class:"quick-entrance-item-icon",style:O_({backgroundColor:y.bg})},[se(u,null,{default:Le(()=>[(wn(),E_(rR(y.icon),{style:O_({color:y.color})},null,8,["style"]))]),_:2},1024)],4),Bt("p",null,xn(y.label),1)])]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1})]),Bt("div",Vrt,[Bt("div",Brt,[zrt,Bt("div",Frt,[se(v,{gutter:20},{default:Le(()=>[se(f,{xs:24,sm:18},{default:Le(()=>[se(Pet)]),_:1}),se(f,{xs:24,sm:6},{default:Le(()=>[se(Yet)]),_:1})]),_:1})])])])])}}});var Wrt=Qy(Grt,[["__scopeId","data-v-44c6ce06"]]);export{Wrt as default};