79 lines
1.2 MiB
JavaScript
79 lines
1.2 MiB
JavaScript
|
|
var TO=Object.defineProperty;var MO=(r,t,e)=>t in r?TO(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var j=(r,t,e)=>MO(r,typeof t!="symbol"?t+"":t,e);import{r as Wr,b as b0,g as CO}from"./react-vendor-CmFgShSM.js";/*!
|
||
|
|
* @kurkle/color v0.3.4
|
||
|
|
* https://github.com/kurkle/color#readme
|
||
|
|
* (c) 2024 Jukka Kurkela
|
||
|
|
* Released under the MIT License
|
||
|
|
*/function ah(r){return r+.5|0}const bn=(r,t,e)=>Math.max(Math.min(r,e),t);function El(r){return bn(ah(r*2.55),0,255)}function En(r){return bn(ah(r*255),0,255)}function Vi(r){return bn(ah(r/2.55)/100,0,1)}function ub(r){return bn(ah(r*100),0,100)}const gr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},vy=[..."0123456789ABCDEF"],AO=r=>vy[r&15],DO=r=>vy[(r&240)>>4]+vy[r&15],Ph=r=>(r&240)>>4===(r&15),LO=r=>Ph(r.r)&&Ph(r.g)&&Ph(r.b)&&Ph(r.a);function IO(r){var t=r.length,e;return r[0]==="#"&&(t===4||t===5?e={r:255&gr[r[1]]*17,g:255&gr[r[2]]*17,b:255&gr[r[3]]*17,a:t===5?gr[r[4]]*17:255}:(t===7||t===9)&&(e={r:gr[r[1]]<<4|gr[r[2]],g:gr[r[3]]<<4|gr[r[4]],b:gr[r[5]]<<4|gr[r[6]],a:t===9?gr[r[7]]<<4|gr[r[8]]:255})),e}const PO=(r,t)=>r<255?t(r):"";function kO(r){var t=LO(r)?AO:DO;return r?"#"+t(r.r)+t(r.g)+t(r.b)+PO(r.a,t):void 0}const RO=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ID(r,t,e){const i=t*Math.min(e,1-e),n=(a,o=(a+r/30)%12)=>e-i*Math.max(Math.min(o-3,9-o,1),-1);return[n(0),n(8),n(4)]}function EO(r,t,e){const i=(n,a=(n+r/60)%6)=>e-e*t*Math.max(Math.min(a,4-a,1),0);return[i(5),i(3),i(1)]}function OO(r,t,e){const i=ID(r,1,.5);let n;for(t+e>1&&(n=1/(t+e),t*=n,e*=n),n=0;n<3;n++)i[n]*=1-t-e,i[n]+=t;return i}function NO(r,t,e,i,n){return r===n?(t-e)/i+(t<e?6:0):t===n?(e-r)/i+2:(r-t)/i+4}function S0(r){const e=r.r/255,i=r.g/255,n=r.b/255,a=Math.max(e,i,n),o=Math.min(e,i,n),s=(a+o)/2;let l,u,h;return a!==o&&(h=a-o,u=s>.5?h/(2-a-o):h/(a+o),l=NO(e,i,n,h,a),l=l*60+.5),[l|0,u||0,s]}function w0(r,t,e,i){return(Array.isArray(t)?r(t[0],t[1],t[2]):r(t,e,i)).map(En)}function T0(r,t,e){return w0(ID,r,t,e)}function BO(r,t,e){return w0(OO,r,t,e)}function zO(r,t,e){return w0(EO,r,t,e)}function PD(r){return(r%360+360)%360}function VO(r){const t=RO.exec(r);let e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?El(+t[5]):En(+t[5]));const n=PD(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?i=BO(n,a,o):t[1]==="hsv"?i=zO(n,a,o):i=T0(n,a,o),{r:i[0],g:i[1],b:i[2],a:e}}function FO(r,t){var e=S0(r);e[0]=PD(e[0]+t),e=T0(e),r.r=e[0],r.g=e[1],r.b=e[2]}function GO(r){if(!r)return;const t=S0(r),e=t[0],i=ub(t[1]),n=ub(t[2]);return r.a<255?`hsla(${e}, ${i}%, ${n}%, ${Vi(r.a)})`:`hsl(${e}, ${i}%, ${n}%)`}const hb={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},cb={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"
|
||
|
|
* Chart.js v4.5.1
|
||
|
|
* https://www.chartjs.org
|
||
|
|
* (c) 2025 Chart.js Contributors
|
||
|
|
* Released under the MIT License
|
||
|
|
*/function Pi(){}const jO=(()=>{let r=0;return()=>r++})();function It(r){return r==null}function jt(r){if(Array.isArray&&Array.isArray(r))return!0;const t=Object.prototype.toString.call(r);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Rt(r){return r!==null&&Object.prototype.toString.call(r)==="[object Object]"}function ne(r){return(typeof r=="number"||r instanceof Number)&&isFinite(+r)}function ur(r,t){return ne(r)?r:t}function bt(r,t){return typeof r>"u"?t:r}const qO=(r,t)=>typeof r=="string"&&r.endsWith("%")?parseFloat(r)/100:+r/t,RD=(r,t)=>typeof r=="string"&&r.endsWith("%")?parseFloat(r)/100*t:+r;function Zt(r,t,e){if(r&&typeof r.call=="function")return r.apply(e,t)}function Wt(r,t,e,i){let n,a,o;if(jt(r))for(a=r.length,n=0;n<a;n++)t.call(e,r[n],n);else if(Rt(r))for(o=Object.keys(r),a=o.length,n=0;n<a;n++)t.call(e,r[o[n]],o[n])}function bf(r,t){let e,i,n,a;if(!r||!t||r.length!==t.length)return!1;for(e=0,i=r.length;e<i;++e)if(n=r[e],a=t[e],n.datasetIndex!==a.datasetIndex||n.index!==a.index)return!1;return!0}function Sf(r){if(jt(r))return r.map(Sf);if(Rt(r)){const t=Object.create(null),e=Object.keys(r),i=e.length;let n=0;for(;n<i;++n)t[e[n]]=Sf(r[e[n]]);return t}return r}function ED(r){return["__proto__","prototype","constructor"].indexOf(r)===-1}function KO(r,t,e,i){if(!ED(r))return;const n=t[r],a=e[r];Rt(n)&&Rt(a)?wu(n,a,i):t[r]=Sf(a)}function wu(r,t,e){const i=jt(t)?t:[t],n=i.length;if(!Rt(r))return r;e=e||{};const a=e.merger||KO;let o;for(let s=0;s<n;++s){if(o=i[s],!Rt(o))continue;const l=Object.keys(o);for(let u=0,h=l.length;u<h;++u)a(l[u],r,o,e)}return r}function Jl(r,t){return wu(r,t,{merger:JO})}function JO(r,t,e){if(!ED(r))return;const i=t[r],n=e[r];Rt(i)&&Rt(n)?Jl(i,n):Object.prototype.hasOwnProperty.call(t,r)||(t[r]=Sf(n))}const vb={"":r=>r,x:r=>r.x,y:r=>r.y};function QO(r){const t=r.split("."),e=[];let i="";for(const n of t)i+=n,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function tN(r){const t=QO(r);return e=>{for(const i of t){if(i==="")break;e=e&&e[i]}return e}}function Wn(r,t){return(vb[t]||(vb[t]=tN(t)))(r)}function M0(r){return r.charAt(0).toUpperCase()+r.slice(1)}const Tu=r=>typeof r<"u",Un=r=>typeof r=="function",db=(r,t)=>{if(r.size!==t.size)return!1;for(const e of r)if(!t.has(e))return!1;return!0};function eN(r){return r.type==="mouseup"||r.type==="click"||r.type==="contextmenu"}const Nt=Math.PI,qt=2*Nt,rN=qt+Nt,wf=Number.POSITIVE_INFINITY,iN=Nt/180,se=Nt/2,na=Nt/4,pb=Nt*2/3,Sn=Math.log10,_i=Math.sign;function Ql(r,t,e){return Math.abs(r-t)<e}function gb(r){const t=Math.round(r);r=Ql(r,t,r/1e3)?t:r;const e=Math.pow(10,Math.floor(Sn(r))),i=r/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function nN(r){const t=[],e=Math.sqrt(r);let i;for(i=1;i<e;i++)r%i===0&&(t.push(i),t.push(r/i));return e===(e|0)&&t.push(e),t.sort((n,a)=>n-a).pop(),t}function aN(r){return typeof r=="symbol"||typeof r=="object"&&r!==null&&!(Symbol.toPrimitive in r||"toString"in r||"valueOf"in r)}function _s(r){return!aN(r)&&!isNaN(parseFloat(r))&&isFinite(r)}function oN(r,t){const e=Math.round(r);return e-t<=r&&e+t>=r}function OD(r,t,e){let i,n,a;for(i=0,n=r.length;i<n;i++)a=r[i][e],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Yr(r){return r*(Nt/180)}function C0(r){return r*(180/Nt)}function yb(r){if(!ne(r))return;let t=1,e=0;for(;Math.round(r*t)/t!==r;)t*=10,e++;return e}function ND(r,t){const e=t.x-r.x,i=t.y-r.y,n=Math.sqrt(e*e+i*i);let a=Math.atan2(i,e);return a<-.5*Nt&&(a+=qt),{angle:a,distance:n}}function dy(r,t){return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function sN(r,t){return(r-t+rN)%qt-Nt}function Ee(r){return(r%qt+qt)%qt}function Mu(r,t,e,i){const n=Ee(r),a=Ee(t),o=Ee(e),s=Ee(a-n),l=Ee(o-n),u=Ee(n-a),h=Ee(n-o);return n===a||n===o||i&&a===o||s>l&&u<h}function Se(r,t,e){return Math.max(t,Math.min(e,r))}function lN(r){return Se(r,-32768,32767)}function Fi(r,t,e,i=1e-6){return r>=Math.min(t,e)-i&&r<=Math.max(t,e)+i}function A0(r,t,e){e=e||(o=>r[o]<t);let i=r.length-1,n=0,a;for(;i-n>1;)a=n+i>>1,e(a)?n=a:i=a;return{lo:n,hi:i}}const Gi=(r,t,e,i)=>A0(r,e,i?n=>{c
|
||
|
|
* Chart.js v4.5.1
|
||
|
|
* https://www.chartjs.org
|
||
|
|
* (c) 2025 Chart.js Contributors
|
||
|
|
* Released under the MIT License
|
||
|
|
*/let dB=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,n){const a=e.listeners[n],o=e.duration;a.forEach(s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=VD.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,n)=>{if(!i.running||!i.items.length)return;const a=i.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(n.draw(),this._notify(n,i,t,"progress")),a.length||(i.running=!1,this._notify(n,i,t,"complete"),i.initial=!1),e+=a.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,n)=>Math.max(i,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let n=i.length-1;for(;n>=0;--n)i[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};var Oi=new dB;const Pb="transparent",pB={boolean(r,t,e){return e>.5?t:r},color(r,t,e){const i=bb(r||Pb),n=i.valid&&bb(t||Pb);return n&&n.valid?n.mix(i,e).hexString():t},number(r,t,e){return r+(t-r)*e}};let gB=class{constructor(t,e,i,n){const a=e[i];n=Ol([t.to,n,a,t.from]);const o=Ol([t.from,a,n]);this._active=!0,this._fn=t.fn||pB[t.type||typeof o],this._easing=tu[t.easing]||tu.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const n=this._target[this._prop],a=i-this._start,o=this._duration-a;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Ol([t.to,e,n,t.from]),this._from=Ol([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,n=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||e<i),!this._active){this._target[n]=s,this._notify(!0);return}if(e<0){this._target[n]=a;return}l=e/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let n=0;n<i.length;n++)i[n][e]()}};class nL{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Rt(t))return;const e=Object.keys(Jt.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(n=>{const a=t[n];if(!Rt(a))return;const o={};for(const s of e)o[s]=a[s];(jt(a.properties)&&a.properties||[n]).forEach(s=>{(s===n||!i.has(s))&&i.set(s,o)})})}_animateOptions(t,e){const i=e.options,n=mB(t,i);if(!n)return[];const a=this._createAnimations(n,i);return i.$shared&&yB(t.options.$animations,i).then(()=>{t.options=i},()=>{}),a}_createAnimations(t,e){const i=this._properties,n=[],a=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[u];let c=a[u];const f=i.get(u);if(c)if(f&&c.active()){c.update(f,h,s);continue}else c.cancel();if(!f||!f.duration){t[u]=h;continue}a[u]=c=new gB(f,t,u,h),n.push(c)}return n}update(t,e){if(this._prope
|
||
|
|
`)>-1?r.split(`
|
||
|
|
`):r}function r5(r,t){const{element:e,datasetIndex:i,index:n}=t,a=r.getDatasetMeta(i).controller,{label:o,value:s}=a.getLabelAndValue(n);return{chart:r,label:o,parsed:a.getParsed(n),raw:r.data.datasets[i].data[n],formattedValue:s,dataset:a.getDataset(),dataIndex:n,datasetIndex:i,element:e}}function g1(r,t){const e=r.chart.ctx,{body:i,footer:n,title:a}=r,{boxWidth:o,boxHeight:s}=t,l=de(t.bodyFont),u=de(t.titleFont),h=de(t.footerFont),c=a.length,f=n.length,v=i.length,d=ze(t.padding);let p=d.height,g=0,y=i.reduce((x,b)=>x+b.before.length+b.lines.length+b.after.length,0);if(y+=r.beforeBody.length+r.afterBody.length,c&&(p+=c*u.lineHeight+(c-1)*t.titleSpacing+t.titleMarginBottom),y){const x=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;p+=v*x+(y-v)*l.lineHeight+(y-1)*t.bodySpacing}f&&(p+=t.footerMarginTop+f*h.lineHeight+(f-1)*t.footerSpacing);let m=0;const _=function(x){g=Math.max(g,e.measureText(x).width+m)};return e.save(),e.font=u.string,Wt(r.title,_),e.font=l.string,Wt(r.beforeBody.concat(r.afterBody),_),m=t.displayColors?o+2+t.boxPadding:0,Wt(i,x=>{Wt(x.before,_),Wt(x.lines,_),Wt(x.after,_)}),m=0,e.font=h.string,Wt(r.footer,_),e.restore(),g+=d.width,{width:g,height:p}}function i5(r,t){const{y:e,height:i}=t;return e<i/2?"top":e>r.height-i/2?"bottom":"center"}function n5(r,t,e,i){const{x:n,width:a}=i,o=e.caretSize+e.caretPadding;if(r==="left"&&n+a+o>t.width||r==="right"&&n-a-o<0)return!0}function a5(r,t,e,i){const{x:n,width:a}=e,{width:o,chartArea:{left:s,right:l}}=r;let u="center";return i==="center"?u=n<=(s+l)/2?"left":"right":n<=a/2?u="left":n>=o-a/2&&(u="right"),n5(u,r,t,e)&&(u="center"),u}function y1(r,t,e){const i=e.yAlign||t.yAlign||i5(r,e);return{xAlign:e.xAlign||t.xAlign||a5(r,t,e,i),yAlign:i}}function o5(r,t){let{x:e,width:i}=r;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function s5(r,t,e){let{y:i,height:n}=r;return t==="top"?i+=e:t==="bottom"?i-=n+e:i-=n/2,i}function m1(r,t,e,i){const{caretSize:n,caretPadding:a,cornerRadius:o}=r,{xAlign:s,yAlign:l}=e,u=n+a,{topLeft:h,topRight:c,bottomLeft:f,bottomRight:v}=Ja(o);let d=o5(t,s);const p=s5(t,l,u);return l==="center"?s==="left"?d+=u:s==="right"&&(d-=u):s==="left"?d-=Math.max(h,f)+n:s==="right"&&(d+=Math.max(c,v)+n),{x:Se(d,0,i.width-t.width),y:Se(p,0,i.height-t.height)}}function Hh(r,t,e){const i=ze(e.padding);return t==="center"?r.x+r.width/2:t==="right"?r.x+r.width-i.right:r.x+i.left}function _1(r){return ui([],Ni(r))}function l5(r,t,e){return Kn(r,{tooltip:t,tooltipItems:e,type:"tooltip"})}function x1(r,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?r.override(e):r}const CL={beforeTitle:Pi,title(r){if(r.length>0){const t=r[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:Pi,beforeBody:Pi,beforeLabel:Pi,label(r){if(this&&this.options&&this.options.mode==="dataset")return r.label+": "+r.formattedValue||r.formattedValue;let t=r.dataset.label||"";t&&(t+=": ");const e=r.formattedValue;return It(e)||(t+=e),t},labelColor(r){const e=r.chart.getDatasetMeta(r.datasetIndex).controller.getStyle(r.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(r){const e=r.chart.getDatasetMeta(r.datasetIndex).controller.getStyle(r.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Pi,afterBody:Pi,beforeFooter:Pi,footer:Pi,afterFooter:Pi};function Qe(r,t,e,i){const n=r[t].call(e,i);return typeof n>"u"?CL[t].call(e,i):n}class Sy extends an{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void
|
||
|
|
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 Ly=function(r,t){return Ly=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Ly(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");Ly(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Iy=function(){return Iy=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a])}return t},Iy.apply(this,arguments)},z5=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),V5=function(){function r(){this.browser=new z5,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),mt=new V5;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(mt.wxa=!0,mt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?mt.worker=!0:!mt.hasGlobalWindow||"Deno"in window?(mt.node=!0,mt.svgSupported=!0):F5(navigator.userAgent,mt);function F5(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",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<"u";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 V0=12,PL="sans-serif",Yn=V0+"px "+PL,G5=20,H5=100,W5="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function U5(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-G5)/H5;t[i]=n}return t}var Y5=U5(W5),Qr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var n=Qr.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Yn),r.measureText(e);e=e||"",i=i||Yn;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||V0,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=Y5[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}};function kL(r){for(var t in Qr)r[t]&&(Qr[t]=r[t])}var RL=Pr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),EL=Pr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Es=Object.prototype.toString,Nv=Array.prototype,$5=Nv.forEach,X5=Nv.filter,F0=Nv.slice,Z5=Nv.map,k1=(function(){}).constructor,Uh=k1?k1.prototype:null,G0="__proto__",j5=2311;function H0(){return j5++}function Bv(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function it(r){if(r==null||typeof r!="object")return r;var t=r,e=Es.call(r);if(e==="[object Array]"){if(!hs(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=it(r[i])}}else if(EL[e]){if(!hs(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!RL[e]&&!hs(r)&&!ho(r)){t={};for(var o in r)r.ha
|
||
|
|
`),a=n.length;if(a===1)return iS(n[0],t,e,i);for(var o=new ft(0,0,0,0),s=0;s<n.length;s++){var l=iS(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function Hl(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function es(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Uv(r){return dr("国",r)}function ei(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Ff(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,h="left",c="top";if(i instanceof Array)l+=ei(i[0],e.width),u+=ei(i[1],e.height),h=null,c=null;else switch(i){case"left":l-=n,u+=s,h="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,h="center",c="bottom";break;case"bottom":l+=o/2,u+=a+n,h="center";break;case"inside":l+=o/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,h="right",c="middle";break;case"insideTop":l+=o/2,u+=n,h="center";break;case"insideBottom":l+=o/2,u+=a-n,h="center",c="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,h="right";break;case"insideBottomLeft":l+=n,u+=a-n,c="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,h="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=h,r.verticalAlign=c,r}var op="__zr_normal__",sp=Ti.concat(["ignore"]),cG=Pr(Ti,function(r,t){return r[t]=!0,r},{ignore:!1}),Eo={},fG=new ft(0,0,0,0),Yv=function(){function r(t){this.id=H0(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){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 i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var h=fG;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Eo,i,h):Ff(Eo,i,h),a.x=Eo.x,a.y=Eo.y,o=Eo.align,s=Eo.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var f=void 0,v=void 0;c==="center"?(f=h.width*.5,v=h.height*.5):(f=ei(c[0],h.width),v=ei(c[1],h.height)),u=!0,a.originX=-a.x+f+(n?0:h.x),a.originY=-a.y+v+(n?0:h.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=i.outsideFill,m=i.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|=hr,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()?Zy:Xy},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Ze(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Kr(i,"rgba")},r.prototype.traverse=func
|
||
|
|
* ZRender, a high performance 2d drawing library.
|
||
|
|
*
|
||
|
|
* Copyright (c) 2013, Baidu Inc.
|
||
|
|
* All rights reserved.
|
||
|
|
*
|
||
|
|
* LICENSE
|
||
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
|
|
*/var of={},Ua={};function yG(r){delete Ua[r]}function mG(r){if(!r)return!1;if(typeof r=="string")return Eu(r,1)<$y;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Eu(t[n].color,1);return e/=i,e<$y}return!1}var _G=function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new IF,o=i.renderer||"canvas";of[o]||(o=xt(of)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new of[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!mt.node&&!mt.worker&&!l?new uG(s.getViewportRoot(),s.root):null,h=i.useCoarsePointer,c=h==null||h==="auto"?mt.touchEventsSupported:!!h,f=44,v;c&&(v=lt(i.pointerSize,f)),this.handler=new $L(a,s,u,s.root,v),this.animation=new rG({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=mG(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=as();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=as();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof at&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,yG(this.id))},r}();function jy(r,t){var e=new _G(H0(),r,t);return Ua[e.id]=e,e}function xG(r){r.dispose()}function bG(){for(var r in Ua)Ua.hasOwnProp
|
||
|
|
`);a=k2(e,i,n,a);for(var s=!1,l={},u=0,h=o.length;u<h;u++)R2(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
||
|
|
`),r.isTruncated=s}function k2(r,t,e,i){i=i||{};var n=z({},i);n.font=t,e=lt(e,"..."),n.maxIterations=lt(i.maxIterations,2);var a=n.minChar=lt(i.minChar,0);n.cnCharWidth=dr("国",t);var o=n.ascCharWidth=dr("a",t);n.placeholder=lt(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=dr(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 R2(r,t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i){r.textLine="",r.isTruncated=!1;return}var o=dr(t,n);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?i3(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=dr(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function i3(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function n3(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=Uv(n),s=lt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",h=!1,c=t.width,f;c!=null&&(e==="break"||e==="breakAll")?f=r?E2(r,t.font,c,e==="breakAll",0).lines:[]:f=r?r.split(`
|
||
|
|
`):[];var v=f.length*s,d=lt(t.height,v);if(v>d&&u){var p=Math.floor(d/s);h=h||f.length>p,f=f.slice(0,p)}if(r&&a&&c!=null)for(var g=k2(c,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<f.length;m++)R2(y,f[m],g),f[m]=y.textLine,h=h||y.isTruncated;for(var _=d,x=0,m=0;m<f.length;m++)x=Math.max(dr(f[m],n),x);c==null&&(c=x);var b=x;return i&&(_+=i[0]+i[2],b+=i[1]+i[3],c+=i[1]+i[3]),l&&(b=c),{lines:f,height:d,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:x,contentHeight:v,width:c,isTruncated:h}}var a3=function(){function r(){}return r}(),uS=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),o3=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function s3(r,t){var e=new o3;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=hp.lastIndex=0,l;(l=hp.exec(r))!=null;){var u=l.index;u>s&&cp(e,r.substring(s,u),t,o),cp(e,l[2],t,o,l[1]),s=hp.lastIndex}s<r.length&&cp(e,r.substring(s,r.length),t,o);var h=[],c=0,f=0,v=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate",g={};function y(G,H,W){G.width=H,G.lineHeight=W,c+=W,f=Math.max(f,H)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],x=0,b=0,S=0;S<_.tokens.length;S++){var w=_.tokens[S],T=w.styleName&&t.rich[w.styleName]||{},M=w.textPadding=T.padding,C=M?M[1]+M[3]:0,D=w.font=T.font||t.font;w.contentHeight=Uv(D);var L=lt(T.height,w.contentHeight);if(w.innerHeight=L,M&&(L+=M[0]+M[2]),w.height=L,w.lineHeight=jr(T.lineHeight,t.lineHeight,L),w.align=T&&T.align||t.align,w.verticalAlign=T&&T.verticalAlign||"middle",p&&n!=null&&c+w.lineHeight>n){var I=e.lines.length;S>0?(_.tokens=_.tokens.slice(0,S),y(_,b,x),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<I;break t}var P=T.width,k=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,h.push(w),w.contentWidth=dr(w.text,D);else{if(k){var R=T.backgroundColor,N=R&&R.image;N&&(N=e3(N),Zv(N)&&(w.width=Math.max(w.width,N.width*L/N.height)))}var O=d&&i!=null?i-b:null;O!=null&&O<w.width?!k||O<C?(w.text="",w.width=w.contentWidth=0):(P2(g,w.text,O-C,D,t.ellipsis,{minChar:t.truncateMinChar}),w.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,w.width=w.contentWidth=dr(w.text,D)):w.contentWidth=dr(w.text,D)}w.width+=C,b+=w.width,T&&(x=Math.max(x,w.lineHeight))}y(_,b,x)}e.outerWidth=e.width=lt(i,f),e.outerHeight=e.height=lt(n,c),e.contentHeight=c,e.contentWidth=f,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<h.length;m++){var w=h[m],B=w.percentWidth;w.width=parseInt(B,10)/100*e.width}return e}function cp(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,h,c;if(i){var f=o.padding,v=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ei(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(h=t.split(`
|
||
|
|
`),u=!0),i.accumWidth=d}else{var p=E2(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=p.accumWidth+v,c=p.linesWidths,h=p.lines}}else h=t.split(`
|
||
|
|
`);for(var g=0;g<h.length;g++){var y=h[g],m=new a3;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=c?c[g]:dr(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new uS)).tokens,x=_.length;x===1&&_[0].isLineHolder?_[0]=m:(y||!x||a)&&_.push(m)}else s.push(new uS([m]))}}function l3(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var u3=Pr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function h3(r){return l3(r)?!!u3[r]:!0}function E2(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,h=0,c=0;c<r.length;c++){var f=r.charAt(c);if(f===`
|
||
|
|
`){l&&(s+=l,h+=u),a.push(s),o.push(h),s="",l="",u=0,h=0;continue}var v=dr(f,t),d=i?!1:!h3(f);if(a.length?h+v>e:n+h+v>e){h?(s||l)&&(d?(s||(s=l,l="",u=0,h=u),a.push(s),o.push(h-u),l+=f,u+=v,s="",h=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(h),s=f,h=v)):d?(a.push(l),o.push(u),l=f,u=v):(a.push(f),o.push(v));continue}h+=v,d?(l+=f,u+=v):(l&&(s+=l,l="",u=0),s+=f)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(h)),a.length===1&&(h+=n),{accumWidth:h,lines:a,linesWidths:o}}var em="__zr_style_"+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},jv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[em]=!0;var hS=["z","z2","invisible"],c3=["invisible"],kr=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=xt(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&f3(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ft(0,0,0,0)),i?ft.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ft(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:z(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Fl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Fl)},t.prototype.styleUpdated=function(){this.__dirty&=~Fl},t.prototype.createStyle=function(e){return uh(eo,e)},t.prototype.useStyle=function(e){e[em]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[em]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,hS)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var h=this.style;if
|
||
|
|
yyyy`);var i=pr(t),n=e?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),h=i[n+"Seconds"](),c=i[n+"Milliseconds"]();return r=r.replace("MM",$e(o,2)).replace("M",o).replace("yyyy",a).replace("yy",$e(a%100+"",2)).replace("dd",$e(s,2)).replace("d",s).replace("hh",$e(l,2)).replace("h",l).replace("mm",$e(u,2)).replace("m",u).replace("ss",$e(h,2)).replace("s",h).replace("SSS",$e(c,3)),r}function KH(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function go(r,t){return t=t||"transparent",Y(r)?r:et(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Zf(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ff=A,CI=["left","right","top","bottom","width","height"],Xa=[["width","left","right"],["height","top","bottom"]];function A_(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var h=l.getBoundingRect(),c=t.childAt(u+1),f=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=h.width+(f?-f.x+h.x:0);v=a+p,v>i||l.newline?(a=0,v=p,o+=s+e,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(f?-f.y+h.y:0);d=o+g,d>n||l.newline?(a+=s+e,o=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var io=A_;ut(A_,"vertical");ut(A_,"horizontal");function JH(r,t,e){var i=t.width,n=t.height,a=U(r.left,i),o=U(r.top,n),s=U(r.right,i),l=U(r.bottom,n);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=To(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ue(r,t,e){e=To(e||0);var i=t.width,n=t.height,a=U(r.left,i),o=U(r.top,n),s=U(r.right,i),l=U(r.bottom,n),u=U(r.width,i),h=U(r.height,n),c=e[2]+e[0],f=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-f-a),isNaN(h)&&(h=n-l-c-o),v!=null&&(isNaN(u)&&isNaN(h)&&(v>i/n?u=i*.8:h=n*.8),isNaN(u)&&(u=v*h),isNaN(h)&&(h=u/v)),isNaN(a)&&(a=i-s-u-f),isNaN(o)&&(o=n-l-h-c),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-f;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-h/2-e[0];break;case"bottom":o=n-h-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-f-a-(s||0)),isNaN(h)&&(h=n-c-o-(l||0));var d=new ft(a+e[3],o+e[0],u,h);return d.margin=e,d}function sd(r,t,e,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ft(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var h=r.getLocalTransform();u=u.clone(),u.applyTransform(h)}var c=ue(tt({width:u.width,height:u.height},t),e,i),f=o?c.x-u.x:0,v=s?c.y-u.y:0;return l==="raw"?(a.x=f,a.y=v):(a.x+=f,a.y+=v),a===r&&r.markRedraw(),!0}function QH(r,t){return r[Xa[t][0]]!=null||r[Xa[t][1]]!=null&&r[Xa[t][2]]!=null}function Gu(r){var t=r.layoutMode||r.constructor.layoutMode;return et(t)?t:t?{type:t}:null}function Zn(r,t,e){var i=e&&e.ignoreSize;!V(i)&&(i=[i,i]);var n=o(Xa[0],0),a=o(Xa[1],1);u(Xa[0],r,n),u(Xa[1],r,a);function o(h,c){var f={},v=0,d={},p=0,g=2;if(ff(h,function(_){d[_]=r[_]}),ff(h,function(_){s(t,_)&&(f[_]=d[_]=t[_]),l(f,_)&&v++,l(d,_)&&p++}),i[c])return l(t,h[1])?d[h[2]]=null:l(t,h[2])&&(d[h[1]]=null),d;if(p===g||!v)return d;if(v>=g)return f;for(var y=0;y<h.length;y++){var m=h[y];if(!s(f,m)&&s(r,m)){f[m]=r[m];break}}return f}function s(h,c){return h.hasOwnProperty(c)}function l(h,c){return h[c]!=null&&h[c]!=="auto"}function u(h,c,f){ff(h,function(v){c[v]=f[v]})}}function Us(r){return AI({},r)}function AI(r,t){return t&&r&&ff(CI,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var tW=Tt(),yt=function(r){E(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=Ws("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Gu(this),a=n?Us(e):{},o=i.getTheme();ht(e,o.get(this.mainType)),ht(e,this.getDefaultOption()
|
||
|
|
`,`
|
||
|
|
|
||
|
|
`,`
|
||
|
|
|
||
|
|
|
||
|
|
`];function _e(r,t){return t.type=r,t}function ym(r){return r.type==="section"}function tP(r){return ym(r)?r4:i4}function eP(r){if(ym(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var a=eP(n);a>=t&&(t=a+ +(i&&(!a||ym(n)&&!n.noHeader)))}),t}return 0}function r4(r,t,e,i){var n=t.noHeader,a=n4(eP(t)),o=[],s=t.blocks||[];Ve(!s||V(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(X(u,l)){var h=new XI(u[l],null);s.sort(function(p,g){return h.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=tP(p)(y?z(z({},r),{valueFormatter:y}):r,p,g>0?a.html:0,i);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(a.richText):mm(i,o.join(""),n?e:a.html);if(n)return c;var f=fm(t.header,"ordinal",r.useUTC),v=QI(i,r.renderMode).nameStyle,d=JI(i);return r.renderMode==="richText"?rP(r,f,v)+a.richText+c:mm(i,'<div style="'+v+";"+d+';">'+Oe(f)+"</div>"+c,e)}function i4(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,h=t.valueFormatter||r.valueFormatter||function(x){return x=V(x)?x:[x],F(x,function(b,S){return fm(b,V(v)?v[S]:v,u)})};if(!(a&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),f=a?"":fm(l,"ordinal",u),v=t.valueType,d=o?[]:h(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=QI(i,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":c)+(a?"":rP(r,f,m))+(o?"":s4(r,d,p,g,_)):mm(i,(s?"":c)+(a?"":a4(f,!s,m))+(o?"":o4(d,p,g,_)),e)}}function mw(r,t,e,i,n,a){if(r){var o=tP(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function n4(r){return{html:t4[r],richText:e4[r]}}function mm(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=JI(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function a4(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+Oe(r)+"</span>"}function o4(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=V(r)?r:[r],'<span style="'+a+";"+i+'">'+F(r,function(o){return Oe(o)}).join(" ")+"</span>"}function rP(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function s4(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(t)?t.join(" "):t,a)}function iP(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return go(i)}function nP(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Op=function(){function r(){this.richTextStyles={},this._nextStyleNameId=b2()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=MI({color:e,type:t,renderMode:i,markerId:n});return Y(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};V(e)?A(e,function(a){return z(i,a)}):z(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function aP(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=V(s),u=iP(t,e),h,c,f,v;if(o>1||l&&!o){var d=l4(s,t,e,a,u);h=d.inlineValues,c=d.inlineValueTypes,f=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(a[0]);v=h=As(n,e,a[0]),c=p.type}else v=h=l?s[0]:s;var g=e_(t),y=g&&t.name||"",m=n.getName(e),_=i?y:m;return _e("section",{header:y,noHeader:i||!g,sortParam:v,blocks:[_e("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Lr(_),value:h,valueType:c,dataIndex:e})].concat(f||[])})}function l4(r,t,e,i,n){var a=t.getData(),o=Pr(r,function(c,f,v){var d=a.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?A(i,function(c){h(As(a,e,c),c)}):A(r,h);function h(c,f){var v=a.getDimensionInfo(f);!v||v.otherDims.tooltip===!1||(o?u.push(_e("nameValue",{markerType:"subItem",mar
|
||
|
|
`:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return IY(o,s)+(o!=="style"?Oe(l):l||"")+(a?""+e+F(a,function(u){return i(u)}).join(e)+e:"")+PY(o)}return i(r)}function kY(r,t,e){e=e||{};var i=e.newline?`
|
||
|
|
`:"",n=" {"+i,a=i+"}",o=F(xt(r),function(l){return l+n+F(xt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+a}).join(i),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(h){var c=t[l][u][h];return h==="d"&&(c='path("'+c+'")'),h+":"+c+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function Pm(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vT(r,t,e,i){return ge("svg","root",{width:r,height:t,xmlns:Mk,"xmlns:xlink":Ck,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+t:!1},e)}var RY=0;function Dk(){return RY++}var dT={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"},Ea="transform-origin";function EY(r,t,e){var i=z({},r.shape);z(i,t),r.buildPath(e,i);var n=new Tk;return n.reset(s2(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function OY(r,t){var e=t.originX,i=t.originY;(e||i)&&(r[Ea]=e+"px "+i+"px")}var NY={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Lk(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function BY(r,t,e){var i=r.shape.paths,n={},a,o;if(A(i,function(l){var u=Pm(e.zrId);u.animation=!0,md(l,{},u,!0);var h=u.cssAnims,c=u.cssNodes,f=xt(h),v=f.length;if(v){o=f[v-1];var d=h[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=Lk(n,e);return a.replace(o,s)}}function pT(r){return Y(r)?dT[r]?"cubic-bezier("+dT[r]+")":X0(r)?r:"":""}function md(r,t,e,i){var n=r.animators,a=n.length,o=[];if(r instanceof Qv){var s=BY(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var h=n[u],c=[h.getMaxTime()/1e3+"s"],f=pT(h.getClip().easing),v=h.getDelay();f?c.push(f):c.push("linear"),v&&c.push(v/1e3+"s"),h.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(h)}function p(m){var _=m[1],x=_.length,b={},S={},w={},T="animation-timing-function";function M(dt,rt,gt){for(var J=dt.getTracks(),st=dt.getMaxTime(),Ht=0;Ht<J.length;Ht++){var Et=J[Ht];if(Et.needsAnimate()){var Vt=Et.keyframes,Xt=Et.propName;if(gt&&(Xt=gt(Xt)),Xt)for(var fe=0;fe<Vt.length;fe++){var sr=Vt[fe],Je=Math.round(sr.time/st*100)+"%",ia=pT(sr.easing),sn=sr.rawValue;(Y(sn)||Mt(sn))&&(rt[Je]=rt[Je]||{},rt[Je][Xt]=sr.rawValue,ia&&(rt[Je][T]=ia))}}}}for(var C=0;C<x;C++){var D=_[C],L=D.targetName;L?L==="shape"&&M(D,S):!i&&M(D,b)}for(var I in b){var P={};f2(P,r),z(P,b[I]);var k=l2(P),R=b[I][T];w[I]=k?{transform:k}:{},OY(w[I],P),R&&(w[I][T]=R)}var N,O=!0;for(var I in S){w[I]=w[I]||{};var B=!N,R=S[I][T];B&&(N=new Ci);var G=N.len();N.reset(),w[I].d=EY(r,S[I],N);var H=N.len();if(!B&&G!==H){O=!1;break}R&&(w[I][T]=R)}if(!O)for(var I in w)delete w[I].d;if(!i)for(var C=0;C<x;C++){var D=_[C],L=D.targetName;L==="style"&&M(D,w,function(J){return NY[J]})}for(var W=xt(w),q=!0,K,C=1;C<W.length;C++){var nt=W[C-1],Ct=W[C];if(w[nt][Ea]!==w[Ct][Ea]){q=!1;break}K=w[nt][Ea]}if(q&&K){for(var I in w)w[I][Ea]&&delete w[I][Ea];t[Ea]=K}if(Dt(W,function(dt){return xt(w[dt]).length>0}).length){var te=Lk(w,e);return te+" "+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-"+Dk();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function zY(r,t,e){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};gT(i,t,e)}else{var n=r.states.emphasis&&
|
||
|
|
`+g.message)}var n=new at;n.add(i),n.isGeoSVGGraphicRoot=!0;var a=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,h=void 0,c=void 0,f=void 0;if(a!=null?(u=0,c=a):s&&(u=s.x,c=s.width),o!=null?(h=0,f=o):s&&(h=s.y,f=s.height),u==null||h==null){var v=i.getBoundingRect();u==null&&(u=v.x,c=v.width),h==null&&(h=v.y,f=v.height)}l=this._boundingRect=new ft(u,h,c,f)}if(s){var d=fR(s,l);i.scaleX=i.scaleY=d.scale,i.x=d.x,i.y=d.y}n.setClipPath(new wt({shape:l.plain()}));var p=[];return A(e.named,function(g){t7.get(g.svgNodeTagLower)!=null&&(p.push(g),r7(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},r}();function r7(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function i7(r){var t=[],e=Z();return A(r,function(i){if(i.namedFrom==null){var n=new WU(i.name,i.el);t.push(n),e.set(i.name,n)}}),{regions:t,regionsMap:e}}var Vm=[126,25],pM="南海诸岛",Oa=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Pa=0;Pa<Oa.length;Pa++)for(var Uo=0;Uo<Oa[Pa].length;Uo++)Oa[Pa][Uo][0]/=10.5,Oa[Pa][Uo][1]/=-10.5/.75,Oa[Pa][Uo][0]+=Vm[0],Oa[Pa][Uo][1]+=Vm[1];function n7(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===pM)return;t.push(new lk(pM,F(Oa,function(i){return{type:"polygon",exterior:i}}),Vm))}}var a7={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function o7(r,t){if(r==="china"){var e=a7[t.name];if(e){var i=t.getCenter();i[0]+=e[0]/10.5,i[1]+=-e[1]/(10.5/.75),t.setCenter(i)}}}var s7=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function l7(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:s7[0]})}var u7="name",h7=function(){function r(t,e,i){this.type="geoJSON",this._parsedMap=Z(),this._mapName=t,this._specialAreas=i,this._geoJSON=f7(e)}return r.prototype.load=function(t,e){e=e||u7;var i=this._parsedMap.get(e);if(!i){var n=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:n,boundingRect:c7(n)})}var a=Z(),o=[];return A(i.regions,function(s){var l=s.name;t&&X(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new ft(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(t){var e=this._mapName,i=this._geoJSON,n;try{n=i?Lm(i,t):[]}catch(a){throw new Error(`Invalid geoJson format
|
||
|
|
`+a.message)}return n7(e,n),A(n,function(a){var o=a.name;o7(e,a),l7(e,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function c7(r){for(var t,e=0;e<r.length;e++){var i=r[e].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function f7(r){return Y(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ml=Z();const rn={registerMap:function(r,t,e){if(t.svg){var i=new e7(r,t.svg);Ml.set(r,i)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var i=new h7(r,n,e);Ml.set(r,i)}},getGeoResource:function(r){return Ml.get(r)},getMapForUser:function(r){var t=Ml.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var i=Ml.get(r);if(i)return i.load(t,e)}};var vx=["rect","circle","line","ellipse","polygon","polyline","path"],v7=Z(vx),d7=Z(vx.concat(["g"])),p7=Z(vx.concat(["g"])),vR=Tt();function Ic(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function gM(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var dR=function(){function r(t){var e=new at;this.uid=Ws("ec_map_draw"),this._controller=new Dh(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new at),e.add(this._svgGroup=new at)}return r.prototype.draw=function(t,e,i,n,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,h=this.group,c=l.getTransformInfo(),f=c.raw,v=c.roam,d=!u.childAt(0)||a;d?(h.x=v.x,h.y=v.y,h.scaleX=v.scaleX,h.scaleY=v.scaleY,h.dirty()):At(h,v,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,i),this._updateMapSelectHandler(t,u,i,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Z(),i=Z(),n=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function h(v,d){return d&&(v=d(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function c(v){for(var d=[],p=!u&&l&&l.project,g=0;g<v.length;++g){var y=h(v[g],p);y&&d.push(y)}return d}function f(v){return{shape:{points:c(v)}}}n.removeAll(),A(t.geo.regions,function(v){var d=v.name,p=e.get(d),g=i.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=e.set(d,new at),n.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),i.set(d,{dataIdx:y,regionModel:m})}var x=[],b=[];A(v.geometries,function(T){if(T.type==="polygon"){var M=[T.exterior].concat(T.interiors||[]);u&&(M=SM(M,u)),A(M,function(D){x.push(new Ge(f(D)))})}else{var C=T.points;u&&(C=SM(C,u,!0)),A(C,function(D){b.push(new We(f(D)))})}});var S=h(v.getCenter(),l&&l.project);function w(T,M){if(T.length){var C=new Qv({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),yM(t,C,y,m),mM(t,C,d,m,o,y,S),M&&(gM(C),A(C.states,gM))}}w(x),w(b,!0)}),e.each(function(v,d){var p=i.get(d),g=p.dataIdx,y=p.regionModel;_M(t,v,d,y,o,g),xM(t,v,d,y,o),bM(t,v,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,i=t.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=Z(),a=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,h=o.svgNodeTagLower,c=o.el,f=u?u.indexOfName(s):null,v=l.getRegionModel(s);v7.get(h)!=null&&c instanceof kr&&yM(t,c,f,v),c instanceof kr&&(c.culling=!0);var d=v.get("silent",!0);if(d!=null&&(c.silent=d),c.z2EmphasisLift=0,!o.namedFrom&&(p7.get(h)!=null&&mM(t,c,s,v,l,f,null),_M(t,c,s,v,l,f),xM(t,c,s,v,l),d
|
||
|
|
`))}),t.join(`
|
||
|
|
|
||
|
|
`+Md+`
|
||
|
|
|
||
|
|
`)}function AJ(r){return F(r,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)n[l]=arguments[l];i.push((s?s+Rs:"")+n.join(Rs))}),i.join(`
|
||
|
|
`)}).join(`
|
||
|
|
|
||
|
|
`+Md+`
|
||
|
|
|
||
|
|
`)}function DJ(r){var t=MJ(r);return{value:Dt([CJ(t.seriesGroupByCategoryAxis),AJ(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
|
||
|
|
|
||
|
|
`+Md+`
|
||
|
|
|
||
|
|
`),meta:t.meta}}function xv(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function LJ(r){var t=r.slice(0,r.indexOf(`
|
||
|
|
`));if(t.indexOf(Rs)>=0)return!0}var o0=new RegExp("["+Rs+"]+","g");function IJ(r){for(var t=r.split(/\n+/g),e=xv(t.shift()).split(o0),i=[],n=F(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=xv(t[a]).split(o0);i.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[a]=o[s])}return{series:n,categories:i}}function PJ(r){for(var t=r.split(/\n+/g),e=xv(t.shift()),i=[],n=0;n<t.length;n++){var a=xv(t[n]);if(a){var o=a.split(o0),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[n]={name:s,value:[]},l=i[n].value):l=i[n]=[];for(var h=0;h<o.length;h++)l.push(+o[h]);l.length===1&&(u?i[n].value=l[0]:i[n]=l[0])}}return{name:e,data:i}}function kJ(r,t){var e=r.split(new RegExp(`
|
||
|
|
*`+Md+`
|
||
|
|
*`,"g")),i={series:[]};return A(e,function(n,a){if(LJ(n)){var o=IJ(n),s=t[a],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=PJ(n);i.series.push(o)}}),i}var RJ=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var n=i.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),h=document.createElement("textarea");u.style.cssText="overflow:auto";var c=a.get("optionToContent"),f=a.get("contentToOption"),v=DJ(e);if(Q(c)){var d=c(i.getOption());Y(d)?u.innerHTML=d:ho(d)&&u.appendChild(d)}else{h.readOnly=a.get("readOnly");var p=h.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),h.value=v.value,u.appendChild(h)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),x=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var b=this;function S(){n.removeChild(o),b._dom=null}Ny(_,"click",S),Ny(x,"click",function(){if(f==null&&c!=null||f!=null&&c==null){S();return}var w;try{Q(f)?w=f(u,i.getOption()):w=kJ(h.value,g)}catch(T){throw S(),new Error("Data view format error "+T)}w&&i.dispatchAction({type:"changeDataView",newOption:w}),S()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(x),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,i){this._dom&&i.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,i){this.remove(e,i)},t.getDefaultOption=function(e){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},t}(Ar);function EJ(r,t){return F(r,function(e,i){var n=t&&t[i];if(et(n)&&!V(n)){var a=et(e)&&!V(e);a||(e={value:e});var o=n.name!=null&&e.name==null;return e=tt(e,n),o&&delete e.name,e}else return e})}ii({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];A(r.newOption.series,function(i){var n=t.getSeriesByName(i.name)[0];if(!n)e.push(z({type:"scatter"},i));else{var a=n.get("data");e.push({name:i.name,data:EJ(i.data,a)})}}),t.mergeOption(tt({series:e},r.newOption))});var UE=A,YE=Tt();function OJ(r,t){var e=Kx(r);UE(t,function(i,n){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[n])break}if(a<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 NJ(r){var t=Kx(r),e=t[t.length-1];t.length>1&&t.pop();var i={};return UE(e,function(n,a){for(var o=t.length-1;o>=0;o--)if(n=t[o][a],n){i[a]=n;break}}),i}function BJ(r){YE(r).snapshots=null}function zJ(r){return Kx(r).length}function Kx(r){var t=YE(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var VJ=function(r){E(t,r);function t(){return
|
||
|
|
|
||
|
|
`:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,f)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=ot(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,h=o.dataIndex,c=o.dataType,f=u.getData(c),v=this._renderMode,d=e.positionDefault,p=Ll([f.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(h,c),m=new Op;y.marker=m.makeTooltipMarker("item",go(y.color),v);var _=fw(u.formatTooltip(h,!1,c)),x=p.get("order"),b=p.get("valueFormatter"),S=_.frag,w=S?mw(b?z({valueFormatter:b},S):S,m,v,x,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+h;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:h,dataIndex:f.getRawIndex(h),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=ot(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var h=l;l={content:h,formatter:h},u=!0}u&&a&&l.content&&(l=it(l),l.content=Oe(l.content));var c=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&c.push(f),c.push({formatter:l.content});var v=e.positionDefault,d=Ll(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new Op;this._showOrMove(d,function(){var m=it(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,i,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,h){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var f=e.get("formatter");l=l||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),p=d.color;if(f)if(Y(f)){var g=e.ecModel.get("useUTC"),y=V(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=f,m&&(v=_h(y.axisValue,v,g)),v=C_(v,n,!0)}else if(Q(f)){var _=$(function(x,b){x===this._ticket&&(c.setContent(b,h,e,p,l),this._updatePosition(e,l,o,s,c,n,u))},this);this._ticket=a,v=f(n,a,_)}else v=f;c.setContent(v,h,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||V(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!V(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||e.get("position");var c=o.getSize(),f=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,h],contentSize:c.slice()})),V(i))n=U(i[0],u),a=U(i[1],h);else if(et(i)){var p=i;p.width=c[0],p.height=c[1];var g=ue(p,{width:u,height:h});n=g.x,a=g.y,f=null,v=null}else if(Y(i)&&l){var y=cQ(i,d,c,e.get("borderWidth"));n=y[0],a=y[1]}else{var y=uQ(n,a,o,u,h,f?null:20,v?null:20);n=y[0],a=y[1]}if(f&&(n-=CA(f)?c[0]/2:f==="right"?c[0]:0),v&&(a-=CA(v)?c[1]/2:v==="bottom"?c[1]:0),$E(e)){var y=hQ(n,a,o,u,h);n=y[0],a=y[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],h=e[l]||{},c=h.dataByAxis||[];o=o&&u.length===c.length,o&&A(u,function(f,v){var d=c[v]||{},p=f.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&f.value===d.value&&f.axisType===d.axisType&&f.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(f.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],x=a[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:thi
|
||
|
|
`)){var g=new Yc;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(p)[0];if(!h.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),b=m.getVisual("style"),S=this._createItem(y,p,d,v,i,e,_,b,x,c,a);S.on("click",jo(YA,p,null,a,f)).on("mouseover",jo(d0,y.name,null,a,f)).on("mouseout",jo(p0,y.name,null,a,f)),n.ssr&&S.eachChild(function(w){var T=ot(w);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),h.set(p,!0)}else n.eachRawSeries(function(w){if(!h.get(p)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),C=T.getItemVisual(M,"style"),D=T.getItemVisual(M,"legendIcon"),L=Ze(C.fill);L&&L[3]===0&&(L[3]=.2,C=z(z({},C),{fill:Kr(L,"rgba")}));var I=this._createItem(w,p,d,v,i,e,{},C,D,c,a);I.on("click",jo(YA,null,p,a,f)).on("mouseover",jo(d0,null,p,a,f)).on("mouseout",jo(p0,null,p,a,f)),n.ssr&&I.eachChild(function(P){var k=ot(P);k.seriesIndex=w.seriesIndex,k.dataIndex=d,k.ssrType="legend"}),h.set(p,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();v0(e,function(u){var h=u.type,c=new St({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var f=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);Ae(c,{normal:f,emphasis:v},{defaultText:u.title}),Bn(c)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,h,c,f){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(i),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");h=_||h||"roundRect";var x=htt(h,a,l,u,v,g,f),b=new Yc,S=a.getModel("textStyle");if(Q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:h,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(ctt({itemWidth:d,itemHeight:p,icon:h,iconRotate:w,itemStyle:x.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,M=s,C=o.get("formatter"),D=i;Y(C)&&C?D=C.replace("{name}",i??""):Q(C)&&(D=C(i));var L=g?S.getTextColor():a.get("inactiveColor");b.add(new St({style:Gt(S,{text:D,x:T,y:p/2,fill:L,align:M,verticalAlign:"middle"},{inheritColor:L})}));var I=new wt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&So({el:I,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(k){k.silent=!0}),I.silent=!c,this.getContentGroup().add(b),Bn(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();io(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),o){io("horizontal",u,e.get("selectorItemGap",!0));var f=u.getBoundingRect(),v=[-f.x,-f.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"?v[p]+=h[g]+d:c[p]+=f[g]+d,v[1-p]+=h[y]/2-f[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=h[g]+d+f[g],_[y]=Math.max(h[y],f[y]),_[m]=Math.min(0,f[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Yt);function htt(r,t,e,i,n,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),v0(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),h=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:Ds(c,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[h]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var f=t.getModel("lineStyle"),v=f.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="au
|
||
|
|
`||n==="")){var a=r.isSelected(n);X(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function vtt(r){r.registerAction("legendToggleSelect","legendselectchanged",ut(Pl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ut(Pl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ut(Pl,"inverseSelect")),r.registerAction("legendSelect","legendselected",ut(Pl,"select")),r.registerAction("legendUnSelect","legendunselected",ut(Pl,"unSelect"))}function iO(r){r.registerComponentModel(f0),r.registerComponentView(eO),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,ftt),r.registerSubTypeDefaulter("legend",function(){return"plain"}),vtt(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}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=Us(e);r.prototype.init.call(this,e,i,n),XA(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),XA(this,this.option,e)},t.type="legend.scroll",t.defaultOption=ea(f0.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(f0);function XA(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Zn(t,e,{type:"box",ignoreSize:!!n})}var ZA=at,ry=["width","height"],iy=["x","y"],ptt=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new ZA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ZA)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,l);var h=this._controllerGroup,c=i.get("pageIconSize",!0),f=V(c)?c:[c,c];d("pagePrev",0);var v=i.getModel("pageTextStyle");h.add(new St({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Gs(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:$(u._pageGo,u,y,i,a)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});m.name=p,h.add(m)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,h=ry[u],c=iy[u],f=ry[1-u],v=iy[1-u];o&&io("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=it(n);o&&(y[h]=n[h]-p[h]-d);var m=this._layoutContentAndController(e,a,y,u,h,f,v,c);if(o){if(s==="end")g[u]+=m[h]+d;else{var _=p[h]+d;g[u]-=_,m[c]-=_}m[h]+=p[h]+d,g[1-u]+=m[v]+m[f]/2-p[f]/2,m[f]=Math.max(m[f],p[f]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,f=this._controllerGroup;io(e.get("orient"),h,e.get("itemGap"),a?n.width:null,a?null:n.height),io("horizontal",f,e.get("pageButtonItemGap",!0));var v=h.getBoundingRect(),d=f.getBoundingRect(),p=this._showController=v[o]>n[o],g=[-v.x,-v.y];i||(g[a]=h[u]);var y=[0,0],m=[-d.x,-d.y],_=lt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?m[a]+=n[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,h.setPosition(g),c.setPosition(y),f.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-a]),c.__rectSize=n[o],p){var S={x:0,y:0};S[o]=Math.max(n[o]-d[o]-_,0),S[s]=b[s],c.setClipPath(new wt({shape:S})),c.__rectSize=S[o]}else f.eachChi
|