123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import{A as r1,B as cA,C as dp,d as Zr,D as vA,r as Tr,E as _n,q as dA,G as pA,f as P,o as Pe,H as gA,I as ro,F as Ti,w as cv,J as hn,K as yA,L as mA,M as _A,e as vv,k as ot,O as n1,j as Mo,u as i1,N as SA,g as vs,Q as ds,x as xA,R as bA,z as wA}from"./index-1629ed98.js";import{t as a1,u as o1,a as TA}from"./index-75ae8403.js";import{P as AA}from"./index-36aeaa07.js";import{h as CA}from"./headerD-14ad9998.js";import{d as s1}from"./teacherIcon-b8e3946d.js";var pp=1/0,MA=17976931348623157e292;function DA(r){if(!r)return r===0?r:0;if(r=r1(r),r===pp||r===-pp){var t=r<0?-1:1;return t*MA}return r===r?r:0}function IA(r){var t=DA(r),e=t%1;return t===t?e?t-e:t:0}var LA=cA.isFinite,PA=Math.min;function RA(r){var t=Math[r];return function(e,n){if(e=r1(e),n=n==null?0:PA(IA(n),292),n&&LA(e)){var i=(dp(e)+"e").split("e"),a=t(i[0]+"e"+(+i[1]+n));return i=(dp(a)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}var EA=RA("round");const kA=EA,OA=r=>1-Math.pow(1-r,5);function BA(r){const{from:t,to:e,duration:n,onUpdate:i,onFinish:a}=r,o=()=>{const l=performance.now(),u=Math.min(l-s,n),f=t+(e-t)*OA(u/n);if(u===n){a();return}i(f),requestAnimationFrame(o)},s=performance.now();o()}const NA={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},Ei=Zr({name:"NumberAnimation",props:NA,setup(r){const{localeRef:t}=vA("name"),{duration:e}=r,n=Tr(r.from),i=_n(()=>{const{locale:v}=r;return v!==void 0?v:t.value});let a=!1;const o=v=>{n.value=v},s=()=>{var v;n.value=r.to,a=!1,(v=r.onFinish)===null||v===void 0||v.call(r)},l=(v=r.from,c=r.to)=>{a=!0,n.value=r.from,v!==c&&BA({from:v,to:c,duration:e,onUpdate:o,onFinish:s})},u=_n(()=>{var v;const d=kA(n.value,r.precision).toFixed(r.precision).split("."),p=new Intl.NumberFormat(i.value),g=(v=p.formatToParts(.5).find(_=>_.type==="decimal"))===null||v===void 0?void 0:v.value,y=r.showSeparator?p.format(Number(d[0])):d[0],m=d[1];return{integer:y,decimal:m,decimalSeparator:g}});function f(){a||l()}return dA(()=>{pA(()=>{r.active&&l()})}),Object.assign({formattedValue:u},{play:f})},render(){const{formattedValue:{integer:r,decimal:t,decimalSeparator:e}}=this;return[r,t?e:null,t]}}),zA=Object.prototype.toString;function gp(r,t){return zA.call(r)===`[object ${t}]`}function FA(r){return gp(r,"Function")||gp(r,"AsyncFunction")}const VA="_homeWrap_12nb9_1",GA="_homeInfoLeft_12nb9_6",HA="_homeBanner_12nb9_11",WA="_bannerPerson_12nb9_18",UA="_bannerInfo_12nb9_26",YA="_bannerRrey_12nb9_44",XA="_bannerRed_12nb9_47",$A="_bannerBtn_12nb9_50",ZA="_rotueRight_12nb9_70",qA="_leftDot_12nb9_74",KA="_rightDot_12nb9_81",QA="_lineIcon_12nb9_88",JA="_musicIcon_12nb9_96",jA="_homeInfoRight_12nb9_103",tC="_homeStudy_12nb9_107",eC="_homeStudyTitle_12nb9_110",rC="_homeStudyTitleDot_12nb9_119",nC="_homeStudyInfoList_12nb9_125",iC="_homeStudyInfoTabs_12nb9_132",aC="_homeStudyInfoTabItem_12nb9_137",oC="_active_12nb9_155",sC="_homeStudyInfoDate_12nb9_159",lC="_searchBtn_12nb9_165",uC="_resetBtn_12nb9_174",fC="_homeTrainData_12nb9_182",hC="_TrainDataTop_12nb9_185",cC="_TrainDataTopLeft_12nb9_192",vC="_TrainDataItem_12nb9_197",dC="_TrainDataItemTitle_12nb9_200",pC="_TrainDataItemsubTitle_12nb9_214",gC="_TrainDataTopRight_12nb9_223",yC="_DataTopRightItem_12nb9_228",mC="_DataTopRightDot_12nb9_238",_C="_red_12nb9_245",SC="_DataTopRightItemDis_12nb9_248",xC="_leftBottomWrap_12nb9_251",bC="_tableWrap_12nb9_257",wC="_homeInfoRightTop_12nb9_292",TC="_HeaderWrap_12nb9_300",AC="_headerD_12nb9_303",CC="_defultHeade_12nb9_307",MC="_headerInfo_12nb9_316",DC="_headerTitle_12nb9_316",IC="_headerSubTitle_12nb9_325",LC="_quickEnter_12nb9_331",PC="_quickList_12nb9_335",RC="_quickItem_12nb9_342",EC="_quickItemImg_12nb9_351",kC="_rightTitle_12nb9_360",OC="_titleDot_12nb9_368",BC="_rightTeachingWrap_12nb9_374",NC="_rightTeachingWrapTitle_12nb9_382",zC="_lookMore_12nb9_388",FC="_lookMoreArrow_12nb9_395",VC="_teachListWrap_12nb9_399",GC="_teachListWrapWall_12nb9_402",HC="_teachGroup_12nb9_410",WC="_teachGroupTitle_12nb9_413",UC="_teachGroupList_12nb9_423",YC="_teachGroupListDot_12nb9_430",XC="_teachGroupItemWrap_12nb9_440",$C="_teachGroupItemLeft_12nb9_453",ZC="_teachGroupItemHeader_12nb9_461",qC="_teachGroupItemRight_12nb9_470",KC="_teachGroupItemName_12nb9_473",QC="_teachGroupItemInfo_12nb9_489",JC="_indDot_12nb9_494",jC="_endDot_12nb9_495",tM="_chioseModel_12nb9_518",eM="_updateBtnGroup_12nb9_553",z={homeWrap:VA,homeInfoLeft:GA,homeBanner:HA,bannerPerson:WA,bannerInfo:UA,bannerRrey:YA,bannerRed:XA,bannerBtn:$A,rotueRight:ZA,leftDot:qA,rightDot:KA,lineIcon:QA,musicIcon:JA,homeInfoRight:jA,homeStudy:tC,homeStudyTitle:eC,homeStudyTitleDot:rC,homeStudyInfoList:nC,homeStudyInfoTabs:iC,homeStudyInfoTabItem:aC,active:oC,homeStudyInfoDate:sC,searchBtn:lC,resetBtn:uC,homeTrainData:fC,TrainDataTop:hC,TrainDataTopLeft:cC,TrainDataItem:vC,TrainDataItemTitle:dC,TrainDataItemsubTitle:pC,TrainDataTopRight:gC,DataTopRightItem:yC,DataTopRightDot:mC,red:_C,DataTopRightItemDis:SC,leftBottomWrap:xC,tableWrap:bC,homeInfoRightTop:wC,HeaderWrap:TC,headerD:AC,defultHeade:CC,headerInfo:MC,headerTitle:DC,headerSubTitle:IC,quickEnter:LC,quickList:PC,quickItem:RC,quickItemImg:EC,rightTitle:kC,titleDot:OC,rightTeachingWrap:BC,rightTeachingWrapTitle:NC,lookMore:zC,lookMoreArrow:FC,teachListWrap:VC,teachListWrapWall:GC,teachGroup:HC,teachGroupTitle:WC,teachGroupList:UC,teachGroupListDot:YC,teachGroupItemWrap:XC,teachGroupItemLeft:$C,teachGroupItemHeader:ZC,teachGroupItemRight:qC,teachGroupItemName:KC,teachGroupItemInfo:QC,indDot:JC,endDot:jC,chioseModel:tM,updateBtnGroup:eM},rM=""+new URL("bannerPerson-c4a83458.png",import.meta.url).href,nM=""+new URL("leftDot-5a0f1cca.png",import.meta.url).href,iM=""+new URL("rightDot-4b44ee64.png",import.meta.url).href,aM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABeCAYAAADc6BHlAAAAAXNSR0IArs4c6QAABY9JREFUeF7tnVuIVWUUx3/rODcbMmrGy2iaPjSUdMOHkiLIF8kgFXqoqKAeRMqh7EIF3awQDBQUjRALg3rwJRpfrIeol4iCCi9hWUTZRWwuJoG3Mc+Kb86MjePM7HPOrG/vPWfWBwdmON/+r7X/v/3t27f3WUIFTVVvBFaALgZmD3xaFZUKZGqmqyAK9ABHSh/5EtgtIvvKXclE41S1EegA7VB0frnCk7mfIL+CbAO2iciZsbwYE4CqPgi6XtF5k9nQatddkN9AXhCR90fTGBGAqjZAcbvCw9UG9+X+d0DgXSisFpG+4b5cBEBVp4N2Knqrm2jngCBfgKwQkXDMON8uAFDa8vUzN9/O+AvN7oewZOhIGAbg3E7f7cQxf1A17I5Epjwy5P/Sn+GAqxTfixve1YMDQuGhwQNz/wgonWrqj362k84GMnB21B5OUQcBPK0UN6YT3qMMjIJnRGTTAIDiL36Rle6GES7WRAoLJNxeUIp70w3v0QZGwU0BwCtKcZ1bkr4DQmGdqBb3KLos/fAeUZCPAoC9Sv9dTm8pOyDIvgCgSwm3H7yl7YAg3QFAcbLez0/b8OHxwnyCFPVcmFQYf+vrg8N/hKu68WtVo1AowFVzob6umqUzW8YGwLkibHwT+edEZisSAmvL5fDk6nCtP2GaDYCuHmTL27lYaX1uDUy7NBe5lJNE7QF4dg1c5gDKgR+ljzqAKL6WLTo5AZw+Axu2Imf/LduoGB11aiM8/zjUTYkhH0XT5hgQUvv9CBz6OcPTUIFr22H2zChGxRK1AxArwxrXdQAZA3YADiBjBzIO7yPAAWTsQMbhfQQ4gIwdyDi83Qg4cBAO/pTdhZiVkWE+4eZFMDe8fxK/2QA4cRLe2IoYze3EX+2xI+j0Fli7KpU0bADkaD7AwjVtaoCXnrKQStRwACNY5AASt5u4HSYegO5eZPOOuK6kqK5Tm+DFtalEtNkFhQch3tqJ/PlXKknHDqKLF8HdS2OH6de3ATCY6rHjtXEamuKkvi2AVLaZ2griADLm6QAcQMYOZBzeR4ADyNiBjMP7CHAAGTuQcXgfAQ4gYwcyDh9vBJw6BT3HJvatifoGmNEKUwrRMNkD2PcdfPI5Eu4L1UDTugLMnwfLl0LLFeZrZAvgwz3I1/vNk8yDoIa54gfugasXmKZjB+DA98iu3abJ5U1MpzXDE6ugqcksNTsAW99BjnabJZZXIb1rCdx2i1l6NgDCixmvbQqTC2aJ5VVIb1gI9y43S88GQHcPsjkfb0maOTOKkF45Cx61+zFJGwA19ljKWBB1zix4zAHE3tBH1XcAmVlfCuwAHMAIDvgxoOrNwg/CFVrnu6AKDbPu7gCsHa1QzwFUaJh1dwdg7WiFeg6gQsOsuzsAa0cr1HMAFRpm3T2fAPrOwuvhdrT16uZPT6+/Bu5baZaYzYVYSGfLDqSr1yyxvArpnXfA7aGMmk2zA/DtfuSDPTZZ5VRFm6eWpiSbLzHL0A5ASGlXJ3LgB7Pk8iSk4dGUsOtZ2G6ali2AkNpX35QeSzl5yjTRrMT6izTOaYOVy6Bthnka9gAGU/z7+MR/MKuhHtpmQmOo5hin+Y93x/G1bFX/+fqyrYrT0Qs4xPG1bFUvYVK2VXE6hiI+LyvFV+PIu2qSA17GKsmhyN97IbfIBifJeynDJIcif+/FPCMbnCR/vtqKl7NNsirO917QOY6vZakKcnp4SfNQV/hTL2leln/j7iTIoYsKPqmGqnra6RDG7W+igMCWEStuqWoDFLd7fflED6vuIEgvyHVjljwLB2bQ9V7qvGqfR11QKNwvIrsSa86V6s3TAdrhVbfHD2Jgy+8I5ge1RABDQ4bq28BK0PCaYPhx5fBp9WKgY4MJZzvAYdCPobBBRI4OLvEfKM7PACPe1V4AAAAASUVORK5CYII=",oM=""+new URL("musicIcon-2ab1b215.png",import.meta.url).href,sM="_CdataWrap_1eby9_1",lM="_dateIcons_1eby9_16",af={CdataWrap:sM,dateIcons:lM},uM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAhBJREFUWEftWE1LW0EUPeeFuChdqLukMd1bsH9Buij4BwrtuhTELjSG/oiSjy4UoXSt0D8gdFH6F1rQfWOIOytUujBkjkwk6ZBE3jDvBV7gZfm459zDuXNv5g7h8au0tWUG+GxDowLedfd46gGbCgnhoU+ickMXgio2lmC3V+eaD24yJoTHS2CpYeQmu6xHXrhJgSE8XolCiGc5HMIzJbDa0rOB8NYIL0FUIT0OKac3hryB0ImIbwXiS6fGMxc7Frj+VUvXF2hJ2AYUeSdINZCGxNHyGmrnr3h7f+YBDMV1cCroRar5AskIfl+uYsuKHAosN3UgaSeQby4wkoe9fb6nPXN9g19uWe0oAfChWMCP33u8DDncvk3ytK1Sf4BNAB9Ho+weS1OMsMEnTbWNtDsitOKiCM+7NV6Nvs1T4ChHpaVVY/DTFRmRn1hq6AzQuiPwTa/OE9eBkAE7y8E4nnJDrwUd/8fynKWm/rqjZKnAsi2rmyDkL2qWwDgeW+7bgXpjLHnDtMqXVqdM6lk8gcVHXE3LjRCe/j+Nm3PYy5OWhpDOE5MLTOrulIME/yQlTYIXtOLiF6+LQ2/LSVxzsYs/B3MHY85CXuKkzZI7mDuYvTHjceVPWjZf/ANX/vilyTdB0riZS5PP2pk0sQ/+wbXTZ3H3SRAaE7u4W+JMP31YgZl/PBqLzOrzm3t+svaAeQe1fZLUTESVNwAAAABJRU5ErkJggg==",fM="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAZtJREFUWEftmDFLBDEQhb9TFAWxEm1ExFJEwcpSLEQQ/LFWctWVVoIiliJio1iJoCgn8mADMe6yk+wu7EJSHXszb15eJpNMRtjGGrBXmF4Dzza3f1bROCNjoGNgobD9BMZGv9AsGsdK8CyIdJ5IMBpnkASXgQ1gFVgEZhPVsrpNgQ/gBXgE3nxHX8EZYAfYtCJ3ZPcA3AI/wncERe4AWOkoaCzsK3Apko7gbg+UCychJW9EUDl3GPyrUnIHaCb6Hb37KiQrw1H50spte6XMuU9EUHm35QGK0AT48r51SdCFmS+EcvVW3+9F8AhY8shcAU+BAtEFtkLBOpx1YN/zfRfB06CU6JSQiv6IPqIqCNbhSD1Nwo2pCLa1fLE7tcr+D59BErxoS4pEnJPwJAmXOBG3G7eyJe4mUiLqIAl+J062Lbe5uhxMvYy2RXD4ZSYrWJMLeYmbbpasYFYwl5nYMmO58jfNK6t/6ZXf0jRZAzS1K22aLG1n08AW/8q209K4WwKk2tQ27gLu9dOHCPb+8ciR7O3zm58/vXrA/AXVhWYx5GPH2gAAAABJRU5ErkJggg==",hM=Zr({name:"CDatePicker",props:{type:{type:String,default:"daterange"},separator:{type:String,default:"-"}},setup(r,{emit:t,attrs:e}){const n=Tr(!1),i=Tr(null),a=()=>{console.log("更新日期",i.value),t("update:value",i.value)};return()=>P(Ti,null,[P("div",{class:af.CdataWrap},[P(Pe,{previewDisabled:!0,class:af.dateIcons,src:n.value?uM:fM},null),P(gA,ro(e,{class:af.CDatePicker,clearable:!0,value:i.value,"onUpdate:value":[o=>i.value=o,a],separator:r.separator,type:r.type,onFocus:()=>{n.value=!0},onBlur:()=>{n.value=!1}}),{"date-icon":()=>P(Ti,null,[P("span",null,null)])})])])}});function of(r,t,e=!1){if(!FA(r))throw new Error("handle is not Function!");const{readyRef:n,stop:i,start:a}=cM(t);return e?r():cv(n,o=>{o&&r()},{immediate:!1}),{readyRef:n,stop:i,start:a}}function cM(r){const t=Tr(!1);let e;function n(){t.value=!1,e&&window.clearTimeout(e)}function i(){n(),e=setTimeout(()=>{t.value=!0},r)}return i(),a1(n),{readyRef:t,stop:n,start:i}}function vM({el:r=window,name:t,listener:e,options:n,autoRemove:i=!0,isDebounce:a=!0,wait:o=80}){let s=()=>{};const l=Tr(!1);if(r){const u=Tr(r),f=a?o1(e,o):TA(e,o),h=o?f:e,v=p=>{l.value=!0,p.removeEventListener(t,h,n)},c=p=>p.addEventListener(t,h,n),d=cv(u,(p,g,y)=>{p&&(!hn(l)&&c(p),y(()=>{i&&v(p)}))},{immediate:!0});s=()=>{v(u.value),d()}}return{removeEvent:s}}/*! *****************************************************************************
- 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 Xh=function(r,t){return Xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Xh(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");Xh(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var dM=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),pM=function(){function r(){this.browser=new dM,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}(),ri=new pM;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ri.wxa=!0,ri.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ri.worker=!0:typeof navigator>"u"?(ri.node=!0,ri.svgSupported=!0):gM(navigator.userAgent,ri);function gM(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[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}const vt=ri;var dv=12,l1="sans-serif",Tn=dv+"px "+l1,yM=20,mM=100,_M="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function SM(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-yM)/mM;t[n]=i}return t}var xM=SM(_M),An={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=An.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Tn),r.measureText(e);e=e||"",n=n||Tn;var a=/(\d+)px/.exec(n),o=a&&+a[1]||dv,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=xM[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}};function u1(r){for(var t in An)r[t]&&(An[t]=r[t])}var f1=He(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),h1=He(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),_a=Object.prototype.toString,hu=Array.prototype,bM=hu.forEach,wM=hu.filter,pv=hu.slice,TM=hu.map,yp=function(){}.constructor,ps=yp?yp.prototype:null,gv="__proto__",AM=2311;function yv(){return AM++}function mv(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Z(r){if(r==null||typeof r!="object")return r;var t=r,e=_a.call(r);if(e==="[object Array]"){if(!ia(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=Z(r[n])}}else if(h1[e]){if(!ia(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!f1[e]&&!ia(r)&&!ua(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==gv&&(t[o]=Z(r[o]))}return t}function et(r,t,e){if(!X(t)||!X(r))return e?Z(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==gv){var i=r[n],a=t[n];X(a)&&X(i)&&!F(a)&&!F(i)&&!ua(a)&&!ua(i)&&!$h(a)&&!$h(i)&&!ia(a)&&!ia(i)?et(i,a,e):(e||!(n in r))&&(r[n]=Z(t[n]))}return r}function c1(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=et(e,r[n],t);return e}function B(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==gv&&(r[e]=t[e]);return r}function q(r,t,e){for(var n=st(t),i=0;i<n.length;i++){var a=n[i];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}var CM=An.createCanvas;function lt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function _v(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function $t(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else q(r,t,e)}function ee(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function w(r,t,e){if(r&&t)if(r.forEach&&r.forEach===bM)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function V(r,t,e){if(!r)return[];if(!t)return vu(r);if(r.map&&r.map===TM)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function He(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function Ct(r,t,e){if(!r)return[];if(!t)return vu(r);if(r.filter&&r.filter===wM)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function v1(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function st(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function MM(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(pv.call(arguments)))}}var W=ps&&K(ps.bind)?ps.call.bind(ps.bind):MM;function dt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(pv.call(arguments)))}}function F(r){return Array.isArray?Array.isArray(r):_a.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function G(r){return typeof r=="string"}function Ml(r){return _a.call(r)==="[object String]"}function xt(r){return typeof r=="number"}function X(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function $h(r){return!!f1[_a.call(r)]}function xe(r){return!!h1[_a.call(r)]}function ua(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function cu(r){return r.colorStops!=null}function DM(r){return r.image!=null}function IM(r){return _a.call(r)==="[object RegExp]"}function Do(r){return r!==r}function Hr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function it(r,t){return r??t}function na(r,t,e){return r??t??e}function vu(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return pv.apply(r,t)}function Sv(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function fe(r,t){if(!r)throw new Error(t)}function Ge(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var d1="__ec_primitive__";function Dl(r){r[d1]=!0}function ia(r){return r[d1]}var LM=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return st(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),p1=typeof Map=="function";function PM(){return p1?new Map:new LM}var g1=function(){function r(t){var e=F(t);this.data=PM();var n=this;t instanceof r?t.each(i):t&&w(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return p1?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function Y(r){return new g1(r)}function y1(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function ts(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&B(e,t),e}function RM(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function tt(r,t){return r.hasOwnProperty(t)}function Ht(){}var co=180/Math.PI;const EM=Object.freeze(Object.defineProperty({__proto__:null,HashMap:g1,RADIAN_TO_DEGREE:co,assert:fe,bind:W,clone:Z,concatArray:y1,createCanvas:CM,createHashMap:Y,createObject:ts,curry:dt,defaults:q,disableUserSelect:RM,each:w,eqNaN:Do,extend:B,filter:Ct,find:v1,guid:yv,hasOwn:tt,indexOf:lt,inherits:_v,isArray:F,isArrayLike:ee,isBuiltInObject:$h,isDom:ua,isFunction:K,isGradientObject:cu,isImagePatternObject:DM,isNumber:xt,isObject:X,isPrimitive:ia,isRegExp:IM,isString:G,isStringSafe:Ml,isTypedArray:xe,keys:st,logError:mv,map:V,merge:et,mergeAll:c1,mixin:$t,noop:Ht,normalizeCssArray:Sv,reduce:He,retrieve:Hr,retrieve2:it,retrieve3:na,setAsPrimitive:Dl,slice:vu,trim:Ge},Symbol.toStringTag,{value:"Module"}));function Ii(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function m1(r,t){return r[0]=t[0],r[1]=t[1],r}function _1(r){return[r[0],r[1]]}function kM(r,t,e){return r[0]=t,r[1]=e,r}function Zh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function OM(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function S1(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function xv(r){return Math.sqrt(bv(r))}var BM=xv;function bv(r){return r[0]*r[0]+r[1]*r[1]}var NM=bv;function zM(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function FM(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function VM(r,t){return r[0]*t[0]+r[1]*t[1]}function ll(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function x1(r,t){var e=xv(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Il(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ll=Il;function b1(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var pi=b1;function GM(r,t){return r[0]=-t[0],r[1]=-t[1],r}function ul(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Wt(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function Nr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function zr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const HM=Object.freeze(Object.defineProperty({__proto__:null,add:Zh,applyTransform:Wt,clone:_1,copy:m1,create:Ii,dist:Ll,distSquare:pi,distance:Il,distanceSquare:b1,div:FM,dot:VM,len:xv,lenSquare:bv,length:BM,lengthSquare:NM,lerp:ul,max:zr,min:Nr,mul:zM,negate:GM,normalize:x1,scale:ll,scaleAndAdd:OM,set:kM,sub:S1},Symbol.toStringTag,{value:"Module"}));var ki=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),WM=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ki(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new ki(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ki(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ki(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ki(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ki(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const UM=WM;var YM=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}();const sr=YM;var XM=Math.log(2);function qh(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/XM);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*r[e][v]*qh(r,t-1,f,u,i|d,a),c++)}return a[o]=h,h}function mp(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=qh(e,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*qh(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var _p="___zrEVENTSAVED",sf=[];function $M(r,t,e,n,i){return Kh(sf,t,n,i,!0)&&Kh(r,e,sf[0],sf[1])}function Kh(r,t,e,n,i){if(t.getBoundingClientRect&&vt.domSupported&&!w1(t)){var a=t[_p]||(t[_p]={}),o=ZM(t,a),s=qM(o,a,i);if(s)return s(r,e,n),!0}return!1}function ZM(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function qM(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=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&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?mp(s,o):mp(o,s))}function w1(r){return r.nodeName.toUpperCase()==="CANVAS"}var KM=/([&<>"'])/g,QM={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(r){return r==null?"":(r+"").replace(KM,function(t,e){return QM[e]})}var JM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lf=[],jM=vt.browser.firefox&&+vt.browser.version.split(".")[0]<39;function Qh(r,t,e,n){return e=e||{},n?Sp(r,t,e):jM&&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):Sp(r,t,e),e}function Sp(r,t,e){if(vt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(w1(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Kh(lf,r,n,i)){e.zrX=lf[0],e.zrY=lf[1];return}}e.zrX=e.zrY=0}function wv(r){return r||window.event}function Re(r,t,e){if(t=wv(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Qh(r,o,t,e)}else{Qh(r,t,t,e);var a=tD(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&JM.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function tD(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Jh(r,t,e,n){r.addEventListener(t,e,n)}function eD(r,t,e,n){r.removeEventListener(t,e,n)}var Wr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function xp(r){return r.which===2||r.which===3}var rD=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=Qh(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in uf)if(uf.hasOwnProperty(e)){var n=uf[e](this._track,t);if(n)return n}},r}();function bp(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function nD(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var uf={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=bp(n)/bp(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=nD(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function We(){return[1,0,0,1,0,0]}function es(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function du(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ar(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Ur(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Pn(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*a+u*l,r[5]=f*l-u*a,r}function Tv(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Sa(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}function iD(r){var t=We();return du(t,r),t}const aD=Object.freeze(Object.defineProperty({__proto__:null,clone:iD,copy:du,create:We,identity:es,invert:Sa,mul:Ar,rotate:Pn,scale:Tv,translate:Ur},Symbol.toStringTag,{value:"Module"}));var oD=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const nt=oD;var gs=Math.min,ys=Math.max,kn=new nt,On=new nt,Bn=new nt,Nn=new nt,La=new nt,Pa=new nt,sD=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=gs(t.x,this.x),n=gs(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ys(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ys(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=We();return Ur(a,a,[-e.x,-e.y]),Tv(a,a,[n,i]),Ur(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,v=!(a<l||u<i||s<f||h<o);if(e){var c=1/0,d=0,p=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);a<l||u<i?_>d&&(d=_,p<g?nt.set(Pa,-p,0):nt.set(Pa,g,0)):_<c&&(c=_,p<g?nt.set(La,p,0):nt.set(La,-g,0)),s<f||h<o?S>d&&(d=S,y<m?nt.set(Pa,0,-y):nt.set(Pa,0,m)):_<c&&(c=_,y<m?nt.set(La,0,y):nt.set(La,0,-m))}return e&&nt.copy(e,v?La:Pa),v},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.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,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}kn.x=Bn.x=e.x,kn.y=Nn.y=e.y,On.x=Nn.x=e.x+e.width,On.y=Bn.y=e.y+e.height,kn.transform(n),Nn.transform(n),On.transform(n),Bn.transform(n),t.x=gs(kn.x,On.x,Bn.x,Nn.x),t.y=gs(kn.y,On.y,Bn.y,Nn.y);var l=ys(kn.x,On.x,Bn.x,Nn.x),u=ys(kn.y,On.y,Bn.y,Nn.y);t.width=l-t.x,t.height=u-t.y},r}();const pt=sD;var T1="silent";function lD(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:uD}}function uD(){Wr(this.event)}var fD=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}(sr),Ra=function(){function r(t,e){this.x=t,this.y=e}return r}(),hD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ff=new pt(0,0,0,0),A1=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Ra(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new fD,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new UM(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(w(hD,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=C1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ra(n,i):this.findHover(n,i),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 n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ra(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=lD(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Ra(e,n);if(wp(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new pt(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(ff.copy(v.getBoundingRect()),v.transform&&ff.applyTransform(v.transform),ff.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(wp(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new rD);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Ra;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(sr);w(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){A1.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=C1(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.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||Ll(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function cD(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?T1:!0}return!1}function wp(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=cD(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==T1)){t.target=o;break}}}function C1(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const vD=A1;var M1=32,Ea=7;function dD(r){for(var t=0;r>=M1;)t|=r&1,r>>=1;return r+t}function Tp(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;pD(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function pD(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function Ap(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-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]=a}}function hf(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function cf(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function gD(r,t){var e=Ea,n,i,a=0;r.length;var o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],p=i[c],g=n[c+1],y=i[c+1];i[c]=p+y,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var m=cf(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=hf(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?h(d,p,g,y):v(d,p,g,y)))}function h(c,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[c+y];var m=0,_=p,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=e,x,T,A;;){x=0,T=0,A=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],T++,x=0,--g===0){A=!0;break}}else if(r[S++]=o[m++],x++,T=0,--d===1){A=!0;break}while((x|T)<b);if(A)break;do{if(x=cf(r[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){A=!0;break}}if(r[S++]=r[_++],--g===0){A=!0;break}if(T=hf(o[m],r,_,g,0,t),T!==0){for(y=0;y<T;y++)r[S+y]=r[_+y];if(S+=T,_+=T,g-=T,g===0){A=!0;break}}if(r[S++]=o[m++],--d===1){A=!0;break}b--}while(x>=Ea||T>=Ea);if(A)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(c,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=c+d-1,_=g-1,S=p+g-1,b=0,x=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var T=e;;){var A=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],A++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,A=0,--g===1){M=!0;break}while((A|C)<T);if(M)break;do{if(A=d-cf(o[_],r,c,d,d-1,t),A!==0){for(S-=A,m-=A,d-=A,x=S+1,b=m+1,y=A-1;y>=0;y--)r[x+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-hf(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)r[x+y]=o[b+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}T--}while(A>=Ea||C>=Ea);if(M)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function fl(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<M1){a=Tp(r,e,n,t),Ap(r,e,n,e+a,t);return}var o=gD(r,t),s=dD(i);do{if(a=Tp(r,e,n,t),a<s){var l=i;l>s&&(l=s),Ap(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var mr=1,no=2,Qi=4,Cp=!1;function vf(){Cp||(Cp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mp(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var yD=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mp}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,fl(n,Mp)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=mr),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(vf(),f.z=0),isNaN(f.z2)&&(vf(),f.z2=0),isNaN(f.zlevel)&&(vf(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},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,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=lt(this._roots,t);i>=0&&this._roots.splice(i,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}();const mD=yD;var D1;D1=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Dp=D1;var hl={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,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*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)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.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-hl.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?hl.bounceIn(r*2)*.5:hl.bounceOut(r*2-1)*.5+.5}};const I1=hl;var ms=Math.pow,Sn=Math.sqrt,Pl=1e-8,L1=1e-4,Ip=Sn(3),_s=1/3,_r=Ii(),Be=Ii(),aa=Ii();function cn(r){return r>-Pl&&r<Pl}function P1(r){return r>Pl||r<-Pl}function zt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Lp(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Rl(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,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))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[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&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y)}else if(p>0){var m=Sn(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ms(-_,_s):_=ms(_,_s),S<0?S=-ms(-S,_s):S=ms(S,_s);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*Sn(f*f*f)),x=Math.acos(b)/3,T=Sn(f),A=Math.cos(x),d=(-s-2*T*A)/(3*o),y=(-s+T*(A+Ip*Math.sin(x)))/(3*o),C=(-s+T*(A-Ip*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[c++]=d),y>=0&&y<=1&&(a[c++]=y),C>=0&&C<=1&&(a[c++]=C)}}return c}function R1(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(cn(o)){if(P1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(cn(f))i[0]=-a/(2*o);else if(f>0){var h=Sn(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function El(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function _D(r,t,e,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,y;_r[0]=l,_r[1]=u;for(var m=0;m<1;m+=.05)Be[0]=zt(r,e,i,o,m),Be[1]=zt(t,n,a,s,m),g=pi(_r,Be),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<L1);_++)d=h-v,p=h+v,Be[0]=zt(r,e,i,o,d),Be[1]=zt(t,n,a,s,d),g=pi(Be,_r),d>=0&&g<c?(h=d,c=g):(aa[0]=zt(r,e,i,o,p),aa[1]=zt(t,n,a,s,p),y=pi(aa,_r),p<=1&&y<c?(h=p,c=y):v*=.5);return f&&(f[0]=zt(r,e,i,o,h),f[1]=zt(t,n,a,s,h)),Sn(c)}function SD(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,p=zt(r,e,i,o,d),g=zt(t,n,a,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function Qt(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function Pp(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function xD(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(cn(a)){if(P1(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(cn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Sn(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function E1(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function kl(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function bD(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;_r[0]=o,_r[1]=s;for(var v=0;v<1;v+=.05){Be[0]=Qt(r,e,i,v),Be[1]=Qt(t,n,a,v);var c=pi(_r,Be);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<L1);d++){var p=u-f,g=u+f;Be[0]=Qt(r,e,i,p),Be[1]=Qt(t,n,a,p);var c=pi(Be,_r);if(p>=0&&c<h)u=p,h=c;else{aa[0]=Qt(r,e,i,g),aa[1]=Qt(t,n,a,g);var y=pi(aa,_r);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=Qt(r,e,i,u),l[1]=Qt(t,n,a,u)),Sn(h)}function wD(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Qt(r,e,i,v),d=Qt(t,n,a,v),p=c-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=c,l=d}return u}var TD=/cubic-bezier\(([0-9,\.e ]+)\)/;function Av(r){var t=r&&TD.exec(r);if(t){var e=t[1].split(","),n=+Ge(e[0]),i=+Ge(e[1]),a=+Ge(e[2]),o=+Ge(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Rl(0,n,a,1,l,s)&&zt(0,i,o,1,s[0])}}}var AD=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||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,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 n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;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=K(t)?t:I1[t]||Av(t)},r}();const CD=AD;var k1=function(){function r(t){this.value=t}return r}(),MD=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new k1(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,n=t.next;e?e.next=n:this.head=n,n?n.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}(),DD=function(){function r(t){this._list=new MD,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new k1(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const rs=DD;var Rp={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 rr(r){return r=Math.round(r),r<0?0:r>255?255:r}function ID(r){return r=Math.round(r),r<0?0:r>360?360:r}function Io(r){return r<0?0:r>1?1:r}function df(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?rr(parseFloat(t)/100*255):rr(parseInt(t,10))}function gi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Io(parseFloat(t)/100):Io(parseFloat(t))}function pf(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 vn(r,t,e){return r+(t-r)*e}function Le(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function jh(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var O1=new rs(20),Ss=null;function Oi(r,t){Ss&&jh(Ss,t),Ss=O1.put(r,Ss||t.slice())}function le(r,t){if(r){t=t||[];var e=O1.get(r);if(e)return jh(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Rp)return jh(t,Rp[n]),Oi(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Le(t,0,0,0,1);return}return Le(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Oi(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Le(t,0,0,0,1);return}return Le(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Oi(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Le(t,+u[0],+u[1],+u[2],1):Le(t,0,0,0,1);f=gi(u.pop());case"rgb":if(u.length>=3)return Le(t,df(u[0]),df(u[1]),df(u[2]),u.length===3?f:gi(u[3])),Oi(r,t),t;Le(t,0,0,0,1);return;case"hsla":if(u.length!==4){Le(t,0,0,0,1);return}return u[3]=gi(u[3]),tc(u,t),Oi(r,t),t;case"hsl":if(u.length!==3){Le(t,0,0,0,1);return}return tc(u,t),Oi(r,t),t;default:return}}Le(t,0,0,0,1)}}function tc(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=gi(r[1]),i=gi(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Le(t,rr(pf(o,a,e+1/3)*255),rr(pf(o,a,e)*255),rr(pf(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function LD(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-h:e===a?l=1/3+f-v:n===a&&(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 ec(r,t){var e=le(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return nr(e,e.length===4?"rgba":"rgb")}}function PD(r){var t=le(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function vo(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=rr(vn(o[0],s[0],l)),e[1]=rr(vn(o[1],s[1],l)),e[2]=rr(vn(o[2],s[2],l)),e[3]=Io(vn(o[3],s[3],l)),e}}var RD=vo;function Cv(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=le(t[i]),s=le(t[a]),l=n-i,u=nr([rr(vn(o[0],s[0],l)),rr(vn(o[1],s[1],l)),rr(vn(o[2],s[2],l)),Io(vn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var ED=Cv;function cl(r,t,e,n){var i=le(r);if(r)return i=LD(i),t!=null&&(i[0]=ID(t)),e!=null&&(i[1]=gi(e)),n!=null&&(i[2]=gi(n)),nr(tc(i),"rgba")}function B1(r,t){var e=le(r);if(e&&t!=null)return e[3]=Io(t),nr(e,"rgba")}function nr(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 Lo(r,t){var e=le(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function kD(){return nr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const OD=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:vo,fastMapToColor:RD,lerp:Cv,lift:ec,lum:Lo,mapToColor:ED,modifyAlpha:B1,modifyHSL:cl,parse:le,random:kD,stringify:nr,toHex:PD},Symbol.toStringTag,{value:"Module"}));var Ol=Math.round;function Po(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=le(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var Ep=1e-4;function dn(r){return r<Ep&&r>-Ep}function xs(r){return Ol(r*1e3)/1e3}function rc(r){return Ol(r*1e4)/1e4}function BD(r){return"matrix("+xs(r[0])+","+xs(r[1])+","+xs(r[2])+","+xs(r[3])+","+rc(r[4])+","+rc(r[5])+")"}var ND={left:"start",right:"end",center:"middle",middle:"middle"};function zD(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function FD(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function VD(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 N1(r){return r&&!!r.image}function GD(r){return r&&!!r.svgElement}function Mv(r){return N1(r)||GD(r)}function z1(r){return r.type==="linear"}function F1(r){return r.type==="radial"}function V1(r){return r&&(r.type==="linear"||r.type==="radial")}function pu(r){return"url(#"+r+")"}function G1(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 H1(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*co,i=it(r.scaleX,1),a=it(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Ol(o*co)+"deg, "+Ol(s*co)+"deg)"),l.join(" ")}var HD=function(){return vt.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),nc=Array.prototype.slice;function Or(r,t,e){return(t-r)*e+r}function gf(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=Or(t[a],e[a],n);return r}function WD(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Or(t[o][s],e[o][s],n)}return r}function bs(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function kp(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function UD(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function YD(r,t,e){var n=r,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(e===1?i[l]:nc.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function po(r){if(ee(r)){var t=r.length;if(ee(r[0])){for(var e=[],n=0;n<t;n++)e.push(nc.call(r[n]));return e}return nc.call(r)}return r}function vl(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function XD(r){return ee(r&&r[0])?2:1}var ws=0,dl=1,W1=2,io=3,ic=4,ac=5,Op=6;function Bp(r){return r===ic||r===ac}function Ts(r){return r===dl||r===W1}var ka=[0,0,0,0],$D=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Op,l=e;if(ee(e)){var u=XD(e);s=u,(u===1&&!xt(e[0])||u===2&&!xt(e[0][0]))&&(o=!0)}else if(xt(e)&&!Do(e))s=ws;else if(G(e))if(!isNaN(+e))s=ws;else{var f=le(e);f&&(l=f,s=io)}else if(cu(e)){var h=B({},l);h.colorStops=V(e.colorStops,function(c){return{offset:c.offset,color:le(c.color)}}),z1(e)?s=ic:F1(e)&&(s=ac),l=h}a===0?this.valType=s:(s!==this.valType||s===Op)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=K(n)?n:I1[n]||Av(n)),i.push(v),v},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ts(i),u=Bp(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==a-1?YD(v,c,i):u&&UD(v.colorStops,c.colorStops))}if(!s&&i!==ac&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===ws?n[f].additiveValue=n[f].value-d:i===io?n[f].additiveValue=bs([],n[f].value,d,-1):Ts(i)&&(n[f].additiveValue=i===dl?bs([],n[f].value,d,-1):kp([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===io,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=v(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);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=n?this._additiveValue:u?ka:t[l];if((Ts(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?c.rawValue:d.rawValue;else if(Ts(a))a===dl?gf(m,c[i],d[i],y):WD(m,c[i],d[i],y);else if(Bp(a)){var _=c[i],S=d[i],b=a===ic;t[l]={type:b?"linear":"radial",x:Or(_.x,S.x,y),y:Or(_.y,S.y,y),colorStops:V(_.colorStops,function(T,A){var C=S.colorStops[A];return{offset:Or(T.offset,C.offset,y),color:vl(gf([],T.color,C.color,y))}}),global:S.global},b?(t[l].x2=Or(_.x2,S.x2,y),t[l].y2=Or(_.y2,S.y2,y)):t[l].r=Or(_.r,S.r,y)}else if(u)gf(m,c[i],d[i],y),n||(t[l]=vl(m));else{var x=Or(c[i],d[i],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===ws?t[n]=t[n]+i:e===io?(le(t[n],ka),bs(ka,ka,i,1),t[n]=vl(ka)):e===dl?bs(t[n],t[n],i,1):e===W1&&kp(t[n],t[n],i,1)},r}(),ZD=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){mv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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,n){return this.whenWithKeys(t,e,st(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new $D(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===io&&u&&(u=vl(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,po(u),i),this._trackKeys.push(s)}l.addKeyframe(t,po(e[s]),i)}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,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new CD({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,c);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return V(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=po(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||st(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Dv=ZD;function ea(){return new Date().getTime()}var qD=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return 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 n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=ea()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Dp(n),!e._paused&&e.update())}Dp(n)},t.prototype.start=function(){this._running||(this._time=ea(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ea(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ea()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Dv(e,n.loop);return this.addAnimator(i),i},t}(sr);const KD=qD;var QD=300,yf=vt.domSupported,mf=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},n=V(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Np={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zp=!1;function oc(r){var t=r.pointerType;return t==="pen"||t==="touch"}function JD(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 _f(r){r&&(r.zrByTouch=!0)}function jD(r,t){return Re(r.dom,new t2(r,t),!0)}function U1(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var t2=function(){function r(t,e){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),je={mousedown:function(r){r=Re(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Re(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=Re(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Re(this.dom,r);var t=r.toElement||r.relatedTarget;U1(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){zp=!0,r=Re(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){zp||(r=Re(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Re(this.dom,r),_f(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),je.mousemove.call(this,r),je.mousedown.call(this,r)},touchmove:function(r){r=Re(this.dom,r),_f(r),this.handler.processGesture(r,"change"),je.mousemove.call(this,r)},touchend:function(r){r=Re(this.dom,r),_f(r),this.handler.processGesture(r,"end"),je.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<QD&&je.click.call(this,r)},pointerdown:function(r){je.mousedown.call(this,r)},pointermove:function(r){oc(r)||je.mousemove.call(this,r)},pointerup:function(r){je.mouseup.call(this,r)},pointerout:function(r){oc(r)||je.mouseout.call(this,r)}};w(["click","dblclick","contextmenu"],function(r){je[r]=function(t){t=Re(this.dom,t),this.trigger(r,t)}});var sc={pointermove:function(r){oc(r)||sc.mousemove.call(this,r)},pointerup:function(r){sc.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function e2(r,t){var e=t.domHandlers;vt.pointerEventsSupported?w(mf.pointer,function(n){pl(t,n,function(i){e[n].call(r,i)})}):(vt.touchEventsSupported&&w(mf.touch,function(n){pl(t,n,function(i){e[n].call(r,i),JD(t)})}),w(mf.mouse,function(n){pl(t,n,function(i){i=wv(i),t.touching||e[n].call(r,i)})}))}function r2(r,t){vt.pointerEventsSupported?w(Np.pointer,e):vt.touchEventsSupported||w(Np.mouse,e);function e(n){function i(a){a=wv(a),U1(r,a.target)||(a=jD(r,a),t.domHandlers[n].call(r,a))}pl(t,n,i,{capture:!0})}}function pl(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,Jh(r.domTarget,t,e,n)}function Sf(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&eD(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Fp=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),n2=function(r){E(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Fp(e,je),yf&&(i._globalHandlerScope=new Fp(document,sc)),e2(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Sf(this._localHandlerScope),yf&&Sf(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,yf&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?r2(this,n):Sf(n)}},t}(sr);const i2=n2;var Y1=1;vt.hasGlobalWindow&&(Y1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Vp=Y1,lc=.4,uc="#333",fc="#ccc",a2="#eee",Gp=es,Hp=5e-5;function zn(r){return r>Hp||r<-Hp}var Fn=[],Bi=[],xf=We(),bf=Math.abs,o2=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 zn(this.rotation)||zn(this.x)||zn(this.y)||zn(this.scaleX-1)||zn(this.scaleY-1)||zn(this.skewX)||zn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&Gp(n);return}n=n||We(),e?this.getLocalTransform(n):Gp(n),t&&(e?Ar(n,t,n):du(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Fn);var n=Fn[0]<0?-1:1,i=Fn[1]<0?-1:1,a=((Fn[0]-n)*e+n)/Fn[0]||0,o=((Fn[1]-i)*e+i)/Fn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||We(),Sa(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],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ar(Bi,t.invTransform,e),e=Bi);var n=this.originX,i=this.originY;(n||i)&&(xf[4]=n,xf[5]=i,Ar(Bi,e,xf),Bi[4]-=n,Bi[5]-=i,e=Bi),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 n=[t,e],i=this.invTransform;return i&&Wt(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Wt(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&bf(t[0]-1)>1e-10&&bf(t[3]-1)>1e-10?Math.sqrt(bf(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){X1(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=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(n||i||s||l){var d=n+s,p=i+l;e[4]=-d*a-v*p*o,e[5]=-p*o-c*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=v*o,u&&Pn(e,e,u),e[4]+=n+f,e[5]+=i+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}(),Cr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function X1(r,t){for(var e=0;e<Cr.length;e++){var n=Cr[e];r[n]=t[n]}}const ui=o2;var Wp={};function Te(r,t){t=t||Tn;var e=Wp[t];e||(e=Wp[t]=new rs(500));var n=e.get(r);return n==null&&(n=An.measureText(r,t).width,e.put(r,n)),n}function Up(r,t,e,n){var i=Te(r,t),a=gu(t),o=ao(0,i,e),s=Ji(0,a,n),l=new pt(o,s,i,a);return l}function ns(r,t,e,n){var i=((r||"")+"").split(`
- `),a=i.length;if(a===1)return Up(i[0],t,e,n);for(var o=new pt(0,0,0,0),s=0;s<i.length;s++){var l=Up(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function ao(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Ji(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function gu(r){return Te("国",r)}function ar(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Bl(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=ar(n[0],e.width),u+=ar(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var wf="__zr_normal__",Tf=Cr.concat(["ignore"]),s2=He(Cr,function(r,t){return r[t]=!0,r},{ignore:!1}),Ni={},l2=new pt(0,0,0,0),Iv=function(){function r(t){this.id=yv(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(e),n.position!=null){var f=l2;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ni,n,f):Bl(Ni,n,f),a.x=Ni.x,a.y=Ni.y,o=Ni.align,s=Ni.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=ar(h[0],f.width),c=ar(h[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+c+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.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|=mr,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()?fc:uc},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&le(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,nr(n,"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(X(t))for(var n=t,i=st(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==wf)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Tf)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},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(wf,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===wf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(lt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){mv("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,e,n,f),v&&v.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~mr),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,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&=~mr)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=lt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=lt(i,t),o=lt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];B(e,a),a.textConfig&&(n=n||{},B(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=B({},i?this.textConfig:n.textConfig),B(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Tf.length;f++){var h=Tf[f],v=a&&s2[h];e&&e[h]!=null?v?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new ui,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),B(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=mr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new Dv(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=lt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){Af(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Af(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=Af(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=mr;function e(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();$t(Iv,sr);$t(Iv,ui);function Af(r,t,e,n,i){e=e||{};var a=[];$1(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function Cf(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function u2(r){return ee(r[0])}function f2(r,t,e){if(ee(t[e]))if(ee(r[e])||(r[e]=[]),xe(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),Cf(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(u2(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Cf(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Cf(a,i,o);a.length=i.length}else r[e]=t[e]}function h2(r,t){return r===t||ee(r)&&ee(t)&&c2(r,t)}function c2(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function $1(r,t,e,n,i,a,o,s){for(var l=st(n),u=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!X(a),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(c||a[y]))if(X(m)&&!ee(m)&&!cu(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}$1(r,y,e[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var x=b.stopTracks(p);if(x){var T=lt(d,b);d.splice(T,1)}}}if(i.force||(p=Ct(p,function(D){return!h2(n[D],e[D])}),_=p.length),_>0||i.force&&!o.length){var A=void 0,C=void 0,M=void 0;if(s){C={},v&&(A={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],v?A[y]=n[y]:e[y]=n[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=po(e[y]),f2(e,n,y)}}var b=new Dv(e,!1,!1,h?Ct(d,function(I){return I.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),v&&A&&b.whenWithKeys(0,A,p),M&&b.whenWithKeys(0,M,p),b.whenWithKeys(u??500,s?C:n,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}const Z1=Iv;var q1=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=lt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=lt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new pt(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(pt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Z1);q1.prototype.type="group";const at=q1;/*!
- * 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 gl={},fi={};function v2(r){delete fi[r]}function d2(r){if(!r)return!1;if(typeof r=="string")return Lo(r,1)<lc;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=Lo(t[i].color,1);return e/=n,e<lc}return!1}var p2=function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new mD,o=n.renderer||"canvas";gl[o]||(o=st(gl)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new gl[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!vt.node&&!vt.worker&&!l?new i2(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?vt.touchEventsSupported:!!f,v=44,c;h&&(c=it(n.pointerSize,v)),this.handler=new vD(a,s,u,s.root,c),this.animation=new KD({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},r.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=d2(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){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},r.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},r.prototype.flush=function(){this._flush(!1)},r.prototype._flush=function(t){var e,n=ea();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=ea();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):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.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,n){return this.handler.on(t,e,n),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;e<t.length;e++)t[e]instanceof at&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},r.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,v2(this.id)},r}();function hc(r,t){var e=new p2(yv(),r,t);return fi[e.id]=e,e}function g2(r){r.dispose()}function y2(){for(var r in fi)fi.hasOwnProperty(r)&&fi[r].dispose();fi={}}function m2(r){return fi[r]}function K1(r,t){gl[r]=t}var _2="5.4.3";const S2=Object.freeze(Object.defineProperty({__proto__:null,dispose:g2,disposeAll:y2,getInstance:m2,init:hc,registerPainter:K1,version:_2},Symbol.toStringTag,{value:"Module"}));var Yp=1e-4,Q1=20;function x2(r){return r.replace(/^\s+|\s+$/g,"")}function Tt(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function j(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 G(r)?x2(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Et(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Q1),r=(+r).toFixed(t),e?r:+r}function xr(r){return r.sort(function(t,e){return t-e}),r}function br(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 J1(r)}function J1(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Lv(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function b2(r,t,e){if(!r[t])return 0;var n=j1(r,e);return n[t]||0}function j1(r,t){var e=He(r,function(c,d){return c+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=V(r,function(c){return(isNaN(c)?0:c)/e*n*100}),a=n*100,o=V(i,function(c){return Math.floor(c)}),s=He(o,function(c,d){return c+d},0),l=V(i,function(c,d){return c-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return V(o,function(c){return c/n})}function w2(r,t){var e=Math.max(br(r),br(t)),n=r+t;return e>Q1?n:Et(n,e)}var T2=9007199254740991;function Pv(r){var t=Math.PI*2;return(r%t+t)%t}function Ro(r){return r>-Yp&&r<Yp}var A2=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Ae(r){if(r instanceof Date)return r;if(G(r)){var t=A2.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function tS(r){return Math.pow(10,yu(r))}function yu(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Rv(r,t){var e=yu(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function C2(r,t){var e=(r.length-1)*t+1,n=Math.floor(e),i=+r[n-1],a=e-n;return a?i+a*(r[n]-i):i}function cc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-e),t=i[o],e=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Eo(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function Ev(r){return!isNaN(Eo(r))}function eS(){return Math.round(Math.random()*9)}function rS(r,t){return t===0?r:rS(t,r%t)}function Xp(r,t){return r==null?t:t==null?r:r*t/rS(r,t)}function me(r){throw new Error(r)}function $p(r,t,e){return(t-r)*e+r}var nS="series\0",iS="\0_ec_\0";function Dt(r){return r instanceof Array?r:r==null?[]:[r]}function Nl(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Zp=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function xa(r){return X(r)&&!F(r)&&!(r instanceof Date)?r.value:r}function M2(r){return X(r)&&!(r instanceof Array)}function aS(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Y();w(t,function(l,u){if(!X(l)){t[u]=null;return}});var s=D2(r,o,e);return(n||i)&&I2(s,r,o,t),n&&L2(s,t),n||i?P2(s,t,i):a&&R2(s,t),E2(s),s}function D2(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||ko(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function I2(r,t,e,n){w(n,function(i,a){if(!(!i||i.id==null)){var o=go(i.id),s=e.get(o);if(s!=null){var l=r[s];fe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function L2(r,t){w(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!ko(e)&&!ko(a)&&oS("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function P2(r,t,e){w(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||ko(i.existing)||i.existing&&n.id!=null&&!oS("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function R2(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function E2(r){var t=Y();w(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),w(r,function(e){var n=e.newOption;fe(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),w(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(X(a)){if(o.name=a.name!=null?go(a.name):i?i.name:nS+n,i)o.id=go(i.id);else if(a.id!=null)o.id=go(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function oS(r,t,e){var n=jt(t[r],null),i=jt(e[r],null);return n!=null&&i!=null&&n===i}function go(r){return jt(r,"")}function jt(r,t){return r==null?t:G(r)?r:xt(r)||Ml(r)?r+"":t}function kv(r){var t=r.name;return!!(t&&t.indexOf(nS))}function ko(r){return r&&r.id!=null&&go(r.id).indexOf(iS)===0}function k2(r){return iS+r}function O2(r,t,e){w(r,function(n){var i=n.newOption;X(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=B2(t,i,n.existing,e))})}function B2(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function N2(r,t){var e={},n={};return i(r||[],e),i(t||[],n,e),[a(e),a(n)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=jt(o[u].seriesId,null);if(h==null)return;for(var v=Dt(o[u].dataIndex),c=l&&l[h],d=0,p=v.length;d<p;d++){var g=v[d];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Ai(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?V(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?V(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function bt(){var r="__ec_inner_"+z2++;return function(t){return t[r]||(t[r]={})}}var z2=eS();function yo(r,t,e){var n=Ov(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=is(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Ov(r,t){var e;if(G(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=Y(),a={},o=!1;return w(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&<(t.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ft={useDefault:!0,enableAll:!1,enableNone:!1},F2={useDefault:!1,enableAll:!0,enableNone:!0};function is(r,t,e,n){n=n||Ft;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(fe(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(fe(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function sS(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function V2(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function G2(r){return r==="auto"?vt.domSupported?"html":"richText":r||"html"}function H2(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(xt(n)){var o=$p(e||0,n,i);return Et(o,a?Math.max(br(e||0),br(n)):t)}else{if(G(n))return i<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=$p(c,d,i);s[h]=Et(o,a?Math.max(br(c),br(d)):t)}}return s}}var W2=".",Vn="___EC__COMPONENT__CONTAINER___",lS="___EC__EXTENDED_CLASS___";function wr(r){var t={main:"",sub:""};if(r){var e=r.split(W2);t.main=e[0]||"",t.sub=e[1]||""}return t}function U2(r){fe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function Y2(r){return!!(r&&r[lS])}function Bv(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return X2(n)?i=function(a){E(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},_v(i,this)),B(i.prototype,e),i[lS]=!0,i.extend=this.extend,i.superCall=q2,i.superApply=K2,i.superClass=n,i}}function X2(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function uS(r,t){r.extend=t.extend}var $2=Math.round(Math.random()*10);function Z2(r){var t=["__\0is_clz",$2++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function q2(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function K2(r,t,e){return this.superClass.prototype[t].apply(r,e)}function mu(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){U2(i),n.prototype.type=i;var a=wr(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Vn){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[Vn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=wr(n),a=[],o=t[i.main];return o&&o[Vn]?w(o,function(s,l){l!==Vn&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=wr(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return w(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=wr(n),a=t[i.main];return a&&a[Vn]};function e(n){var i=t[n.main];return(!i||!i[Vn])&&(i=t[n.main]={},i[Vn]=!0),i}}function fa(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&<(i,l)>=0||a&<(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Q2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],J2=fa(Q2),j2=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return J2(this,t,e)},r}(),vc=new rs(50);function tI(r){if(typeof r=="string"){var t=vc.get(r);return t&&t.image}else return r}function Nv(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=vc.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!_u(t)&&a.pending.push(o)):(t=An.loadImage(r,qp,qp),t.__zrImageSrc=r,vc.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function qp(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function _u(r){return r&&r.width&&r.height}var Mf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function fS(r,t,e,n,i){if(!t)return"";var a=(r+"").split(`
- `);i=hS(t,e,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=cS(a[o],i);return a.join(`
- `)}function hS(r,t,e,n){n=n||{};var i=B({},n);i.font=t,e=it(e,"..."),i.maxIterations=it(n.maxIterations,2);var a=i.minChar=it(n.minChar,0);i.cnCharWidth=Te("国",t);var o=i.ascCharWidth=Te("a",t);i.placeholder=it(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=Te(e,t);return u>s&&(e="",u=0),s=r-u,i.ellipsis=e,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function cS(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=Te(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?eI(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=Te(r,n)}return r===""&&(r=t.placeholder),r}function eI(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function rI(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=gu(i),s=it(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?vS(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
- `):[];var v=h.length*s,c=it(t.height,v);if(v>c&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var p=hS(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<h.length;g++)h[g]=cS(h[g],p);for(var y=c,m=0,g=0;g<h.length;g++)m=Math.max(Te(h[g],i),m);f==null&&(f=m);var _=m;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:h,height:c,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:v,width:f}}var nI=function(){function r(){}return r}(),Kp=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),iI=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function aI(r,t){var e=new iI;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Mf.lastIndex=0,l;(l=Mf.exec(r))!=null;){var u=l.index;u>s&&Df(e,r.substring(s,u),t,o),Df(e,l[2],t,o,l[1]),s=Mf.lastIndex}s<r.length&&Df(e,r.substring(s,r.length),t,o);var f=[],h=0,v=0,c=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate";function g(N,H,$){N.width=H,N.lineHeight=$,h+=$,v=Math.max(v,H)}t:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,S=0,b=0;b<m.tokens.length;b++){var x=m.tokens[b],T=x.styleName&&t.rich[x.styleName]||{},A=x.textPadding=T.padding,C=A?A[1]+A[3]:0,M=x.font=T.font||t.font;x.contentHeight=gu(M);var D=it(T.height,x.contentHeight);if(x.innerHeight=D,A&&(D+=A[0]+A[2]),x.height=D,x.lineHeight=na(T.lineHeight,t.lineHeight,D),x.align=T&&T.align||t.align,x.verticalAlign=T&&T.verticalAlign||"middle",p&&i!=null&&h+x.lineHeight>i){b>0?(m.tokens=m.tokens.slice(0,b),g(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var I=T.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=Te(x.text,M);else{if(L){var R=T.backgroundColor,k=R&&R.image;k&&(k=tI(k),_u(k)&&(x.width=Math.max(x.width,k.width*D/k.height)))}var O=d&&n!=null?n-S:null;O!=null&&O<x.width?!L||O<C?(x.text="",x.width=x.contentWidth=0):(x.text=fS(x.text,O-C,M,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=Te(x.text,M)):x.contentWidth=Te(x.text,M)}x.width+=C,S+=x.width,T&&(_=Math.max(_,x.lineHeight))}g(m,S,_)}e.outerWidth=e.width=it(n,v),e.outerHeight=e.height=it(i,h),e.contentHeight=h,e.contentWidth=v,c&&(e.outerWidth+=c[1]+c[3],e.outerHeight+=c[0]+c[2]);for(var y=0;y<f.length;y++){var x=f[y],U=x.percentWidth;x.width=parseInt(U,10)/100*e.width}return e}function Df(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ar(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
- `),u=!0),n.accumWidth=d}else{var p=vS(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+c,h=p.linesWidths,f=p.lines}}else f=t.split(`
- `);for(var g=0;g<f.length;g++){var y=f[g],m=new nI;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Te(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Kp)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Kp([m]))}}function oI(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var sI=He(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function lI(r){return oI(r)?!!sI[r]:!0}function vS(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Te(v,t),d=n?!1:!lI(v);if(a.length?f+c>e:i+f+c>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=c)):d?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}f+=c,d?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var dc="__zr_style_"+Math.round(Math.random()*10),yi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Su={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yi[dc]=!0;var Qp=["z","z2","invisible"],uI=["invisible"],fI=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=st(e),i=0;i<n.length;i++){var a=n[i];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,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&hI(this,e,n)||o&&!o[0]&&!o[3])return!1;if(i&&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,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new pt(0,0,0,0)),n?pt.applyTransform(e,i,n):e.copy(i),(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 pt(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,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=no,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&no)},t.prototype.styleUpdated=function(){this.__dirty&=~no},t.prototype.createStyle=function(e){return ts(yi,e)},t.prototype.useStyle=function(e){e[dc]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[dc]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Qp)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=st(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=st(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?uI:Qp,v=0;v<p.length;v++){var c=p[v];n&&n[c]!=null?this[c]=n[c]:l&&i[c]!=null&&(this[c]=i[c])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return B(e,n),e},t.prototype.getAnimationStyleProps=function(){return Su},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=mr|no}(),t}(Z1),If=new pt(0,0,0,0),Lf=new pt(0,0,0,0);function hI(r,t,e){return If.copy(r.getBoundingRect()),r.transform&&If.applyTransform(r.transform),Lf.width=t,Lf.height=e,!If.intersect(Lf)}const Yr=fI;var Ne=Math.min,ze=Math.max,Pf=Math.sin,Rf=Math.cos,Gn=Math.PI*2,As=Ii(),Cs=Ii(),Ms=Ii();function Jp(r,t,e,n,i,a){i[0]=Ne(r,e),i[1]=Ne(t,n),a[0]=ze(r,e),a[1]=ze(t,n)}var jp=[],tg=[];function cI(r,t,e,n,i,a,o,s,l,u){var f=R1,h=zt,v=f(r,e,i,o,jp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(r,e,i,o,jp[c]);l[0]=Ne(d,l[0]),u[0]=ze(d,u[0])}v=f(t,n,a,s,tg);for(var c=0;c<v;c++){var p=h(t,n,a,s,tg[c]);l[1]=Ne(p,l[1]),u[1]=ze(p,u[1])}l[0]=Ne(r,l[0]),u[0]=ze(r,u[0]),l[0]=Ne(o,l[0]),u[0]=ze(o,u[0]),l[1]=Ne(t,l[1]),u[1]=ze(t,u[1]),l[1]=Ne(s,l[1]),u[1]=ze(s,u[1])}function vI(r,t,e,n,i,a,o,s){var l=E1,u=Qt,f=ze(Ne(l(r,e,i),1),0),h=ze(Ne(l(t,n,a),1),0),v=u(r,e,i,f),c=u(t,n,a,h);o[0]=Ne(r,i,v),o[1]=Ne(t,a,c),s[0]=ze(r,i,v),s[1]=ze(t,a,c)}function dI(r,t,e,n,i,a,o,s,l){var u=Nr,f=zr,h=Math.abs(i-a);if(h%Gn<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(As[0]=Rf(i)*e+r,As[1]=Pf(i)*n+t,Cs[0]=Rf(a)*e+r,Cs[1]=Pf(a)*n+t,u(s,As,Cs),f(l,As,Cs),i=i%Gn,i<0&&(i=i+Gn),a=a%Gn,a<0&&(a=a+Gn),i>a&&!o?a+=Gn:i<a&&o&&(i+=Gn),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(Ms[0]=Rf(c)*e+r,Ms[1]=Pf(c)*n+t,u(s,Ms,s),f(l,Ms,l))}var St={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Hn=[],Wn=[],hr=[],tn=[],cr=[],vr=[],Ef=Math.min,kf=Math.max,Un=Math.cos,Yn=Math.sin,Rr=Math.abs,pc=Math.PI,un=pc*2,Of=typeof Float32Array<"u",Oa=[];function Bf(r){var t=Math.round(r/pc*1e8)/1e8;return t%2*pc}function pI(r,t){var e=Bf(r[0]);e<0&&(e+=un);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=un?i=e+un:t&&e-i>=un?i=e-un:!t&&e>i?i=e+(un-Bf(e-i)):t&&e<i&&(i=e-(un-Bf(i-e))),r[0]=e,r[1]=i}var gI=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=Rr(n/Vp/t)||0,this._uy=Rr(n/Vp/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(St.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 n=Rr(t-this._xi),i=Rr(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(St.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(St.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(St.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Oa[0]=i,Oa[1]=a,pI(Oa,o),i=Oa[0],a=Oa[1];var s=a-i;return this.addData(St.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=Un(a)*n+t,this._yi=Yn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(St.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(St.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,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)&&Of&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();Of&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Of&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){hr[0]=hr[1]=cr[0]=cr[1]=Number.MAX_VALUE,tn[0]=tn[1]=vr[0]=vr[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case St.M:e=i=t[o++],n=a=t[o++],cr[0]=i,cr[1]=a,vr[0]=i,vr[1]=a;break;case St.L:Jp(e,n,t[o],t[o+1],cr,vr),e=t[o++],n=t[o++];break;case St.C:cI(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],cr,vr),e=t[o++],n=t[o++];break;case St.Q:vI(e,n,t[o++],t[o++],t[o],t[o+1],cr,vr),e=t[o++],n=t[o++];break;case St.A:var u=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var p=!t[o++];l&&(i=Un(c)*h+u,a=Yn(c)*v+f),dI(u,f,h,v,c,d,p,cr,vr),e=Un(d)*h+u,n=Yn(d)*v+f;break;case St.R:i=e=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];Jp(i,a,i+g,a+y,cr,vr);break;case St.Z:e=i,n=a;break}Nr(hr,hr,cr),zr(tn,tn,vr)}return o===0&&(hr[0]=hr[1]=tn[0]=tn[1]=0),new pt(hr[0],hr[1],tn[0]-hr[0],tn[1]-hr[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<e;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,l=o);var p=-1;switch(c){case St.M:a=s=t[v++],o=l=t[v++];break;case St.L:{var g=t[v++],y=t[v++],m=g-a,_=y-o;(Rr(m)>n||Rr(_)>i||v===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case St.C:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++],x=t[v++],T=t[v++];p=SD(a,o,S,b,g,y,x,T,10),a=x,o=T;break}case St.Q:{var S=t[v++],b=t[v++],g=t[v++],y=t[v++];p=wD(a,o,S,b,g,y,10),a=g,o=y;break}case St.A:var A=t[v++],C=t[v++],M=t[v++],D=t[v++],I=t[v++],L=t[v++],R=L+I;v+=1,t[v++],d&&(s=Un(I)*M+A,l=Yn(I)*D+C),p=kf(M,D)*Ef(un,Math.abs(L)),a=Un(R)*M+A,o=Yn(R)*D+C;break;case St.R:{s=a=t[v++],l=o=t[v++];var k=t[v++],O=t[v++];p=k*2+O*2;break}case St.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=e<1,d,p,g=0,y=0,m,_=0,S,b;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var x=0;x<o;){var T=n[x++],A=x===1;switch(A&&(u=n[x],f=n[x+1],s=u,l=f),T!==St.L&&_>0&&(t.lineTo(S,b),_=0),T){case St.M:s=u=n[x++],l=f=n[x++],t.moveTo(u,f);break;case St.L:{h=n[x++],v=n[x++];var C=Rr(h-u),M=Rr(v-f);if(C>i||M>a){if(c){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=D}t.lineTo(h,v),u=h,f=v,_=0}else{var L=C*C+M*M;L>_&&(S=h,b=v,_=L)}break}case St.C:{var R=n[x++],k=n[x++],O=n[x++],U=n[x++],N=n[x++],H=n[x++];if(c){var D=d[y++];if(g+D>m){var I=(m-g)/D;El(u,R,O,N,I,Hn),El(f,k,U,H,I,Wn),t.bezierCurveTo(Hn[1],Wn[1],Hn[2],Wn[2],Hn[3],Wn[3]);break t}g+=D}t.bezierCurveTo(R,k,O,U,N,H),u=N,f=H;break}case St.Q:{var R=n[x++],k=n[x++],O=n[x++],U=n[x++];if(c){var D=d[y++];if(g+D>m){var I=(m-g)/D;kl(u,R,O,I,Hn),kl(f,k,U,I,Wn),t.quadraticCurveTo(Hn[1],Wn[1],Hn[2],Wn[2]);break t}g+=D}t.quadraticCurveTo(R,k,O,U),u=O,f=U;break}case St.A:var $=n[x++],rt=n[x++],J=n[x++],ft=n[x++],gt=n[x++],Ot=n[x++],wt=n[x++],Zt=!n[x++],Gt=J>ft?J:ft,Lt=Rr(J-ft)>.001,At=gt+Ot,Q=!1;if(c){var D=d[y++];g+D>m&&(At=gt+Ot*(m-g)/D,Q=!0),g+=D}if(Lt&&t.ellipse?t.ellipse($,rt,J,ft,wt,gt,At,Zt):t.arc($,rt,Gt,gt,At,Zt),Q)break t;A&&(s=Un(gt)*J+$,l=Yn(gt)*ft+rt),u=Un(At)*J+$,f=Yn(At)*ft+rt;break;case St.R:s=u=n[x],l=f=n[x+1],h=n[x++],v=n[x++];var ht=n[x++],ve=n[x++];if(c){var D=d[y++];if(g+D>m){var Pt=m-g;t.moveTo(h,v),t.lineTo(h+Ef(Pt,ht),v),Pt-=ht,Pt>0&&t.lineTo(h+ht,v+Ef(Pt,ve)),Pt-=ve,Pt>0&&t.lineTo(h+kf(ht-Pt,0),v+ve),Pt-=ht,Pt>0&&t.lineTo(h,v+kf(ve-Pt,0));break t}g+=D}t.rect(h,v,ht,ve);break;case St.Z:if(c){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}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=St,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Xr=gI;function zi(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function yI(r,t,e,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>i+h&&u>o+h||u<r-h&&u<e-h&&u<i-h&&u<o-h)return!1;var v=_D(r,t,e,n,i,a,o,s,u,f,null);return v<=h/2}function mI(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=bD(r,t,e,n,i,a,s,l,null);return f<=u/2}var eg=Math.PI*2;function Ds(r){return r%=eg,r<0&&(r+=eg),r}var Ba=Math.PI*2;function _I(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-i)%Ba<1e-4)return!0;if(a){var h=n;n=Ds(i),i=Ds(h)}else n=Ds(n),i=Ds(i);n>i&&(i+=Ba);var v=Math.atan2(l,s);return v<0&&(v+=Ba),v>=n&&v<=i||v+Ba>=n&&v+Ba<=i}function Br(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var en=Xr.CMD,Xn=Math.PI*2,SI=1e-4;function xI(r,t){return Math.abs(r-t)<SI}var ie=[-1,-1,-1],ke=[-1,-1];function bI(){var r=ke[0];ke[0]=ke[1],ke[1]=r}function wI(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Rl(t,n,a,s,u,ie);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,p=0;p<f;p++){var g=ie[p],y=g===0||g===1?.5:1,m=zt(r,e,i,o,g);m<l||(v<0&&(v=R1(t,n,a,s,ke),ke[1]<ke[0]&&v>1&&bI(),c=zt(t,n,a,s,ke[0]),v>1&&(d=zt(t,n,a,s,ke[1]))),v===2?g<ke[0]?h+=c<t?y:-y:g<ke[1]?h+=d<c?y:-y:h+=s<d?y:-y:g<ke[0]?h+=c<t?y:-y:h+=s<c?y:-y)}return h}function TI(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=xD(t,n,a,s,ie);if(l===0)return 0;var u=E1(t,n,a);if(u>=0&&u<=1){for(var f=0,h=Qt(t,n,a,u),v=0;v<l;v++){var c=ie[v]===0||ie[v]===1?.5:1,d=Qt(r,e,i,ie[v]);d<o||(ie[v]<u?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=ie[0]===0||ie[0]===1?.5:1,d=Qt(r,e,i,ie[0]);return d<o?0:a<t?c:-c}}function AI(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);ie[0]=-l,ie[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Xn-1e-4){n=0,i=Xn;var f=a?1:-1;return o>=ie[0]+r&&o<=ie[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Xn,i+=Xn);for(var v=0,c=0;c<2;c++){var d=ie[c];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Xn+p),(p>=n&&p<=i||p+Xn>=n&&p+Xn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function dS(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var p=a[d++],g=d===1;switch(p===en.M&&d>1&&(e||(s+=Br(l,u,f,h,n,i))),g&&(l=a[d],u=a[d+1],f=l,h=u),p){case en.M:f=a[d++],h=a[d++],l=f,u=h;break;case en.L:if(e){if(zi(l,u,a[d],a[d+1],t,n,i))return!0}else s+=Br(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case en.C:if(e){if(yI(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=wI(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case en.Q:if(e){if(mI(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=TI(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case en.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],x=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+y,c=Math.sin(b)*S+m,g?(f=v,h=c):s+=Br(l,u,v,c,n,i);var A=(n-y)*S/_+y;if(e){if(_I(y,m,S,b,b+x,T,t,A,i))return!0}else s+=AI(y,m,S,b,b+x,T,A,i);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case en.R:f=l=a[d++],h=u=a[d++];var C=a[d++],M=a[d++];if(v=f+C,c=h+M,e){if(zi(f,h,v,h,t,n,i)||zi(v,h,v,c,t,n,i)||zi(v,c,f,c,t,n,i)||zi(f,c,f,h,t,n,i))return!0}else s+=Br(v,h,v,c,n,i),s+=Br(f,c,f,h,n,i);break;case en.Z:if(e){if(zi(l,u,f,h,t,n,i))return!0}else s+=Br(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!xI(u,h)&&(s+=Br(l,u,f,h,n,i)||0),s!==0}function CI(r,t,e){return dS(r,0,!1,t,e)}function MI(r,t,e,n){return dS(r,t,!0,e,n)}var zl=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yi),DI={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Su.style)},Nf=Cr.concat(["invisible","culling","z","z2","zlevel","parent"]),II=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 n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Nf.length;++s)i[Nf[s]]=this[Nf[s]];i.__dirty|=mr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=st(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=e[o];o==="style"?this.style?B(this.style,s):this.useStyle(s):o==="shape"?B(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(G(e)){var n=Lo(e,0);return n>.5?uc:n>.2?a2:fc}else if(e)return fc}return uc},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(G(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Lo(e,0)<lc;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Qi},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Xr(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Qi)&&(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||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}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,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){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)),MI(s,l/u,e,n)))return!0}if(this.hasFill())return CI(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qi,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,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:B(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qi)},t.prototype.createStyle=function(e){return ts(zl,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=B({},i.shape),B(u,n.shape)):(u=B({},a?this.shape:i.shape),B(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=st(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return DI},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){E(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Z(e.style)},o.prototype.getDefaultShape=function(){return Z(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=mr|no|Qi}(),t}(Yr);const _t=II;var LI=q({strokeFirst:!0,font:Tn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},zl),pS=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return ts(LI,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=ns(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Yr);pS.prototype.type="tspan";const Oo=pS;var PI=q({x:0,y:0},yi),RI={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Su.style)};function EI(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var gS=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ts(PI,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=EI(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return RI},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new pt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Yr);gS.prototype.type="image";const ce=gS;function kI(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),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>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var ra=Math.round;function yS(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(ra(n*2)===ra(i*2)&&(r.x1=r.x2=hi(n,s,!0)),ra(a*2)===ra(o*2)&&(r.y1=r.y2=hi(a,s,!0))),r}}function mS(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=hi(n,s,!0),r.y=hi(i,s,!0),r.width=Math.max(hi(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(hi(i+o,s,!1)-r.y,o===0?0:1)),r}}function hi(r,t,e){if(!t)return r;var n=ra(r*2);return(n+ra(t))%2===0?n/2:(n+(e?1:-1))/2}var OI=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),BI={},_S=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new OI},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=mS(BI,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?kI(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(_t);_S.prototype.type="rect";const yt=_S;var rg={fill:"#000"},ng=2,NI={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},Su.style)},SS=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=rg,n.attr(e),n}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;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,VI(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new pt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||rg},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return B(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=st(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},B(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return NI},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||Tn,i=e.padding,a=fg(e),o=rI(a,e),s=zf(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,d=this._defaultStyle,p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=Ji(g,o.contentHeight,m);if(s||i){var b=ao(p,f,y),x=Ji(g,u,m);s&&this._renderBackground(e,e,b,x,f,u)}S+=c/2,i&&(_=ug(p,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var T=0,A=!1,C=lg("fill"in e?e.fill:(A=!0,d.fill)),M=sg("stroke"in e?e.stroke:!l&&(!d.autoStroke||A)?(T=ng,d.stroke):null),D=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,R=0;R<v.length;R++){var k=this._getOrCreateChild(Oo),O=k.createStyle();k.useStyle(O),O.text=v[R],O.x=_,O.y=S,y&&(O.textAlign=y),O.textBaseline="middle",O.opacity=e.opacity,O.strokeFirst=!0,D&&(O.shadowBlur=e.textShadowBlur||0,O.shadowColor=e.textShadowColor||"transparent",O.shadowOffsetX=e.textShadowOffsetX||0,O.shadowOffsetY=e.textShadowOffsetY||0),O.stroke=M,O.fill=C,M&&(O.lineWidth=e.lineWidth||T,O.lineDash=e.lineDash,O.lineDashOffset=e.lineDashOffset||0),O.font=n,ag(O,e),S+=c,I&&k.setBoundingRect(new pt(ao(O.x,e.width,O.textAlign),Ji(O.y,L,O.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=fg(e),i=aI(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,v=e.align||h.align,c=e.verticalAlign||h.verticalAlign,d=ao(u,o,v),p=Ji(f,s,c),g=d,y=p;l&&(g+=l[3],y+=l[0]);var m=g+a;zf(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var b=i.lines[S],x=b.tokens,T=x.length,A=b.lineHeight,C=b.width,M=0,D=g,I=m,L=T-1,R=void 0;M<T&&(R=x[M],!R.align||R.align==="left");)this._placeToken(R,e,A,y,D,"left",_),C-=R.width,D+=R.width,M++;for(;L>=0&&(R=x[L],R.align==="right");)this._placeToken(R,e,A,y,I,"right",_),C-=R.width,I-=R.width,L--;for(D+=(a-(D-g)-(m-I)-C)/2;M<=L;)R=x[M],this._placeToken(R,e,A,y,D+R.width/2,"center",_),D+=R.width,M++;y+=A}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var v=!e.isLineHolder&&zf(u);v&&this._renderBackground(u,n,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=ug(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Oo),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=lg("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=sg("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!y.autoStroke||m)?(_=ng,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Tn,g.opacity=na(u.opacity,n.opacity,1),ag(g,u),b&&(g.lineWidth=na(u.lineWidth,n.lineWidth,_),g.lineDash=it(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var T=e.contentWidth,A=e.contentHeight;p.setBoundingRect(new pt(ao(g.x,T,g.textAlign),Ji(g.y,A,g.textBaseline),T,A))},t.prototype._renderBackground=function(e,n,i,a,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(yt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=c,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=it(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ce),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=it(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=na(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return bS(e)&&(n=[e.fontStyle,e.fontWeight,xS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ge(n)||e.textFont||e.font},t}(Yr),zI={left:!0,right:1,center:1},FI={top:1,bottom:1,middle:1},ig=["fontStyle","fontWeight","fontSize","fontFamily"];function xS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?dv+"px":r+"px"}function ag(r,t){for(var e=0;e<ig.length;e++){var n=ig[e],i=t[n];i!=null&&(r[n]=i)}}function bS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function VI(r){return og(r),w(r.rich,og),r}function og(r){if(r){r.font=SS.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||zI[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||FI[e]?e:"top";var n=r.padding;n&&(r.padding=Sv(r.padding))}}function sg(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function lg(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function ug(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function fg(r){var t=r.text;return t!=null&&(t+=""),t}function zf(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const mt=SS;var ut=bt(),GI=function(r,t,e,n){if(n){var i=ut(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,n.type==="group"&&n.traverse(function(a){var o=ut(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t})}},hg=1,cg={},wS=bt(),zv=bt(),Fv=0,xu=1,bu=2,Ue=["emphasis","blur","select"],Fl=["normal","emphasis","blur","select"],TS=10,HI=9,mi="highlight",yl="downplay",mo="select",ml="unselect",_o="toggleSelect";function Fi(r){return r!=null&&r!=="none"}var vg=new rs(100);function dg(r){if(G(r)){var t=vg.get(r);return t||(t=ec(r,-.1),vg.put(r,t)),t}else if(cu(r)){var e=B({},r);return e.colorStops=V(r.colorStops,function(n){return{offset:n.offset,color:ec(n.color,-.1)}}),e}return r}function wu(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function AS(r){wu(r,"emphasis",bu)}function CS(r){r.hoverState===bu&&wu(r,"normal",Fv)}function Vv(r){wu(r,"blur",xu)}function MS(r){r.hoverState===xu&&wu(r,"normal",Fv)}function WI(r){r.selected=!0}function UI(r){r.selected=!1}function pg(r,t,e){t(r,e)}function qr(r,t,e){pg(r,t,e),r.isGroup&&r.traverse(function(n){pg(n,t,e)})}function gc(r,t){switch(t){case"emphasis":r.hoverState=bu;break;case"normal":r.hoverState=Fv;break;case"blur":r.hoverState=xu;break;case"select":r.selected=!0}}function YI(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function XI(r,t,e,n){var i=e&<(e,"select")>=0,a=!1;if(r instanceof _t){var o=wS(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Fi(s)||Fi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=B({},n),u=B({},u),u.fill=s):!Fi(u.fill)&&Fi(s)?(a=!0,n=B({},n),u=B({},u),u.fill=dg(s)):!Fi(u.stroke)&&Fi(l)&&(a||(n=B({},n),u=B({},u)),u.stroke=dg(l)),n.style=u}}if(n&&n.z2==null){a||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??TS)}return n}function $I(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??HI)}return e}function ZI(r,t,e){var n=lt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:YI(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Ff(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return XI(this,r,t,e);if(r==="blur")return ZI(this,r,e);if(r==="select")return $I(this,r,e)}return e}function Gv(r){r.stateProxy=Ff;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Ff),e&&(e.stateProxy=Ff)}function gg(r,t){!PS(r,t)&&!r.__highByOuter&&qr(r,AS)}function yg(r,t){!PS(r,t)&&!r.__highByOuter&&qr(r,CS)}function ha(r,t){r.__highByOuter|=1<<(t||0),qr(r,AS)}function ca(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&qr(r,CS)}function qI(r){qr(r,Vv)}function DS(r){qr(r,MS)}function IS(r){qr(r,WI)}function LS(r){qr(r,UI)}function PS(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function RS(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=zv(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){MS(u)}),s&&e.push(a)),o.isBlured=!1}),w(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function yc(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&DS(v)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(g){Vv(g)}),ee(t))a(u.getData(),t);else if(X(t))for(var d=st(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),zv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function mc(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){zv(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Vv(a)})}}}function KI(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=Ai(i,t);a=(F(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ut(o);yc(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&yc(n,f,h,e)}}}function Hv(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function QI(r,t,e){var n=ut(r),i=Hv(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&mc(n.componentMainType,n.componentIndex,e),w(a,function(s){return gg(s,t)})):(yc(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&mc(n.componentMainType,n.componentIndex,e),gg(r,t))}function JI(r,t,e){RS(e);var n=ut(r),i=Hv(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?w(i,function(a){return yg(a,t)}):yg(r,t)}function jI(r,t,e){if(Sc(t)){var n=t.dataType,i=r.getData(n),a=Ai(i,t);F(a)||(a=[a]),r[t.type===_o?"toggleSelect":t.type===mo?"select":"unselect"](a,n)}}function mg(r){var t=r.getAllData();w(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?IS(a):LS(a)})})}function tL(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();w(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function xn(r,t,e){Wv(r,!0),qr(r,Gv),rL(r,t,e)}function eL(r){Wv(r,!1)}function Cn(r,t,e,n){n?eL(r):xn(r,t,e)}function rL(r,t,e){var n=ut(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var _g=["emphasis","blur","select"],nL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function va(r,t,e,n){e=e||"itemStyle";for(var i=0;i<_g.length;i++){var a=_g[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=n?n(o):o[nL[e]]()}}function Wv(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function _c(r){return!!(r&&r.__highDownDispatcher)}function iL(r,t,e){var n=ut(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function aL(r){var t=cg[r];return t==null&&hg<=32&&(t=cg[r]=hg++),t}function Sc(r){var t=r.type;return t===mo||t===ml||t===_o}function Sg(r){var t=r.type;return t===mi||t===yl}function oL(r){var t=wS(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Vi=Xr.CMD,sL=[[],[],[]],xg=Math.sqrt,lL=Math.atan2;function uL(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=Vi.M,h=Vi.C,v=Vi.L,c=Vi.R,d=Vi.A,p=Vi.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],y=t[5],m=xg(t[0]*t[0]+t[1]*t[1]),_=xg(t[2]*t[2]+t[3]*t[3]),S=lL(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case c:u[0]=e[o++],u[1]=e[o++],Wt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Wt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var b=sL[l];b[0]=e[o++],b[1]=e[o++],Wt(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Vf=Math.sqrt,Is=Math.sin,Ls=Math.cos,Na=Math.PI;function bg(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function xc(r,t){return(r[0]*t[0]+r[1]*t[1])/(bg(r)*bg(t))}function wg(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(xc(r,t))}function Tg(r,t,e,n,i,a,o,s,l,u,f){var h=l*(Na/180),v=Ls(h)*(r-e)/2+Is(h)*(t-n)/2,c=-1*Is(h)*(r-e)/2+Ls(h)*(t-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Vf(d),s*=Vf(d));var p=(i===a?-1:1)*Vf((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+Ls(h)*g-Is(h)*y,_=(t+n)/2+Is(h)*g+Ls(h)*y,S=wg([1,0],[(v-g)/o,(c-y)/s]),b=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],T=wg(b,x);if(xc(b,x)<=-1&&(T=Na),xc(b,x)>=1&&(T=0),T<0){var A=Math.round(T/Na*1e6)/1e6;T=Na*2+A%2*Na}f.addData(u,m,_,o,s,S,T,h,a)}var fL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cL(r){var t=new Xr;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Xr.CMD,l=r.match(fL);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(hL)||[],d=c.length,p=0;p<d;p++)c[p]=parseFloat(c[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,T=void 0,A=e,C=n,M=void 0,D=void 0;switch(h){case"l":e+=c[g++],n+=c[g++],v=s.L,t.addData(v,e,n);break;case"L":e=c[g++],n=c[g++],v=s.L,t.addData(v,e,n);break;case"m":e+=c[g++],n+=c[g++],v=s.M,t.addData(v,e,n),i=e,a=n,h="l";break;case"M":e=c[g++],n=c[g++],v=s.M,t.addData(v,e,n),i=e,a=n,h="L";break;case"h":e+=c[g++],v=s.L,t.addData(v,e,n);break;case"H":e=c[g++],v=s.L,t.addData(v,e,n);break;case"v":n+=c[g++],v=s.L,t.addData(v,e,n);break;case"V":n=c[g++],v=s.L,t.addData(v,e,n);break;case"C":v=s.C,t.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),e=c[g-2],n=c[g-1];break;case"c":v=s.C,t.addData(v,c[g++]+e,c[g++]+n,c[g++]+e,c[g++]+n,c[g++]+e,c[g++]+n),e+=c[g-2],n+=c[g-1];break;case"S":y=e,m=n,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=n-D[M-3]),v=s.C,A=c[g++],C=c[g++],e=c[g++],n=c[g++],t.addData(v,y,m,A,C,e,n);break;case"s":y=e,m=n,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=n-D[M-3]),v=s.C,A=e+c[g++],C=n+c[g++],e+=c[g++],n+=c[g++],t.addData(v,y,m,A,C,e,n);break;case"Q":A=c[g++],C=c[g++],e=c[g++],n=c[g++],v=s.Q,t.addData(v,A,C,e,n);break;case"q":A=c[g++]+e,C=c[g++]+n,e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,A,C,e,n);break;case"T":y=e,m=n,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=n-D[M-3]),e=c[g++],n=c[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"t":y=e,m=n,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=n-D[M-3]),e+=c[g++],n+=c[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"A":_=c[g++],S=c[g++],b=c[g++],x=c[g++],T=c[g++],A=e,C=n,e=c[g++],n=c[g++],v=s.A,Tg(A,C,e,n,x,T,_,S,b,v,t);break;case"a":_=c[g++],S=c[g++],b=c[g++],x=c[g++],T=c[g++],A=e,C=n,e+=c[g++],n+=c[g++],v=s.A,Tg(A,C,e,n,x,T,_,S,b,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),e=i,n=a),o=v}return t.toStatic(),t}var ES=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(_t);function kS(r){return r.setData!=null}function OS(r,t){var e=cL(r),n=B({},t);return n.buildPath=function(i){if(kS(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){uL(e,i),this.dirtyShape()},n}function BS(r,t){return new ES(OS(r,t))}function vL(r,t){var e=OS(r,t),n=function(i){E(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(ES);return n}function dL(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new _t(t);return o.createPathProxy(),o.buildPath=function(s){if(kS(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var pL=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),NS=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new pL},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(_t);NS.prototype.type="circle";const or=NS;var gL=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),zS=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new gL},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(_t);zS.prototype.type="ellipse";const Tu=zS;var FS=Math.PI,Gf=FS*2,$n=Math.sin,Gi=Math.cos,yL=Math.acos,qt=Math.atan2,Ag=Math.abs,So=Math.sqrt,oo=Math.max,dr=Math.min,Je=1e-4;function mL(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,v=h*l-f*u;if(!(v*v<Je))return v=(f*(t-a)-h*(r-i))/v,[r+v*l,t+v*u]}function Ps(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/So(s*s+l*l),f=u*l,h=-u*s,v=r+f,c=t+h,d=e+f,p=n+h,g=(v+d)/2,y=(c+p)/2,m=d-v,_=p-c,S=m*m+_*_,b=i-a,x=v*p-d*c,T=(_<0?-1:1)*So(oo(0,b*b*S-x*x)),A=(x*_-m*T)/S,C=(-x*m-_*T)/S,M=(x*_+m*T)/S,D=(-x*m+_*T)/S,I=A-g,L=C-y,R=M-g,k=D-y;return I*I+L*L>R*R+k*k&&(A=M,C=D),{cx:A,cy:C,x0:-f,y0:-h,x1:A*(i/b-1),y1:C*(i/b-1)}}function _L(r){var t;if(F(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 SL(r,t){var e,n=oo(t.r,0),i=oo(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=Ag(u-l),d=c>Gf&&c%Gf;if(d>Je&&(c=d),!(n>Je))r.moveTo(f,h);else if(c>Gf-Je)r.moveTo(f+n*Gi(l),h+n*$n(l)),r.arc(f,h,n,l,u,!v),i>Je&&(r.moveTo(f+i*Gi(u),h+i*$n(u)),r.arc(f,h,i,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,T=void 0,A=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,R=void 0,k=n*Gi(l),O=n*$n(l),U=i*Gi(u),N=i*$n(u),H=c>Je;if(H){var $=t.cornerRadius;$&&(e=_L($),p=e[0],g=e[1],y=e[2],m=e[3]);var rt=Ag(n-i)/2;if(_=dr(rt,y),S=dr(rt,m),b=dr(rt,p),x=dr(rt,g),C=T=oo(_,S),M=A=oo(b,x),(T>Je||A>Je)&&(D=n*Gi(u),I=n*$n(u),L=i*Gi(l),R=i*$n(l),c<FS)){var J=mL(k,O,L,R,D,I,U,N);if(J){var ft=k-J[0],gt=O-J[1],Ot=D-J[0],wt=I-J[1],Zt=1/$n(yL((ft*Ot+gt*wt)/(So(ft*ft+gt*gt)*So(Ot*Ot+wt*wt)))/2),Gt=So(J[0]*J[0]+J[1]*J[1]);C=dr(T,(n-Gt)/(Zt+1)),M=dr(A,(i-Gt)/(Zt-1))}}}if(!H)r.moveTo(f+k,h+O);else if(C>Je){var Lt=dr(y,C),At=dr(m,C),Q=Ps(L,R,k,O,n,Lt,v),ht=Ps(D,I,U,N,n,At,v);r.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),C<T&&Lt===At?r.arc(f+Q.cx,h+Q.cy,C,qt(Q.y0,Q.x0),qt(ht.y0,ht.x0),!v):(Lt>0&&r.arc(f+Q.cx,h+Q.cy,Lt,qt(Q.y0,Q.x0),qt(Q.y1,Q.x1),!v),r.arc(f,h,n,qt(Q.cy+Q.y1,Q.cx+Q.x1),qt(ht.cy+ht.y1,ht.cx+ht.x1),!v),At>0&&r.arc(f+ht.cx,h+ht.cy,At,qt(ht.y1,ht.x1),qt(ht.y0,ht.x0),!v))}else r.moveTo(f+k,h+O),r.arc(f,h,n,l,u,!v);if(!(i>Je)||!H)r.lineTo(f+U,h+N);else if(M>Je){var Lt=dr(p,M),At=dr(g,M),Q=Ps(U,N,D,I,i,-At,v),ht=Ps(k,O,L,R,i,-Lt,v);r.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),M<A&&Lt===At?r.arc(f+Q.cx,h+Q.cy,M,qt(Q.y0,Q.x0),qt(ht.y0,ht.x0),!v):(At>0&&r.arc(f+Q.cx,h+Q.cy,At,qt(Q.y0,Q.x0),qt(Q.y1,Q.x1),!v),r.arc(f,h,i,qt(Q.cy+Q.y1,Q.cx+Q.x1),qt(ht.cy+ht.y1,ht.cx+ht.x1),v),Lt>0&&r.arc(f+ht.cx,h+ht.cy,Lt,qt(ht.y1,ht.x1),qt(ht.y0,ht.x0),!v))}else r.lineTo(f+U,h+N),r.arc(f,h,i,u,l,v)}r.closePath()}}}var xL=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}(),VS=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new xL},t.prototype.buildPath=function(e,n){SL(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(_t);VS.prototype.type="sector";const Dr=VS;var bL=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),GS=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new bL},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(_t);GS.prototype.type="ring";const as=GS;function wL(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Nr(f,f,r[v]),zr(h,h,r[v]);Nr(f,f,n[0]),zr(h,h,n[1])}for(var v=0,c=r.length;v<c;v++){var d=r[v];if(e)l=r[v?v-1:c-1],u=r[(v+1)%c];else if(v===0||v===c-1){i.push(_1(r[v]));continue}else l=r[v-1],u=r[v+1];S1(a,u,l),ll(a,a,t);var p=Il(d,l),g=Il(d,u),y=p+g;y!==0&&(p/=y,g/=y),ll(o,a,-p),ll(s,a,g);var m=Zh([],d,o),_=Zh([],d,s);n&&(zr(m,m,f),Nr(m,m,h),zr(_,_,f),Nr(_,_,h)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function HS(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=wL(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var TL=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),WS=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new TL},t.prototype.buildPath=function(e,n){HS(e,n,!0)},t}(_t);WS.prototype.type="polygon";const Ir=WS;var AL=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),US=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 AL},t.prototype.buildPath=function(e,n){HS(e,n,!1)},t}(_t);US.prototype.type="polyline";const Ye=US;var CL={},ML=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),YS=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 ML},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=yS(CL,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(_t);YS.prototype.type="line";const se=YS;var pe=[],DL=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function Cg(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Lp:zt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Lp:zt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Pp:Qt)(r.x1,r.cpx1,r.x2,t),(e?Pp:Qt)(r.y1,r.cpy1,r.y2,t)]}var XS=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 DL},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(e.moveTo(i,a),f==null||h==null?(v<1&&(kl(i,l,o,v,pe),l=pe[1],o=pe[2],kl(a,u,s,v,pe),u=pe[1],s=pe[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(El(i,l,f,o,v,pe),l=pe[1],f=pe[2],o=pe[3],El(a,u,h,s,v,pe),u=pe[1],h=pe[2],s=pe[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return Cg(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=Cg(this.shape,e,!0);return x1(n,n)},t}(_t);XS.prototype.type="bezier-curve";const Uv=XS;var IL=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),$S=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 IL},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+i,h*o+a),e.arc(i,a,o,s,l,!u)},t}(_t);$S.prototype.type="arc";const Au=$S;var LL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),_t.prototype.getBoundingRect.call(this)},t}(_t);const Cu=LL;var PL=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const ZS=PL;var RL=function(r){E(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(ZS);const os=RL;var EL=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(ZS);const Yv=EL;var Zn=[0,0],qn=[0,0],Rs=new nt,Es=new nt,kL=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new nt;for(var n=0;n<2;n++)this._axes[n]=new nt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);nt.sub(i[0],n[1],n[0]),nt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return Rs.set(1/0,1/0),Es.set(0,0),!this._intersectCheckOneSide(this,t,Rs,Es,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Rs,Es,i,-1)&&(n=!1,i)||i||nt.copy(e,n?Rs:Es),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Zn),this._getProjMinMaxOnAxis(l,e._corners,qn),Zn[1]<qn[0]||Zn[0]>qn[1]){if(s=!1,a)return s;var f=Math.abs(qn[0]-Zn[1]),h=Math.abs(Zn[0]-qn[1]);Math.min(f,h)>i.len()&&(f<h?nt.scale(i,u,-f*o):nt.scale(i,u,h*o))}else if(n){var f=Math.abs(qn[0]-Zn[1]),h=Math.abs(Zn[0]-qn[1]);Math.min(f,h)<n.len()&&(f<h?nt.scale(n,u,f*o):nt.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const Vl=kL;var OL=[],BL=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new pt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(OL)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(Yr);const qS=BL;var NL=bt();function Xv(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=it(n.duration,200),f=it(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),K(h)&&(h=h(e,i)),K(u)&&(u=u(e));var v={duration:u||0,delay:h,easing:f};return v}else return null}function $v(r,t,e,n,i,a,o){var s=!1,l;K(i)?(o=a,a=i,i=null):X(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Xv(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!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),a&&a()}function kt(r,t,e,n,i,a){$v("update",r,t,e,n,i,a)}function ue(r,t,e,n,i,a){$v("enter",r,t,e,n,i,a)}function xo(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Bo(r,t,e,n,i,a){xo(r)||$v("leave",r,t,e,n,i,a)}function Mg(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),Bo(r,{style:{opacity:0}},t,e,n)}function Gl(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||Mg(i,t,e,n)}):Mg(r,t,e,n)}function No(r){NL(r).oldStyle=r.style}var Hl=Math.max,Wl=Math.min,bc={};function KS(r){return _t.extend(r)}var zL=vL;function QS(r,t){return zL(r,t)}function Xe(r,t){bc[r]=t}function Zv(r){if(bc.hasOwnProperty(r))return bc[r]}function Mu(r,t,e,n){var i=BS(r,t);return e&&(n==="center"&&(e=JS(e,i.getBoundingRect())),Kv(i,e)),i}function qv(r,t,e){var n=new ce({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(JS(t,a))}}});return n}function JS(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Fe=dL;function Kv(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function zo(r,t){return yS(r,r,{lineWidth:t}),r}function FL(r){return mS(r.shape,r.shape,r.style),r}var VL=hi;function bn(r,t){for(var e=es([]);r&&r!==t;)Ar(e,r.getLocalTransform(),e),r=r.parent;return e}function ir(r,t,e){return t&&!ee(t)&&(t=ui.getLocalTransform(t)),e&&(t=Sa([],t)),Wt([],r,t)}function Du(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=ir(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Dg(r){return!r.isGroup}function GL(r){return r.shape!=null}function Iu(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Dg(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return GL(o)&&(s.shape=B({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Dg(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),kt(o,l,e,ut(o).dataIndex)}}})}function Qv(r,t){return V(r,function(e){var n=e[0];n=Hl(n,t.x),n=Wl(n,t.x+t.width);var i=e[1];return i=Hl(i,t.y),i=Wl(i,t.y+t.height),[n,i]})}function jS(r,t){var e=Hl(r.x,t.x),n=Wl(r.x+r.width,t.x+t.width),i=Hl(r.y,t.y),a=Wl(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function ba(r,t,e){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),q(i,e),new ce(n)):Mu(r.replace("path://",""),n,e,"center")}function HL(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(tx(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function tx(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,v=Hf(f,h,l,u);if(WL(v))return!1;var c=r-i,d=t-a,p=Hf(c,d,l,u)/v;if(p<0||p>1)return!1;var g=Hf(c,d,f,h)/v;return!(g<0||g>1)}function Hf(r,t,e,n){return r*n-e*t}function WL(r){return r<=1e-6&&r>=-1e-6}function wa(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=G(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&w(st(l),function(f){tt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ut(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:q({content:n,formatterParams:s},i)}}function Ig(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Lu(r,t){if(r)if(F(r))for(var e=0;e<r.length;e++)Ig(r[e],t);else Ig(r,t)}Xe("circle",or);Xe("ellipse",Tu);Xe("sector",Dr);Xe("ring",as);Xe("polygon",Ir);Xe("polyline",Ye);Xe("rect",yt);Xe("line",se);Xe("bezierCurve",Uv);Xe("arc",Au);const Pu=Object.freeze(Object.defineProperty({__proto__:null,Arc:Au,BezierCurve:Uv,BoundingRect:pt,Circle:or,CompoundPath:Cu,Ellipse:Tu,Group:at,Image:ce,IncrementalDisplayable:qS,Line:se,LinearGradient:os,OrientedBoundingRect:Vl,Path:_t,Point:nt,Polygon:Ir,Polyline:Ye,RadialGradient:Yv,Rect:yt,Ring:as,Sector:Dr,Text:mt,applyTransform:ir,clipPointsByRect:Qv,clipRectByRect:jS,createIcon:ba,extendPath:QS,extendShape:KS,getShapeClass:Zv,getTransform:bn,groupTransition:Iu,initProps:ue,isElementRemoved:xo,lineLineIntersect:tx,linePolygonIntersect:HL,makeImage:qv,makePath:Mu,mergePath:Fe,registerShape:Xe,removeElement:Bo,removeElementWithFadeOut:Gl,resizePath:Kv,setTooltipConfig:wa,subPixelOptimize:VL,subPixelOptimizeLine:zo,subPixelOptimizeRect:FL,transformDirection:Du,traverseElements:Lu,updateProps:kt},Symbol.toStringTag,{value:"Module"}));var Ru={};function UL(r,t){for(var e=0;e<Ue.length;e++){var n=Ue[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Lg(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<Ue.length;u++){var f=Ue[u],h=t[f];l[f]=it(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Kr(r,t,e,n){e=e||Ru;for(var i=r instanceof mt,a=!1,o=0;o<Fl.length;o++){var s=t[Fl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new mt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Lg(e,t),f=t.normal,h=!!f.getShallow("show"),v=Nt(f,n&&n.normal,e,!1,!i);v.text=u.normal,i||r.setTextConfig(Pg(f,e,!1));for(var o=0;o<Ue.length;o++){var c=Ue[o],s=t[c];if(s){var d=l.ensureState(c),p=!!it(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Nt(s,n&&n[c],e,!0,!i),d.style.text=u[c],!i){var g=r.ensureState(c);g.textConfig=Pg(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),e.enableTextSetter&&(Eu(l).setLabelText=function(y){var m=Lg(e,t,y);UL(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Qr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<Ue.length;n++){var i=Ue[n];e[i]=r.getModel([i,t])}return e}function Nt(r,t,e,n,i){var a={};return YL(a,r,e,n,i),t&&B(a,t),a}function Pg(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=it(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",n}function YL(r,t,e,n,i){e=e||Ru;var a=t.ecModel,o=a&&a.option.textStyle,s=XL(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Og(l[u]={},f,o,e,n,i,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var v=t.get("minMargin");v!=null&&(r.margin=v),Og(r,t,o,e,n,i,!0,!1)}function XL(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Ru).rich;if(e){t=t||{};for(var n=st(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var Rg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Eg=["align","lineHeight","width","height","tag","verticalAlign"],kg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Og(r,t,e,n,i,a,o,s){e=!i&&e||Ru;var l=n&&n.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=it(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var v=it(t.getShallow("textBorderWidth"),e.textBorderWidth);v!=null&&(r.lineWidth=v);var c=it(t.getShallow("textBorderType"),e.textBorderType);c!=null&&(r.lineDash=c);var d=it(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var p=0;p<Rg.length;p++){var g=Rg[p],y=it(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Eg.length;p++){var g=Eg[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<kg.length;p++){var g=kg[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function $L(r,t){var e=t&&t.getModel("textStyle");return Ge([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Eu=bt();function ZL(r,t,e,n){if(r){var i=Eu(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var qL=["textStyle","color"],Wf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Uf=new mt,KL=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(qL):null)},r.prototype.getFont=function(){return $L({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Wf.length;n++)e[Wf[n]]=this.getShallow(Wf[n]);return Uf.useStyle(e),Uf.update(),Uf.getBoundingRect()},r}();const QL=KL;var ex=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],JL=fa(ex),jL=function(){function r(){}return r.prototype.getLineStyle=function(t){return JL(this,t)},r}(),rx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],tP=fa(rx),eP=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return tP(this,t,e)},r}(),Li=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){et(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(Z(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!vt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();Bv(Li);Z2(Li);$t(Li,jL);$t(Li,eP);$t(Li,j2);$t(Li,QL);const Mt=Li;var rP=Math.round(Math.random()*10);function Ta(r){return[r||"",rP++].join("_")}function nP(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=wr(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=wr(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function iP(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,v={};for(w(a,function(m){v[m]=!0});h.length;){var c=h.pop(),d=f[c],p=!!v[c];p&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),w(d.successor,p?y:g)}w(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){v[m]=!0,g(m)}};function e(a){var o={},s=[];return w(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),w(h,function(v){lt(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);lt(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return w(a,function(l){lt(o,l)>=0&&s.push(l)}),s}}function Rn(r,t){return et(et({},r,!0),t,!0)}const aP={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:". "}}}},oP={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ul="ZH",Jv="EN",Fo=Jv,_l={},jv={},nx=vt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ul)>-1?Ul:Fo}():Fo;function td(r,t){r=r.toUpperCase(),jv[r]=new Mt(t),_l[r]=t}function sP(r){if(G(r)){var t=_l[r.toUpperCase()]||{};return r===Ul||r===Jv?Z(t):et(Z(t),Z(_l[Fo]),!1)}else return et(Z(r),Z(_l[Fo]),!1)}function wc(r){return jv[r]}function lP(){return jv[Fo]}td(Jv,aP);td(Ul,oP);var ed=1e3,rd=ed*60,bo=rd*60,Ve=bo*24,Bg=Ve*365,so={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}"},ks="{yyyy}-{MM}-{dd}",Ng={year:"{yyyy}",month:"{yyyy}-{MM}",day:ks,hour:ks+" "+so.hour,minute:ks+" "+so.minute,second:ks+" "+so.second,millisecond:so.none},Yf=["year","month","day","hour","minute","second","millisecond"],ix=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ye(r,t){return r+="","0000".substr(0,t-r.length)+r}function oa(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 uP(r){return r===oa(r)}function fP(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ss(r,t,e,n){var i=Ae(r),a=i[nd(e)](),o=i[sa(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ku(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[Vo(e)](),h=(f-1)%12+1,v=i[Ou(e)](),c=i[Bu(e)](),d=i[Nu(e)](),p=n instanceof Mt?n:wc(n||nx)||lP(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,ye(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ye(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ye(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ye(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ye(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ye(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ye(d,3)).replace(/{S}/g,d+"")}function hP(r,t,e,n,i){var a=null;if(G(e))a=e;else if(K(e))a=e(r.value,t,{level:r.level});else{var o=B({},so);if(r.level>0)for(var s=0;s<Yf.length;++s)o[Yf[s]]="{primary|"+o[Yf[s]]+"}";var l=e?e.inherit===!1?e:q(e,o):o,u=ax(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=ix.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return ss(new Date(r.value),a,i,n)}function ax(r,t){var e=Ae(r),n=e[sa(t)]()+1,i=e[ku(t)](),a=e[Vo(t)](),o=e[Ou(t)](),s=e[Bu(t)](),l=e[Nu(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function zg(r,t,e){var n=xt(r)?Ae(r):r;switch(t=t||ax(r,e),t){case"year":return n[nd(e)]();case"half-year":return n[sa(e)]()>=6?1:0;case"quarter":return Math.floor((n[sa(e)]()+1)/4);case"month":return n[sa(e)]();case"day":return n[ku(e)]();case"half-day":return n[Vo(e)]()/24;case"hour":return n[Vo(e)]();case"minute":return n[Ou(e)]();case"second":return n[Bu(e)]();case"millisecond":return n[Nu(e)]()}}function nd(r){return r?"getUTCFullYear":"getFullYear"}function sa(r){return r?"getUTCMonth":"getMonth"}function ku(r){return r?"getUTCDate":"getDate"}function Vo(r){return r?"getUTCHours":"getHours"}function Ou(r){return r?"getUTCMinutes":"getMinutes"}function Bu(r){return r?"getUTCSeconds":"getSeconds"}function Nu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function cP(r){return r?"setUTCFullYear":"setFullYear"}function ox(r){return r?"setUTCMonth":"setMonth"}function sx(r){return r?"setUTCDate":"setDate"}function lx(r){return r?"setUTCHours":"setHours"}function ux(r){return r?"setUTCMinutes":"setMinutes"}function fx(r){return r?"setUTCSeconds":"setSeconds"}function hx(r){return r?"setUTCMilliseconds":"setMilliseconds"}function vP(r,t,e,n,i,a,o,s){var l=new mt({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function id(r){if(!Ev(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ad(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Aa=Sv;function Tc(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ge(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Ae(r):r;if(isNaN(+l)){if(s)return"-"}else return ss(l,n,e)}if(t==="ordinal")return Ml(r)?i(r):xt(r)&&a(r)?r+"":"-";var u=Eo(r);return a(u)?id(u):Ml(r)?i(r):typeof r=="boolean"?r+"":"-"}var Fg=["a","b","c","d","e","f","g"],Xf=function(r,t){return"{"+r+(t??"")+"}"};function od(r,t,e){F(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Fg[a];r=r.replace(Xf(o),Xf(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Xf(Fg[l],s),e?oe(u):u)}return r}function dP(r,t,e){return w(t,function(n,i){r=r.replace("{"+i+"}",e?oe(n):n)}),r}function cx(r,t){var e=G(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+oe(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+oe(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function pP(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
- yyyy`);var n=Ae(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",ye(o,2)).replace("M",o).replace("yyyy",a).replace("yy",ye(a%100+"",2)).replace("dd",ye(s,2)).replace("d",s).replace("hh",ye(l,2)).replace("h",l).replace("mm",ye(u,2)).replace("m",u).replace("ss",ye(f,2)).replace("s",f).replace("SSS",ye(h,3)),r}function gP(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ci(r,t){return t=t||"transparent",G(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Vg(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sl=w,vx=["left","right","top","bottom","width","height"],ci=[["width","left","right"],["height","top","bottom"]];function sd(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=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=a+p,c>n||l.newline?(a=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>i||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+e:o=d+e)})}var _i=sd;dt(sd,"vertical");dt(sd,"horizontal");function he(r,t,e){e=Aa(e||0);var n=t.width,i=t.height,a=j(r.left,n),o=j(r.top,i),s=j(r.right,n),l=j(r.bottom,i),u=j(r.width,n),f=j(r.height,i),h=e[2]+e[0],v=e[1]+e[3],c=r.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new pt(a+e[3],o+e[0],u,f);return d.margin=e,d}function ld(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.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 pt(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=he(q({width:u.width,height:u.height},t),e,n),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(a.x=v,a.y=c):(a.x+=v,a.y+=c),a===r&&r.markRedraw(),!0}function yP(r,t){return r[ci[t][0]]!=null||r[ci[t][1]]!=null&&r[ci[t][2]]!=null}function Go(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function Mn(r,t,e){var n=e&&e.ignoreSize;!F(n)&&(n=[n,n]);var i=o(ci[0],0),a=o(ci[1],1);u(ci[0],r,i),u(ci[1],r,a);function o(f,h){var v={},c=0,d={},p=0,g=2;if(Sl(f,function(_){d[_]=r[_]}),Sl(f,function(_){s(t,_)&&(v[_]=d[_]=t[_]),l(v,_)&&c++,l(d,_)&&p++}),n[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<f.length;y++){var m=f[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,v){Sl(f,function(c){h[c]=v[c]})}}function Ca(r){return dx({},r)}function dx(r,t){return t&&r&&Sl(vx,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var mP=bt(),Ma=function(r){E(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Ta("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Go(this),a=i?Ca(e):{},o=n.getTheme();et(e,o.get(this.mainType)),et(e,this.getDefaultOption()),i&&Mn(e,a,i)},t.prototype.mergeOption=function(e,n){et(this.option,e,!0);var i=Go(this);i&&Mn(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Y2(e))return e.defaultOption;var n=mP(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=et(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return is(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},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}(Mt);uS(Ma,Mt);mu(Ma);nP(Ma);iP(Ma,_P);function _P(r){var t=[];return w(Ma.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=V(t,function(e){return wr(e).main}),r!=="dataset"&<(t,"dataset")<=0&&t.unshift("dataset"),t}const ct=Ma;var px="";typeof navigator<"u"&&(px=navigator.platform||"");var Hi="rgba(0, 0, 0, 0.2)";const SP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Hi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Hi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Hi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Hi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Hi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Hi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:px.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gx=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),$e="original",be="arrayRows",lr="objectRows",Lr="keyedColumns",wn="typedArray",yx="unknown",Gr="column",Da="row",Ut={Must:1,Might:2,Not:3},mx=bt();function xP(r){mx(r).datasetMap=Y()}function bP(r,t,e){var n={},i=ud(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=mx(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),w(r,function(p,g){var y=X(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});w(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;c(n[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(n[y],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(n[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function _x(r,t,e){var n={},i=ud(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===lr||a===Lr)&&w(o,function(f,h){(X(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},v=[],c=0,d=Math.min(5,e);c<d;c++){var p=xx(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);v.push(p);var g=p===Ut.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Ut.Not)&&(f.n=c),y(f)&&v[f.n]!==Ut.Not)return f;g||(p===Ut.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function ud(r){var t=r.get("data",!0);if(!t)return is(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ft).models[0]}function wP(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:is(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ft).models}function Sx(r,t){return xx(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function xx(r,t,e,n,i,a){var o,s=5;if(xe(r))return Ut.Not;var l,u;if(n){var f=n[a];X(f)?(l=f.name,u=f.type):G(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ut.Must:Ut.Not;if(t===be){var h=r;if(e===Da){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[i+c];if(d&&(o=S(d[a]))!=null)return o}}else if(t===lr){var p=r;if(!l)return Ut.Not;for(var c=0;c<p.length&&c<s;c++){var g=p[c];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Lr){var y=r;if(!l)return Ut.Not;var v=y[l];if(!v||xe(v))return Ut.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(t===$e)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=xa(g);if(!F(_))return Ut.Not;if((o=S(_[a]))!=null)return o}function S(b){var x=G(b);if(b!=null&&isFinite(b)&&b!=="")return x?Ut.Might:Ut.Not;if(x&&b!=="-")return Ut.Must}return Ut.Not}var Ac=Y();function TP(r,t){fe(Ac.get(r)==null&&t),Ac.set(r,t)}function AP(r,t,e){var n=Ac.get(t);if(!n)return e;var i=n(r);return i?e.concat(i):e}var Gg=bt(),CP=bt(),fd=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Dt(this.get("color",!0)),a=this.get("colorLayer",!0);return bx(this,Gg,i,a,t,e,n)},r.prototype.clearColorPalette=function(){DP(this,Gg)},r}();function Hg(r,t,e,n){var i=Dt(r.get(["aria","decal","decals"]));return bx(r,CP,i,null,t,e,n)}function MP(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function bx(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:MP(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function DP(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Os,za,Wg,Ug="\0_ec_inner",IP=1,Tx=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Mt(a),this._locale=new Mt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=$g(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,$g(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Wg(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&w(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=n&&n.replaceMergeMainTypeMap;xP(this),w(e,function(h,v){h!=null&&(ct.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?Z(h):et(i[v],h,!0))}),u&&u.each(function(h,v){ct.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ct.topologicalTravel(s,ct.getAllClassMainTypes(),f,this);function f(h){var v=AP(this,h,Dt(e[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=aS(c,v,d);O2(p,h,ct),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;w(p,function(S,b){var x=S.existing,T=S.newOption;if(!T)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var A=h==="series",C=ct.getClass(h,S.keyInfo.subType,!A);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var M=B({componentIndex:b},S.keyInfo);x=new C(T,this,this,M),B(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Os(this)}this._seriesIndices||Os(this)},t.prototype.getOption=function(){var e=Z(this.option);return w(e,function(n,i){if(ct.hasClass(i)){for(var a=Dt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ko(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Ug],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,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],w(Dt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Yg("id",a,s):o!=null?l=Yg("name",o,s):l=Ct(s,function(u){return!!u}),Xg(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):Ct(this._componentsMap.get(i),function(u){return!!u});return l(Xg(o,e));function s(u){var f=i+"Index",h=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[h],name:u[v]}:null}function l(u){return e.filter?Ct(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(K(e)){var o=n,s=e;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=G(e)?a.get(e):X(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=jt(e,null);return Ct(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ct(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return Ct(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){za(this),w(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){w(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){za(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return w(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return za(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){za(this);var i=[];w(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Y(i)},t.prototype.restoreData=function(e){Os(this);var n=this._componentsMap,i=[];n.each(function(a,o){ct.hasClass(o)&&i.push(o)}),ct.topologicalTravel(i,ct.getAllClassMainTypes(),function(a){w(n.get(a),function(o){o&&(a!=="series"||!LP(o,e))&&o.restoreData()})})},t.internalField=function(){Os=function(e){var n=e._seriesIndices=[];w(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=Y(n)},za=function(e){},Wg=function(e,n){e.option={},e.option[Ug]=IP,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var i=n.aria;X(i)&&i.enabled==null&&(i.enabled=!0),PP(n,e._theme.option),et(n,SP,!1),e._mergeOption(n,null)}}(),t}(Mt);function LP(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function PP(r,t){var e=r.color&&!r.colorLayer;w(t,function(n,i){i==="colorLayer"&&e||ct.hasClass(i)||(typeof n=="object"?r[i]=r[i]?et(r[i],n,!1):Z(n):r[i]==null&&(r[i]=n))})}function Yg(r,t,e){if(F(t)){var n=Y();return w(t,function(a){if(a!=null){var o=jt(a,null);o!=null&&n.set(a,!0)}}),Ct(e,function(a){return a&&n.get(a[r])})}else{var i=jt(t,null);return Ct(e,function(a){return a&&i!=null&&a[r]===i})}}function Xg(r,t){return t.hasOwnProperty("subType")?Ct(r,function(e){return e&&e.subType===t.subType}):r}function $g(r){var t=Y();return r&&w(Dt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}$t(Tx,fd);const Ax=Tx;var RP=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],EP=function(){function r(t){w(RP,function(e){this[e]=W(t[e],t)},this)}return r}();const Cx=EP;var $f={},kP=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];w($f,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){w(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){$f[t]=e},r.get=function(t){return $f[t]},r}();const zu=kP;var OP=/^(min|max)?(.+)$/,BP=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(w(Dt(t.series),function(o){o&&o.data&&xe(o.data)&&Dl(o.data)}),w(Dt(t.dataset),function(o){o&&o.source&&xe(o.source)&&Dl(o.source)})),t=Z(t);var i=this._optionBackup,a=NP(t,e,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Z(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Z(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)zP(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!VP(o,this._currentMediaIndices)&&(s=V(o,function(f){return Z(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function NP(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&F(u)&&w(u,function(c){c&&c.option&&(c.query?n.push(c):i||(i=c))}),v(a),w(l,function(c){return v(c)}),w(n,function(c){return v(c.option)});function v(c){w(t,function(d){d(c,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function zP(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return w(r,function(a,o){var s=o.match(OP);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();FP(n[u],a,l)||(i=!1)}}),i}function FP(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function VP(r,t){return r.join(",")===t.join(",")}const GP=BP;var Ke=w,Ho=X,Zg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Zf(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Zg.length;e<n;e++){var i=Zg[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?et(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?et(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Jt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,q(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function lo(r){Jt(r,"itemStyle"),Jt(r,"lineStyle"),Jt(r,"areaStyle"),Jt(r,"label"),Jt(r,"labelLine"),Jt(r,"upperLabel"),Jt(r,"edgeLabel")}function Bt(r,t){var e=Ho(r)&&r[t],n=Ho(e)&&e.textStyle;if(n)for(var i=0,a=Zp.length;i<a;i++){var o=Zp[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function Ee(r){r&&(lo(r),Bt(r,"label"),r.emphasis&&Bt(r.emphasis,"label"))}function HP(r){if(Ho(r)){Zf(r),lo(r),Bt(r,"label"),Bt(r,"upperLabel"),Bt(r,"edgeLabel"),r.emphasis&&(Bt(r.emphasis,"label"),Bt(r.emphasis,"upperLabel"),Bt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Zf(t),Ee(t));var e=r.markLine;e&&(Zf(e),Ee(e));var n=r.markArea;n&&Ee(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!xe(a))for(var o=0;o<a.length;o++)Ee(a[o]);w(r.categories,function(u){lo(u)})}if(i&&!xe(i))for(var o=0;o<i.length;o++)Ee(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ee(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)F(l[o])?(Ee(l[o][0]),Ee(l[o][1])):Ee(l[o]);r.type==="gauge"?(Bt(r,"axisLabel"),Bt(r,"title"),Bt(r,"detail")):r.type==="treemap"?(Jt(r.breadcrumb,"itemStyle"),w(r.levels,function(u){lo(u)})):r.type==="tree"&&lo(r.leaves)}}function Er(r){return F(r)?r:r?[r]:[]}function qg(r){return(F(r)?r[0]:r)||{}}function WP(r,t){Ke(Er(r.series),function(n){Ho(n)&&HP(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ke(e,function(n){Ke(Er(r[n]),function(i){i&&(Bt(i,"axisLabel"),Bt(i.axisPointer,"label"))})}),Ke(Er(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Bt(i,"axisLabel"),Bt(i&&i.axisPointer,"label")}),Ke(Er(r.calendar),function(n){Jt(n,"itemStyle"),Bt(n,"dayLabel"),Bt(n,"monthLabel"),Bt(n,"yearLabel")}),Ke(Er(r.radar),function(n){Bt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Ke(Er(r.geo),function(n){Ho(n)&&(Ee(n),Ke(Er(n.regions),function(i){Ee(i)}))}),Ke(Er(r.timeline),function(n){Ee(n),Jt(n,"label"),Jt(n,"itemStyle"),Jt(n,"controlStyle",!0);var i=n.data;F(i)&&w(i,function(a){X(a)&&(Jt(a,"label"),Jt(a,"itemStyle"))})}),Ke(Er(r.toolbox),function(n){Jt(n,"iconStyle"),Ke(n.feature,function(i){Jt(i,"iconStyle")})}),Bt(qg(r.axisPointer),"label"),Bt(qg(r.tooltip).axisPointer,"label")}function UP(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function YP(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=e)}function Kg(r){r&&w(XP,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var XP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],$P=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],qf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Fa(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<qf.length;e++){var n=qf[e][1],i=qf[e][0];t[n]!=null&&(t[i]=t[n])}}function Qg(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Jg(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function ZP(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function Mx(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&Mx(r[e].children,t)}function Dx(r,t){WP(r,t),r.series=Dt(r.series),w(r.series,function(e){if(X(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Qg(e.label);var i=e.data;if(i&&!xe(i))for(var a=0;a<i.length;a++)Qg(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=UP(e,"pointer.color");o!=null&&YP(e,"itemStyle.color",o)}else if(n==="bar"){Fa(e),Fa(e.backgroundStyle),Fa(e.emphasis);var i=e.data;if(i&&!xe(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Fa(i[a]),Fa(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Jg(e),Mx(e.data,Jg)}else n==="graph"||n==="sankey"?ZP(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&q(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Kg(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w($P,function(e){var n=r[e];n&&(F(n)||(n=[n]),w(n,function(i){Kg(i)}))})}function qP(r){var t=Y();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(KP)}function KP(r){w(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return i;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=w2(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var Fu=function(){function r(t){this.data=t.data||(t.sourceFormat===Lr?{}:[]),this.sourceFormat=t.sourceFormat||yx,this.seriesLayoutBy=t.seriesLayoutBy||Gr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&Sx(this,n)===Ut.Must&&(i.type="ordinal")}}return r}();function hd(r){return r instanceof Fu}function Cc(r,t,e){e=e||Ix(r);var n=t.seriesLayoutBy,i=JP(r,e,n,t.sourceHeader,t.dimensions),a=new Fu({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Z(t)});return a}function cd(r){return new Fu({data:r,sourceFormat:xe(r)?wn:$e})}function QP(r){return new Fu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Z(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Ix(r){var t=yx;if(xe(r))t=wn;else if(F(r)){r.length===0&&(t=be);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(F(i)){t=be;break}else if(X(i)){t=lr;break}}}}else if(X(r)){for(var a in r)if(tt(r,a)&&ee(r[a])){t=Lr;break}}return t}function JP(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:jg(i),startIndex:o,dimensionsDetectedCount:a};if(t===be){var s=r;n==="auto"||n==null?ty(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},e,s,10):o=xt(n)?n:n?1:0,!i&&o===1&&(i=[],ty(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===Da?s.length:s[0]?s[0].length:null}else if(t===lr)i||(i=jP(r));else if(t===Lr)i||(i=[],w(r,function(u,f){i.push(f)}));else if(t===$e){var l=xa(r[0]);a=F(l)&&l.length||1}return{startIndex:o,dimensionsDefine:jg(i),dimensionsDetectedCount:a}}function jP(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return st(e)}function jg(r){if(r){var t=Y();return V(r,function(e,n){e=X(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function ty(r,t,e,n){if(t===Da)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function Lx(r){var t=r.sourceFormat;return t===lr||t===Lr}var Kn,Qn,Jn,ey,ry,Px=function(){function r(t,e){var n=hd(t)?t:cd(t);this._source=n;var i=this._data=n.data;n.sourceFormat===wn&&(this._offset=0,this._dimSize=e,this._data=i),ry(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;ry=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=ey[vd(u,f)];if(B(o,c),u===wn)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=Rx(u,f);o.getItem=W(d,null,s,h,v);var p=Ex(u,f);o.count=W(p,null,s,h,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],p=c[1]==null?-1/0:c[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*h+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}c[0]=d,c[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};ey=(t={},t[be+"_"+Gr]={pure:!0,appendData:a},t[be+"_"+Da]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[lr]={pure:!0,appendData:a},t[Lr]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[$e]={appendData:a},t[wn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),ny=function(r,t,e,n){return r[n]},tR=(Kn={},Kn[be+"_"+Gr]=function(r,t,e,n){return r[n+t]},Kn[be+"_"+Da]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Kn[lr]=ny,Kn[Lr]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[n]:null}return a},Kn[$e]=ny,Kn);function Rx(r,t){var e=tR[vd(r,t)];return e}var iy=function(r,t,e){return r.length},eR=(Qn={},Qn[be+"_"+Gr]=function(r,t,e){return Math.max(0,r.length-t)},Qn[be+"_"+Da]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},Qn[lr]=iy,Qn[Lr]=function(r,t,e){var n=e[0].name,i=r[n];return i?i.length:0},Qn[$e]=iy,Qn);function Ex(r,t){var e=eR[vd(r,t)];return e}var Kf=function(r,t,e){return r[t]},rR=(Jn={},Jn[be]=Kf,Jn[lr]=function(r,t,e){return r[e]},Jn[Lr]=Kf,Jn[$e]=function(r,t,e){var n=xa(r);return n instanceof Array?n[t]:n},Jn[wn]=Kf,Jn);function kx(r){var t=rR[r];return t}function vd(r,t){return r===be?r+"_"+t:r}function da(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return kx(a)(n,o,s)}else{var l=n;return a===$e&&(l=xa(n)),l}}}}var nR=/\{@(.+?)\}/g,Ox=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&F(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(K(a))return l.status=e,l.dimensionIndex=i,a(l);if(G(a)){var f=od(a,l);return f.replace(nR,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var p=da(s,t,d);if(o&&F(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return da(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function ay(r){var t,e;return X(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function wo(r){return new iR(r)}var iR=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,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=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)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),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(!n&&(h||c<d)){var p=this._progress;if(F(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],c,d,l,u);else this._doProgress(p,c,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){oy.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:oy.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),oy=function(){var r,t,e,n,i,a={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}();function xl(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!xt(r)&&r!=null&&r!=="-"&&(r=+Ae(r)),r==null||r===""?NaN:+r)}Y({number:function(r){return parseFloat(r)},time:function(r){return+Ae(r)},trim:function(r){return G(r)?Ge(r):r}});var aR=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=xt(t)?t:Eo(t),i=xt(e)?e:Eo(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=G(t),l=G(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),oR=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 xl(t,e)},r}();function sR(r,t){var e=new oR,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Gr&&me(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";tt(l,y)&&me(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Rx(i,Gr);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(n,a,s,p)},e.getRawData=W(lR,null,r)),e.cloneRawData=W(uR,null,r);var v=Ex(i,Gr);e.count=W(v,null,n,a,s);var c=kx(i);e.retrieveValue=function(p,g){var y=h(n,a,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return c(p,g,y.name)}};return e.getDimensionInfo=W(fR,null,s,l),e.cloneAllDimensionInfo=W(hR,null,s),e}function lR(r){var t=r.sourceFormat;if(!dd(t)){var e="";me(e)}return r.data}function uR(r){var t=r.sourceFormat,e=r.data;if(!dd(t)){var n="";me(n)}if(t===be){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===lr){for(var i=[],a=0,o=e.length;a<o;a++)i.push(B({},e[a]));return i}}function fR(r,t,e){if(e!=null){if(xt(e)||!isNaN(e)&&!tt(t,e))return r[e];if(tt(t,e))return t[e]}}function hR(r){return Z(r)}var Bx=Y();function cR(r){r=Z(r);var t=r.type,e="";t||me(e);var n=t.split(":");n.length!==2&&me(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,Bx.set(t,r)}function vR(r,t,e){var n=Dt(r),i=n.length,a="";i||me(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=dR(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function dR(r,t,e,n){var i="";t.length||me(i),X(r)||me(i);var a=r.type,o=Bx.get(a);o||me(i);var s=V(t,function(u){return sR(u,o)}),l=Dt(o.transform({upstream:s[0],upstreamList:s,config:Z(r.config)}));return V(l,function(u,f){var h="";X(u)||me(h),u.data||me(h);var v=Ix(u.data);dd(v)||me(h);var c,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),c={seriesLayoutBy:Gr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:Gr,sourceHeader:0,dimensions:u.dimensions};return Cc(u.data,c,null)})}function dd(r){return r===be||r===lr}var Vu="undefined",pR=typeof Uint32Array===Vu?Array:Uint32Array,gR=typeof Uint16Array===Vu?Array:Uint16Array,Nx=typeof Int32Array===Vu?Array:Int32Array,sy=typeof Float64Array===Vu?Array:Float64Array,zx={float:sy,int:Nx,ordinal:Array,number:Array,time:sy},Qf;function Va(r){return r>65535?pR:gR}function Wi(){return[1/0,-1/0]}function yR(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function ly(r,t,e,n,i){var a=zx[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var mR=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Qf[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],Lx(i),this._dimensions=V(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new zx[e||"float"](this._rawCount),this._rawExtent[a]=Wi(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Wi());for(var l=a[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];ly(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<a;d++){var f=i[d],p=Qf.arrayRows.call(this,t[c]||h,f.property,c,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=V(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Wi()),ly(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var v=[],c=t;c<e;c++){v=i.getItem(c,v);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(v,u[d],c,d);p[c]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=e-a[v],d=Math.abs(c);d<=n&&((d<s||d===s&&c>=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 n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=Va(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Va(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,v=0;v<i;v++){var c=void 0,d=n.getRawIndex(v);if(l===0)c=e(v);else if(l===1){var p=h[f][d];c=e(p,v)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=v,c=e.apply(null,s)}c&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=st(t),a=i.length;if(!a)return this;var o=e.count(),s=Va(e._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],v=t[f][1],c=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=c[i[0]],y=0;y<n;y++){var m=g[y];(m>=h&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=c[i[0]],_=c[i[1]],S=t[i[1]][0],b=t[i[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=h&&m<=v||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var T=e.getRawIndex(y),m=c[i[0]][T];(m>=h&&m<=v||isNaN(m))&&(l[u++]=T)}else for(var y=0;y<o;y++){for(var A=!0,T=e.getRawIndex(y),C=0;C<a;C++){var M=i[C],m=c[M][T];(m<t[M][0]||m>t[M][1])&&(A=!1)}A&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Wi();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)l[c]=i[e[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=i[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,v,c=new(Va(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,T=Math.min(d+l,o),A=d-1,C=a[u];f=-1,v=x;for(var M=-1,D=0,_=x;_<T;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){D++,M<0&&(M=S);continue}h=Math.abs((A-y)*(b-C)-(A-_)*(m-C)),h>f&&(f=h,v=S)}D>0&&D<T-x&&(c[s++]=Math.min(M,v),v=Math.max(M,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=Wi(),v=new(Va(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[c++]=m}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Wi();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(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 n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&He(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?yR(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Z(this._extent),t._rawExtent=Z(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return xl(e[a],this._dimensions[a])}Qf={arrayRows:t,objectRows:function(e,n,i,a){return xl(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return xl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}();const Mc=mR;var _R=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(),n=!!e.length,i,a;if(Bs(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=xe(s)?wn:$e,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=it(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=it(h.sourceHeader,v.sourceHeader),p=it(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[Cc(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Cc(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&uy(a)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&uy(h),s.push(f),l.push(u._getVersionSign())}),n?o=vR(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[QP(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Bs(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Mc,s.initData(new Px(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Bs(t)){var e=ud(t);return e?[e.getSourceManager()]:[]}else return V(wP(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(Bs(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function Bs(r){return r.mainType==="series"}function uy(r){throw new Error(r)}var Fx="line-height:1";function Vx(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+oe(n+"")+"px;color:"+oe(e)+";font-weight:"+oe(i+""),valueStyle:"font-size:"+oe(o+"")+"px;color:"+oe(a)+";font-weight:"+oe(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var SR=[0,10,20,30],xR=["",`
- `,`
- `,`
- `];function Mr(r,t){return t.type=r,t}function Dc(r){return r.type==="section"}function Gx(r){return Dc(r)?bR:wR}function Hx(r){if(Dc(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return w(r.blocks,function(i){var a=Hx(i);a>=t&&(t=a+ +(n&&(!a||Dc(i)&&!i.noHeader)))}),t}return 0}function bR(r,t,e,n){var i=t.noHeader,a=TR(Hx(t)),o=[],s=t.blocks||[];fe(!s||F(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(tt(u,l)){var f=new aR(u[l],null);s.sort(function(d,p){return f.evaluate(d.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(d,p){var g=t.valueFormatter,y=Gx(d)(g?B(B({},r),{valueFormatter:g}):r,d,p>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):Ic(o.join(""),i?e:a.html);if(i)return h;var v=Tc(t.header,"ordinal",r.useUTC),c=Vx(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Wx(r,v,c)+a.richText+h:Ic('<div style="'+c+";"+Fx+';">'+oe(v)+"</div>"+h,e)}function wR(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],V(S,function(b,x){return Tc(b,F(c)?c[x]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":Tc(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value),p=!s||!a,g=!s&&a,y=Vx(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":Wx(r,v,m))+(o?"":MR(r,d,p,g,_)):Ic((s?"":h)+(a?"":AR(v,!s,m))+(o?"":CR(d,p,g,_)),e)}}function fy(r,t,e,n,i,a){if(r){var o=Gx(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function TR(r){return{html:SR[r],richText:xR[r]}}function Ic(r,t){var e='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Fx+';">'+r+e+"</div>"}function AR(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+oe(r)+"</span>"}function CR(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=F(r)?r:[r],'<span style="'+a+";"+n+'">'+V(r,function(o){return oe(o)}).join(" ")+"</span>"}function Wx(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function MR(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function Ux(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Ci(n)}function Yx(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Jf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=eS()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=cx({color:e,type:t,renderMode:n,markerId:i});return G(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?w(e,function(a){return B(n,a)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function DR(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=F(s),u=Ux(t,e),f,h,v,c;if(o>1||l&&!o){var d=IR(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);c=f=da(i,e,a[0]),h=p.type}else c=f=l?s[0]:s;var g=kv(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return Mr("section",{header:y,noHeader:n||!g,sortParam:c,blocks:[Mr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ge(_),value:f,valueType:h})].concat(v||[])})}function IR(r,t,e,n,i){var a=t.getData(),o=He(r,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?w(n,function(h){f(da(a,e,h),h)}):w(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Mr("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var rn=bt();function Ns(r,t){return r.getName(t)||r.getId(t)}var LR="__universalTransitionEnabled",Gu=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,n,i){this.seriesIndex=this.componentIndex,this.dataTask=wo({count:RR,reset:ER}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=rn(this).sourceManager=new _R(this);a.prepareSource();var o=this.getInitialData(e,i);cy(o,this),this.dataTask.context.data=o,rn(this).dataBeforeProcessed=o,hy(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Go(this),a=i?Ca(e):{},o=this.subType;ct.hasClass(o)&&(o+="Series"),et(e,n.getTheme().get(this.subType)),et(e,this.getDefaultOption()),Nl(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Mn(e,a,i)},t.prototype.mergeOption=function(e,n){e=et(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Go(this);i&&Mn(this.option,e,i);var a=rn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);cy(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,rn(this).dataBeforeProcessed=o,hy(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!xe(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Nl(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=Lc(this);if(n){var i=n.context.data;return e==null?i:i.getLinkedData(e)}else return rn(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=Lc(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}rn(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Y(e)},t.prototype.getSourceManager=function(){return rn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return rn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return DR({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(vt.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=fd.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),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,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Ns(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=st(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ns(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[LR])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){X(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=Ns(e,h);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=Ns(e,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=e.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ct.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}(ct);$t(Gu,Ox);$t(Gu,fd);uS(Gu,ct);function hy(r){var t=r.name;kv(r)||(r.name=PR(r)||t)}function PR(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return w(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function RR(r){return r.model.getRawData().count()}function ER(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),kR}function kR(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function cy(r,t){w(y1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,dt(OR,t))})}function OR(r,t){var e=Lc(r);return e&&e.setOutputEnd((t||this).count()),t}function Lc(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const Ce=Gu;var pd=function(){function r(){this.group=new at,this.uid=Ta("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Bv(pd);mu(pd);const It=pd;function gd(){var r=bt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Xx=bt(),BR=gd(),yd=function(){function r(){this.group=new at,this.uid=Ta("viewChart"),this.renderTask=wo({plan:NR,reset:zR}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&dy(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&dy(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){Lu(this.group,t)},r.markUpdateMethod=function(t,e){Xx(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function vy(r,t,e){r&&_c(r)&&(t==="emphasis"?ha:ca)(r,e)}function dy(r,t,e){var n=Ai(r,t),i=t&&t.highlightKey!=null?aL(t.highlightKey):null;n!=null?w(Dt(n),function(a){vy(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){vy(a,e,i)})}Bv(yd);mu(yd);function NR(r){return BR(r.model)}function zR(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&Xx(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),FR[l]}var FR={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)}}};const te=yd;var Yl="\0__throttleOriginMethod",py="\0__throttleRate",gy="\0__throttleType";function Hu(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),l=this,u=c;var p=f||t,g=f||e;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function ls(r,t,e,n){var i=r[t];if(i){var a=i[Yl]||i,o=i[gy],s=i[py];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Hu(a,e,n==="debounce"),i[Yl]=a,i[gy]=n,i[py]=e}return i}}function Wo(r,t){var e=r[t];e&&e[Yl]&&(e.clear&&e.clear(),r[t]=e[Yl])}var yy=bt(),my={itemStyle:fa(rx,!0),lineStyle:fa(ex,!0)},VR={lineStyle:"stroke",itemStyle:"fill"};function $x(r,t){var e=r.visualStyleMapper||my[t];return e||(console.warn("Unknown style type '"+t+"'."),my.itemStyle)}function Zx(r,t){var e=r.visualDrawType||VR[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var GR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=$x(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Zx(r,n),u=o[l],f=K(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"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(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)}}}},Ga=new Mt,HR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=$x(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ga.option=l[n];var u=i(Ga),f=o.ensureUniqueItemVisual(s,"style");B(f,u),Ga.option.decal&&(o.setItemVisual(s,"decal",Ga.option.decal),Ga.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},WR={performRawSeries:!0,overallReset:function(r){var t=Y();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),yy(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=yy(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Zx(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=e.getColorFromPalette(c,o,d)}})}})}},zs=Math.PI;function UR(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 at,n=new yt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new mt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new yt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Au({shape:{startAngle:-zs/2,endAngle:-zs/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:zs*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:zs*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.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}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var YR=function(){function r(t,e,n,i){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.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 n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Y();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;w(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";fe(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;w(t,function(l,u){if(!(i.visualType&&i.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(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,i.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.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,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||wo({plan:KR,reset:QR,count:jR}));c.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||wo({reset:XR});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";fe(!t.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,w(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,wo({reset:$R,onDirty:qR})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return K(t)&&(t={overallReset:t,seriesType:tE(t)}),t.uid=Ta("stageHandler"),e&&(t.visualType=e),t},r}();function XR(r){r.overallReset(r.ecModel,r.api,r.payload)}function $R(r){return r.overallProgress&&ZR}function ZR(){this.agent.dirty(),this.getDownstream().dirty()}function qR(){this.agent&&this.agent.dirty()}function KR(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function QR(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Dt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?V(t,function(e,n){return qx(n)}):JR}var JR=qx(0);function qx(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function jR(r){return r.data.count()}function tE(r){Xl=null;try{r(Uo,Kx)}catch{}return Xl}var Uo={},Kx={},Xl;Qx(Uo,Ax);Qx(Kx,Cx);Uo.eachSeriesByType=Uo.eachRawSeriesByType=function(r){Xl=r};Uo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Xl=r.subType)};function Qx(r,t){for(var e in t.prototype)r[e]=Ht}const Jx=YR;var _y=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const eE={color:_y,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],_y]};var ne="#B9B8CE",Sy="#100C2A",Fs=function(){return{axisLine:{lineStyle:{color:ne}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},xy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],jx={darkMode:!0,color:xy,backgroundColor:Sy,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ne}},textStyle:{color:ne},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ne}},dataZoom:{borderColor:"#71708A",textStyle:{color:ne},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:ne}},timeline:{lineStyle:{color:ne},label:{color:ne},controlStyle:{color:ne,borderColor:ne}},calendar:{itemStyle:{color:Sy},dayLabel:{color:ne},monthLabel:{color:ne},yearLabel:{color:ne}},timeAxis:Fs(),logAxis:Fs(),valueAxis:Fs(),categoryAxis:Fs(),line:{symbol:"circle"},graph:{color:xy},gauge:{title:{color:ne},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ne},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};jx.categoryAxis.splitLine.show=!1;const rE=jx;var nE=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(G(t)){var a=wr(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&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)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Pc=["symbol","symbolSize","symbolRotate","symbolOffset"],by=Pc.concat(["symbolKeepAspect"]),iE={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 n={},i={},a=!1,o=0;o<Pc.length;o++){var s=Pc[o],l=r.get(s);K(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(B({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=st(i);function f(h,v){for(var c=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(v,g,i[g](c,d))}}return{dataEach:a?f:null}}},aE={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<by.length;s++){var l=by[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function tb(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function eb(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function oE(r,t,e,n){switch(e){case"color":var i=r.ensureUniqueItemVisual(t,"style");i[r.getVisual("drawType")]=n,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,n);break}}function rb(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=B({},i),o.dispatchAction(B(i,{type:n[1],seriesIndex:e(a,i)}))})})}function Ui(r,t,e,n,i){var a=r+t;e.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=Ai(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:F(v)?h.getName(v[0]):h.getName(v),selected:G(l)?l:B({},l)})}})}function sE(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Ui("map","selectchanged",t,i,n),Ui("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Ui("map","selected",t,i,n),Ui("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Ui("map","unselected",t,i,n),Ui("pie","unselected",t,i,n))})}function vi(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var lE=Math.round(Math.random()*9),uE=typeof Object.defineProperty=="function",fE=function(){function r(){this._id="__ec_inner_"+lE++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return uE?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const hE=fE;var cE=_t.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),vE=_t.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),dE=_t.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*c,l+s+v*c,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*c,l+s+v*c,e-f,l+s),r.closePath()}}),pE=_t.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),gE={line:se,rect:yt,roundRect:yt,square:yt,circle:or,diamond:vE,pin:dE,arrow:pE,triangle:cE},yE={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},$l={};w(gE,function(r,t){$l[t]=new r});var mE=_t.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Bl(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=$l[n];i||(n="rect",i=$l[n]),yE[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function _E(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function re(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=qv(r.slice(8),new pt(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=Mu(r.slice(7),{},new pt(t,e,n,i),o?"center":"cover"):l=new mE({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=_E,a&&l.setColor(a),l}function md(r){return F(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Wu(r,t){if(r!=null)return F(r)||(r=[r,r]),[j(r[0],t[0])||0,j(it(r[1],r[0]),t[1])||0]}function di(r){return isFinite(r)}function SE(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=di(n)?n:0,i=di(i)?i:1,a=di(a)?a:0,o=di(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function xE(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*i+e.y,l=l*a),o=di(o)?o:.5,s=di(s)?s:.5,l=l>=0&&di(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function wy(r,t,e){for(var n=t.type==="radial"?xE(r,t,e):SE(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function bE(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Vs(r){return parseInt(r,10)}function Ty(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Vs(s[n])||Vs(r.style[n]))-(Vs(s[a])||0)-(Vs(s[o])||0)|0}function wE(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:xt(r)?[r]:F(r)?r:null}function _d(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&wE(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=V(e,function(a){return a/i}),n/=i)}return[e,n]}var TE=new Xr(!0);function Zl(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Ay(r){return typeof r=="string"&&r!=="none"}function ql(r){var t=r.fill;return t!=null&&t!=="none"}function Cy(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 My(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 Dy(r,t,e){var n=Nv(t.image,t.__image,e);if(_u(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*co),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function AE(r,t,e,n){var i,a=Zl(e),o=ql(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||TE,h=t.__dirty;if(!n){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,p=a&&!!c.colorStops,g=o&&!!v.image,y=a&&!!c.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=h?wy(r,v,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?wy(r,c,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Dy(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?Dy(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var A,C;r.setLineDash&&e.lineDash&&(i=_d(t),A=i[0],C=i[1]);var M=!0;(u||h&Qi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),A&&(r.setLineDash(A),r.lineDashOffset=C),n||(e.strokeFirst?(a&&My(r,e),o&&Cy(r,e)):(o&&Cy(r,e),a&&My(r,e))),A&&r.setLineDash([])}function CE(r,t,e){var n=t.__image=Nv(e.image,t.__image,t,t.onload);if(!(!n||!_u(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,v=s-f;r.drawImage(n,u,f,h,v,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function ME(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Tn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=_d(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Zl(e)&&r.strokeText(i,e.x,e.y),ql(e)&&r.fillText(i,e.x,e.y)):(ql(e)&&r.fillText(i,e.x,e.y),Zl(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Iy=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ly=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function nb(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){_e(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?yi.opacity:o}(n||t.blend!==e.blend)&&(a||(_e(r,i),a=!0),r.globalCompositeOperation=t.blend||yi.blend);for(var s=0;s<Iy.length;s++){var l=Iy[s];(n||t[l]!==e[l])&&(a||(_e(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(_e(r,i),a=!0),r.shadowColor=t.shadowColor||yi.shadowColor),a}function Py(r,t,e,n,i){var a=Yo(t,i.inHover),o=n?null:e&&Yo(e,i.inHover)||{};if(a===o)return!1;var s=nb(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(_e(r,i),s=!0),Ay(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(_e(r,i),s=!0),Ay(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(_e(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(_e(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<Ly.length;f++){var h=Ly[f],v=h[0];(n||a[v]!==o[v])&&(s||(_e(r,i),s=!0),r[v]=a[v]||h[1])}return s}function DE(r,t,e,n,i){return nb(r,Yo(t,i.inHover),e&&Yo(e,i.inHover),n,i)}function ib(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function IE(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),ib(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function LE(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Ry=1,Ey=2,ky=3,Oy=4;function PE(r){var t=ql(r),e=Zl(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function _e(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Yo(r,t){return t&&r.__hoverStyle||r.style}function ab(r,t){Rc(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Rc(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~mr,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||bE(a,o))&&(o&&o.length&&(_e(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(_e(r,e),r.save(),IE(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof _t&&t.autoBatch&&PE(t.style);s||LE(i,u.transform)?(_e(r,e),ib(r,t)):f||_e(r,e);var h=Yo(t,e.inHover);t instanceof _t?(e.lastDrawType!==Ry&&(l=!0,e.lastDrawType=Ry),Py(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),AE(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Oo?(e.lastDrawType!==ky&&(l=!0,e.lastDrawType=ky),Py(r,t,u,l,e),ME(r,t,h)):t instanceof ce?(e.lastDrawType!==Ey&&(l=!0,e.lastDrawType=Ey),DE(r,t,u,l,e),CE(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==Oy&&(l=!0,e.lastDrawType=Oy),RE(r,t,e)),f&&n&&_e(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function RE(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rc(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rc(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var jf=new hE,By=new rs(100),Ny=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Kl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&jf.delete(r);var a=jf.get(r);if(a)return a;var o=q(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,jf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,v=0;v<Ny.length;++v){var c=o[Ny[v]];if(c!=null&&!F(c)&&!G(c)&&!xt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=By.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=sb(o.dashArrayX),y=EE(o.dashArrayY),m=ob(o.symbol),_=kE(g),S=lb(y),b=!i&&An.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=C(),A;b&&(b.width=T.width*e,b.height=T.height*e,A=b.getContext("2d")),M(),h&&By.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=T.width,u.svgHeight=T.height;function C(){for(var D=1,I=0,L=_.length;I<L;++I)D=Xp(D,_[I]);for(var R=1,I=0,L=m.length;I<L;++I)R=Xp(R,m[I].length);D*=R;var k=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function M(){A&&(A.clearRect(0,0,b.width,b.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-S,R=0,k=0,O=0;L<T.height;){if(R%2===0){for(var U=k/2%m.length,N=0,H=0,$=0;N<T.width*2;){for(var rt=0,I=0;I<g[O].length;++I)rt+=g[O][I];if(rt<=0)break;if(H%2===0){var J=(1-o.symbolSize)*.5,ft=N+g[O][H]*J,gt=L+y[R]*J,Ot=g[O][H]*o.symbolSize,wt=y[R]*o.symbolSize,Zt=$/2%m[U].length;Gt(ft,gt,Ot,wt,m[U][Zt])}N+=g[O][H],++$,++H,H===g[O].length&&(H=0)}++O,O===g.length&&(O=0)}L+=y[R],++k,++R,R===y.length&&(R=0)}function Gt(Lt,At,Q,ht,ve){var Pt=i?1:e,Ze=re(ve,Lt*Pt,At*Pt,Q*Pt,ht*Pt,o.color,o.symbolKeepAspect);if(i){var de=n.painter.renderOneToVNode(Ze);de&&x.children.push(de)}else ab(A,Ze)}}}}function ob(r){if(!r||r.length===0)return[["rect"]];if(G(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!G(r[e])){t=!1;break}if(t)return ob([r]);for(var n=[],e=0;e<r.length;++e)G(r[e])?n.push([r[e]]):n.push(r[e]);return n}function sb(r){if(!r||r.length===0)return[[0,0]];if(xt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!xt(r[n])){e=!1;break}if(e)return sb([r]);for(var i=[],n=0;n<r.length;++n)if(xt(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=V(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function EE(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(xt(r)){var t=Math.ceil(r);return[t,t]}var e=V(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function kE(r){return V(r,function(t){return lb(t)})}function lb(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function OE(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Kl(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Kl(i,t)}}})}var BE=new sr;const tr=BE;var ub={};function NE(r,t){ub[r]=t}function fb(r){return ub[r]}var zE="5.4.2",FE={zrender:"5.4.3"},VE=1,GE=800,HE=900,WE=1e3,UE=2e3,YE=5e3,hb=1e3,XE=1100,Sd=2e3,cb=3e3,$E=4e3,Uu=4500,ZE=4600,qE=5e3,KE=6e3,vb=7e3,db={PROCESSOR:{FILTER:WE,SERIES_FILTER:GE,STATISTIC:YE},VISUAL:{LAYOUT:hb,PROGRESSIVE_LAYOUT:XE,GLOBAL:Sd,CHART:cb,POST_CHART_LAYOUT:ZE,COMPONENT:$E,BRUSH:qE,CHART_ITEM:Uu,ARIA:KE,DECAL:vb}},Kt="__flagInMainProcess",ge="__pendingUpdate",th="__needsUpdateStatus",zy=/^[a-zA-Z0-9_]+$/,eh="__connectUpdateStatus",Fy=0,QE=1,JE=2;function pb(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return yb(this,r,t)}}function gb(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return yb(this,r,t)}}function yb(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),sr.prototype[t].apply(r,e)}var mb=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(sr),_b=mb.prototype;_b.on=gb("on");_b.off=gb("off");var Yi,rh,Gs,nn,nh,ih,ah,Ha,Wa,Vy,Gy,oh,Hy,Hs,Wy,Sb,Me,Uy,Ql=function(r){E(t,r);function t(e,n,i){var a=r.call(this,new nE)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},G(n)&&(n=xb[n]),a._dom=e;var o="canvas",s="auto",l=!1,u=a._zr=hc(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:it(i.useDirtyRect,l),useCoarsePointer:it(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Hu(W(u.flush,u),17),n=Z(n),n&&Dx(n,!0),a._theme=n,a._locale=sP(i.locale||nx),a._coordSysMgr=new zu;var f=a._api=Wy(a);function h(v,c){return v.__prio-c.__prio}return fl(jl,h),fl(Ec,h),a._scheduler=new Jx(a,f,Ec,jl),a._messageCenter=new mb,a._initEvents(),a.resize=W(a.resize,a),u.animation.on("frame",a._onframe,a),Vy(u,a),Gy(u,a),Dl(a),a}return t.prototype._onframe=function(){if(!this._disposed){Uy(this);var e=this._scheduler;if(this[ge]){var n=this[ge].silent;this[Kt]=!0;try{Yi(this),nn.update.call(this,null,this[ge].updateParams)}catch(l){throw this[Kt]=!1,this[ge]=null,l}this._zr.flush(),this[Kt]=!1,this[ge]=null,Ha.call(this,n),Wa.call(this,n)}else if(e.unfinished){var i=VE,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),ih(this,a),e.performVisualTasks(a),Hs(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Kt]){if(this._disposed){this.id;return}var a,o,s;if(X(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Kt]=!0,!this._model||n){var l=new GP(this._api),u=this._theme,f=this._model=new Ax;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},kc);var h={seriesTransition:s,optionChanged:!0};if(i)this[ge]={silent:a,updateParams:h},this[Kt]=!1,this.getZr().wakeUp();else{try{Yi(this),nn.update.call(this,null,h)}catch(v){throw this[ge]=null,this[Kt]=!1,v}this._ssr||this._zr.flush(),this[ge]=null,this[Kt]=!1,Ha.call(this,a),Wa.call(this,a)}}},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||vt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(vt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return w(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;w(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.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 w(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(tu[i]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();w(Si,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(e)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:b,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,p=h-u,g=An.createCanvas(),y=hc(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return w(v,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new yt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(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,n){return nh(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return nh(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=yo(i,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=yo(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?tb(s,l,n):eb(s,n)},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;w(jE,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&vi(s,function(d){var p=ut(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=a,l.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},e.trigger(n,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),w(To,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),w(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),sE(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&&sS(this.getDom(),bd,"");var n=this,i=n._api,a=n._model;w(n._componentsViews,function(o){o.dispose(a,i)}),w(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Si[n.id]},t.prototype.resize=function(e){if(!this[Kt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[ge]&&(a==null&&(a=this[ge].silent),i=!0,this[ge]=null),this[Kt]=!0;try{i&&Yi(this),nn.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Kt]=!1,o}this[Kt]=!1,Ha.call(this,a),Wa.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(X(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Oc[e]){var i=Oc[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},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 n=B({},e);return n.type=To[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(X(n)||(n={silent:!!n}),!!Jl[e.type]&&this._model){if(this[Kt]){this._pendingActions.push(e);return}var i=n.silent;ah.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&vt.browser.weChat&&this._throttledZrFlush(),Ha.call(this,i),Wa.call(this,i)}},t.prototype.updateLabelLayout=function(){tr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Yi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),rh(h,!0),rh(h,!1),v.plan()},rh=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;_<p.length;_++)p[_].__alive=!1;v?c.eachComponent(function(x,T){x!=="series"&&S(T)}):c.eachSeries(S);function S(x){var T=x.__requireNewView;x.__requireNewView=!1;var A="_ec_"+x.id+"_"+x.type,C=!T&&g[A];if(!C){var M=wr(x.type),D=v?It.getClass(M.main,M.sub):te.getClass(M.sub);C=new D,C.init(c,m),g[A]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=A,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&d.prepareView(C,x,c,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!v&&b.renderTask.dispose(),y.remove(b.group),b.dispose(c,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Gs=function(h,v,c,d,p){var g=h._model;if(g.setUpdatePayload(c),!d){w([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[d+"Id"]=c[d+"Id"],y[d+"Index"]=c[d+"Index"],y[d+"Name"]=c[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=c.excludeSeriesId,S;_!=null&&(S=Y(),w(Dt(_),function(x){var T=jt(x,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(m,function(x){var T=S&&S.get(x.id)!=null;if(!T)if(Sg(c))if(x instanceof Ce)c.type===mi&&!c.notBlur&&!x.get(["emphasis","disabled"])&&KI(x,c,h._api);else{var A=Hv(x.mainType,x.componentIndex,c.name,h._api),C=A.focusSelf,M=A.dispatchers;c.type===mi&&C&&!c.notBlur&&mc(x.mainType,x.componentIndex,h._api),M&&w(M,function(D){c.type===mi?ha(D):ca(D)})}else Sc(c)&&x instanceof Ce&&(jI(x,c,h._api),mg(x),Me(h))},h),g&&g.eachComponent(m,function(x){var T=S&&S.get(x.id)!=null;T||b(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function b(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,h._api,c)}},nn={prepareAndUpdate:function(h){Yi(this),nn.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(c){c.setUpdatePayload(h),y.restoreData(c,h),y.performSeriesTasks(c),g.create(c,d),y.performDataProcessorTasks(c,h),ih(this,c),g.update(c,d),e(c),y.performVisualTasks(c,h),oh(this,c,d,h,v);var m=c.get("backgroundColor")||"transparent",_=c.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),tr.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var p=[];c.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=Y();c.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,c,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),Hs(this,c,d,h,{},g),tr.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),te.markUpdateMethod(h,"updateView"),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),oh(this,v,this._api,h,{}),tr.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),te.markUpdateMethod(h,"updateVisual"),e(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,c,v._api,h)}}),c.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,c,v._api,h)}),tr.trigger("afterupdate",c,this._api))},updateLayout:function(h){nn.update.call(this,h)}},nh=function(h,v,c,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=yo(p,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&(y=S[v](p,m,d))!=null)return y}},ih=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,c[p.__viewId])})},ah=function(h,v){var c=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=Jl[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&wr(_[0]);this[Kt]=!0;var x=[h],T=!1;h.batch&&(T=!0,x=V(h.batch,function(R){return R=q(B({},R),h),R.batch=null,R}));var A=[],C,M=Sc(h),D=Sg(h);if(D&&RS(this._api),w(x,function(R){if(C=y.action(R,c._model,c._api),C=C||B({},R),C.type=m.event||C.type,A.push(C),D){var k=Ov(h),O=k.queryOptionMap,U=k.mainTypeSpecified,N=U?O.keys()[0]:"series";Gs(c,S,R,N),Me(c)}else M?(Gs(c,S,R,"series"),Me(c)):b&&Gs(c,S,R,b.main,b.sub)}),S!=="none"&&!D&&!M&&!b)try{this[ge]?(Yi(this),nn.update.call(this,h),this[ge]=null):nn[S].call(this,h)}catch(R){throw this[Kt]=!1,R}if(T?C={type:m.event||p,escapeConnect:g,batch:A}:C=A[0],this[Kt]=!1,!v){var I=this._messageCenter;if(I.trigger(C.type,C),M){var L={type:"selectchanged",escapeConnect:g,selected:tL(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};I.trigger(L.type,L)}}},Ha=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();ah.call(this,c,h)}},Wa=function(h){!h&&this.trigger("updated")},Vy=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[ge]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Gy=function(h,v){h.on("mouseover",function(c){var d=c.target,p=vi(d,_c);p&&(QI(p,c,v._api),Me(v))}).on("mouseout",function(c){var d=c.target,p=vi(d,_c);p&&(JI(p,c,v._api),Me(v))}).on("click",function(c){var d=c.target,p=vi(d,function(m){return ut(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ut(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){var v=[],c=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?c:v).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=v.concat(c),g,y;fl(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),w(p,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}oh=function(h,v,c,d,p){n(v),Hy(h,v,c,d,p),w(h._chartsViews,function(g){g.__alive=!1}),Hs(h,v,c,d,p),w(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},Hy=function(h,v,c,d,p,g){w(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,c,d),s(m,y),f(m,y)})},Hs=function(h,v,c,d,p,g){var y=h._scheduler;p=B(p||{},{updatedSeries:v.getSeries()}),tr.trigger("series:beforeupdate",v,c,p);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),mg(_)}),y.unfinished=m||y.unfinished,tr.trigger("series:layoutlabels",v,c,p),tr.trigger("series:transition",v,c,p),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,v),tr.trigger("series:afterupdate",v,c,p)},Me=function(h){h[th]=!0,h.getZr().wakeUp()},Uy=function(h){h[th]&&(h.getZr().storage.traverse(function(v){xo(v)||i(v)}),h[th]=!1)};function i(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var p=c[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}h.selected&&h.states.select&&v.push("select"),h.hoverState===bu&&h.states.emphasis?v.push("emphasis"):h.hoverState===xu&&h.states.blur&&v.push("blur"),h.useStates(v)}function a(h,v){var c=h._zr,d=c.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>v.get("hoverLayerThreshold")&&!vt.node&&!vt.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;_<m.length;_++)d=Math.max(l(m[_],v,c,d),d);else h.z=v,h.zlevel=c,d=Math.max(h.z2,d);if(p&&(p.z=v,p.zlevel=c,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,v){v.eachRendered(function(c){if(!xo(c)){var d=c.getTextContent(),p=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=c.get("duration"),g=p>0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(xo(y))return;if(y instanceof _t&&oL(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&&i(y)}})}Wy=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){ha(d,p),Me(h)},c.prototype.leaveEmphasis=function(d,p){ca(d,p),Me(h)},c.prototype.enterBlur=function(d){qI(d),Me(h)},c.prototype.leaveBlur=function(d){DS(d),Me(h)},c.prototype.enterSelect=function(d){IS(d),Me(h)},c.prototype.leaveSelect=function(d){LS(d),Me(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}(Cx))(h)},Sb=function(h){function v(c,d){for(var p=0;p<c.length;p++){var g=c[p];g[eh]=d}}w(To,function(c,d){h._messageCenter.on(d,function(p){if(tu[h.group]&&h[eh]!==Fy){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];w(Si,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,Fy),w(y,function(m){m[eh]!==QE&&m.dispatchAction(g)}),v(y,JE)}})})}}(),t}(sr),xd=Ql.prototype;xd.on=pb("on");xd.off=pb("off");xd.one=function(r,t,e){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var jE=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Jl={},To={},Ec=[],kc=[],jl=[],xb={},Oc={},Si={},tu={},tk=+new Date-0,ek=+new Date-0,bd="_echarts_instance_";function rk(r,t,e){var n=!(e&&e.ssr);if(n){var i=wd(r);if(i)return i}var a=new Ql(r,t,e);return a.id="ec_"+tk++,Si[a.id]=a,n&&sS(r,bd,a.id),Sb(a),tr.trigger("afterinit",a),a}function nk(r){if(F(r)){var t=r;r=null,w(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+ek++,w(t,function(e){e.group=r})}return tu[r]=!0,r}function bb(r){tu[r]=!1}var ik=bb;function ak(r){G(r)?r=Si[r]:r instanceof Ql||(r=wd(r)),r instanceof Ql&&!r.isDisposed()&&r.dispose()}function wd(r){return Si[V2(r,bd)]}function ok(r){return Si[r]}function Td(r,t){xb[r]=t}function Ad(r){lt(kc,r)<0&&kc.push(r)}function Cd(r,t){Md(Ec,r,t,UE)}function wb(r){Yu("afterinit",r)}function Tb(r){Yu("afterupdate",r)}function Yu(r,t){tr.on(r,t)}function ur(r,t,e){K(t)&&(e=t,t="");var n=X(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!To[t]&&(fe(zy.test(n)&&zy.test(t)),Jl[n]||(Jl[n]={action:e,actionInfo:r}),To[t]=n)}function Ab(r,t){zu.register(r,t)}function sk(r){var t=zu.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Cb(r,t){Md(jl,r,t,hb,"layout")}function En(r,t){Md(jl,r,t,cb,"visual")}var Yy=[];function Md(r,t,e,n,i){if((K(t)||X(t))&&(e=t,t=n),!(lt(Yy,e)>=0)){Yy.push(e);var a=Jx.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function Dd(r,t){Oc[r]=t}function lk(r){u1({createCanvas:r})}function Mb(r,t,e){var n=fb("registerMap");n&&n(r,t,e)}function uk(r){var t=fb("getMap");return t&&t(r)}var Db=cR;En(Sd,GR);En(Uu,HR);En(Uu,WR);En(Sd,iE);En(Uu,aE);En(vb,OE);Ad(Dx);Cd(HE,qP);Dd("default",UR);ur({type:mi,event:mi,update:mi},Ht);ur({type:yl,event:yl,update:yl},Ht);ur({type:mo,event:mo,update:mo},Ht);ur({type:ml,event:ml,update:ml},Ht);ur({type:_o,event:_o,update:_o},Ht);Td("light",eE);Td("dark",rE);var fk={};function Ua(r){return r==null?0:r.length||1}function Xy(r){return r}var hk=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Xy,this._newKeyGetter=i||Xy,this.context=a,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,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Ua(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=Ua(u),v=Ua(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=Ua(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var l=e[s],u=Ua(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const Id=hk;var ck=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function vk(r,t){var e={},n=e.encode={},i=Y(),a=[],o=[],s={};w(r.dimensions,function(v){var c=r.getDimensionInfo(v),d=c.coordDim;if(d){var p=c.coordDimIndex;sh(n,d)[p]=v,c.isExtraCoord||(i.set(d,1),pk(c.type)&&(a[0]=v),sh(s,d)[p]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}gx.each(function(g,y){var m=sh(n,y),_=c.otherDims[y];_!=null&&_!==!1&&(m[_]=c.name)})});var l=[],u={};i.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=V(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new ck(s,t),e}function sh(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function dk(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function pk(r){return!(r==="ordinal"||r==="time")}var gk=function(){function r(t){this.otherDims={},t!=null&&B(this,t)}return r}();const bl=gk;var yk=bt(),mk={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Ib=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Rb(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return it(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Lx(this.source),n=!Eb(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=mk[u]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Lb(r){return r instanceof Ib}function Pb(r){for(var t=Y(),e=0;e<(r||[]).length;e++){var n=r[e],i=X(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function Rb(r){var t=yk(r);return t.dimNameMap||(t.dimNameMap=Pb(r.dimensionsDefine))}function Eb(r){return r>30}var Ya=X,an=V,_k=typeof Int32Array>"u"?Array:Int32Array,Sk="e\0\0",$y=-1,xk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bk=["_approximateExtent"],Zy,Ws,Xa,$a,lh,Us,uh,wk=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 n,i=!1;Lb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=G(h)?new bl({name:h}):h instanceof bl?h:new bl(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Y();w(o,function(g){p.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(xt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof Mc&&(a=t),!a){var o=this.dimensions,s=hd(t)||ee(t)?new Px(t,o.length):t;a=new Mc;var l=an(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=vk(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&uh(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==wn&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===$e;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&M2(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=jt(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=jt(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)uh(this,f);Zy(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Ya(t)?B(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=Xa(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return Ws(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return F(t)?i.getValues(an(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n[e];return i==null||isNaN(i)?$y:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){K(t)&&(n=e,e=t,t=[]);var i=n||this,a=an($a(t),this._getStoreDimIndex,this);this._store.each(a,i?W(e,i):e)},r.prototype.filterSelf=function(t,e,n){K(t)&&(n=e,e=t,t=[]);var i=n||this,a=an($a(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?W(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=st(t);return w(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){K(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=an($a(t),this._getStoreDimIndex,this),s=Us(this);return s._store=this._store.map(o,a?W(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=an($a(t),this._getStoreDimIndex,this);this._store.modify(o,a?W(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=Us(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.lttbDownSample=function(t,e){var n=Us(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Mt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Id(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ws(t,n)},function(n){return Ws(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ya(t)?B(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():Ya(a)&&(a=B({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ya(e)?B(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ya(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,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;GI(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:an(this.dimensions,this._getDimInfo,this),this.hostModel)),lh(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(vu(arguments)))})},r.internalField=function(){Zy=function(t){var e=t._invertedIndicesMap;w(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new _k(o.categories.length);for(var l=0;l<n.length;l++)n[l]=$y;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Xa=function(t,e,n){return jt(t._getCategory(e,n),null)},Ws=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Xa(t,t._idDimIdx,e)),n==null&&(n=Sk+e),n},$a=function(t){return F(t)||(t=t!=null?[t]:[]),t},Us=function(t){var e=new r(t._schema?t._schema:an(t.dimensions,t._getDimInfo,t),t.hostModel);return lh(e,t),e},lh=function(t,e){w(xk.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,w(bk,function(n){t[n]=Z(e[n])}),t._calculationInfo=B({},e._calculationInfo)},uh=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=Xa(t,a,e)),l==null&&o!=null&&(i[e]=l=Xa(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const Xu=wk;function Tk(r,t){return Ld(r,t).dimensions}function Ld(r,t){hd(r)||(r=cd(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=Y(),a=[],o=Ck(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Eb(o),l=n===r.dimensionsDefine,u=l?Rb(r):Pb(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),v=new Nx(o),c=0;c<v.length;c++)v[c]=-1;function d(C){var M=v[C];if(M<0){var D=n[C],I=X(D)?D:{name:D},L=new bl,R=I.name;R!=null&&u.get(R)!=null&&(L.name=L.displayName=R),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var k=a.length;return v[C]=k,L.storeDimIndex=C,a.push(L),L}return a[M]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(C,M){var D=Dt(C).slice();if(D.length===1&&!G(D[0])&&D[0]<0){h.set(M,!1);return}var I=h.set(M,[]);w(D,function(L,R){var k=G(L)?u.get(L):L;k!=null&&k<o&&(I[R]=k,g(d(k),M,R))})});var p=0;w(e,function(C){var M,D,I,L;if(G(C))M=C,L={};else{L=C,M=L.name;var R=L.ordinalMeta;L.ordinalMeta=null,L=B({},L),L.ordinalMeta=R,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var k=h.get(M);if(k!==!1){if(k=Dt(k),!k.length)for(var O=0;O<(D&&D.length||1);O++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}w(k,function(U,N){var H=d(U);if(l&&L.type!=null&&(H.type=L.type),g(q(H,L),M,N),H.name==null&&D){var $=D[N];!X($)&&($={name:$}),H.name=H.displayName=$.name,H.defaultTooltip=$.defaultTooltip}I&&q(H.otherDims,I)})}});function g(C,M,D){gx.get(M)!=null?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,i.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)w(a,function(C){b(C)}),a.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var T=d(x),A=T.coordDim;A==null&&(T.coordDim=Mk(S,i,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),b(T),T.type==null&&(Sx(r,x)===Ut.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return Ak(a),new Ib({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Ak(r){for(var t=Y(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Ck(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return w(t,function(a){var o;X(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Mk(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var Dk=function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r}();function Ik(r){var t=r.get("coordinateSystem"),e=new Dk(t),n=Lk[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var Lk={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Ft).models[0],a=r.getReferringComponents("yAxis",Ft).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Xi(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Xi(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Ft).models[0];t.coordSysDims=["single"],e.set("single",i),Xi(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Ft).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Xi(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Xi(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Xi(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Xi(r){return r.get("type")==="category"}function kb(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;Pk(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(w(a,function(m,_){G(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,p=0;w(a,function(m){m.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function Pk(r){return!Lb(r.schema)}function Dn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Ob(r,t){return Dn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Rk(r,t){var e=r.get("coordinateSystem"),n=zu.get(e),i;return t&&t.coordSysDims&&(i=V(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=dk(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Ek(r,t,e){var n,i;return e&&w(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function $u(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=cd(r)):(i=n.getSource(),a=i.sourceFormat===$e);var o=Ik(t),s=Rk(t,o),l=e.useEncodeDefaulter,u=K(l)?l:l?dt(bP,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Ld(i,f),v=Ek(h.dimensions,e.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=kb(t,{schema:h,store:c}),p=new Xu(h,t);p.setCalculationInfo(d);var g=v!=null&&kk(i)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:c,null,g),p}function kk(r){if(r.sourceFormat===$e){var t=Ok(r.data||[]);return!F(xa(t))}}function Ok(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Bb=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[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 n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[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}();mu(Bb);const Jr=Bb;var Bk=0,Nk=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Bk}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&V(n,zk);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function zk(r){return X(r)&&r.value!=null?r.value:r+""}const Bc=Nk;function Nc(r){return r.type==="interval"||r.type==="log"}function Fk(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=Rv(a/t,!0);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=Nb(o),l=i.niceTickExtent=[Et(Math.ceil(r[0]/o)*o,s),Et(Math.floor(r[1]/o)*o,s)];return Vk(l,r),i}function fh(r){var t=Math.pow(10,yu(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Et(e*t)}function Nb(r){return br(r)+2}function qy(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Vk(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),qy(r,0,t),qy(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Zu(r,t){return r>=t[0]&&r<=t[1]}function qu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ku(r,t){return r*(t[1]-t[0])+t[0]}var zb=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Bc({})),F(i)&&(i=new Bc({categories:V(i,function(a){return X(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Zu(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),qu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ku(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Jr);Jr.registerClass(zb);const Pd=zb;var jn=Et,Fb=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 Zu(e,this._extent)},t.prototype.normalize=function(e){return qu(e,this._extent)},t.prototype.scale=function(e){return Ku(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Nb(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(e?s.push({value:jn(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=jn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:jn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,v=h/e;u<e-1;){var c=jn(l.value+(u+1)*v);c>a[0]&&c<a[1]&&f.push(c),u++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=br(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=jn(e.value,i,!0);return id(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=Fk(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=jn(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=jn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(Jr);Jr.registerClass(Fb);const In=Fb;var Vb=typeof Float32Array<"u",Gk=Vb?Float32Array:Array;function Fr(r){return F(r)?Vb?new Float32Array(r):r:new Gk(r)}var Hk="__ec_stack_";function Rd(r){return r.get("stack")||Hk+r.seriesIndex}function Ed(r){return r.dim+r.index}function Gb(r,t){var e=[];return t.eachSeriesByType(r,function(n){Yb(n)&&e.push(n)}),e}function Wk(r){var t={};w(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(c,p);t[v]?t[v].push(y):t[v]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function Hb(r){var t=Wk(r),e=[];return w(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=j(n.get("barWidth"),s),p=j(n.get("barMaxWidth"),s),g=j(n.get("barMinWidth")||(Xb(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Ed(a),stackId:Rd(n)})}),Uk(e)}function Uk(r){var t={};w(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=st(a).length;s=Math.max(35-l*4,15)+"%"}var u=j(s,o),f=j(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),w(a,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&&m<S&&(S=Math.min(m,h)),_&&_>S&&(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;w(a,function(y,m){y.width||(y.width=c),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;w(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function Yk(r,t,e){if(r&&t){var n=r[Ed(t)];return n!=null&&e!=null?n[Rd(e)]:n}}function Wb(r,t){var e=Gb(r,t),n=Hb(e);w(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Rd(i),u=n[Ed(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function Ub(r){return{seriesType:r,plan:gd(),reset:function(t){if(Yb(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Dn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=Xk(i,a),d=Xb(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 b=_.count,x=d&&Fr(b*3),T=d&&l&&Fr(b*3),A=d&&Fr(b),C=n.master.getRect(),M=v?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var R=I.get(h?g:o,D),k=I.get(s,D),O=c,U=void 0;h&&(U=+R-I.get(o,D));var N=void 0,H=void 0,$=void 0,rt=void 0;if(v){var J=n.dataToPoint([R,k]);if(h){var ft=n.dataToPoint([U,k]);O=ft[0]}N=O,H=J[1]+m,$=J[0]-O,rt=y,Math.abs($)<p&&($=($<0?-1:1)*p)}else{var J=n.dataToPoint([k,R]);if(h){var ft=n.dataToPoint([k,U]);O=ft[1]}N=J[0]+m,H=O,$=y,rt=J[1]-O,Math.abs(rt)<p&&(rt=(rt<=0?-1:1)*p)}d?(x[L]=N,x[L+1]=H,x[L+2]=v?$:rt,T&&(T[L]=v?C.x:N,T[L+1]=v?H:C.y,T[L+2]=M),A[D]=D):S.setItemLayout(D,{x:N,y:H,width:$,height:rt}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:A,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function Yb(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Xb(r){return r.pipelineContext&&r.pipelineContext.large}function Xk(r,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var $k=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},$b=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return ss(e.value,Ng[fP(oa(this._minLevelUnit))]||Ng.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return hP(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=tO(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ve,n[1]+=Ve),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ve}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Ys.length,l=Math.min($k(Ys,this._approxInterval,0,s),s-1);this._interval=Ys[l][1],this._minLevelUnit=Ys[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return xt(e)?e:+Ae(e)},t.prototype.contain=function(e){return Zu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return qu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ku(e,this._extent)},t.type="time",t}(In),Ys=[["second",ed],["minute",rd],["hour",bo],["quarter-day",bo*6],["half-day",bo*12],["day",Ve*1.2],["half-week",Ve*3.5],["week",Ve*7],["month",Ve*31],["quarter",Ve*95],["half-year",Bg/2],["year",Bg]];function Zk(r,t,e,n){var i=Ae(t),a=Ae(e),o=function(d){return zg(i,d,n)===zg(a,d,n)},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 qk(r,t){return r/=Ve,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Kk(r){var t=30*Ve;return r/=t,r>6?6:r>3?3:r>2?2:1}function Qk(r){return r/=bo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ky(r,t){return r/=t?rd:ed,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Jk(r){return Rv(r,!0)}function jk(r,t,e){var n=new Date(r);switch(oa(t)){case"year":case"month":n[ox(e)](0);case"day":n[sx(e)](1);case"hour":n[lx(e)](0);case"minute":n[ux(e)](0);case"second":n[fx(e)](0),n[hx(e)](0)}return n.getTime()}function tO(r,t,e,n){var i=1e4,a=ix,o=0;function s(M,D,I,L,R,k,O){for(var U=new Date(D),N=D,H=U[L]();N<I&&N<=n[1];)O.push({value:N}),H+=M,U[R](H),N=U.getTime();O.push({value:N,notAdd:!0})}function l(M,D,I){var L=[],R=!D.length;if(!Zk(oa(M),n[0],n[1],e)){R&&(D=[{value:jk(new Date(n[0]),M,e)},{value:n[1]}]);for(var k=0;k<D.length-1;k++){var O=D[k].value,U=D[k+1].value;if(O!==U){var N=void 0,H=void 0,$=void 0,rt=!1;switch(M){case"year":N=Math.max(1,Math.round(t/Ve/365)),H=nd(e),$=cP(e);break;case"half-year":case"quarter":case"month":N=Kk(t),H=sa(e),$=ox(e);break;case"week":case"half-week":case"day":N=qk(t),H=ku(e),$=sx(e),rt=!0;break;case"half-day":case"quarter-day":case"hour":N=Qk(t),H=Vo(e),$=lx(e);break;case"minute":N=Ky(t,!0),H=Ou(e),$=ux(e);break;case"second":N=Ky(t,!1),H=Bu(e),$=fx(e);break;case"millisecond":N=Jk(t),H=Nu(e),$=hx(e);break}s(N,O,U,H,$,rt,L),M==="year"&&I.length>1&&k===0&&I.unshift({value:I[0].value-N})}}for(var k=0;k<L.length;k++)I.push(L[k]);return L}}for(var u=[],f=[],h=0,v=0,c=0;c<a.length&&o++<i;++c){var d=oa(a[c]);if(uP(a[c])){l(a[c],u[u.length-1]||[],f);var p=a[c+1]?oa(a[c+1]):null;if(d!==p){if(f.length){v=h,f.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===a[c]))break}f=[]}}}for(var S=Ct(V(u,function(M){return Ct(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,c=0;c<S.length;++c)for(var T=S[c],A=0;A<T.length;++A)b.push({value:T[A].value,level:x-c});b.sort(function(M,D){return M.value-D.value});for(var C=[],c=0;c<b.length;++c)(c===0||b[c].value!==b[c-1].value)&&C.push(b[c]);return C}Jr.registerClass($b);const Zb=$b;var Qy=Jr.prototype,Ao=In.prototype,eO=Et,rO=Math.floor,nO=Math.ceil,Xs=Math.pow,Qe=Math.log,kd=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new In,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Ao.getTicks.call(this,e);return V(o,function(s){var l=s.value,u=Et(Xs(this.base,l));return u=l===i[0]&&this._fixMin?$s(u,a[0]):u,u=l===i[1]&&this._fixMax?$s(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,n){var i=Qe(this.base);e=Qe(Math.max(0,e))/i,n=Qe(Math.max(0,n))/i,Ao.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=Qy.getExtent.call(this);n[0]=Xs(e,n[0]),n[1]=Xs(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=$s(n[0],a[0])),this._fixMax&&(n[1]=$s(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=Qe(e[0])/Qe(n),e[1]=Qe(e[1])/Qe(n),Qy.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=tS(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Et(nO(n[0]/a)*a),Et(rO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ao.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=Qe(e)/Qe(this.base),Zu(e,this._extent)},t.prototype.normalize=function(e){return e=Qe(e)/Qe(this.base),qu(e,this._extent)},t.prototype.scale=function(e){return e=Ku(e,this._extent),Xs(this.base,e)},t.type="log",t}(Jr),qb=kd.prototype;qb.getMinorTicks=Ao.getMinorTicks;qb.getLabel=Ao.getLabel;function $s(r,t){return eO(r,br(t))}Jr.registerClass(kd);const iO=kd;var aO=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=this._modelMinRaw=e.get("min",!0);K(a)?this._modelMinNum=Zs(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=Zs(t,a));var o=this._modelMaxRaw=e.get("max",!0);if(K(o)?this._modelMaxNum=Zs(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Zs(t,o)),i)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=F(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ar(l[0],1),ar(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Do(s)||Do(l)||t&&!i;this._needCrossZero&&(s>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[sO[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=oO[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),oO={min:"_determinedMin",max:"_determinedMax"},sO={min:"_dataMin",max:"_dataMax"};function Kb(r,t,e){var n=r.rawExtentInfo;return n||(n=new aO(r,t,e),r.rawExtentInfo=n,n)}function Zs(r,t){return t==null?null:Do(t)?NaN:r.parse(t)}function Qb(r,t){var e=r.type,n=Kb(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=Gb("bar",o),l=!1;if(w(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Hb(s),f=lO(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function lO(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=Yk(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;w(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)/a,v=f/h-f;return t+=v*(l/u),r-=v*(s/u),{min:r,max:t}}function pa(r,t){var e=t,n=Qb(r,e),i=n.extent,a=e.get("splitNumber");r instanceof iO&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Qu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Pd({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Zb({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Jr.getClass(t)||In)}}function uO(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function us(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):G(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):K(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Od(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Od(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function fO(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Pd?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=us(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=n?n[f]:{value:a[0]+f},v=s(h,f),c=o.getTextRect(v),d=hO(c,o.get("rotate")||0);l?l.union(d):l=d}return l}}function hO(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new pt(r.x,r.y,a,o);return s}function Bd(r){var t=r.get("interval");return t??"auto"}function Jb(r){return r.type==="category"&&Bd(r.getLabelModel())===0}function eu(r,t){var e={};return w(r.mapDimensionsAll(t),function(n){e[Ob(r,n)]=!0}),st(e)}function cO(r,t,e){t&&w(eu(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var fs=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function vO(r){return $u(null,r)}var dO={isDimensionStacked:Dn,enableDataStack:kb,getStackedDimension:Ob};function pO(r,t){var e=t;t instanceof Mt||(e=new Mt(t));var n=Qu(e);return n.setExtent(r[0],r[1]),pa(n,e),n}function gO(r){$t(r,fs)}function yO(r,t){return t=t||{},Nt(r,null,null,t.state!=="normal")}const mO=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Tk,createList:vO,createScale:pO,createSymbol:re,createTextStyle:yO,dataStack:dO,enableHoverEmphasis:xn,getECData:ut,getLayoutRect:he,mixinAxisModelCommonMethods:gO},Symbol.toStringTag,{value:"Module"}));var Jy=[],_O={registerPreprocessor:Ad,registerProcessor:Cd,registerPostInit:wb,registerPostUpdate:Tb,registerUpdateLifecycle:Yu,registerAction:ur,registerCoordinateSystem:Ab,registerLayout:Cb,registerVisual:En,registerTransform:Db,registerLoading:Dd,registerMap:Mb,registerImpl:NE,PRIORITY:db,ComponentModel:ct,ComponentView:It,SeriesModel:Ce,ChartView:te,registerComponentModel:function(r){ct.registerClass(r)},registerComponentView:function(r){It.registerClass(r)},registerSeriesModel:function(r){Ce.registerClass(r)},registerChartView:function(r){te.registerClass(r)},registerSubTypeDefaulter:function(r,t){ct.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){K1(r,t)}};function Xt(r){if(F(r)){w(r,function(t){Xt(t)});return}lt(Jy,r)>=0||(Jy.push(r),K(r)&&(r={install:r}),r.install(_O))}var SO=1e-8;function jy(r,t){return Math.abs(r-t)<SO}function tm(r,t,e){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=Br(i[0],i[1],o[0],o[1],t,e),i=o}var s=r[0];return(!jy(i[0],s[0])||!jy(i[1],s[1]))&&(n+=Br(i[0],i[1],s[0],s[1],t,e)),n!==0}var xO=[];function hh(r,t){for(var e=0;e<r.length;e++)Wt(r[e],r[e],t)}function em(r,t,e,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Nr(t,t,a),zr(e,e,a))}}function bO(r){for(var t=0,e=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var jb=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),rm=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),nm=function(){function r(t){this.type="linestring",this.points=t}return r}(),tw=function(r){E(t,r);function t(e,n,i){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,i=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return bO(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return w(o,function(s){s.type==="polygon"?em(s.exterior,i,a,e):w(s.points,function(l){em(l,i,a,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new pt(i[0],i[1],a[0]-i[0],a[1]-i[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(tm(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(tm(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new pt(e,n,i,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var v=f[h];v.type==="polygon"?(hh(v.exterior,u),w(v.interiors,function(c){hh(c,u)})):w(v.points,function(c){hh(c,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(jb),wO=function(r){E(t,r);function t(e,n){var i=r.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=es(xO),o=e;o&&!o.isGeoSVGGraphicRoot;)Ar(a,o.getLocalTransform(),a),o=o.parent;return Sa(a,a),Wt(i,i,a),i},t}(jb);function TO(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return w(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=ew(s,o,e);break;case"Polygon":ch(s,o,e);break;case"MultiLineString":ch(s,o,e);break;case"MultiPolygon":w(s,function(l,u){return ch(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function ch(r,t,e){for(var n=0;n<r.length;n++)r[n]=ew(r[n],t[n],e)}function ew(r,t,e){for(var n=[],i=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/e,l/e])}return n}function zc(r,t){return r=TO(r),V(Ct(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,i=e.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new rm(o[0],o.slice(1)));break;case"MultiPolygon":w(i.coordinates,function(l){l[0]&&a.push(new rm(l[0],l.slice(1)))});break;case"LineString":a.push(new nm([i.coordinates]));break;case"MultiLineString":a.push(new nm(i.coordinates))}var s=new tw(n[t||"name"],a,n.cp);return s.properties=n,s})}const AO=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:T2,asc:xr,getPercentWithPrecision:b2,getPixelPrecision:Lv,getPrecision:br,getPrecisionSafe:J1,isNumeric:Ev,isRadianAroundZero:Ro,linearMap:Tt,nice:Rv,numericToNumber:Eo,parseDate:Ae,quantile:C2,quantity:tS,quantityExponent:yu,reformIntervals:cc,remRadian:Pv,round:Et},Symbol.toStringTag,{value:"Module"})),CO=Object.freeze(Object.defineProperty({__proto__:null,format:ss,parse:Ae},Symbol.toStringTag,{value:"Module"})),MO=Object.freeze(Object.defineProperty({__proto__:null,Arc:Au,BezierCurve:Uv,BoundingRect:pt,Circle:or,CompoundPath:Cu,Ellipse:Tu,Group:at,Image:ce,IncrementalDisplayable:qS,Line:se,LinearGradient:os,Polygon:Ir,Polyline:Ye,RadialGradient:Yv,Rect:yt,Ring:as,Sector:Dr,Text:mt,clipPointsByRect:Qv,clipRectByRect:jS,createIcon:ba,extendPath:QS,extendShape:KS,getShapeClass:Zv,getTransform:bn,initProps:ue,makeImage:qv,makePath:Mu,mergePath:Fe,registerShape:Xe,resizePath:Kv,updateProps:kt},Symbol.toStringTag,{value:"Module"})),DO=Object.freeze(Object.defineProperty({__proto__:null,addCommas:id,capitalFirst:gP,encodeHTML:oe,formatTime:pP,formatTpl:od,getTextRect:vP,getTooltipMarker:cx,normalizeCssArray:Aa,toCamelCase:ad,truncateText:fS},Symbol.toStringTag,{value:"Module"})),IO=Object.freeze(Object.defineProperty({__proto__:null,bind:W,clone:Z,curry:dt,defaults:q,each:w,extend:B,filter:Ct,indexOf:lt,inherits:_v,isArray:F,isFunction:K,isObject:X,isString:G,map:V,merge:et,reduce:He},Symbol.toStringTag,{value:"Module"}));var Xo=bt();function LO(r){return r.type==="category"?RO(r):kO(r)}function PO(r,t){return r.type==="category"?EO(r,t):{ticks:V(r.scale.getTicks(),function(e){return e.value})}}function RO(r){var t=r.getLabelModel(),e=rw(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function rw(r,t){var e=nw(r,"labels"),n=Bd(t),i=iw(e,n);if(i)return i;var a,o;return K(n)?a=sw(r,n):(o=n==="auto"?OO(r):n,a=ow(r,o)),aw(e,n,{labels:a,labelCategoryInterval:o})}function EO(r,t){var e=nw(r,"ticks"),n=Bd(t),i=iw(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),K(n))a=sw(r,n,!0);else if(n==="auto"){var s=rw(r,r.getLabelModel());o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tickValue})}else o=n,a=ow(r,o,!0);return aw(e,n,{ticks:a,tickCategoryInterval:o})}function kO(r){var t=r.scale.getTicks(),e=us(r);return{labels:V(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function nw(r,t){return Xo(r)[t]||(Xo(r)[t]=[])}function iw(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function aw(r,t,e){return r.push({key:t,value:e}),e}function OO(r){var t=Xo(r).autoInterval;return t??(Xo(r).autoInterval=r.calculateCategoryInterval())}function BO(r){var t=NO(r),e=us(r),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,c=0;l<=a[1];l+=s){var d=0,p=0,g=ns(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=Xo(r.model),b=r.getExtent(),x=S.lastAutoInterval,T=S.lastTickCount;return x!=null&&T!=null&&Math.abs(x-_)<=1&&Math.abs(T-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function NO(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 ow(r,t,e){var n=us(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Jb(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);c&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function sw(r,t,e){var n=r.scale,i=us(r),a=[];return w(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var im=[0,1],zO=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Lv(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),am(n,i.count())),Tt(t,im,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),am(n,i.count()));var a=Tt(t,n,im,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=PO(this,e),i=n.ticks,a=V(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return FO(this,a,o,t.clamp),a},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 n=this.scale.getMinorTicks(e),i=V(n,function(a){return V(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return LO(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(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return BO(this)},r}();function am(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function FO(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;w(t,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1]});function v(c,d){return c=Et(c),d=Et(d),h?c>d:c<d}}const fr=zO;function VO(r){var t=ct.extend(r);return ct.registerClass(t),t}function GO(r){var t=It.extend(r);return It.registerClass(t),t}function HO(r){var t=Ce.extend(r);return Ce.registerClass(t),t}function WO(r){var t=te.extend(r);return te.registerClass(t),t}Xr.CMD;function lw(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,h=n-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-i)*(p-i)+(g-a)*(g-a))}var pn=new nt,Rt=new nt,Yt=new nt,gn=new nt,Sr=new nt,ru=[],ae=new nt;function UO(r,t){if(t<=180&&t>0){t=t/180*Math.PI,pn.fromArray(r[0]),Rt.fromArray(r[1]),Yt.fromArray(r[2]),nt.sub(gn,pn,Rt),nt.sub(Sr,Yt,Rt);var e=gn.len(),n=Sr.len();if(!(e<.001||n<.001)){gn.scale(1/e),Sr.scale(1/n);var i=gn.dot(Sr),a=Math.cos(t);if(a<i){var o=lw(Rt.x,Rt.y,Yt.x,Yt.y,pn.x,pn.y,ru,!1);ae.fromArray(ru),ae.scaleAndAdd(Sr,o/Math.tan(Math.PI-t));var s=Yt.x!==Rt.x?(ae.x-Rt.x)/(Yt.x-Rt.x):(ae.y-Rt.y)/(Yt.y-Rt.y);if(isNaN(s))return;s<0?nt.copy(ae,Rt):s>1&&nt.copy(ae,Yt),ae.toArray(r[1])}}}}function YO(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,pn.fromArray(r[0]),Rt.fromArray(r[1]),Yt.fromArray(r[2]),nt.sub(gn,Rt,pn),nt.sub(Sr,Yt,Rt);var n=gn.len(),i=Sr.len();if(!(n<.001||i<.001)){gn.scale(1/n),Sr.scale(1/i);var a=gn.dot(t),o=Math.cos(e);if(a<o){var s=lw(Rt.x,Rt.y,Yt.x,Yt.y,pn.x,pn.y,ru,!1);ae.fromArray(ru);var l=Math.PI/2,u=Math.acos(Sr.dot(t)),f=l+u-e;if(f>=l)nt.copy(ae,Yt);else{ae.scaleAndAdd(Sr,s/Math.tan(Math.PI/2-f));var h=Yt.x!==Rt.x?(ae.x-Rt.x)/(Yt.x-Rt.x):(ae.y-Rt.y)/(Yt.y-Rt.y);if(isNaN(h))return;h<0?nt.copy(ae,Rt):h>1&&nt.copy(ae,Yt)}ae.toArray(r[1])}}}}function om(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function XO(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=Ll(n[0],n[1]),a=Ll(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=ul([],n[1],n[0],o/i),l=ul([],n[1],n[2],o/a),u=ul([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function $O(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Fl.length;l++){var u=Fl[l],f=t[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:it(i.states[u]&&i.states[u].ignore,s);if(c||!it(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0);continue}n||(n=new Ye,r.setTextGuideLine(n),!h&&(s||!o)&&om(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),om(n,!1,u,f)}}if(n){q(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=XO}}function ZO(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<Ue.length;n++){var i=Ue[n];e[i]=r.getModel([i,t])}return e}function qO(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Vl(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function KO(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(A,C){return A.rect[t]-C.rect[t]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var v=r[h],c=v.rect;l=c[t]-s,l<0&&(c[t]-=l,v.label[t]-=l,u=!0);var d=Math.max(-l,0);f+=d,s=c[t]+c[e]}f>0&&a&&b(-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&&T(-y),m<0&&T(m);function _(){y=p.rect[t]-n,m=i-g.rect[t]-g.rect[e]}function S(A,C,M){if(A<0){var D=Math.min(C,-A);if(D>0){b(D*M,0,o);var I=D+A;I<0&&x(-I*M,1)}else x(-A*M,1)}}function b(A,C,M){A!==0&&(u=!0);for(var D=C;D<M;D++){var I=r[D],L=I.rect;L[t]+=A,I.label[t]+=A}}function x(A,C){for(var M=[],D=0,I=1;I<o;I++){var L=r[I-1].rect,R=Math.max(r[I].rect[t]-L[t]-L[e],0);M.push(R),D+=R}if(D){var k=Math.min(Math.abs(A)/D,C);if(A>0)for(var I=0;I<o-1;I++){var O=M[I]*k;b(O,0,I+1)}else for(var I=o-1;I>0;I--){var O=M[I-1]*k;b(-O,I,o)}}}function T(A){var C=A<0?-1:1;A=Math.abs(A);for(var M=Math.ceil(A/(o-1)),D=0;D<o-1;D++)if(C>0?b(M,0,D+1):b(-M,o-D-1,o),A-=M,A<=0)return}return u}function QO(r,t,e,n){return KO(r,"y","height",t,e,n)}function JO(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new pt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,v=!1,c=0;c<t.length;c++){var d=t[c];if(e.intersect(d.rect)){if(o&&d.axisAligned){v=!0;break}if(d.obb||(d.obb=new Vl(d.localRect,d.transform)),h||(h=new Vl(s,l)),h.intersect(d.obb)){v=!0;break}}}v?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}const sm=Object.freeze(Object.defineProperty({__proto__:null,Axis:fr,ChartView:te,ComponentModel:ct,ComponentView:It,List:Xu,Model:Mt,PRIORITY:db,SeriesModel:Ce,color:OD,connect:nk,dataTool:fk,dependencies:FE,disConnect:bb,disconnect:ik,dispose:ak,env:vt,extendChartView:WO,extendComponentModel:VO,extendComponentView:GO,extendSeriesModel:HO,format:DO,getCoordinateSystemDimensions:sk,getInstanceByDom:wd,getInstanceById:ok,getMap:uk,graphic:MO,helper:mO,init:rk,innerDrawElementOnCanvas:ab,matrix:aD,number:AO,parseGeoJSON:zc,parseGeoJson:zc,registerAction:ur,registerCoordinateSystem:Ab,registerLayout:Cb,registerLoading:Dd,registerLocale:td,registerMap:Mb,registerPostInit:wb,registerPostUpdate:Tb,registerPreprocessor:Ad,registerProcessor:Cd,registerTheme:Td,registerTransform:Db,registerUpdateLifecycle:Yu,registerVisual:En,setCanvasCreator:lk,setPlatformAPI:u1,throttle:Hu,time:CO,use:Xt,util:IO,vector:HM,version:zE,zrUtil:EM,zrender:S2},Symbol.toStringTag,{value:"Module"}));var jO=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){return $u(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new at,i=re("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=re(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},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}(Ce);const tB=jO;function Ju(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=da(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(da(r,t,e[o]));return a.join(" ")}}function uw(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var eB=function(r){E(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=re(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=rB,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(){ha(this.childAt(0))},t.prototype.downplay=function(){ca(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,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):kt(v,c,s,n),No(v)}if(this._updateCommon(e,n,l,i,a),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,ue(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,v,c,d,p,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=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=Qr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Wu(e.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),T=x.fill;if(s instanceof ce){var A=s.style;s.useStyle(B({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Kr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:T,defaultOpacity:x.opacity});function I(k){return D?e.getName(k):Ju(e,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var R=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*R,L.scaleY=this._sizeY*R,this.setSymbolScale(1),Cn(this,v,c,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ut(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Bo(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Bo(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return md(e.getItemVisual(n,"symbolSize"))},t}(at);function rB(r,t){this.parent.drift(r,t)}const Nd=eB;function vh(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function lm(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function um(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:Qr(t),cursorStyle:t.get("cursor")}}var nB=function(){function r(t){this.group=new at,this._SymbolCtor=t||Nd}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=lm(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=um(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var v=f(h);if(vh(t,v,h,e)){var c=new o(t,h,l,u);c.setPosition(v),t.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!vh(t,d,h,e)){n.remove(c);return}var p=t.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==p)n.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):kt(c,y,i)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=um(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=lm(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(vh(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Lu(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r}();const iB=nB;function fw(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=aB(i,e),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=V(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,c=t.getCalculationInfo("stackResultDimension");return Dn(t,h[0])&&(v=!0,h[0]=c),Dn(t,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function aB(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:xt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function hw(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function oB(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function sB(r,t,e,n,i,a,o,s){for(var l=oB(r,t),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=fw(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,T=void 0;switch(S.cmd){case"=":x=S.idx*2,T=S.idx1*2;var A=y[x],C=y[x+1],M=m[T],D=m[T+1];(isNaN(A)||isNaN(C))&&(A=M,C=D),u.push(A,C),f.push(M,D),h.push(e[x],e[x+1]),v.push(n[T],n[T+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,R=i.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);T=I*2,u.push(R[0],R[1]),f.push(m[T],m[T+1]);var k=hw(g,i,t,I);h.push(k[0],k[1]),v.push(n[T],n[T+1]),p.push(t.getRawIndex(I));break;case"-":b=!1}b&&(c.push(S),d.push(d.length))}d.sort(function(Ot,wt){return p[Ot]-p[wt]});for(var O=u.length,U=Fr(O),N=Fr(O),H=Fr(O),$=Fr(O),rt=[],_=0;_<d.length;_++){var J=d[_],ft=_*2,gt=J*2;U[ft]=u[gt],U[ft+1]=u[gt+1],N[ft]=f[gt],N[ft+1]=f[gt+1],H[ft]=h[gt],H[ft+1]=h[gt+1],$[ft]=v[gt],$[ft+1]=v[gt+1],rt[_]=c[J]}return{current:U,next:N,stackedOnCurrent:H,stackedOnNext:$,status:rt}}var on=Math.min,sn=Math.max;function xi(r,t){return isNaN(r)||isNaN(t)}function Fc(r,t,e,n,i,a,o,s,l){for(var u,f,h,v,c,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=i||p<0)break;if(xi(y,m)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var b=p+a,x=t[b*2],T=t[b*2+1];x===y&&T===m&&g<n;)g++,b+=a,p+=a,x=t[b*2],T=t[b*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var A=g+1;if(l)for(;xi(x,T)&&A<n;)A++,b+=a,x=t[b*2],T=t[b*2+1];var C=.5,M=0,D=0,I=void 0,L=void 0;if(A>=n||xi(x,T))c=y,d=m;else{M=x-u,D=T-f;var R=y-u,k=x-y,O=m-f,U=T-m,N=void 0,H=void 0;if(s==="x"){N=Math.abs(R),H=Math.abs(k);var $=M>0?1:-1;c=y-$*N*o,d=m,I=y+$*H*o,L=m}else if(s==="y"){N=Math.abs(O),H=Math.abs(U);var rt=D>0?1:-1;c=y,d=m-rt*N*o,I=y,L=m+rt*H*o}else N=Math.sqrt(R*R+O*O),H=Math.sqrt(k*k+U*U),C=H/(H+N),c=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=on(I,sn(x,y)),L=on(L,sn(T,m)),I=sn(I,on(x,y)),L=sn(L,on(T,m)),M=I-y,D=L-m,c=y-M*N/H,d=m-D*N/H,c=on(c,sn(u,y)),d=on(d,sn(f,m)),c=sn(c,on(u,y)),d=sn(d,on(f,m)),M=y-c,D=m-d,I=y+M*H/N,L=m+D*H/N}r.bezierCurveTo(h,v,c,d,y,m),h=I,v=L}else r.lineTo(y,m)}u=y,f=m,p+=a}return g}var cw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),lB=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cw},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&xi(i[o*2-2],i[o*2-1]);o--);for(;a<o&&xi(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Fc(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Xr.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],d=a[h++],_=u?(e-s)/(c-s):(e-l)/(d-l),_<=1&&_>=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=a[h++],d=a[h++],p=a[h++],g=a[h++],y=a[h++],m=a[h++];var b=u?Rl(s,c,p,y,e,f):Rl(l,d,g,m,e,f);if(b>0)for(var x=0;x<b;x++){var T=f[x];if(T<=1&&T>=0){var S=u?zt(l,d,g,m,T):zt(s,c,p,y,T);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(_t),uB=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(cw),fB=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new uB},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&xi(i[s*2-2],i[s*2-1]);s--);for(;o<s&&xi(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Fc(e,i,o,s,s,1,n.smooth,l,n.connectNulls);Fc(e,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(_t);function vw(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var h=new yt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var p=K(i)?function(g){i(g,h)}:null;ue(h,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return h}function dw(r,t,e){var n=r.getArea(),i=Et(n.r0,1),a=Et(n.r,1),o=new Dr({shape:{cx:Et(r.cx,1),cy:Et(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,ue(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function hB(r,t,e,n,i){if(r){if(r.type==="polar")return dw(r,t,e);if(r.type==="cartesian2d")return vw(r,t,e,n,i)}else return null;return null}function zd(r,t){return r.type===t}function fm(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function hm(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function cm(r,t){var e=hm(r),n=e[0],i=e[1],a=hm(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function vm(r){return xt(r)?r:r?.5:0}function cB(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=Fr(n*2),a=0;a<n;a++){var o=hw(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function ln(r,t,e,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],h=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&h.push(r[s],r[s+1]);r=h}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),e){case"end":l[a]=f[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var v=(u[a]+f[a])/2,c=[];l[a]=c[a]=v,l[1-a]=u[1-a],c[1-a]=f[1-a],o.push(l[0],l[1]),o.push(c[0],c[1]);break;default:l[a]=u[a],l[1-a]=f[1-a],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function vB(r,t){var e=[],n=r.length,i,a;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),p=Cv(d,[f.color,h.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){a?e.push(o(a,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),a=l}return e}function dB(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=V(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=vB(u,i==="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";w(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 os(0,0,0,0,v,!0);return m[i]=p,m[i+"2"]=g,m}}}function pB(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&gB(a,t))){var o=t.mapDimension(a.dim),s={};return w(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function gB(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Nd.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function yB(r,t){return isNaN(r)||isNaN(t)}function mB(r){for(var t=r.length/2;t>0&&yB(r[t*2-2],r[t*2-1]);t--);return t-1}function dm(r,t){return[r[t*2],r[t*2+1]]}function _B(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function pw(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Ue.length;t++)if(r.get([Ue[t],"endLabel","show"]))return!0;return!1}function dh(r,t,e,n){if(zd(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=pw(n)?function(c,d){r._endLabelOnDuring(c,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=vw(t,e,n,function(){var c=r._endLabel;c&&e&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return dw(t,e,n)}function SB(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var xB=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new at,n=new iB;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e},t.prototype.render=function(e,n,i){var a=this,o=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),f=e.getModel("areaStyle"),h=l.getLayout("points")||[],v=o.type==="polar",c=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&e.isAnimationEnabled(),_=!f.isEmpty(),S=f.get("origin"),b=fw(o,l,S),x=_&&cB(o,l,b),T=e.get("showSymbol"),A=e.get("connectNulls"),C=T&&!v&&pB(e,l,o),M=this._data;M&&M.eachItemGraphicEl(function(wt,Zt){wt.__temp&&(s.remove(wt),M.setItemGraphicEl(Zt,null))}),T||d.remove(),s.add(y);var D=v?!1:e.get("step"),I;o&&o.getArea&&e.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=dB(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&c.type===o.type&&D===this._step))T&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(wt){return[h[wt*2],h[wt*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,I),D&&(h=ln(h,o,D,A),x&&(x=ln(x,o,D,A))),p=this._newPolyline(h),_?g=this._newPolygon(h,x):g&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Ci(L)),y.setClipPath(dh(this,o,!0,e));else{_&&!g?g=this._newPolygon(h,x):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(e,o,Ci(L));var R=y.getClipPath();if(R){var k=dh(this,o,!1,e);ue(R,{shape:k.shape},e)}else y.setClipPath(dh(this,o,!0,e));T&&d.updateData(l,{isIgnore:C,clipShape:I,disableAnimation:!0,getSymbolPoint:function(wt){return[h[wt*2],h[wt*2+1]]}}),(!fm(this._stackedOnPoints,x)||!fm(this._points,h))&&(m?this._doUpdateAnimation(l,x,o,i,D,S,A):(D&&(h=ln(h,o,D,A),x&&(x=ln(x,o,D,A))),p.setShape({points:h}),g&&g.setShape({points:h,stackedOnPoints:x})))}var O=e.getModel("emphasis"),U=O.get("focus"),N=O.get("blurScope"),H=O.get("disabled");if(p.useStyle(q(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),va(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var $=p.getState("emphasis").style;$.lineWidth=+p.style.lineWidth+1}ut(p).seriesIndex=e.seriesIndex,Cn(p,U,N,H);var rt=vm(e.get("smooth")),J=e.get("smoothMonotone");if(p.setShape({smooth:rt,smoothMonotone:J,connectNulls:A}),g){var ft=l.getCalculationInfo("stackedOnSeries"),gt=0;g.useStyle(q(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ft&&(gt=vm(ft.get("smooth"))),g.setShape({smooth:rt,stackedOnSmooth:gt,smoothMonotone:J,connectNulls:A}),va(g,e,"areaStyle"),ut(g).seriesIndex=e.seriesIndex,Cn(g,U,N,H)}var Ot=function(wt){a._changePolyState(wt)};l.eachItemGraphicEl(function(wt){wt&&(wt.onHoverStateChange=Ot)}),this._polyline.onHoverStateChange=Ot,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,p),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,n){ut(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Ai(o,a);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")||0,c=e.get("z")||0;u=new Nd(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 te.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Ai(o,a);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 te.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;gc(this._polyline,e),n&&gc(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new lB({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new fB({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=K(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(i)if(o){var S=i,b=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=i;a?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var T=m===y?0:(_-y)/(m-y);l&&(T=1-T);var A=K(h)?h(d):f*T+v,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(pw(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 mt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=mB(l);f>=0&&(Kr(s,Qr(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?uw(o,c):Ju(o,h)},enableTextSetter:!0},SB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),T=y?"x":"y",A=_B(h,S,T),C=A.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var I=dm(h,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=v.getRawValue(C[0]))}else{var I=f.getPointOn(S,T);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=v.getRawValue(C[0]),R=v.getRawValue(C[1]);o&&(D=H2(i,d,L,R,A.t))}a.lastFrameIndex=C[0]}else{var k=e===1||a.lastFrameIndex>0?C[0]:0,I=dm(h,k);o&&(D=v.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}o&&Eu(u).setLabelText(D)}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=sB(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(c=ln(v.current,i,o,l),d=ln(v.stackedOnCurrent,i,o,l),p=ln(v.next,i,o,l),g=ln(v.stackedOnNext,i,o,l)),cm(c,p)>3e3||f&&cm(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(),kt(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),kt(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 b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,A=0;A<m.length;A++){var C=m[A].el,M=m[A].ptIdx*2;C.x=T[M],C.y=T[M+1],C.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(te);const bB=xB;function wB(r,t){return{seriesType:r,plan:gd(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(i){var s=V(i.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Dn(n,s[0])&&(s[0]=u),Dn(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(c,d){for(var p=c.end-c.start,g=o&&Fr(p*l),y=[],m=[],_=c.start,S=0;_<c.end;_++){var b=void 0;if(l===1){var x=f.get(h,_);b=i.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(v,_),b=i.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",g)}}}}}}var TB={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},AB=function(r){return Math.round(r.length/2)};function gw(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c));var d=void 0;G(a)?d=TB[a]:K(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,AB))}}}}}function CB(r){r.registerChartView(bB),r.registerSeriesModel(tB),r.registerLayout(wB("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gw("line"))}var yw=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,n){return $u(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)w(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=o[c],g=n[c]==="x1"||n[c]==="y1";if(g&&(p+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,S=0;S<d.length;S++){var b=d[S].coord,x=S===d.length-1?d[S-1].tickValue+_:d[S].tickValue;if(x===p){m=b;break}else if(x<p)y=b;else if(y!=null&&x>p){m=(b+y)/2;break}S===1&&(_=x-d[0].tickValue)}m==null&&(y?y&&(m=d[d.length-1].coord):m=d[0].coord),s[c]=v.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ce);Ce.registerClass(yw);const nu=yw;var MB=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 $u(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"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Rn(nu.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}(nu);const DB=MB;var IB=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}(),LB=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new IB},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(p*o+i,g*o+a),e.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!v)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,h,!v),e.arc(y*u+i,m*u+a,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&e.arc(i,a,o,h,f,v)},t}(_t);const pm=LB;function PB(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Bl(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,d=(v+c)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,b=f+v*_(p),x=h+v*S(p),T="left",A="top";switch(s){case"startArc":b=f+(c-l)*_(y),x=h+(c-l)*S(y),T="center",A="top";break;case"insideStartArc":b=f+(c+l)*_(y),x=h+(c+l)*S(y),T="center",A="bottom";break;case"startAngle":b=f+d*_(p)+qs(p,l+m,!1),x=h+d*S(p)+Ks(p,l+m,!1),T="right",A="middle";break;case"insideStartAngle":b=f+d*_(p)+qs(p,-l+m,!1),x=h+d*S(p)+Ks(p,-l+m,!1),T="left",A="middle";break;case"middle":b=f+d*_(y),x=h+d*S(y),T="center",A="middle";break;case"endArc":b=f+(v+l)*_(y),x=h+(v+l)*S(y),T="center",A="bottom";break;case"insideEndArc":b=f+(v-l)*_(y),x=h+(v-l)*S(y),T="center",A="top";break;case"endAngle":b=f+d*_(g)+qs(g,l+m,!0),x=h+d*S(g)+Ks(g,l+m,!0),T="left",A="middle";break;case"insideEndAngle":b=f+d*_(g)+qs(g,-l+m,!0),x=h+d*S(g)+Ks(g,-l+m,!0),T="right",A="middle";break;default:return Bl(n,i,a)}return n=n||{},n.x=b,n.y=x,n.align=T,n.verticalAlign=A,n}}function RB(r,t,e,n){if(xt(n)){r.setTextConfig({rotation:n});return}else if(F(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function qs(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Ks(r,t,e){return t*Math.cos(r)*(e?1:-1)}function uo(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;F(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:V(n,function(a){return ar(a,i)})}}var ph=Math.max,gh=Math.min;function EB(r,t){var e=r.getArea&&r.getArea();if(zd(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var kB=function(r){E(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){Lu(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=e.isAnimationEnabled()?e:null,c=OB(e,u);c&&this._enableRealtimeSort(c,s,i);var d=e.get("clip",!0)||c,p=EB(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function A(D){var I=Qs[u.type](s,D),L=HB(u,h,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=Qs[u.type](s,D,I);if(y&&A(D),!(!s.hasValue(D)||!Sm[u.type](L))){var R=!1;d&&(R=gm[u.type](p,L));var k=ym[u.type](e,s,D,L,h,v,f.model,!1,g);c&&(k.forceLabelAnimation=!0),xm(k,s,D,I,L,e,h,u.type==="polar"),x?k.attr({shape:L}):c?mm(c,v,k,L,D,h,!1,!1):ue(k,{shape:L},e,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=R}}).update(function(D,I){var L=s.getItemModel(D),R=Qs[u.type](s,D,L);if(y){var k=void 0;b.length===0?k=A(I):(k=b[I],k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),S[D]=k);var O=Qs[u.type](s,D),U=_w(h,O,u);kt(k,{shape:U},v,D)}var N=l.getItemGraphicEl(I);if(!s.hasValue(D)||!Sm[u.type](R)){o.remove(N);return}var H=!1;if(d&&(H=gm[u.type](p,R),H&&o.remove(N)),N?No(N):N=ym[u.type](e,s,D,R,h,v,f.model,!!N,g),c&&(N.forceLabelAnimation=!0),T){var $=N.getTextContent();if($){var rt=Eu($);rt.prevValue!=null&&(rt.prevValue=rt.value)}}else xm(N,s,D,L,R,e,h,u.type==="polar");x?N.attr({shape:R}):c?mm(c,v,N,R,D,h,!0,T):kt(N,{shape:R},e,D,null),s.setItemGraphicEl(D,N),N.ignore=H,o.add(N)}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Gl(I,e,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new at);C.removeAll();for(var M=0;M<S.length;++M)C.add(S[M]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),wm(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),wm(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&hB(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:V(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Gl(a,e,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(te),gm={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=ph(t.x,r.x),s=gh(t.x+t.width,i),l=ph(t.y,r.y),u=gh(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<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 n=t.r;t.r=t.r0,t.r0=n}var i=gh(t.r,r.r),a=ph(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},ym={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new yt({shape:B({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?pm:Dr,f=new u({shape:n,z2:1});f.name="item";var h=mw(i);if(f.calculateTextPosition=PB(h,{isRoundCap:u===pm}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?kt:ue)(f,{shape:d},a)}return f}};function OB(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function mm(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?kt:ue)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?kt:ue)(e,{shape:u},f,i)}function _m(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var BB=["x","y","width","height"],NB=["cx","cy","r","startAngle","endAngle"],Sm={cartesian2d:function(r){return!_m(r,BB)},polar:function(r){return!_m(r,NB)}},Qs={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?FB(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function zB(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function mw(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function xm(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=uo(n.getModel("itemStyle"),f,!0);B(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Qr(n);Kr(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Ju(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,RB(r,g==="outside"?c:g,mw(o),n.get(["label","rotate"]))}ZL(p,d,a.getRawValue(e),function(m){return uw(t,m)});var y=n.getModel(["emphasis"]);Cn(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),va(r,n),zB(i)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function FB(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var VB=function(){function r(){}return r}(),bm=function(r){E(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new VB},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(_t);function wm(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new bm({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new bm({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),ut(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",Tm),h.on("mousemove",Tm)),e&&e.push(h)}var Tm=Hu(function(r){var t=this,e=GB(t,r.offsetX,r.offsetY);ut(t).dataIndex=e>=0?e:null},30,!1);function GB(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function _w(r,t,e){if(zd(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function HB(r,t,e){var n=r.type==="polar"?Dr:yt;return new n({shape:_w(t,e,r),silent:!0,z2:0})}const WB=kB;function UB(r){r.registerChartView(WB),r.registerSeriesModel(DB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,dt(Wb,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ub("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,gw("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Js=Math.PI*2,Am=Math.PI/180;function Sw(r,t){return he(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xw(r,t){var e=Sw(r,t),n=r.get("center"),i=r.get("radius");F(i)||(i=[0,i]);var a=j(e.width,t.getWidth()),o=j(e.height,t.getHeight()),s=Math.min(a,o),l=j(i[0],s/2),u=j(i[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(n);f=c[0]||0,h=c[1]||0}else F(n)||(n=[n,n]),f=j(n[0],a)+e.x,h=j(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function YB(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Sw(n,e),s=xw(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*Am,c=n.get("minAngle")*Am,d=0;i.each(a,function(M){!isNaN(M)&&d++});var p=i.getSum(a),g=Math.PI/(p||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var b=Js,x=0,T=v,A=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(M,D){var I;if(isNaN(M)){i.setItemLayout(D,{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:M*g:I=Js/d,I<c?(I=c,b-=c):x+=M;var L=T+A*I;i.setItemLayout(D,{angle:I,startAngle:T,endAngle:L,clockwise:y,cx:l,cy:u,r0:h,r:m?Tt(M,S,[h,f]):f}),T=L}),b<Js&&d)if(b<=.001){var C=Js/d;i.each(a,function(M,D){if(!isNaN(M)){var I=i.getItemLayout(D);I.angle=C,I.startAngle=v+A*D*C,I.endAngle=v+A*(D+1)*C}})}else g=b/x,T=v,i.each(a,function(M,D){if(!isNaN(M)){var I=i.getItemLayout(D),L=I.angle===c?c:M*g;I.startAngle=T,I.endAngle=T+A*L,T+=A*L}})})}function bw(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var XB=Math.PI/180;function Cm(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),b=n+_.len,x=b*b,T=Math.sqrt((1-Math.abs(S*S/y))*x),A=t+(T+_.len2)*i,C=A-_.label.x,M=_.targetTextWidth-C*i;ww(_,M,!0),_.label.x=A}}function h(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*i,T=n+_.len,A=Math.abs(x)<T?Math.sqrt(b*b/(1-x*x/T/T)):T;S.rB=A,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var v=r.length,c=0;c<v;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var d=r[c].label.x-u;r[c].linePoints[1][0]+=d,r[c].label.x=u}QO(r,l,l+o)&&h(r)}function $B(r,t,e,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var c=r[v].label;yh(r[v])||(c.x<t?(f=Math.min(f,c.x),l.push(r[v])):(h=Math.max(h,c.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var d=r[v];if(!yh(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var c=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?c.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<t?g=f-o-d.bleedMargin:g=o+i-h-d.bleedMargin:c.x<t?g=c.x-o-d.bleedMargin:g=o+i-c.x-d.bleedMargin,d.targetTextWidth=g,ww(d,g)}}Cm(u,t,e,n,1,i,a,o,s,h),Cm(l,t,e,n,-1,i,a,o,s,f);for(var v=0;v<r.length;v++){var d=r[v];if(!yh(d)&&d.linePoints){var c=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=c.style.padding,_=m?m[1]+m[3]:0,S=c.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?c.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+i-d.edgeDistance-b-d.labelDistance:(c.x<t?p[2][0]=c.x+d.labelDistance:p[2][0]=c.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=c.y}}}function ww(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=t-l,d=t<f?c:e?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-h)/2}}}function yh(r){return r.position==="center"}function ZB(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*XB,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 T in x.states)if(x.states[T].ignore===!1)return!0;return!1}t.each(function(x){var T=t.getItemGraphicEl(x),A=T.shape,C=T.getTextContent(),M=T.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),R=I.get("distanceToLabelLine"),k=I.get("alignTo"),O=j(I.get("edgeDistance"),u),U=I.get("bleedMargin"),N=D.getModel("labelLine"),H=N.get("length");H=j(H,u);var $=N.get("length2");if($=j($,u),Math.abs(A.endAngle-A.startAngle)<o){w(C.states,c),C.ignore=!0,M&&(w(M.states,c),M.ignore=!0);return}if(d(C)){var rt=(A.startAngle+A.endAngle)/2,J=Math.cos(rt),ft=Math.sin(rt),gt,Ot,wt,Zt;n=A.cx,i=A.cy;var Gt=L==="inside"||L==="inner";if(L==="center")gt=A.cx,Ot=A.cy,Zt="center";else{var Lt=(Gt?(A.r+A.r0)/2*J:A.r*J)+n,At=(Gt?(A.r+A.r0)/2*ft:A.r*ft)+i;if(gt=Lt+J*3,Ot=At+ft*3,!Gt){var Q=Lt+J*(H+l-A.r),ht=At+ft*(H+l-A.r),ve=Q+(J<0?-1:1)*$,Pt=ht;k==="edge"?gt=J<0?f+O:f+u-O:gt=ve+(J<0?-R:R),Ot=Pt,wt=[[Lt,At],[Q,ht],[ve,Pt]]}Zt=Gt?"center":k==="edge"?J>0?"right":"left":J>0?"left":"right"}var Ze=Math.PI,de=0,Pr=I.get("rotate");if(xt(Pr))de=Pr*(Ze/180);else if(L==="center")de=0;else if(Pr==="radial"||Pr===!0){var Ri=J<0?-rt+Ze:-rt;de=Ri}else if(Pr==="tangential"&&L!=="outside"&&L!=="outer"){var qe=Math.atan2(J,ft);qe<0&&(qe=Ze*2+qe);var cs=ft>0;cs&&(qe=Ze+qe),de=qe-Ze}if(a=!!de,C.x=gt,C.y=Ot,C.rotation=de,C.setStyle({verticalAlign:"middle"}),Gt){C.setStyle({align:Zt});var nf=C.states.select;nf&&(nf.x+=C.x,nf.y+=C.y)}else{var jr=C.getBoundingRect().clone();jr.applyTransform(C.getComputedTransform());var vp=(C.style.margin||0)+2.1;jr.y-=vp/2,jr.height+=vp,e.push({label:C,labelLine:M,position:L,len:H,len2:$,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new nt(J,ft),linePoints:wt,textAlign:Zt,labelDistance:R,labelAlignTo:k,edgeDistance:O,bleedMargin:U,rect:jr,unconstrainedWidth:jr.width,labelStyleWidth:C.style.width})}T.setTextConfig({inside:Gt})}}),!a&&r.get("avoidLabelOverlap")&&$B(e,n,i,l,u,v,f,h);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(w(y.states,c),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(w(m.states,c),m.ignore=!0):(UO(b,g.minTurnAngle),YO(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new nt(b[0][0],b[0][1])})}}}var qB=function(r){E(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new mt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=B(uo(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(ue(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,ue(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),ue(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,kt(o,{shape:{endAngle:f.endAngle}},s,n))}else No(o),kt(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),va(o,l);var c=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(c)*d,g=Math.sin(c)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=B({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},uo(u.getModel("itemStyle"),f)),B(o.ensureState("select"),{x:p,y:g,shape:uo(l.getModel(["select","itemStyle"]),f)}),B(o.ensureState("blur"),{shape:uo(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:p,y:g}),B(_.ensureState("select"),{x:p,y:g}),Cn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Kr(a,Qr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=e.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Ye,this.setTextGuideLine(c)),$O(this,ZO(o),{stroke:u,opacity:na(s.get(["lineStyle","opacity"]),f,1)})}},t}(Dr),KB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=new Dr({shape:xw(e,i)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(c){var d=new qB(o,c,u);o.setItemGraphicEl(c,d),l.add(d)}).update(function(c,d){var p=s.getItemGraphicEl(d);p.updateData(o,c,u),p.off("click"),l.add(p),o.setItemGraphicEl(c,p)}).remove(function(c){var d=s.getItemGraphicEl(c);Gl(d,e,c)}).execute(),ZB(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(te);const QB=KB;function Fd(r,t,e){t=F(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Ld(n,t).dimensions,a=new Xu(i,r);return a.initData(n,e),a}var JB=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 n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const Tw=JB;var jB=bt(),t5=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 Tw(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Fd(this,{coordDimensions:["value"],encodeDefaulter:dt(_x,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=jB(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=j1(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Nl(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.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}(Ce);const e5=t5;function r5(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(xt(o)&&!isNaN(o)&&o<0)})}}}function n5(r){r.registerChartView(QB),r.registerSeriesModel(e5),rb("pie",r.registerAction),r.registerLayout(dt(YB,"pie")),r.registerProcessor(bw("pie")),r.registerProcessor(r5("pie"))}var i5=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}(ct);const a5=i5;var Vc=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ft).models[0]},t.type="cartesian2dAxis",t}(ct);$t(Vc,fs);var Aw={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)"]}}},o5=et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Aw),Vd=et({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}}},Aw),s5=et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vd),l5=q({logBase:10},Vd);const Cw={category:o5,value:Vd,time:s5,log:l5};var u5={value:1,category:1,time:1,log:1};function $o(r,t,e,n){w(u5,function(i,a){var o=et(et({},Cw[a],!0),n,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Go(this),c=v?Ca(f):{},d=h.getTheme();et(f,d.get(a+"Axis")),et(f,this.getDefaultOption()),f.type=Mm(f),v&&Mn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Bc.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."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Mm)}function Mm(r){return r.type||(r.data?"category":"value")}var f5=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 V(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ct(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}();const h5=f5;var Gc=["x","y"];function Dm(r){return r.type==="interval"||r.type==="time"}var c5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Gc,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Dm(e)||!Dm(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=Sa([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new pt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Wt(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return Wt(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new pt(i,a,o,s)},t}(h5),v5=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(fr);const d5=v5;function Hc(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.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])}a.position=[u==="y"?d[v[l]]:h[0],u==="x"?d[v[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[v[s]]-d[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Hr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function Im(r){return r.get("coordinateSystem")==="cartesian2d"}function Lm(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ft).models[0];t[n]=a}),t}var mh=Math.log;function Mw(r,t,e){var n=In.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=Qb(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=mh(r.base);u=[mh(u[0])/v,mh(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var d=n.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;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=fh(d),g=u[0]+d*o;else if(h)for(p=u[1]-d*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=fh(d),p=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=fh(d));var m=d*o;g=Math.ceil(u[1]/d)*d,p=Et(g-m),p<0&&u[0]>=0?(p=0,g=Et(m)):g>0&&u[1]<=0&&(g=0,p=-Et(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var p5=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Gc,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=st(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;Nc(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(pa(p,d),Nc(p)&&(s=c))}f.length&&(s||(s=f.pop(),pa(s.scale,s.model)),w(f,function(g){Mw(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};w(n.x,function(o){Pm(n,"y",o,a)}),w(n.y,function(o){Pm(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=he(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(w(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=fO(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()),w(this._coordsList,function(u){u.calcAffineTransform()});function l(){w(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]),g5(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}X(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ft).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ft).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,lt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,h){w(s.y,function(v,c){var d="x"+h+"y"+c,p=new c5(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(v)})});function u(f){return function(h,v){if(_h(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new d5(f,Qu(h),[0,0],h.get("type"),c),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(Im(i)){var a=Lm(i),o=a.xAxisModel,s=a.yAxisModel;if(!_h(o,e)||!_h(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){w(eu(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return w(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);lt(e,a)<0&&e.push(a),lt(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(Im(i)){var a=Lm(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Gc,r}();function _h(r,t){return r.getCoordSysModel()===t}function Pm(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Rm(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&Rm(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Rm(r){return r&&r.type!=="category"&&r.type!=="time"&&uO(r)}function g5(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const y5=p5;var yn=Math.PI,bi=function(){function r(t,e){this.group=new at,this.opt=e,this.axisModel=t,q(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new at({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!Em[t]},r.prototype.add=function(t){Em[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=Pv(e-t),a,o;return Ro(i)?(o=n>0?"top":"bottom",a="center"):Ro(i-yn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<yn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,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}(),Em={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Wt(s,s,o),Wt(l,l,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new se({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});zo(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var v=t.get(["axisLine","symbol"]);if(v!=null){var c=t.get(["axisLine","symbolSize"]);G(v)&&(v=[v,v]),(G(c)||xt(c))&&(c=[c,c]);var d=Wu(t.get(["axisLine","symbolOffset"])||0,c),p=c[0],g=c[1];w([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=re(v[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=S5(e,n,t,r),a=b5(e,n,t,r);if(_5(t,a,i),x5(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=qO(V(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));JO(o)}},axisName:function(r,t,e,n){var i=Hr(r.axisName,t.get("name"));if(i){var a=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=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,Om(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*yn/180);var d;Om(a)?v=bi.innerTextLayout(r.rotation,c??r.rotation,o):(v=m5(r.rotation,a,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=Hr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new mt({x:h[0],y:h[1],rotation:v.rotation,silent:bi.isLabelSilent(t),style:Nt(s,{text:i,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(wa({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=bi.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ut(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function m5(r,t,e,n){var i=Pv(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Ro(i-yn/2)?(o=l?"bottom":"top",a="center"):Ro(i-yn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<yn*1.5&&i>yn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _5(r,t,e){if(!Jb(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=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];n===!1?(De(a),De(u)):km(a,o)&&(n?(De(o),De(f)):(De(a),De(u))),i===!1?(De(s),De(h)):km(l,s)&&(i?(De(l),De(v)):(De(s),De(h)))}}function De(r){r&&(r.ignore=!0)}function km(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=es([]);return Pn(i,i,-r.rotation),e.applyTransform(Ar([],i,r.getLocalTransform())),n.applyTransform(Ar([],i,t.getLocalTransform())),e.intersect(n)}}function Om(r){return r==="middle"||r==="center"}function Dw(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Wt(o,o,t),Wt(s,s,t));var f=new se({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});zo(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function S5(r,t,e,n){var i=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=Dw(u,t.transform,l,q(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function x5(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=q(s.getLineStyle(),q(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=Dw(o[f],t.transform,l,u,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}function b5(r,t,e,n){var i=e.axis,a=Hr(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Hr(n.labelRotate,o.get("rotate"))||0)*yn/180,f=bi.innerTextLayout(n.rotation,u,n.labelDirection),h=e.getCategories&&e.getCategories(!0),v=[],c=bi.isLabelSilent(e),d=e.get("triggerEvent");return w(l,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[y]){var b=h[y];X(b)&&b.textStyle&&(S=new Mt(b.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(y),A=new mt({x:T,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(p.level||0),style:Nt(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:K(x)?x(i.type==="category"?_:i.type==="value"?y+"":y,g):x})});if(A.anid="label_"+y,d){var C=bi.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=_,C.tickIndex=g,i.type==="category"&&(C.dataIndex=y),ut(A).eventData=C}t.add(A),A.updateTransform(),v.push(A),r.add(A),A.decomposeTransform()}),v}}const Ln=bi;function w5(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return T5(e,r,t),e.seriesInvolved&&C5(e,r),e}function T5(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zo(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(w(s.getAxes(),dt(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&w(d.baseAxes,dt(p,c?"cross":!0,v)),c&&w(d.otherAxes,dt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Wc(_))){y==null&&(y=_.get("triggerTooltip")),_=g?A5(m,h,i,t,g,y):_;var b=_.get("snap"),x=Zo(m.model),T=y||b||m.type==="category",A=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,involveSeries:T,snap:b,useHandle:Wc(_),seriesModels:[],linkGroup:null};u[x]=A,r.seriesInvolved=r.seriesInvolved||T;var C=M5(a,m);if(C!=null){var M=o[C]||(o[C]={axesInfo:{}});M.axesInfo[x]=A,M.mapper=a[C].mapper,A.linkGroup=M}}}})}function A5(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(v){l[v]=Z(o.get(v))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&q(u,h.textStyle)}}return r.model.getModel("axisPointer",new Mt(l,e,n))}function C5(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[Zo(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function M5(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(Sh(a[n+"AxisId"],e.id)||Sh(a[n+"AxisIndex"],e.componentIndex)||Sh(a[n+"AxisName"],e.name))return i}}function Sh(r,t){return r==="all"||F(r)&<(r,t)>=0||r===t}function D5(r){var t=Gd(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Wc(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Gd(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Zo(r)]}function I5(r){var t=Gd(r);return t&&t.axisPointerModel}function Wc(r){return!!r.get(["handle","show"])}function Zo(r){return r.type+"||"+r.id}var Bm={},L5=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,n,i,a){this.axisPointerClass&&D5(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=I5(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){Bm[e]=n},t.getAxisPointerClass=function(e){return e&&Bm[e]},t.type="axis",t}(It);const hs=L5;var Uc=bt();function P5(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Uc(r).splitAreaColors,v=Y(),c=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){c=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=F(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;i.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var T=u[d-1].tickValue;T!=null&&v.set(T,c),t.add(new yt({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:b,height:x},style:q({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}Uc(r).splitAreaColors=v}}}function R5(r){Uc(r).splitAreaColors=null}var E5=["axisLine","axisTickLabel","axisName"],k5=["splitArea","splitLine","minorSplitLine"],Iw=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Hc(s,e),u=new Ln(e,B({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(Nc(v[c].getOtherAxis(e.axis).scale))return!0;return!1}},l));w(E5,u.add,u),this._axisGroup.add(u.getGroup()),w(k5,function(h){e.get([h,"show"])&&O5[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Iu(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){R5(this)},t.type="cartesianAxis",t}(hs),O5={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=F(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=0,h=i.getTicksCoords({tickModel:a}),v=[],c=[],d=o.getLineStyle(),p=0;p<h.length;p++){var g=i.toGlobalCoord(h[p].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=f++%s.length,m=h[p].tickValue,_=new se({anid:m!=null?"line_"+h[p].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:q({stroke:s[y]},d),silent:!0});zo(_.shape,d.lineWidth),t.add(_)}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],h=[],v=o.getLineStyle(),c=0;c<u.length;c++)for(var d=0;d<u[c].length;d++){var p=i.toGlobalCoord(u[c][d].coord);l?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new se({anid:"minor_line_"+u[c][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});zo(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){P5(r,t,e,n)}},Lw=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="xAxis",t}(Iw),B5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Lw.type,e}return t.type="yAxis",t}(Iw),N5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new yt({shape:e.coordinateSystem.getRect(),style:q({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(It),Nm={offset:0};function z5(r){r.registerComponentView(N5),r.registerComponentModel(a5),r.registerCoordinateSystem("cartesian2d",y5),$o(r,"x",Vc,Nm),$o(r,"y",Vc,Nm),r.registerComponentView(Lw),r.registerComponentView(B5),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function F5(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();w(a,function(o,s){e.each(e.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=zm(f)?f:Fm(i)})}),e.each(function(o){var s=v1(n[o],function(l){return zm(l)})||Fm(i);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function zm(r){return!isNaN(r[0])&&!isNaN(r[1])}function Fm(r){return[r.cx,r.cy]}function V5(r){var t=r.polar;if(t){F(t)||(t=[t]);var e=[];w(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],F(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}w(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var G5=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,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(v,c){var d=v.getItemVisual(c,"symbol")||"circle";if(d!=="none"){var p=md(v.getItemVisual(c,"symbolSize")),g=re(d,-1,-1,2,2),y=v.getItemVisual(c,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,c,d,p,g,y){d.removeAll();for(var m=0;m<c.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),Pu[y?"initProps":"updateProps"](_,{x:c[m][0],y:c[m][1]},e,g)):_.setPosition(c[m]),d.add(_))}}function h(v){return V(v,function(c){return[a.cx,a.cy]})}s.diff(l).add(function(v){var c=s.getItemLayout(v);if(c){var d=new Ir,p=new Ye,g={shape:{points:c}};d.shape.points=h(c),p.shape.points=h(c),ue(d,g,e,v),ue(p,g,e,v);var y=new at,m=new at;y.add(p),y.add(d),y.add(m),f(p.shape.points,c,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,c){var d=l.getItemGraphicEl(c),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(v)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,v,!1),No(g),No(p),kt(p,m,e),kt(g,m,e),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,c){var d=s.getItemModel(c),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(c,"style"),_=m.fill;o.add(v),p.useStyle(q(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),va(p,d,"lineStyle"),va(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,w(["emphasis","select","blur"],function(A){var C=d.getModel([A,"areaStyle"]),M=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(A).ignore=M&&b}),g.useStyle(q(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis"),T=x.getModel("itemStyle").getItemStyle();y.eachChild(function(A){if(A instanceof ce){var C=A.style;A.useStyle(B({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else A.useStyle(m),A.setColor(_),A.style.strokeNoScale=!0;var M=A.ensureState("emphasis");M.style=Z(T);var D=s.getStore().get(s.getDimensionIndex(A.__dimIdx),c);(D==null||isNaN(D))&&(D=""),Kr(A,Qr(d),{labelFetcher:s.hostModel,labelDataIndex:c,labelDimIndex:A.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),Cn(v,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(te);const H5=G5;var W5=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),this.legendVisualProvider=new Tw(W(this.getData,this),W(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return Fd(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=Ux(this,e);return Mr("section",{header:u,sortBlocks:!0,blocks:V(s,function(h){var v=a.get(a.mapDimension(h.dim),e);return Mr("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(V(i.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Ce);const U5=W5;var Za=Cw.value;function js(r,t){return q({show:t},r)}var Y5=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(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),c=V(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=q({color:d.color},l));var g=et(Z(d),{boundaryGap:e,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:v},!1);if(G(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else K(f)&&(g.name=f(g.name,g));var m=new Mt(g,null,this.ecModel);return $t(m,fs.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:et({lineStyle:{color:"#bbb"}},Za.axisLine),axisLabel:js(Za.axisLabel,!1),axisTick:js(Za.axisTick,!1),splitLine:js(Za.splitLine,!0),splitArea:js(Za.splitArea,!0),indicator:[]},t}(ct);const X5=Y5;var $5=["axisLine","axisTickLabel","axisName"],Z5=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,n,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),a=V(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Ln(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});w(a,function(o){w($5,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=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=F(v)?v:[v],p=F(c)?c:[c],g=[],y=[];function m(k,O,U){var N=U%O.length;return k[N]=k[N]||[],N}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var T=m(g,d,x);g[T].push(new or({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var T=m(y,p,x);y[T].push(new as({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var A,C=V(i,function(k,O){var U=k.getTicksCoords();return A=A==null?U.length-1:Math.min(U.length-1,A),V(U,function(N){return n.coordToPoint(N.coord,O)})}),M=[],x=0;x<=A;x++){for(var D=[],I=0;I<i.length;I++)D.push(C[I][x]);if(D[0]&&D.push(D[0].slice()),f){var T=m(g,d,x);g[T].push(new Ye({shape:{points:D}}))}if(h&&M){var T=m(y,p,x-1);y[T].push(new Ir({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var L=l.getLineStyle(),R=u.getAreaStyle();w(y,function(k,O){this.group.add(Fe(k,{style:q({stroke:"none",fill:p[O%p.length]},R),silent:!0}))},this),w(g,function(k,O){this.group.add(Fe(k,{style:q({fill:"none",stroke:d[O%d.length]},L),silent:!0}))},this)},t.type="radar",t}(It);const q5=Z5;var K5=function(r){E(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(fr);const Q5=K5;var J5=function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=V(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new Q5(o,new In);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(a-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a)/2;this.cx=j(n[0],i),this.cy=j(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(G(s)||xt(s))&&(s=[0,s]),this.r0=j(s[0],o),this.r=j(s[1],o),w(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;w(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();w(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new In;o.setExtent(0,a),o.setInterval(1),w(n,function(s,l){Mw(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var a=new r(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();const j5=J5;function Pw(r){r.registerCoordinateSystem("radar",j5),r.registerComponentModel(X5),r.registerComponentView(q5),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function tN(r){Xt(Pw),r.registerChartView(H5),r.registerSeriesModel(U5),r.registerLayout(F5),r.registerProcessor(bw("radar")),r.registerPreprocessor(V5)}var Vm="\0_ec_interaction_mutex";function eN(r,t,e){var n=Hd(r);n[t]=e}function rN(r,t,e){var n=Hd(r),i=n[t];i===e&&(n[t]=null)}function Gm(r,t){return!!Hd(r)[t]}function Hd(r){return r[Vm]||(r[Vm]={})}ur({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ht);var nN=function(r){E(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=W(n._mousedownHandler,n),a=W(n._mousemoveHandler,n),o=W(n._mouseupHandler,n),s=W(n._mousewheelHandler,n),l=W(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=q(Z(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",i),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!xp(e)){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!wl("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Gm(this._zr,"globalPan"))){var n=e.offsetX,i=e.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Wr(e.event),Rw(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){xp(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var n=wl("zoomOnMouseWheel",e,this._opt),i=wl("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;xh(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);xh(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Gm(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;xh(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(sr);function xh(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Wr(n.event),Rw(r,t,e,n,i))}function Rw(r,t,e,n,i){i.isAvailableBehavior=W(wl,null,e,n),r.trigger(t,i)}function wl(r,t,e){var n=e[r];return!r||n&&(!G(n)||t.event[n+"Key"])}const Ew=nN;function iN(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function aN(r,t,e,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(e-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var oN={axisPointer:1,tooltip:1,brush:1};function kw(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!oN.hasOwnProperty(n.mainType)&&i&&i.model!==e}function Ow(r){if(G(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 bh,iu={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"},Hm=st(iu),au={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Wm=st(au),sN=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=Ow(t);this._defsUsePending=[];var i=new at;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),we(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;fN(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=ju(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=Nw(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var c=i;i=new at,i.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new yt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:a}},r.prototype._parseNode=function(t,e,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!a){var f=bh[s];if(f&&tt(bh,s)){l=f.call(this,t,e);var h=t.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var c=Um[s];if(c&&tt(Um,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,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new Oo({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ie(e,n),we(t,n,this._defsUsePending,!1,!1),lN(n,e);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){bh={g:function(t,e){var n=new at;return Ie(e,n),we(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new yt;return Ie(e,n),we(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(t,e){var n=new or;return Ie(e,n),we(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new se;return Ie(e,n),we(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(t,e){var n=new Tu;return Ie(e,n),we(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),i;n&&(i=$m(n));var a=new Ir({shape:{points:i||[]},silent:!0});return Ie(e,a),we(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var n=t.getAttribute("points"),i;n&&(i=$m(n));var a=new Ye({shape:{points:i||[]},silent:!0});return Ie(e,a),we(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var n=new ce;return Ie(e,n),we(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new at;return Ie(e,s),we(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new at;return Ie(e,s),we(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",i=BS(n);return Ie(e,i),we(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),Um={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new os(t,e,n,i);return Ym(r,a),Xm(r,a),a},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new Yv(t,e,n);return Ym(r,i),Xm(r,i),i}};function Ym(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Xm(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};Bw(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Ie(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),q(t.__inheritedStyle,r.__inheritedStyle))}function $m(r){for(var t=ju(r),e=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);e.push([i,a])}return e}function we(r,t,e,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(vN(r,t),Bw(r,o,s),n||dN(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=Zm(a,"fill",o.fill,e)),o.stroke!=null&&(a.style.stroke=Zm(a,"stroke",o.stroke,e)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=V(ju(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function lN(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),r.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var uN=/^url\(\s*#(.*?)\)/;function Zm(r,t,e,n){var i=e&&e.match(uN);if(i){var a=Ge(i[1]);n.push([r,t,a]);return}return e==="none"&&(e=null),e}function fN(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var hN=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ju(r){return r.match(hN)||[]}var cN=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,wh=Math.PI/180;function vN(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],i=null;e.replace(cN,function(h,v,c){return n.push(v,c),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=ju(o);switch(i=i||We(),s){case"translate":Ur(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Tv(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pn(i,i,-parseFloat(l[0])*wh);break;case"skewX":var u=Math.tan(parseFloat(l[0])*wh);Ar(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*wh);Ar(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var qm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Bw(r,t,e){var n=r.getAttribute("style");if(n){qm.lastIndex=0;for(var i;(i=qm.exec(n))!=null;){var a=i[1],o=tt(iu,a)?iu[a]:null;o&&(t[o]=i[2]);var s=tt(au,a)?au[a]:null;s&&(e[s]=i[2])}}}function dN(r,t,e){for(var n=0;n<Hm.length;n++){var i=Hm[n],a=r.getAttribute(i);a!=null&&(t[iu[i]]=a)}for(var n=0;n<Wm.length;n++){var i=Wm[n],a=r.getAttribute(i);a!=null&&(e[au[i]]=a)}}function Nw(r,t){var e=t.width/r.width,n=t.height/r.height,i=Math.min(e,n);return{scale:i,x:-(r.x+r.width/2)*i+(t.x+t.width/2),y:-(r.y+r.height/2)*i+(t.y+t.height/2)}}function pN(r,t){var e=new sN;return e.parse(r,t)}var gN=Y(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),yN=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=Y(),this._freedGraphics=[],this._mapName=t,this._parsedXML=Ow(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=_N(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&pN(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,fe(n!=null)}catch(g){throw new Error(`Invalid svg format
- `+g.message)}var i=new at;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(a!=null?(u=0,h=a):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=n.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new pt(u,f,h,v)}if(s){var d=Nw(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}i.setClipPath(new yt({shape:l.plain()}));var p=[];return w(e.named,function(g){gN.get(g.svgNodeTagLower)!=null&&(p.push(g),mN(g.el))}),{root:i,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r}();function mN(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function _N(r){var t=[],e=Y();return w(r,function(n){if(n.namedFrom==null){var i=new wO(n.name,n.el);t.push(i),e.set(n.name,i)}}),{regions:t,regionsMap:e}}var Yc=[126,25],Km="南海诸岛",ni=[[[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 ti=0;ti<ni.length;ti++)for(var $i=0;$i<ni[ti].length;$i++)ni[ti][$i][0]/=10.5,ni[ti][$i][1]/=-10.5/.75,ni[ti][$i][0]+=Yc[0],ni[ti][$i][1]+=Yc[1];function SN(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Km)return;t.push(new tw(Km,V(ni,function(n){return{type:"polygon",exterior:n}}),Yc))}}var xN={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function bN(r,t){if(r==="china"){var e=xN[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var wN=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function TN(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:wN[0]})}var AN="name",CN=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=Y(),this._mapName=t,this._specialAreas=n,this._geoJSON=DN(e)}return r.prototype.load=function(t,e){e=e||AN;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:MN(i)})}var a=Y(),o=[];return w(n.regions,function(s){var l=s.name;t&&tt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new pt(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,i;try{i=n?zc(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
- `+a.message)}return SN(e,i),w(i,function(a){var o=a.name;bN(e,a),TN(e,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function MN(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function DN(r){return G(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var qa=Y();const $r={registerMap:function(r,t,e){if(t.svg){var n=new yN(r,t.svg);qa.set(r,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?e=t.specialAreas:i=t;var n=new CN(r,i,e);qa.set(r,n)}},getGeoResource:function(r){return qa.get(r)},getMapForUser:function(r){var t=qa.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=qa.get(r);if(n)return n.load(t,e)}};var Wd=["rect","circle","line","ellipse","polygon","polyline","path"],IN=Y(Wd),LN=Y(Wd.concat(["g"])),PN=Y(Wd.concat(["g"])),zw=bt();function tl(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Qm(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var RN=function(){function r(t){var e=new at;this.uid=Ta("ec_map_draw"),this._controller=new Ew(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,n,i,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,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,d=!u.childAt(0)||a;d?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):kt(f,c,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,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,n),this._updateMapSelectHandler(t,u,n,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Y(),n=Y(),i=this._regionsGroup,a=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]*a.scaleX+a.x,c[1]*a.scaleY+a.y]}function h(c){for(var d=[],p=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],p);y&&d.push(y)}return d}function v(c){return{shape:{points:h(c)}}}i.removeAll(),w(t.geo.regions,function(c){var d=c.name,p=e.get(d),g=n.get(d)||{},y=g.dataIdx,m=g.regionModel;p||(p=e.set(d,new at),i.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null,n.set(d,{dataIdx:y,regionModel:m}));var _=[],S=[];w(c.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=n0(A,u)),w(A,function(M){_.push(new Ir(v(M)))})}else{var C=T.points;u&&(C=n0(C,u,!0)),w(C,function(M){S.push(new Ye(v(M)))})}});var b=f(c.getCenter(),l&&l.project);function x(T,A){if(T.length){var C=new Cu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(C),Jm(t,C,y,m),jm(t,C,d,m,o,y,b),A&&(Qm(C),w(C.states,Qm))}}x(_),x(S,!0)}),e.each(function(c,d){var p=n.get(d),g=p.dataIdx,y=p.regionModel;t0(t,c,d,y,o,g),e0(t,c,d,y,o),r0(t,c,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=Y(),a=!1;w(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);if(IN.get(f)!=null&&h instanceof Yr&&Jm(t,h,v,c),h instanceof Yr&&(h.culling=!0),h.z2EmphasisLift=0,!o.namedFrom&&(PN.get(f)!=null&&jm(t,h,s,c,l,v,null),t0(t,h,s,c,l,v),e0(t,h,s,c,l),LN.get(f)!=null)){var d=r0(t,h,s,c,l);d==="self"&&(a=!0);var p=i.get(s)||i.set(s,[]);p.push(h)}},this),this._enableBlurEntireSVG(a,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Gv(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=$r.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=$r.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,iN(o,u.dx,u.dy),n.dispatchAction(B(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,aN(o,u.scale,u.originX,u.originY),n.dispatchAction(B(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,f,h){return i.containPoint([f,h])&&!kw(u,n,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=zw(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,i){var a=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){a._mouseDownFlag=!0}),e.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function Jm(r,t,e,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=tl(i),u=tl(a),f=tl(s),h=tl(o),v=r.data;if(v){var c=v.getItemVisual(e,"style"),d=v.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),d&&(l.decal=Kl(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=h,Gv(t)}function jm(r,t,e,n,i,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),f=s&&s.getItemLayout(a);if(l||u||f&&f.showLabel){var h=l?e:a,v=void 0;(!s||a>=0)&&(v=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Kr(t,Qr(n),{labelFetcher:v,labelDataIndex:h,defaultText:e},c);var d=t.getTextContent();if(d&&(zw(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 t0(r,t,e,n,i,a){r.data?r.data.setItemGraphicEl(a,t):ut(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:n&&n.option||{}}}function e0(r,t,e,n,i){r.data||wa({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function r0(r,t,e,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Cn(t,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&iL(t,i,e),o}function n0(r,t,e){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),w(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),n}const Fw=RN;var EN=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,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new Fw(i);o.add(s.group),s.draw(e,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,n,i){var a=e.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,h=u.offset,v=new or({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:TS+1)});if(!h){var c=e.mainSeries.getData(),d=a.getName(l),p=c.indexOfName(d),g=a.getItemModel(l),y=g.getModel("label"),m=c.getItemGraphicEl(p);Kr(v,Qr(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(p,S)}},defaultText:d}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){gc(v,_)}}o.add(v)}}})},t.type="map",t}(te);const kN=EN;var ON=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=Fd(this,{coordDimensions:["value"],encodeDefaulter:dt(_x,this)}),i=Y(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=$r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return w(u.regions,function(f){var h=f.name;i.get(h)||a.push(h)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},t.prototype.formatTooltip=function(e,n,i){for(var a=this.getData(),o=this.getRawValue(e),s=a.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),v=a.mapDimension("value");isNaN(l[f].originalData.get(v,h))||u.push(l[f].name)}return Mr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Mr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var n=e.icon||"roundRect",i=re(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},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}(Ce);const BN=ON;function NN(r,t){var e={};return w(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=e[a].length,f=0;f<u;f++)s=Math.min(s,e[a][f]),l=Math.max(l,e[a][f]),o+=e[a][f];var h;return t==="min"?h=s:t==="max"?h=l:t==="average"?h=o/u:h=o,u===0?NaN:h})}function zN(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),w(t,function(e,n){for(var i=NN(V(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(var a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=a===0&&!e[a].getHostGeoModel(),e[a].setData(i.cloneShallow()),e[a].mainSeries=e[0]})}function FN(r){var t={};r.eachSeriesByType("map",function(e){var n=e.getMapType();if(!(e.getHostGeoModel()||t[n])){var i={};w(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var h=l.getName(f),v=s.getRegion(h);if(!(!v||isNaN(u))){var c=i[h]||0,d=s.dataToPoint(v.getCenter());i[h]=c+1,l.setItemLayout(f,{point:d,offset:c})}})});var a=e.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var i0=Wt,VN=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ui,n._rawTransformable=new ui,n.name=e,n}return t.prototype.setBoundingRect=function(e,n,i,a){return this._rect=new pt(e,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,n,i,a){this._transformTo(e,n,i,a),this._viewRect=new pt(e,n,i,a)},t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new pt(e,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,n){e&&(this._center=[j(e[0],n.getWidth()),j(e[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var n=this.zoomLimit;n&&(n.max!=null&&(e=Math.min(n.max,e)),n.min!=null&&(e=Math.max(n.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),n=e.x+e.width/2,i=e.y+e.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Wt([],a,e),i=Wt([],i,e),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,n=this._rawTransformable;n.parent=e,e.updateTransform(),n.updateTransform(),du(this.transform||(this.transform=[]),n.transform||We()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Sa(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,n=this._roamTransformable,i=new ui;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?i0(i,e,a):m1(i,e)},t.prototype.pointToData=function(e){var n=this.invTransform;return n?i0([],e,n):[e[0],e[1]]},t.prototype.convertToPixel=function(e,n,i){var a=a0(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=a0(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(ui);function a0(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const Vw=VN;var GN={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Gw=["lng","lat"],Hw=function(r){E(t,r);function t(e,n,i){var a=r.call(this,e)||this;a.dimensions=Gw,a.type="geo",a._nameCoordMap=Y(),a.map=n;var o=i.projection,s=$r.load(n,i.nameMap,i.nameProperty),l=$r.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,f=GN[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var v=0;v<u.length;v++){var c=u[v].getBoundingRect(o);h=h||c.clone(),h.union(c)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:it(i.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return t.prototype._transformTo=function(e,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new pt(e,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(e))return n[i]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,i){if(G(e)&&(e=this.getGeoCoord(e)),e){var a=this.projection;return a&&(e=a.project(e)),e&&this.projectedToPoint(e,n,i)}},t.prototype.pointToData=function(e){var n=this.projection;return n&&(e=n.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,n,i){return r.prototype.dataToPoint.call(this,e,n,i)},t.prototype.convertToPixel=function(e,n,i){var a=o0(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(e,n,i){var a=o0(n);return a===this?a.pointToData(i):null},t}(Vw);$t(Hw,Vw);function o0(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Ft).models[0]||{}).coordinateSystem:null}const s0=Hw;function l0(r,t){var e=r.get("boundingCoords");if(e!=null){var n=e[0],i=e[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var f=function(x,T,A,C){for(var M=A-x,D=C-T,I=0;I<=100;I++){var L=I/100,R=a.project([x+M*L,T+D*L]);Nr(n,n,R),zr(i,i,R)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var h=this.getBoundingRect(),v=r.get("layoutCenter"),c=r.get("layoutSize"),d=t.getWidth(),p=t.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;v&&c&&(m=[j(v[0],d),j(v[1],p)],_=j(c,Math.min(d,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(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 b=r.getBoxLayoutParams();b.aspect=g,S=he(b,{width:d,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function HN(r,t){w(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var WN=function(){function r(){this.dimensions=Gw}return r.prototype.create=function(t,e){var n=[];function i(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 s0(l+s,l,B({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=l0,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),w(a,function(o,s){var l=V(o,function(f){return f.get("nameMap")}),u=new s0(s,s,B({nameMap:c1(l)},i(o[0])));u.zoomLimit=Hr.apply(null,V(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=l0,u.resize(o[0],e),w(o,function(f){f.coordinateSystem=u,HN(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,i){for(var a=(t||[]).slice(),o=Y(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=$r.load(e,n,i);return w(l.regions,function(u){var f=u.name;!o.get(f)&&a.push({name:f})}),a},r}(),UN=new WN;const Ww=UN;var YN=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,n,i){var a=$r.getGeoResource(e.map);if(a&&a.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,i),Nl(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=Ww.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=He(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Mt(o,e,e.ecModel)),o.selected&&(i[s]=!0)),a},Y()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Mt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var i=this.getRegionModel(e),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:e};if(K(a))return o.status=n,a(o);if(G(a))return a.replace("{a}",e??"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(ct);const XN=YN;function u0(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function $N(r,t,e,n){var i=r.getZoom(),a=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(u0(r,s),n)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),h=(t.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(u0(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var ZN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,n){this._api=n},t.prototype.render=function(e,n,i,a){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Fw(i));var o=this._mapDraw;o.draw(e,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,i)},t.prototype._handleRegionClick=function(e){var n;vi(e.target,function(i){return(n=ut(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=ut(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(It);const qN=ZN;function KN(r,t,e){$r.registerMap(r,t,e)}function QN(r){r.registerCoordinateSystem("geo",Ww),r.registerComponentModel(XN),r.registerComponentView(qN),r.registerImpl("registerMap",KN),r.registerImpl("getMap",function(e){return $r.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[e](i.name);var u=l.coordinateSystem;w(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];w(o,function(h,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,n,i){var a=e.componentType||"series";n.eachComponent({mainType:a,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=$N(s,e,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&w(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function JN(r){Xt(QN),r.registerChartView(kN),r.registerSeriesModel(BN),r.registerLayout(FN),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,zN),rb("map",r.registerAction)}var qo=w,jN=X,ou=-1,Ud=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=Z(t);this.type=n,this.mappingMethod=e,this._normalizeData=rz[e];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(Th(i),tz(i)):e==="category"?i.categories?ez(i):Th(i,!0):(fe(e!=="linear"||i.dataExtent),Th(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return W(this._normalizeData,this)},r.listVisualTypes=function(){return st(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){X(t)?w(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var i,a=F(t)?[]:X(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(t){var e={},n;return t&&qo(r.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(e[a]=t[a],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(F(t))t=t.slice();else if(jN(t)){var e=[];qo(t,function(n,i){e.push(i)}),t=e}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.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,n){for(var i,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||G(l)&&l===t+"")return o;n&&v(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(rl(h[1],t,f[1]))return o}else if(f[1]===1/0){if(rl(h[0],f[0],t))return o}else if(rl(h[0],f[0],t)&&rl(h[1],t,f[1]))return o;n&&v(f[0],o),n&&v(f[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function v(c,d){var p=Math.abs(c-t);p<a&&(a=p,i=d)}},r.visualHandlers={color:{applyVisual:Ka("color"),getColorMapper:function(){var t=this.option;return W(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),fo.call(this,e)}:function(e,n,i){var a=!!i;return!n&&(e=this._normalizeData(e)),i=vo(e,t.parsedVisual,i),a?i:nr(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return nr(vo(t,this.option.parsedVisual),"rgba")},category:fo,piecewise:function(t,e){var n=$c.call(this,e);return n==null&&(n=nr(vo(t,this.option.parsedVisual),"rgba")),n},fixed:ii}},colorHue:el(function(t,e){return cl(t,e)}),colorSaturation:el(function(t,e){return cl(t,null,e)}),colorLightness:el(function(t,e){return cl(t,null,null,e)}),colorAlpha:el(function(t,e){return B1(t,e)}),decal:{applyVisual:Ka("decal"),_normalizedToVisual:{linear:null,category:fo,piecewise:null,fixed:null}},opacity:{applyVisual:Ka("opacity"),_normalizedToVisual:Xc([0,1])},liftZ:{applyVisual:Ka("liftZ"),_normalizedToVisual:{linear:ii,category:ii,piecewise:ii,fixed:ii}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:f0,category:fo,piecewise:function(t,e){var n=$c.call(this,e);return n==null&&(n=f0.call(this,t)),n},fixed:ii}},symbolSize:{applyVisual:Ka("symbolSize"),_normalizedToVisual:Xc([0,1])}},r}();function tz(r){var t=r.pieceList;r.hasSpecialVisual=!1,w(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function ez(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(qo(t,function(o,s){e[o]=s}),!F(n)){var i=[];X(n)?qo(n,function(o,s){var l=e[s];i[l??ou]=o}):i[ou]=n,n=Uw(r,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete e[t[a]],t.pop())}function Th(r,t){var e=r.visual,n=[];X(e)?qo(e,function(a){n.push(a)}):e!=null&&n.push(e);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),Uw(r,n)}function el(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:Xc([0,1])}}function f0(r){var t=this.option.visual;return t[Math.round(Tt(r,[0,1],[0,t.length-1],!0))]||{}}function Ka(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function fo(r){var t=this.option.visual;return t[this.option.loop&&r!==ou?r%t.length:r]}function ii(){return this.option.visual[0]}function Xc(r){return{linear:function(t){return Tt(t,r,this.option.visual,!0)},category:fo,piecewise:function(t,e){var n=$c.call(this,e);return n==null&&(n=Tt(t,r,this.option.visual,!0)),n},fixed:ii}}function $c(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Ud.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function Uw(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=V(t,function(e){var n=le(e);return n||[0,0,0,1]})),t}var rz={linear:function(r){return Tt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ud.findPieceIndex(r,t,!0);if(e!=null)return Tt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??ou},fixed:Ht};function rl(r,t,e){return r?t<=e:t<e}const Se=Ud;function nz(r){iz(r),az(r)}function iz(r){if(!r.parallel){var t=!1;w(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function az(r){var t=Dt(r.parallelAxis);w(t,function(e){if(X(e)){var n=e.parallelIndex||0,i=Dt(r.parallel)[n];i&&i.parallelAxisDefault&&et(e,i.parallelAxisDefault,!1)}})}var oz=5,sz=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,n,i){this._model=e,this._api=i,this._handlers||(this._handlers={},w(lz,function(a,o){i.getZr().on(o,this._handlers[o]=W(a,this))},this)),ls(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){Wo(this,"_throttledDispatchExpand"),w(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(B({type:"parallelAxisExpand"},e))},t.type="parallel",t}(It),lz={mousedown:function(r){Ah(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(Ah(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>oz)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Ah(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Ah(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const uz=sz;var fz=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 n=this.option;e&&et(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var i=e.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){w(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],i=Ct(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);w(i,function(a){e.push("dim"+a.get("dim")),n.push(a.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}(ct);const hz=fz;var cz=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(fr);const vz=cz;function Pi(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=Zi(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Zi(s,[0,o]),i=a=Zi(s,[i,a]),n=0}t[0]=Zi(t[0],e),t[1]=Zi(t[1],e);var l=Ch(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=Zi(t[n],f);var h;return h=Ch(t,n),i!=null&&(h.sign!==l.sign||h.span<i)&&(t[1-n]=t[n]+l.sign*i),h=Ch(t,n),a!=null&&h.span>a&&(t[1-n]=t[n]+h.sign*a),t}function Ch(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 Zi(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Mh=w,Yw=Math.min,Xw=Math.max,h0=Math.floor,dz=Math.ceil,c0=Et,pz=Math.PI,gz=function(){function r(t,e,n){this.type="parallel",this._axesMap=Y(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var i=t.dimensions,a=t.parallelAxisIndex;Mh(i,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new vz(o,Qu(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(),n=e.axisBase,i=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();Mh(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),pa(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=he(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,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[i[o]],l=[0,s],u=this.dimensions.length,f=nl(t.get("axisExpandWidth"),l),h=nl(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=nl(c[1]-c[0],l),c[1]=c[0]+d;else{d=nl(f*(h-1),l);var p=t.get("axisExpandCenter")||h0(u/2);c=[f*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var y=[h0(c0(c[0]/f,1))+1,dz(c0(c[1]/f,1))-1],m=g/f*c[0];return{layout:a,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[i[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,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;e.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Mh(n,function(o,s){var l=(i.axisExpandable?mz:yz)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:pz/2,vertical:0},h=[u[a].x+t.x,u[a].y+t.y],v=f[a],c=We();Pn(c,c,v),Ur(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,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];w(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var h=void 0;if(!u)h="normal";else{h="active";for(var v=t.getValues(s,f),c=0,d=o.length;c<d;c++){var p=l[c].getActiveState(v[c]);if(p==="inactive"){h="inactive";break}}}e(h,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)e.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return ir([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return Z(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),v=h[0]!=null;if(f)v&&f&&s<a*h[0]?(u="jump",l=s-a*h[2]):v&&f&&s>a*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Pi(l,i,o,"all"):u="none";else{var c=i[1]-i[0],d=o[1]*s/c;i=[Xw(0,d-c/2)],i[1]=Yw(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r}();function nl(r,t){return Yw(Xw(r,t[0]),t[1])}function yz(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function mz(r,t){var e=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return r<o[0]?(s=r*a,f=a):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(i-1-r)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const _z=gz;function Sz(r,t){var e=[];return r.eachComponent("parallel",function(n,i){var a=new _z(n,r,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,e.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",Ft).models[0];n.coordinateSystem=i.coordinateSystem}}),e}var xz={create:Sz};const bz=xz;var $w=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return fa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=Z(e);if(n)for(var i=n.length-1;i>=0;i--)xr(n[i])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=e&&e<=n[a][1])return"active";return"inactive"},t}(ct);$t($w,fs);const v0=$w;var Mi=!0,Ko=Math.min,ga=Math.max,wz=Math.pow,Tz=1e4,Az=6,Cz=6,d0="globalPan",Mz={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Dz={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},p0={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Iz=0,Lz=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new at,n._uid="brushController_"+Iz++,w(Nz,function(i,a){this._handlers[a]=W(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||eN(n,d0,this._uid),w(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=et(Z(p0),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;rN(e,d0,this._uid),w(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};w(e,function(i){n[i.panelId]=Z(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=V(e,function(v){return et(Z(p0),v,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Id(i,e,u,l).add(f).update(f).remove(h).execute(),this;function l(v,c){return(v.id!=null?v.id:n+c)+"-"+v.brushType}function u(v,c){return l(v.__brushOption,c)}function f(v,c){var d=e[v];if(c!=null&&i[c]===s)a[v]=i[c];else{var p=a[v]=c!=null?(i[c].__brushOption=d,i[c]):qw(o,Zw(o,d));Yd(o,p)}}function h(v){i[v]!==s&&o.group.remove(i[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),Zc(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(sr);function Zw(r,t){var e=tf[t.brushType].createCover(r,t);return e.__brushOption=t,Qw(e,t),r.group.add(e),e}function qw(r,t){var e=Xd(t);return e.endCreating&&(e.endCreating(r,t),Qw(t,t.__brushOption)),t}function Kw(r,t){var e=t.__brushOption;Xd(t).updateCoverShape(r,t,e.range,e)}function Qw(r,t){var e=t.z;e==null&&(e=Tz),r.traverse(function(n){n.z=e,n.z2=e})}function Yd(r,t){Xd(t).updateCommon(r,t),Kw(r,t)}function Xd(r){return tf[r.__brushOption.brushType]}function $d(r,t,e){var n=r._panels;if(!n)return Mi;var i,a=r._transform;return w(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function Jw(r,t){var e=r._panels;if(!e)return Mi;var n=t.__brushOption.panelId;return n!=null?e[n]:Mi}function Zc(r){var t=r._covers,e=t.length;return w(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Di(r,t){var e=V(r._covers,function(n){var i=n.__brushOption,a=Z(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Pz(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=wz(i*i+a*a,.5);return o>Az}function jw(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function tT(r,t,e,n){var i=new at;return i.add(new yt({name:"main",style:Zd(e),silent:!0,draggable:!0,cursor:"move",drift:dt(g0,r,t,i,["n","s","w","e"]),ondragend:dt(Di,t,{isEnd:!0})})),w(n,function(a){i.add(new yt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:dt(g0,r,t,i,a),ondragend:dt(Di,t,{isEnd:!0})}))}),i}function eT(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=ga(i,Cz),o=e[0][0],s=e[1][0],l=o-i/2,u=s-i/2,f=e[0][1],h=e[1][1],v=f-a+i/2,c=h-a+i/2,d=f-o,p=h-s,g=d+i,y=p+i;kr(r,t,"main",o,s,d,p),n.transformable&&(kr(r,t,"w",l,u,a,y),kr(r,t,"e",v,u,a,y),kr(r,t,"n",l,u,g,a),kr(r,t,"s",l,c,g,a),kr(r,t,"nw",l,u,a,a),kr(r,t,"ne",v,u,a,a),kr(r,t,"sw",l,c,a,a),kr(r,t,"se",v,c,a,a))}function qc(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Zd(e)),i.attr({silent:!n,cursor:n?"move":"default"}),w([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Kc(r,a[0]):Ez(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Dz[s]+"-resize":null})})}function kr(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(Oz(qd(r,t,[[n,i],[n+a,i+o]])))}function Zd(r){return q({strokeNoScale:!0},r.brushStyle)}function rT(r,t,e,n){var i=[Ko(r,e),Ko(t,n)],a=[ga(r,e),ga(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Rz(r){return bn(r.group)}function Kc(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Du(e[t],Rz(r));return n[i]}function Ez(r,t){var e=[Kc(r,t[0]),Kc(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function g0(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=nT(t,i,a);w(n,function(u){var f=Mz[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(rT(s[0][0],s[1][0],s[0][1],s[1][1])),Yd(t,e),Di(t,{isEnd:!1})}function kz(r,t,e,n){var i=t.__brushOption.range,a=nT(r,e,n);w(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Yd(r,t),Di(r,{isEnd:!1})}function nT(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qd(r,t,e){var n=Jw(r,t);return n&&n!==Mi?n.clipPath(e,r._transform):Z(e)}function Oz(r){var t=Ko(r[0][0],r[1][0]),e=Ko(r[0][1],r[1][1]),n=ga(r[0][0],r[1][0]),i=ga(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function Bz(r,t,e){if(!(!r._brushType||zz(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=$d(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Mi||s.panelId===a.panelId)&&tf[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function Qc(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Jc(r,t,e){return r.childOfName("main").contain(t,e)}function iT(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),Pz(r)||i){if(a&&!i){o.brushMode==="single"&&Zc(r);var l=Z(o);l.brushType=y0(l.brushType,a),l.panelId=a===Mi?null:a.panelId,i=r._creatingCover=Zw(r,l),r._covers.push(i)}if(i){var u=tf[y0(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(qd(r,i,r._track)),n&&(qw(r,i),u.updateCommon(r,i)),Kw(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&$d(r,t,e)&&Zc(r)&&(s={isEnd:n,removeOnClick:!0});return s}function y0(r,t){return r==="auto"?t.defaultBrushType:r}var Nz={mousedown:function(r){if(this._dragging)m0(this,r);else if(!r.target||!r.target.draggable){Qc(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=$d(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(Bz(this,r,n),this._dragging){Qc(r);var i=iT(this,r,n,!1);i&&Di(this,i)}},mouseup:function(r){m0(this,r)}};function m0(r,t){if(r._dragging){Qc(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=iT(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&Di(r,a)}}function zz(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var tf={lineX:_0(0),lineY:_0(1),rect:{createCover:function(r,t){function e(n){return n}return tT({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=jw(r);return rT(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){eT(r,t,e,n)},updateCommon:qc,contain:Jc},polygon:{createCover:function(r,t){var e=new at;return e.add(new Ye({name:"main",style:Zd(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Ir({name:"main",draggable:!0,drift:dt(kz,r,t),ondragend:dt(Di,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:qd(r,t,e)})},updateCommon:qc,contain:Jc}};function _0(r){return{createCover:function(t,e){return tT({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=jw(t),n=Ko(e[0][r],e[1][r]),i=ga(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=Jw(t,e);if(o!==Mi&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),eT(t,e,l,i)},updateCommon:qc,contain:Jc}}const aT=Lz;function oT(r){return r=Kd(r),function(t){return Qv(t,r)}}function sT(r,t){return r=Kd(r),function(e){var n=t??e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function lT(r,t,e){var n=Kd(r);return function(i,a){return n.contain(a[0],a[1])&&!kw(i,t,e)}}function Kd(r){return pt.create(r)}var Fz=["axisLine","axisTickLabel","axisName"],Vz=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,n){r.prototype.init.apply(this,arguments),(this._brushController=new aT(n.getZr())).on("brush",W(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!Gz(e,n,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!e.get("show")){var s=Wz(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,h=e.axis.dim,v=l.getAxisLayout(h),c=B({strokeContainThreshold:f},v),d=new Ln(e,c);w(Fz,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,e,s,f,i),Iu(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=pt.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:oT(h),isTargetByCursor:lT(h,s,a),getLinearBrushOtherExtent:sT(h,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(Hz(i))},t.prototype._onBrush=function(e){var n=e.areas,i=this.axisModel,a=i.axis,o=V(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(It);function Gz(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function Hz(r){var t=r.axis;return V(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Wz(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const Uz=Vz;var Yz={type:"axisAreaSelect",event:"axisAreaSelected"};function Xz(r){r.registerAction(Yz,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var $z={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Zz(r){r.registerComponentView(uz),r.registerComponentModel(hz),r.registerCoordinateSystem("parallel",bz),r.registerPreprocessor(nz),r.registerComponentModel(v0),r.registerComponentView(Uz),$o(r,"parallel",v0,$z),Xz(r)}var qz=["itemStyle","borderWidth"],S0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Dh=new or,Kz=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,n,i){var a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:S0[+f],categoryDim:S0[1-+f]};return o.diff(s).add(function(c){if(o.hasValue(c)){var d=b0(o,c),p=x0(o,c,d,v),g=w0(o,v,p);o.setItemGraphicEl(c,g),a.add(g),A0(g,v,p)}}).update(function(c,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(c)){a.remove(p);return}var g=b0(o,c),y=x0(o,c,g,v),m=dT(o,y);p&&m!==p.__pictorialShapeStr&&(a.remove(p),o.setItemGraphicEl(c,null),p=null),p?nF(p,v,y):p=w0(o,v,y,!0),o.setItemGraphicEl(c,p),p.__pictorialSymbolMeta=y,a.add(p),A0(p,v,y)}).remove(function(c){var d=s.getItemGraphicEl(c);d&&T0(s,c,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=o,this.group},t.prototype.remove=function(e,n){var i=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl(function(o){T0(a,ut(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(te);function x0(r,t,e,n){var i=r.getItemLayout(t),a=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:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Qz(e,a,i,n,v),Jz(r,t,i,a,o,v.boundingLength,v.pxSign,f,n,v),jz(e,v.symbolScale,u,n,v);var c=v.symbolSize,d=Wu(e.get("symbolOffset"),c);return tF(e,c,i,a,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function Qz(r,t,e,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[a.wh]<=0),f;if(F(o)){var h=[Ih(s,o[0])-l,Ih(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=Ih(s,o)-l:t?f=n.coordSysExtent[a.index][u]-l:f=e[a.wh];i.boundingLength=f,t&&(i.repeatCutLength=e[a.wh]),i.pxSign=f>0?1:-1}function Ih(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Jz(r,t,e,n,i,a,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(e[h.wh]),c=r.getItemVisual(t,"symbolSize"),d;F(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=j(d[h.index],v),d[f.index]=j(d[f.index],n?v:Math.abs(a)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function jz(r,t,e,n,i){var a=r.get(qz)||0;a&&(Dh.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Dh.updateTransform(),a/=Dh.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function tF(r,t,e,n,i,a,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(n){var y=Math.abs(l),m=Hr(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=j(m,t[c.index]),b=Math.max(p+S*2,0),x=_?0:S*2,T=Ev(n),A=T?n:C0((y+x)/b),C=y-A*p;S=C/2/(_?A:Math.max(A-1,1)),b=p+S*2,x=_?0:S*2,!T&&n!=="fixed"&&(A=u?C0((Math.abs(u)+x)/b):0),g=A*b-x,h.repeatTimes=A,h.symbolMargin=S}var M=d*(g/2),D=h.pathPosition=[];D[v.index]=e[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,a&&(D[0]+=a[0],D[1]+=a[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(D[c.index]+M)),L[v.wh]=e[v.wh];var R=h.clipShape={};R[v.xy]=-e[v.xy],R[v.wh]=f.ecSize[v.wh],R[c.xy]=0,R[c.wh]=e[c.wh]}function uT(r){var t=r.symbolPatternSize,e=re(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function fT(r,t,e,n){var i=r.__pictorialBundle,a=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,h=a[t.valueDim.index]+o+e.symbolMargin*2;for(Qd(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?la(p,null,d(f),e,n):la(p,null,{scaleX:0,scaleY:0},e,n,function(){i.remove(p)}),f++});f<u;f++){var v=uT(e);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=u,i.add(v);var c=d(f);la(v,{x:c.x,y:c.y,scaleX:0,scaleY:0},{scaleX:c.scaleX,scaleY:c.scaleY,rotation:c.rotation},e,n)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0: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 hT(r,t,e,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?la(a,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(a=r.__pictorialMainPath=uT(e),i.add(a),la(a,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function cT(r,t,e){var n=B({},t.barRectShape),i=r.__pictorialBarRect;i?la(i,null,{shape:n},t,e):(i=r.__pictorialBarRect=new yt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function vT(r,t,e,n){if(e.symbolClip){var i=r.__pictorialClipPath,a=B({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)kt(i,{shape:a},s,l);else{a[o.wh]=0,i=new yt({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Pu[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function b0(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=eF,e.isAnimationEnabled=rF,e}function eF(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function rF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function w0(r,t,e,n){var i=new at,a=new at;return i.add(a),i.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?fT(i,t,e):hT(i,t,e),cT(i,e,n),vT(i,t,e,n),i.__pictorialShapeStr=dT(r,e),i.__pictorialSymbolMeta=e,i}function nF(r,t,e){var n=e.animationModel,i=e.dataIndex,a=r.__pictorialBundle;kt(a,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,i),e.symbolRepeat?fT(r,t,e,!0):hT(r,t,e,!0),cT(r,e,!0),vT(r,t,e,!0)}function T0(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];Qd(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(a,function(o){Bo(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function dT(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Qd(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function la(r,t,e,n,i,a){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&Pu[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,a)}function A0(r,t,e){var n=e.dataIndex,i=e.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=a.get("focus"),h=a.get("blurScope"),v=a.get("scale");Qd(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;Kr(d,Qr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ju(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:c}),Cn(r,f,h,a.get("disabled"))}function C0(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const iF=Kz;var aF=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=Rn(nu.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}(nu);const oF=aF;function sF(r){r.registerChartView(iF),r.registerSeriesModel(oF),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,dt(Wb,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ub("pictorialBar"))}function lF(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||tt(r,"text")))}function uF(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},tt(n,"text")&&(o.text=n.text),tt(n,"rich")&&(o.rich=n.rich),tt(n,"textFill")&&(o.fill=n.textFill),tt(n,"textStroke")&&(o.stroke=n.textStroke),tt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),tt(n,"fontSize")&&(o.fontSize=n.fontSize),tt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),tt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=tt(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),tt(n,"textPosition")&&(i.position=n.textPosition),tt(n,"textOffset")&&(i.offset=n.textOffset),tt(n,"textRotation")&&(i.rotation=n.textRotation),tt(n,"textDistance")&&(i.distance=n.textDistance)}return M0(o,r),w(o.rich,function(l){M0(l,l)}),{textConfig:i,textContent:a}}function M0(r,t){t&&(t.font=t.textFont||t.font,tt(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),tt(t,"textAlign")&&(r.align=t.textAlign),tt(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),tt(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),tt(t,"textWidth")&&(r.width=t.textWidth),tt(t,"textHeight")&&(r.height=t.textHeight),tt(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),tt(t,"textPadding")&&(r.padding=t.textPadding),tt(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),tt(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),tt(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),tt(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),tt(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),tt(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),tt(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var pT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},D0=st(pT);He(Cr,function(r,t){return r[t]=1,r},{});Cr.join(", ");var su=["","style","shape","extra"],ya=bt();function Jd(r,t,e,n,i){var a=r+"Animation",o=Xv(r,n,i)||{},s=ya(t).userDuring;return o.duration>0&&(o.during=s?W(pF,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),B(o,e[a]),o}function Lh(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=ya(r),u=t.style;l.userDuring=t.during;var f={},h={};if(yF(r,t,h),L0("shape",t,h),L0("extra",t,h),!a&&s&&(gF(r,t,f),I0("shape",r,t,f),I0("extra",r,t,f),mF(r,t,u,f)),h.style=u,hF(r,h,o),vF(r,t),s)if(a){var v={};w(su,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=Jd("enter",r,t,e,i);c.duration>0&&r.animateFrom(v,c)}else cF(r,t,i||0,e,f);gT(r,t),u?r.dirty():r.markRedraw()}function gT(r,t){for(var e=ya(r).leaveToProps,n=0;n<su.length;n++){var i=su[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=ya(r).leaveToProps={}),i&&(e[i]=e[i]||{}),B(i?e[i]:e,a.leaveTo))}}function fF(r,t,e,n){if(r){var i=r.parent,a=ya(r).leaveToProps;if(a){var o=Jd("update",r,t,e,0);o.done=function(){i.remove(r),n&&n()},r.animateTo(a,o)}else i.remove(r),n&&n()}}function wi(r){return r==="all"}function hF(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function cF(r,t,e,n,i){if(i){var a=Jd("update",r,t,n,e);a.duration>0&&r.animateFrom(i,a)}}function vF(r,t){tt(t,"silent")&&(r.silent=t.silent),tt(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&&tt(t,"invisible")&&(r.invisible=t.invisible),r instanceof _t&&tt(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var pr={},dF={setTransform:function(r,t){return pr.el[r]=t,this},getTransform:function(r){return pr.el[r]},setShape:function(r,t){var e=pr.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=pr.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=pr.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=pr.el.style;if(t)return t[r]},setExtra:function(r,t){var e=pr.el.extra||(pr.el.extra={});return e[r]=t,this},getExtra:function(r){var t=pr.el.extra;if(t)return t[r]}};function pF(){var r=this,t=r.el;if(t){var e=ya(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}pr.el=t,n(dF)}}function I0(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),wi(l))B(o,a);else for(var u=Dt(l),f=0;f<u.length;f++){var h=u[f],v=a[h];o[h]=v}else if(wi(s)||lt(s,r)>=0){!o&&(o=n[r]={});for(var c=st(a),f=0;f<c.length;f++){var h=c[f],v=a[h];_F(i[h],v)&&(o[h]=v)}}}}}function L0(r,t,e){var n=t[r];if(n)for(var i=e[r]={},a=st(n),o=0;o<a.length;o++){var s=a[o];i[s]=po(n[s])}}function gF(r,t,e){for(var n=t.transition,i=wi(n)?Cr:Dt(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function yF(r,t,e){for(var n=0;n<D0.length;n++){var i=D0[n],a=pT[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var n=0;n<Cr.length;n++){var s=Cr[n];t[s]!=null&&(e[s]=t[s])}}function mF(r,t,e,n){if(e){var i=r.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!wi(o)){var l=Dt(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],h=i[f];a[f]=h}}else if(r.getAnimationStyleProps&&(wi(s)||wi(o)||lt(s,"style")>=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!a&&(a=n.style={});for(var d=st(e),u=0;u<d.length;u++){var f=d[u];if(c[f]){var h=i[f];a[f]=h}}}}}}}function _F(r,t){return ee(r)?r!==t:r!=null&&isFinite(r)}var yT=bt(),SF=["percent","easing","shape","style","extra"];function xF(r){r.stopAnimation("keyframe"),r.attr(yT(r))}function jc(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(F(t)){w(t,function(s){jc(r,s,e)});return}var n=t.keyframes,i=t.duration;if(e&&i==null){var a=Xv("enter",e,0);i=a&&a.duration}if(!(!n||!i)){var o=yT(r);w(su,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),w(n,function(u){var f=r.animators,h=s?u[s]:u;if(h){var v=st(h);if(s||(v=Ct(v,function(p){return lt(SF,p)<0})),!!v.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==l&&f[c].targetName===l.targetName&&f[c].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;w(v,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(i*u.percent,h,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var oi=bt(),P0=Z,Ph=W,bF=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new at,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var v=dt(R0,e,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}k0(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Gd(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=oi(t).pointerEl=new Pu[a.type](P0(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=oi(t).labelEl=new mt(P0(e.label));t.add(a),E0(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=oi(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=oi(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),E0(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=ba(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wr(u.event)},onmousedown:Ph(this._onHandleDragMove,this,0,0),drift:Ph(this._onHandleDragMove,this),ondragend:Ph(this._onHandleDragEnd,this)}),n.add(i)),k0(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");F(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ls(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){R0(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Rh(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Rh(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Rh(i)),oi(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.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(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Wo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function R0(r,t,e,n){mT(oi(e).lastProp,n)||(oi(e).lastProp=n,t?kt(e,n,r):(e.stopAnimation(),e.attr(n)))}function mT(r,t){if(X(r)&&X(t)){var e=!0;return w(t,function(n,i){e=e&&mT(r[i],n)}),!!e}else return r===t}function E0(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Rh(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function k0(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const _T=bF;function ST(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function xT(r,t,e,n,i){var a=e.get("value"),o=bT(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Aa(s.get("padding")||0),u=s.getFont(),f=ns(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=c),p==="middle"&&(h[1]-=c/2),wF(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Nt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function wF(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function bT(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Od(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),G(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function wT(r,t,e){var n=We();return Pn(n,n,e.rotation),Ur(n,n,e.position),ir([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function TF(r,t,e,n,i,a){var o=Ln.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),xT(t,n,i,a,{position:wT(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function TT(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function AF(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function O0(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}var CF=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=B0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=ST(a),c=MF[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=Hc(l.model,i);TF(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Hc(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=wT(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=B0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[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}(_T);function B0(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var MF={line:function(r,t,e){var n=TT([t,e[0]],[t,e[1]],N0(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:AF([t-n/2,e[0]],[n,i],N0(r))}}};function N0(r){return r.dim==="x"?0:1}const DF=CF;var IF=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}(ct);const LF=IF;var Vr=bt(),PF=w;function AT(r,t,e){if(!vt.node){var n=t.getZr();Vr(n).records||(Vr(n).records={}),RF(n,t);var i=Vr(n).records[r]||(Vr(n).records[r]={});i.handler=e}}function RF(r,t){if(Vr(r).initialized)return;Vr(r).initialized=!0,e("click",dt(z0,"click")),e("mousemove",dt(z0,"mousemove")),e("globalout",kF);function e(n,i){r.on(n,function(a){var o=OF(t);PF(Vr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),EF(o.pendings,t)})}}function EF(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function kF(r,t,e){r.handler("leave",null,e)}function z0(r,t,e,n){t.handler(r,e,n)}function OF(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function tv(r,t){if(!vt.node){var e=t.getZr(),n=(Vr(e).records||{})[r];n&&(Vr(e).records[r]=null)}}var BF=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,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";AT("axisPointer",i,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,n){tv("axisPointer",n)},t.prototype.dispose=function(e,n){tv("axisPointer",n)},t.type="axisPointer",t}(It);const NF=BF;function CT(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Ai(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.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=a.mapDimension(v),p=[];p[c]=a.get(d,o),p[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues(V(l.dimensions,function(y){return a.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 F0=bt();function zF(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||W(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Tl(i)&&(i=CT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Tl(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||Tl(i),v={},c={},d={list:[],map:{}},p={showPointer:dt(VF,c),showTooltip:dt(GF,d)};w(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);w(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,T=YF(u,S);if(!h&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=x.pointToData(i)),A!=null&&V0(S,A,p,!1,v)}})});var g={};return w(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&w(_.axesInfo,function(S,b){var x=c[b];if(S!==y&&x){var T=x.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,G0(S),G0(y)))),g[y.key]=T}})}),w(g,function(y,m){V0(f[m],y,p,!0,v)}),HF(c,f,v),WF(d,i,r,o),UF(f,o,e),v}}function V0(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=FF(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function FF(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),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<o||d>=0&&s<0)&&(o=p,s=d,i=h,a.length=0),w(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function VF(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function GF(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Zo(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function HF(r,t,e){var n=e.axesInfo=[];w(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function WF(r,t,e,n){if(Tl(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function UF(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=F0(n)[i]||{},o=F0(n)[i]={};w(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&w(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];w(a,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!a[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 YF(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function G0(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Tl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function jd(r){hs.registerAxisPointerClass("CartesianAxisPointer",DF),r.registerComponentModel(LF),r.registerComponentView(NF),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=w5(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zF)}function XF(r){Xt(z5),Xt(jd)}var $F=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(n),v=a.get("type");if(v&&v!=="none"){var c=ST(a),d=qF[v](s,l,h,f);d.style=c,e.graphicKey=d.type,e.pointer=d}var p=a.get(["label","margin"]),g=ZF(n,i,a,l,p);xT(e,i,a,o,g)},t}(_T);function ZF(r,t,e,n,i){var a=t.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,h;if(a.dim==="radius"){var v=We();Pn(v,v,s),Ur(v,v,[n.cx,n.cy]),u=ir([o,-i],v);var c=t.getModel("axisLabel").get("rotate")||0,d=Ln.innerTextLayout(s,c*Math.PI/180,-1);f=d.textAlign,h=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var g=n.cx,y=n.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 qF={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:TT(t.coordToPoint([n[0],e]),t.coordToPoint([n[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:O0(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:O0(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const KF=$F;var QF=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 n,i=this.ecModel;return i.eachComponent(e,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ct);const JF=QF;var tp=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ft).models[0]},t.type="polarAxis",t}(ct);$t(tp,fs);var jF=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}(tp),tV=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}(tp),ep=function(r){E(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(fr);ep.prototype.dataToRadius=fr.prototype.dataToCoord;ep.prototype.radiusToData=fr.prototype.coordToData;const eV=ep;var rV=bt(),rp=function(r){E(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=ns(s==null?"":s+"",n.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=rV(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}(fr);rp.prototype.dataToAngle=fr.prototype.dataToCoord;rp.prototype.angleToData=fr.prototype.coordToData;const nV=rp;var MT=["radius","angle"],iV=function(){function r(t){this.dimensions=MT,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new eV,this._angleAxis=new nV,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=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),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 n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,a=-Math.sin(n)*e+this.cy;return[i,a]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,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,n){var i=H0(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=H0(e);return i===this?this.pointToData(n):null},r}();function H0(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const aV=iV;function oV(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=j(n[0],i),r.cy=j(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:F(l)||(l=[0,l]);var u=[j(l[0],s),j(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function sV(r,t){var e=this,n=e.getAngleAxis(),i=e.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();w(eu(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),w(eu(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),pa(n.scale,n.model),pa(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function lV(r){return r.mainType==="angleAxis"}function W0(r,t){if(r.type=t.get("type"),r.scale=Qu(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),lV(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 uV={dimensions:MT,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new aV(i+"");a.update=sV;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");W0(o,l),W0(s,u),oV(a,n,t),e.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Ft).models[0];n.coordinateSystem=i.coordinateSystem}}),e}};const fV=uV;var hV=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function il(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function al(r){var t=r.getRadiusAxis();return t.inverse?0:1}function U0(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 cV=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,n){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=V(i.getViewLabels(),function(f){f=Z(f);var h=i.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(v),f});U0(u),U0(s),w(hV,function(f){e.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&vV[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(hs),vV={axisLine:function(r,t,e,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=al(e),l=s?0:1,u;a[l]===0?u=new or({shape:{cx:e.cx,cy:e.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new as({shape:{cx:e.cx,cy:e.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,t,e,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[al(e)],u=V(n,function(f){return new se({shape:il(e,[l,l+s],f.coord)})});r.add(Fe(u,{style:q(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[al(e)],f=[],h=0;h<i.length;h++)for(var v=0;v<i[h].length;v++)f.push(new se({shape:il(e,[u,u+l],i[h][v].coord)}));r.add(Fe(f,{style:q(s.getModel("lineStyle").getLineStyle(),q(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");w(o,function(h,v){var c=l,d=h.tickValue,p=a[al(e)],g=e.coordToPoint([p+u,h.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];X(b)&&b.textStyle&&(c=new Mt(b.textStyle,l,l.ecModel))}var x=new mt({silent:Ln.isLabelSilent(t),style:Nt(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 T=Ln.makeAxisEventDataBase(t);T.targetType="axisLabel",T.value=h.rawLabel,ut(x).eventData=T}},this)},splitLine:function(r,t,e,n,i,a){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<n.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new se({shape:il(e,a,n[h].coord)}))}for(var h=0;h<f.length;h++)r.add(Fe(f[h],{style:q({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new se({shape:il(e,a,i[u][f].coord)}));r.add(Fe(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,v=-n[0].coord*h,c=Math.min(a[0],a[1]),d=Math.max(a[0],a[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Dr({shape:{cx:e.cx,cy:e.cy,r0:c,r:d,startAngle:v,endAngle:-m*h,clockwise:p},silent:!0})),v=-m*h}for(var g=0;g<f.length;g++)r.add(Fe(f[g],{style:q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const dV=cV;var pV=["axisLine","axisTickLabel","axisName"],gV=["splitLine","splitArea","minorSplitLine"],yV=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,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,a=this._axisGroup=new at;this.group.add(a);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],v=o.getExtent(),c=_V(s,e,h),d=new Ln(e,c);w(pV,d.add,d),a.add(d.getGroup()),Iu(i,a,e),w(gV,function(p){e.get([p,"show"])&&!o.scale.isBlank()&&mV[p](this.group,e,s,h,v,u,f)},this)}},t.type="radiusAxis",t}(hs),mV={splitLine:function(r,t,e,n,i,a){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<a.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new or({shape:{cx:e.cx,cy:e.cy,r:Math.max(a[h].coord,0)}}))}for(var h=0;h<f.length;h++)r.add(Fe(f[h],{style:q({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new or({shape:{cx:e.cx,cy:e.cy,r:o[f][h].coord}}));r.add(Fe(u,{style:q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=a[0].coord,v=1;v<a.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new Dr({shape:{cx:e.cx,cy:e.cy,r0:h,r:a[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=a[v].coord}for(var v=0;v<f.length;v++)r.add(Fe(f[v],{style:q({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function _V(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const SV=yV;function DT(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function IT(r,t){return t.dim+r.model.componentIndex}function xV(r,t,e){var n={},i=bV(Ct(t.getSeriesByType(r),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=IT(s,l),f=DT(a),h=i[u][f],v=h.offset,c=h.width,d=s.getOtherAxis(l),p=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=Dn(o,_),x=l.dim!=="radius"||!a.get("roundCap",!0),T=d.dataToCoord(0),A=0,C=o.count();A<C;A++){var M=o.get(_,A),D=o.get(S,A),I=M>=0?"p":"n",L=T;b&&(n[f][D]||(n[f][D]={p:T,n:T}),L=n[f][D][I]);var R=void 0,k=void 0,O=void 0,U=void 0;if(d.dim==="radius"){var N=d.dataToCoord(M)-T,H=l.dataToCoord(D);Math.abs(N)<y&&(N=(N<0?-1:1)*y),R=L,k=L+N,O=H-v,U=O-c,b&&(n[f][D][I]=k)}else{var $=d.dataToCoord(M,x)-T,rt=l.dataToCoord(D);Math.abs($)<m&&($=($<0?-1:1)*m),R=rt+v,k=R+c,O=L,U=L+$,b&&(n[f][D][I]=U)}o.setItemLayout(A,{cx:p,cy:g,r0:R,r:k,startAngle:-O*Math.PI/180,endAngle:-U*Math.PI/180,clockwise:O>=U})}}})}function bV(r){var t={};w(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=IT(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;t[l]=h;var c=DT(n);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var d=j(n.get("barWidth"),f),p=j(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.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 w(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=j(n.categoryGap,o),l=j(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),w(a,function(p,g){var y=p.maxWidth;y&&y<h&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var v=0,c;w(a,function(p,g){p.width||(p.width=h),c=p,v+=p.width*(1+l)}),c&&(v-=c.width*l);var d=-v/2;w(a,function(p,g){e[i][g]=e[i][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var wV={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},TV={splitNumber:5},AV=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="polar",t}(It);function CV(r){Xt(jd),hs.registerAxisPointerClass("PolarAxisPointer",KF),r.registerCoordinateSystem("polar",fV),r.registerComponentModel(JF),r.registerComponentView(AV),$o(r,"angle",jF,wV),$o(r,"radius",tV,TV),r.registerComponentView(dV),r.registerComponentView(SV),r.registerLayout(dt(xV,"bar"))}var MV=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,n,i){var a=Ca(e);r.prototype.init.apply(this,arguments),Y0(e,a)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),Y0(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}(ct);function Y0(r,t){var e=r.cellSize,n;F(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var i=V([0,1],function(a){return yP(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Mn(r,t,{type:"box",ignoreSize:i})}const DV=MV;var IV=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,n,i){var a=this.group;a.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,a),this._renderLines(e,s,l,a),this._renderYearText(e,s,l,a),this._renderMonthText(e,u,l,a),this._renderWeekText(e,u,s,l,a)},t.prototype._renderDayRect=function(e,n,i){for(var a=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var f=a.dataToRect([u],!1).tl,h=new yt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});i.add(h)}},t.prototype._renderLines=function(e,n,i,a){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=n.start,v=0;h.time<=n.end.time;v++){d(h.formatedDate),v===0&&(h=s.getDateInfo(n.start.y+"-"+n.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}d(s.getNextNDay(n.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,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,i),l,a)},t.prototype._getEdgesPoints=function(e,n,i){var a=[e[0].slice(),e[e.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(e,n,i){var a=new Ye({z2:20,shape:{points:e},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,n,i){for(var a=e.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),f=a.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return G(e)&&e?dP(e,n):K(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(a==="left"||a==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,i,a){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="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=i==="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=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new mt({z2:30,style:Nt(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],i,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(e,n,i,a,o){var s="left",l="top",u=e[0],f=e[1];return i==="horizontal"?(f=f+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,i,a){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||G(s))&&(s&&(n=wc(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=0;p<h[v].length-1;p++){var g=h[v][p].slice(),y=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];g[c]=(m[c]+h[0][p+1][c])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),T=new mt({z2:30,style:B(Nt(o,{text:x}),this._monthTextPositionControl(g,d,i,u,l))});a.add(T)}}},t.prototype._weekTextPositionControl=function(e,n,i,a,o){var s="center",l="middle",u=e[0],f=e[1],h=i==="start";return n==="horizontal"?(u=u+a+(h?1:-1)*o[0]/2,s=h?"right":"left"):(f=f+a+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,i,a,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),h=s.get("margin"),v=l.getFirstDayOfWeek();if(!f||G(f)){f&&(n=wc(f)||n);var c=n.get(["time","dayOfWeekShort"]);f=c||V(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(i.end.time,7-i.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];h=j(h,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(i.start.time,-(7+i.fweek)).time,h=-h);for(var g=0;g<7;g++){var y=l.getNextNDay(d,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+v)%7);var S=new mt({z2:30,style:B(Nt(s,{text:f[_]}),this._weekTextPositionControl(m,a,u,h,p))});o.add(S)}}},t.type="calendar",t}(It);const LV=IV;var Eh=864e5,PV=function(){function r(t,e,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Ae(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];w([0,1],function(h){f(a,h)&&(o[i[h]]=a[h]*s[h])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=he(o,l);w([0,1],function(h){f(a,h)||(a[h]=u[i[h]]/s[h])});function f(h,v){return h[v]!=null&&h[v]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(t,e){F(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+Eh))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},r.prototype.convertToPixel=function(t,e,n){var i=X0(e);return i===this?i.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=X0(e);return i===this?i.pointToData(n):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(F(t)&&t.length===1&&(t=t[0]),F(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var i=Math.floor(e[1].time/Eh)-Math.floor(e[0].time/Eh)+1,a=new Date(e[0].time),o=a.getDate(),s=e[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-e[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-e[1].time)*u>0;)i-=u,a.setDate(l-u);var f=Math.floor((i+e[0].day+6)/7),h=n?-f+1:f-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:f,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var a=(t-1)*7-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(i){var a=new r(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function X0(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const RV=PV;function EV(r){r.registerComponentModel(DV),r.registerComponentView(LV),r.registerCoordinateSystem("calendar",RV)}function kV(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function $0(r,t){var e;return w(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function OV(r,t,e){var n=B({},e),i=r[t],a=e.$action||"merge";a==="merge"?i?(et(i,n,!0),Mn(i,n,{ignoreSize:!0}),dx(e,i),ol(e,i),ol(e,i,"shape"),ol(e,i,"style"),ol(e,i,"extra"),e.clipPath=i.clipPath):r[t]=n:a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var LT=["transition","enterFrom","leaveTo"],BV=LT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function ol(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?LT:BV,i=0;i<n.length;i++){var a=n[i];r[a]==null&&t[a]!=null&&(r[a]=t[a])}}function NV(r,t){if(r&&(r.hv=t.hv=[$0(t,["left","right"]),$0(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var zV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=i},t.prototype.optionUpdated=function(e,n){var i=this.option,a=(n?i:e).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=aS(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];w(l,function(f,h){var v=f.newOption;v&&(u.push(v),kV(f,v),OV(o,h,v),NV(o[h],v))},this),i.elements=Ct(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,i){w(e,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(ct),Z0={path:null,compoundPath:null,group:at,image:ce,text:mt},Oe=bt(),FV=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._elMap=Y()},t.prototype.render=function(e,n,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=e.get("z"),s=e.get("zlevel");w(n,function(l){var u=jt(l.id,null),f=u!=null?i.get(u):null,h=jt(l.parentId,null),v=h!=null?i.get(h):a,c=l.type,d=l.style;c==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&lF(d,c,!!g,!!p)){var y=uF(d,c,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=VV(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,T=f;x?T=q0(u,v,l.type,i):(T&&(Oe(T).isNew=!1),xF(T)),T&&(Lh(T,m,e,{isInit:x}),K0(T,l,o,s))}else if(b){Al(f,l,i,e);var A=q0(u,v,l.type,i);A&&(Lh(A,m,e,{isInit:!0}),K0(A,l,o,s))}else _==="remove"&&(gT(f,l),Al(f,l,i,e));var C=i.get(u);if(C&&p)if(S){var M=C.getTextContent();M?M.attr(p):C.setTextContent(new mt(p))}else b&&C.setTextContent(new mt(p));if(C){var D=l.clipPath;if(D){var I=D.type,L=void 0,x=!1;if(S){var R=C.getClipPath();x=!R||Oe(R).type!==I,L=x?ev(I):R}else b&&(x=!0,L=ev(I));C.setClipPath(L),Lh(L,D,e,{isInit:x}),jc(L,D.keyframeAnimation,e)}var k=Oe(C);C.setTextConfig(g),k.option=l,GV(C,e,l),wa({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),jc(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var i=e.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<i.length;f++){var h=i[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(!(!c||!c.isGroup)){var d=c.parent,p=d===a,g=Oe(c),y=Oe(d);g.width=j(g.option.width,p?s:y.width)||0,g.height=j(g.option.height,p?l:y.height)||0}}for(var f=i.length-1;f>=0;f--){var h=i[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,y=Oe(d),m=d===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=ld(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Oe(c).isNew&&S){for(var b=h.transition,x={},T=0;T<u.length;T++){var A=u[T],C=_[A];b&&(wi(b)||lt(b,A)>=0)?x[A]=C:c[A]=C}kt(c,x,e,0)}else c.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(i){Al(i,Oe(i).option,n,e._lastGraphicModel)}),this._elMap=Y()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(It);function ev(r){var t=tt(Z0,r)?Z0[r]:Zv(r),e=new t({});return Oe(e).type=r,e}function q0(r,t,e,n){var i=ev(e);return t.add(i),n.set(r,i),Oe(i).id=r,Oe(i).isNew=!0,i}function Al(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){Al(a,t,e,n)}),fF(r,t,n),e.removeKey(Oe(r).id))}function K0(r,t,e,n){r.isGroup||w([["cursor",Yr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];tt(t,a)?r[a]=it(t[a],i[1]):r[a]==null&&(r[a]=i[1])}),w(st(t),function(i){if(i.indexOf("on")===0){var a=t[i];r[i]=K(a)?a:null}}),tt(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function VV(r){return r=B({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(vx),function(t){delete r[t]}),r}function GV(r,t,e){var n=ut(r).eventData;!r.silent&&!r.ignore&&!n&&(n=ut(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function HV(r){r.registerComponentModel(zV),r.registerComponentView(FV),r.registerPreprocessor(function(t){var e=t.graphic;F(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var Q0=["x","y","radius","angle","single"],WV=["cartesian2d","polar","singleAxis"];function UV(r){var t=r.get("coordinateSystem");return lt(WV,t)>=0}function mn(r){return r+"Axis"}function YV(r,t){var e=Y(),n=[],i=Y();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.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 n}function PT(r){var t=r.ecModel,e={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(mn(n),i);if(a){var o=a.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(a)}}}),e}var kh=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}(),XV=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,n,i){var a=J0(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=J0(e);et(this.option,e,!0),et(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;w([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=Y(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return w(Q0,function(i){var a=this.getReferringComponents(mn(i),F2);if(a.specified){n=!0;var o=new kh;w(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new kh;if(v.add(h.componentIndex),e.set(f,v),a=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Ft).models[0];c&&w(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",Ft).models[0]&&v.add(d.componentIndex)})}}}a&&w(Q0,function(u){if(a){var f=i.findComponents({mainType:mn(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new kh;h.add(f[0].componentIndex),e.set(u,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(mn(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){w(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(mn(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;w([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;w(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ct);function J0(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Qo=XV;var $V=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.select",t}(Qo);const ZV=$V;var qV=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,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t}(It);const np=qV;var KV=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.select",t}(np);const QV=KV;var ji=w,j0=xr,JV=function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(UV(e)){var n=mn(this._dimName),i=e.getReferringComponents(n,Ft).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Z(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ji(["start","end"],function(v,c){var d=t[v],p=t[v+"Value"];a[c]==="percent"?(d==null&&(d=o[c]),p=i.parse(Tt(d,o,e))):(u=!0,p=p==null?e[c]:i.parse(p),d=Tt(p,e,o)),l[c]=p==null||isNaN(p)?e[c]:p,s[c]=d==null||isNaN(d)?o[c]:d}),j0(l),j0(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(v,c,d,p,g){var y=g?"Span":"ValueSpan";Pi(0,v,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)c[m]=Tt(v[m],d,p,!0),g&&(c[m]=i.parse(c[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=jV(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;ji(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var h=u.getStore(),v=V(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var d,p,g,y=0;y<f.length;y++){var m=h.get(v[y],c),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else ji(f,function(c){if(a==="empty")l.setData(u=u.map(c,function(p){return s(p)?p:NaN}));else{var d={};d[c]=o,u.selectRange(d)}});ji(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,n=this._dataExtent;ji(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Tt(n[0]+o,n,[0,100],!0):a!=null&&(o=Tt(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Lv(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function jV(r,t,e){var n=[1/0,-1/0];ji(e,function(o){cO(n,o.getData(),t)});var i=r.getAxisModel(),a=Kb(i.axis.scale,i,n).calculate();return[a.min,a.max]}const t3=JV;var e3={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(mn(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new t3(i,a,s,r),e.push(o.__dzAxisProxy))});var n=Y();return w(e,function(i){w(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const r3=e3;function n3(r){r.registerAction("dataZoom",function(t,e){var n=YV(e,t);w(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var t_=!1;function ip(r){t_||(t_=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,r3),n3(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function i3(r){r.registerComponentModel(ZV),r.registerComponentView(QV),ip(r)}var er=function(){function r(){}return r}(),RT={};function Qa(r,t){RT[r]=t}function ET(r){return RT[r]}var a3=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;w(this.option.feature,function(n,i){var a=ET(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),et(n,a.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}(ct);const o3=a3;function s3(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=he(n,a,i);_i(t.get("orient"),r,t.get("itemGap"),o.width,o.height),ld(r,n,a,i)}function kT(r,t){var e=Aa(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new yt({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:n,silent:!0,z2:-1}),r}var l3=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){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=[];w(u,function(d,p){h.push(p)}),new Id(this._featureNames||[],h).add(v).update(v).remove(dt(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],y=h[p],m=u[g],_=new Mt(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(u3(g))S={onclick:_.option.onclick,featureName:g};else{var b=ET(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=Ta("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof er;if(!g&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}c(_,S,g),_.setIconStatus=function(T,A){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[T]=A,M[T]&&(A==="emphasis"?ha:ca)(M[T])},S instanceof er&&S.render&&S.render(_,n,i,a)}function c(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof er&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},b,x;G(_)?(b={},b[g]=_):b=_,G(S)?(x={},x[g]=S):x=S;var T=d.iconPaths={};w(b,function(A,C){var M=ba(A,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var I=new mt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),wa({el:M,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),M.__title=x[C],M.on("mouseover",function(){var L=m.getItemStyle(),R=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")}),M.setTextConfig({position:m.get("textPosition")||R}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?ha:ca)(M),o.add(M),M.on("click",W(p.onclick,p,n,i,C)),T[C]=M})}s3(o,e,i),o.add(kT(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(_&&!K(_)&&p){var S=_.style||(_.style={}),b=ns(p,mt.makeFont(S)),x=d.x+o.x,T=d.y+o.y+s,A=!1;T+b.height>i.getHeight()&&(y.position="top",A=!0);var C=A?-5-b.height:s+10;x+b.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){w(this._features,function(o){o instanceof er&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){w(this._features,function(i){i instanceof er&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(i){i instanceof er&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(It);function u3(r){return r.indexOf("my")===0}const f3=l3;var h3=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=vt.browser;if(K(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+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=a+"."+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,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=i.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',A=window.open();A.document.write(T),A.document.title=a}},t.getDefaultOption=function(e){var n={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 n},t}(er);const c3=h3;var e_="__ec_magicType_stack__",v3=[["line","bar"],["stack"]],d3=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return w(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={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 n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(r_[i]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=r_[i](v,c,h,a);d&&(q(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Ft).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};w(v3,function(h){lt(h,i)>=0&&w(h,function(v){a.setIconStatus(v,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=et({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(er),r_={line:function(r,t,e,n){if(r==="bar")return et({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return et({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===e_;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),et({id:t,stack:i?"":e_},n.get(["option","stack"])||{},!0)}};ur({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const p3=d3;var ef=new Array(60).join("-"),ma=" ";function g3(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function y3(r){var t=[];return w(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(V(e.series,function(c){return c.name})),l=[i.model.getCategories()];w(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(ma)],f=0;f<l[0].length;f++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][f]);u.push(h.join(ma))}t.push(u.join(`
- `))}),t.join(`
- `+ef+`
- `)}function m3(r){return V(r,function(t){var e=t.getRawData(),n=[t.name],i=[];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++)i[l]=arguments[l];n.push((s?s+ma:"")+i.join(ma))}),n.join(`
- `)}).join(`
- `+ef+`
- `)}function _3(r){var t=g3(r);return{value:Ct([y3(t.seriesGroupByCategoryAxis),m3(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
- `+ef+`
- `),meta:t.meta}}function lu(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function S3(r){var t=r.slice(0,r.indexOf(`
- `));if(t.indexOf(ma)>=0)return!0}var rv=new RegExp("["+ma+"]+","g");function x3(r){for(var t=r.split(/\n+/g),e=lu(t.shift()).split(rv),n=[],i=V(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=lu(t[a]).split(rv);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function b3(r){for(var t=r.split(/\n+/g),e=lu(t.shift()),n=[],i=0;i<t.length;i++){var a=lu(t[i]);if(a){var o=a.split(rv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:e,data:n}}function w3(r,t){var e=r.split(new RegExp(`
- *`+ef+`
- *`,"g")),n={series:[]};return w(e,function(i,a){if(S3(i)){var o=x3(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=b3(i);n.series.push(o)}}),n}var T3=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.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"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),v=a.get("contentToOption"),c=_3(e);if(K(h)){var d=h(n.getOption());G(d)?u.innerHTML=d:ua(d)&&u.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.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"),f.value=c.value,u.appendChild(f)}var g=c.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"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var b=this;function x(){i.removeChild(o),b._dom=null}Jh(_,"click",x),Jh(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var T;try{K(v)?T=v(u,n.getOption()):T=w3(f.value,g)}catch(A){throw x(),new Error("Data view format error "+A)}T&&n.dispatchAction({type:"changeDataView",newOption:T}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){var n={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 n},t}(er);function A3(r,t){return V(r,function(e,n){var i=t&&t[n];if(X(i)&&!F(i)){var a=X(e)&&!F(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=q(e,i),o&&delete e.name,e}else return e})}ur({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];w(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(B({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:A3(n.data,a)})}}),t.mergeOption(q({series:e},r.newOption))});const C3=T3;var OT=w,BT=bt();function M3(r,t){var e=ap(r);OT(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function D3(r){var t=ap(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return OT(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function I3(r){BT(r).snapshots=null}function L3(r){return ap(r).length}function ap(r){var t=BT(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var P3=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){I3(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={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 n},t}(er);ur({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const R3=P3;var E3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],k3=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=n_(e,t);w(O3,function(o,s){(!n||!n.include||lt(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Oh[n.brushType](0,a,i);n.__rangeOffset={offset:s_[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){w(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&w(a.coordSyses,function(o){var s=Oh[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){w(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Oh[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?s_[n.brushType](a.values,o.offset,B3(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:oT(i),isTargetByCursor:lT(i,t,n.coordSysModel),getLinearBrushOtherExtent:sT(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&<(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=n_(e,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<i_.length;l++)if(i_[l](i,o))return o}return!0},r}();function nv(r){return r[0]>r[1]&&r.reverse(),r}function n_(r,t){return yo(r,t,{includeMainTypes:E3})}var O3={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=Y(),o={},s={};!e&&!n&&!i||(w(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),w(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),w(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];w(u.getCartesians(),function(h,v){(lt(e,h.getAxis("x").model)>=0||lt(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:a_.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){w(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:a_.geo})})}},i_=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],a_={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(bn(r)),t}},Oh={lineX:dt(o_,0),lineY:dt(o_,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[nv([i[0],a[0]]),nv([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=V(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function o_(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=nv(V([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var s_={lineX:dt(l_,0),lineY:dt(l_,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 V(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function l_(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function B3(r,t){var e=u_(r),n=u_(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function u_(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const NT=k3;var iv=w,N3=k2("toolbox-dataZoom_"),z3=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new aT(i.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),G3(e,n,this,a,i),V3(e,n)},t.prototype.onclick=function(e,n,i){F3[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new NT(op(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,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)}}),M3(a,i),this._dispatchZoomAction(i);function s(u,f,h){var v=f.getAxis(u),c=v.model,d=l(u,c,a),p=d.findRepresentativeAxisProxy(c).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=Pi(0,h.slice(),v.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[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 n=[];iv(e,function(i,a){n.push(Z(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={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 n},t}(er),F3={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(D3(this.ecModel))}};function op(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 V3(r,t){r.setIconStatus("back",L3(t)>1?"emphasis":"normal")}function G3(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new NT(op(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}TP("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=op(n),o=yo(r,a);iv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),iv(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:N3+u+h};v[f]=h,i.push(v)}return i});const H3=z3;function W3(r){r.registerComponentModel(o3),r.registerComponentView(f3),Qa("saveAsImage",c3),Qa("magicType",p3),Qa("dataView",C3),Qa("dataZoom",H3),Qa("restore",R3),Xt(i3)}var U3=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}(ct);const Y3=U3;function zT(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function FT(r){if(vt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var VT=FT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),X3=FT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function GT(r,t){if(!r)return t;t=ad(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function $3(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var Z3=GT(X3,"transition"),sp=GT(VT,"transform"),q3="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(vt.transform3dSupported?"will-change:transform;":"");function K3(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Q3(r,t,e){if(!G(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Ci(t);var a=K3(e),o=Math.max(Math.round(i)*1.5,6),s="",l=sp+":",u;lt(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function J3(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=vt.transformSupported?","+sp+n:",left"+n+",top"+n),Z3+":"+i}function f_(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=vt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+sp+":"+o+";":[["top",0],["left",0],[VT,o]]}function j3(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),w(["decoration","align"],function(l){var u=r.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function tG(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Yx(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(J3(i,e)),a&&n.push("background-color:"+a),w(["width","color","radius"],function(c){var d="border-"+c,p=ad(d),g=r.get(p);g!=null&&n.push(d+":"+g+(c==="color"?"":"px"))}),n.push(j3(f)),h!=null&&n.push("padding:"+Aa(h).join("px ")+"px"),n.join(";")+";"}function h_(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&$M(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var eG=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;h_(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();Re(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=$3(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=q3+tG(t,!this._firstShow,this._longHide)+f_(a[0],a[1],!0)+("border-color:"+Ci(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(a)&&n.get("trigger")==="item"&&!zT(n)&&(s=Q3(n,i,a)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var l=0;l<t.length;l++)ua(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},r.prototype.moveTo=function(t,e){var n=this._styleCoord;if(h_(n,this._zr,this._appendToBody,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=f_(n[0],n[1]);w(a,function(o){i[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",vt.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const rG=eG;var nG=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),v_(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;X(t)&&me(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new mt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Yx(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=c_(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;v_(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=fn(a.borderWidth||0),s=c_(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(W(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function fn(r){return Math.max(0,r)}function c_(r){var t=fn(r.shadowBlur||0),e=fn(r.shadowOffsetX||0),n=fn(r.shadowOffsetY||0);return{left:fn(t-e),right:fn(t+e),top:fn(t-n),bottom:fn(t+n)}}function v_(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const iG=nG;var aG=new yt({shape:{x:-1,y:-1,width:2,height:2}}),oG=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,n){if(!(vt.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=G2(i.get("renderMode"));this._tooltipContent=a==="richText"?new iG(n):new rG(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(e,n,i){if(!(vt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?ls(this,"_updatePosition",50,"fixRate"):Wo(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");AT("itemTooltip",this._api,W(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||vt.node||!i.getDom())){var o=d_(a,i);this._ticket="";var s=a.dataByCoordSys,l=fG(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=aG;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=CT(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(d_(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=Ja([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,l;vi(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(e,s,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=W(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ja([n.tooltipOption],a),l=this._renderMode,u=[],f=Mr("section",{blocks:[],noHeader:!0}),h=[],v=new Jf;w(e,function(m){w(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=bT(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),T=Mr("section",{header:x,noHeader:!Ge(x),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(_.seriesDataIndices,function(A){var C=i.getSeriesByIndex(A.seriesIndex),M=A.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Od(S.axis,{value:b}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",Ci(D.color),l);var I=ay(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var R=Ja([C],a).get("valueFormatter");T.blocks.push(R?B({valueFormatter:R},L):L)}I.text&&h.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=fy(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`
- `:"<br/>",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,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=e.positionDefault,p=Ja([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 Jf;y.marker=m.makeTooltipMarker("item",Ci(y.color),c);var _=ay(u.formatTooltip(f,!1,h)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,T=x?fy(b?B({valueFormatter:b},x):x,m,c,S,a.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,y,A,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(G(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&u.push(f),u.push({formatter:s.content});var h=e.positionDefault,v=Ja(u,this._tooltipModel,h?{position:h}:null),c=v.get("content"),d=Math.random()+"",p=new Jf;this._showOrMove(v,function(){var g=Z(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,d,e.offsetX,e.offsetY,e.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,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=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(v)if(G(v)){var g=e.ecModel.get("useUTC"),y=F(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=ss(y.axisValue,c,g)),c=od(c,i,!0)}else if(K(v)){var _=W(function(S,b){S===this._ticket&&(h.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||F(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||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),K(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),F(n))i=j(n[0],u),a=j(n[1],f);else if(X(n)){var p=n;p.width=h[0],p.height=h[1];var g=he(p,{width:u,height:f});i=g.x,a=g.y,v=null,c=null}else if(G(n)&&l){var y=uG(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=sG(i,a,o,u,f,v?null:20,c?null:20);i=y[0],a=y[1]}if(v&&(i-=p_(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=p_(c)?h[1]/2:c==="bottom"?h[1]:0),zT(e)){var y=lG(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&w(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&w(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&&w(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&w(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){vt.node||!n.getDom()||(Wo(this,"_updatePosition"),this._tooltipContent.dispose(),tv("itemTooltip",n))},t.type="tooltip",t}(It);function Ja(r,t,e){var n=t.ecModel,i;e?(i=new Mt(e,n,n),i=new Mt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(i=new Mt(o,i,n)))}return i}function d_(r,t){return r.dispatchAction||W(t.dispatchAction,t)}function sG(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function lG(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function uG(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function p_(r){return r==="center"||r==="middle"}function fG(r,t,e){var n=Ov(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=is(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ut(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const hG=oG;function cG(r){Xt(jd),r.registerComponentModel(Y3),r.registerComponentView(hG),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ht),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ht)}var g_=w;function y_(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function m_(r,t,e){var n={};return g_(t,function(a){var o=n[a]=i();g_(r[a],function(s,l){if(Se.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new Se(u),l==="opacity"&&(u=Z(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Se(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function vG(r,t,e){var n;w(e,function(i){t.hasOwnProperty(i)&&y_(t[i])&&(n=!0)}),n&&w(e,function(i){t.hasOwnProperty(i)&&y_(t[i])?r[i]=Z(t[i]):delete r[i]})}function dG(r,t,e,n){var i={};return w(r,function(a){var o=Se.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return tb(s,h,b)}function f(b,x){oE(s,h,b,x)}for(var h,v=s.getStore();(h=o.next())!=null;){var c=s.getRawDataItem(h);if(!(c&&c.visualMap===!1))for(var d=n!=null?v.get(l,h):h,p=e(d),g=t[p],y=i[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}var pG=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}(ct),gG=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,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=it(e.get("textBaseline"),e.get("textVerticalAlign")),f=new mt({style:Nt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new mt({style:Nt(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(){Vg(d,"_"+e.get("target"))}),p&&c.on("click",function(){Vg(p,"_"+e.get("subtarget"))}),ut(f).eventData=ut(c).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),v&&a.add(c);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=he(m,{width:i.getWidth(),height:i.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"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=a.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var T=new yt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},t.type="title",t}(It);function yG(r){r.registerComponentModel(pG),r.registerComponentView(gG)}var mG=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,n,i){this.mergeDefaultAndTheme(e,i),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 n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-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,n=e.data||[],i=e.axisType,a=this._names=[],o;i==="category"?(o=[],w(n,function(u,f){var h=jt(xa(u),""),v;X(u)?(v=Z(u),v.value=f):v=f,o.push(v),a.push(h)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Xu([{name:"value",type:s}],this);l.initData(o,a)},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}(ct);const __=mG;var HT=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=Rn(__.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}(__);$t(HT,Ox.prototype);const _G=HT;var SG=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}(It);const xG=SG;var bG=function(r){E(t,r);function t(e,n,i,a){var o=r.call(this,e,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(fr);const wG=bG;var Bh=Math.PI,S_=bt(),TG=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,n){this.api=n},t.prototype.render=function(e,n,i){if(this.model=e,this.api=i,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Mr("nameValue",{noName:!0,value:f})},w(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,e)},this),this._renderAxisLabel(a,s,l,e),this._position(a,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,n){var i=e.get(["label","position"]),a=e.get("orient"),o=CG(e,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":G(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Bh/2},h=a==="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*Bh/180;var m,_,S,b=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),T=c&&v.get("showPrevBtn",!0),A=c&&v.get("showNextBtn",!0),C=0,M=h;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),T&&(_=[C,0],C+=g),A&&(S=[M-d,0],M-=g)):(x&&(m=[M-d,0],M-=g),T&&(_=[0,0],C+=g),A&&(S=[M-d,0],M-=g));var D=[C,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,n){var i=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=We(),l=o.x,u=o.y+o.height;Ur(s,s,[-l,-u]),Pn(s,s,-Bh/2),Ur(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(i.getBoundingRect()),v=m(a.getBoundingRect()),c=[i.x,i.y],d=[a.x,a.y];d[0]=c[0]=f[0][0];var p=e.labelPosOpt;if(p==null||G(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}i.setPosition(c),a.setPosition(d),i.rotation=a.rotation=e.rotation,y(i),y(a);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,b,x,T,A){S[T]+=x[T][A]-b[T][A]}},t.prototype._createAxis=function(e,n){var i=n.getData(),a=n.get("axisType"),o=AG(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new wG("value",o,e.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new at;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new se({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:B({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new se({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:q({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],w(l,function(u){var f=i.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:W(o._changeTimeline,o,u.value)},g=x_(h,v,n,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),xn(g);var y=ut(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],w(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=i.dataToCoord(f.tickValue),y=new mt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:W(o._changeTimeline,o,h),silent:!1,style:Nt(c,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=Nt(d),y.ensureState("progress").style=Nt(p),n.add(y),xn(y),S_(y).dataIndex=h,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,n,i,a){var o=e.controlSize,s=e.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),h=a.get("inverse",!0);v(e.nextBtnPosition,"next",W(this._changeTimeline,this,h?"-":"+")),v(e.prevBtnPosition,"prev",W(this._changeTimeline,this,h?"+":"-")),v(e.playPosition,f?"stop":"play",W(this._handlePlayClick,this,!f),!0);function v(c,d,p,g){if(c){var y=ar(it(a.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=MG(a,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,n.add(_),xn(_)}}},t.prototype._renderCurrentPointer=function(e,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=W(u._handlePointerDrag,u),h.ondragend=W(u._handlePointerDragend,u),b_(h,u._progressLine,s,i,a,!0)},onUpdate:function(h){b_(h,u._progressLine,s,i,a)}};this._currentPointer=x_(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,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var i=this._toAxisCoord(e)[0],a=this._axis,o=xr(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=e.model;e._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var n=this._mainGroup.getLocalTransform();return ir(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<i&&(i=f,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var n=this.model.getCurrentIndex();e==="+"?e=n+1:e==="-"&&(e=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<e);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",S_(i[a]).dataIndex<=e)},t.type="timeline.slider",t}(xG);function AG(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Pd({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new Zb({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new In}}function CG(r,t){return he(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function MG(r,t,e,n){var i=n.style,a=ba(r.get(["controlStyle",t]),n||{},new pt(e[0],e[1],e[2],e[3]));return i&&a.setStyle(i),a}function x_(r,t,e,n,i,a){var o=t.get("color");if(i)i.setColor(o),e.add(i),a&&a.onUpdate(i);else{var s=r.get("symbol");i=re(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),e.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=et({rectHover:!0,z2:100},n,!0);var u=md(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Wu(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var h=r.get("symbolRotate");return n.rotation=(h||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function b_(r,t,e,n,i,a){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",e));if(a||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const DG=TG;function IG(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),q({currentIndex:i.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function LG(r){var t=r&&r.timeline;F(t)||(t=t?[t]:[]),w(t,function(e){e&&PG(e)})}function PG(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),w_(r),si(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});si(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!si(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}w(r.data||[],function(i){X(i)&&!F(i)&&(!si(i,"value")&&si(i,"name")&&(i.value=i.name),w_(i))})}function w_(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};w(n,function(o,s){!a[s]&&!si(i,s)&&(i[s]=o)}),e.label&&!si(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function si(r,t){return r.hasOwnProperty(t)}function RG(r){r.registerComponentModel(_G),r.registerComponentView(DG),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),IG(r),r.registerPreprocessor(LG)}var EG=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"])}},kG=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,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),F(n)&&w(n,function(a,o){G(a)&&(a={type:a}),n[o]=et(a,EG(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&kv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Y(),s=V(a,function(l){return(G(l)||xt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Mt(l,this,this.ecModel))},this);this._data=Ct(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;w(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;w(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;w(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&<(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}(ct);const av=kG;var qi=dt,ov=w,sl=at,OG=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 sl),this.group.add(this._selectorGroup=new sl),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=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,n,i,l,s,u);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=e.get("padding"),c=he(f,h,v),d=this.layoutInner(e,o,c,a,l,u),p=he(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=kT(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=Y(),h=n.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),ov(n.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===`
- `)){var g=new sl;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,p,d,c,n,e,_,b,S,h,a);x.on("click",qi(T_,p,null,a,v)).on("mouseover",qi(sv,y.name,null,a,v)).on("mouseout",qi(lv,y.name,null,a,v)),f.set(p,!0)}else i.eachRawSeries(function(T){if(!f.get(p)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(p))return;var C=A.indexOfName(p),M=A.getItemVisual(C,"style"),D=A.getItemVisual(C,"legendIcon"),I=le(M.fill);I&&I[3]===0&&(I[3]=.2,M=B(B({},M),{fill:nr(I,"rgba")}));var L=this._createItem(T,p,d,c,n,e,{},M,D,h,a);L.on("click",qi(T_,null,p,a,v)).on("mouseover",qi(sv,null,p,a,v)).on("mouseout",qi(lv,null,p,a,v)),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();ov(e,function(u){var f=u.type,h=new mt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);Kr(h,{normal:v,emphasis:c},{defaultText:u.title}),xn(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,v){var c=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=BG(f,a,l,u,c,g,v),b=new sl,x=a.getModel("textStyle");if(K(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(NG({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var A=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=n;G(M)&&M?D=M.replace("{name}",n??""):K(M)&&(D=M(n));var I=a.get("inactiveColor");b.add(new mt({style:Nt(x,{text:D,x:A,y:p/2,fill:g?x.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new yt({shape:b.getBoundingRect(),invisible:!0}),R=a.getModel("tooltip");return R.get("show")&&wa({el:L,componentModel:o,itemName:n,itemTooltipOption:R.option}),b.add(L),b.eachChild(function(k){k.silent=!0}),L.silent=!h,this.getContentGroup().add(b),xn(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();_i(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){_i("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}(It);function BG(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),ov(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Kl(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function NG(r){var t=r.icon||"roundRect",e=re(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 T_(r,t,e,n){lv(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),sv(r,t,e,n)}function WT(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function sv(r,t,e,n){WT(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function lv(r,t,e,n){WT(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const UT=OG;function zG(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function ja(r,t,e){var n={},i=r==="toggleSelected",a;return e.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](t.name),a=o.isSelected(t.name));var s=o.getData();w(s,function(l){var u=l.get("name");if(!(u===`
- `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function FG(r){r.registerAction("legendToggleSelect","legendselectchanged",dt(ja,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",dt(ja,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",dt(ja,"inverseSelect")),r.registerAction("legendSelect","legendselected",dt(ja,"select")),r.registerAction("legendUnSelect","legendunselected",dt(ja,"unSelect"))}function YT(r){r.registerComponentModel(av),r.registerComponentView(UT),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,zG),r.registerSubTypeDefaulter("legend",function(){return"plain"}),FG(r)}var VG=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,n,i){var a=Ca(e);r.prototype.init.call(this,e,n,i),A_(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),A_(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Rn(av.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}(av);function A_(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,Mn(t,e,{type:"box",ignoreSize:!!i})}const GG=VG;var C_=at,Nh=["width","height"],zh=["x","y"],HG=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 C_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new C_)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=F(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new mt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=ba(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:W(u._pageGo,u,y,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Nh[u],h=zh[u],v=Nh[1-u],c=zh[1-u];o&&_i("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=Z(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-u]+=m[c]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[c]=Math.min(m[c],p[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;_i(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),_i("horizontal",v,e.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=c[o]>i[o],g=[-c.x,-c.y];n||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=it(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=p?i[o]:c[o],b[s]=Math.max(c[s],d[s]),b[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=b[s],h.setClipPath(new yt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&kt(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?e:null),this._updatePageInfoView(e,T),b},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Nh[o],l=zh[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.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+a||_&&!b(_,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]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var T=x.getBoundingRect(),A=T[l]+x[l];return{s:A,e:A+T[s],i:x.__legendDataIndex}}}function b(x,T){return x.e>=T&&x.s<=T+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n??a},t.type="legend.scroll",t}(UT);const WG=HG;function UG(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function YG(r){Xt(YT),r.registerComponentModel(GG),r.registerComponentView(WG),UG(r)}function XG(r){Xt(YT),Xt(YG)}var $G=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=Rn(Qo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Qo);const ZG=$G;var lp=bt();function qG(r,t,e){lp(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function KG(r,t){for(var e=lp(r).coordSysRecordMap,n=e.keys(),i=0;i<n.length;i++){var a=n[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||XT(e,o))}}}function XT(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function QG(r,t){var e={model:t,containsPoint:dt(jG,t),dispatchAction:dt(JG,r),dataZoomInfoMap:null,controller:null},n=e.controller=new Ew(r.getZr());return w(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function JG(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function jG(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function t4(r){var t,e="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[e+s]>n[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function e4(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=lp(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Y());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=PT(a);w(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,QG(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){XT(i,a);return}var f=t4(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),ls(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var r4=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,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),qG(i,e,{pan:W(Fh.pan,this),zoom:W(Fh.zoom,this),scrollMove:W(Fh.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){KG(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(np),Fh={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=Vh[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Pi(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:M_(function(r,t,e,n,i,a){var o=Vh[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:M_(function(r,t,e,n,i,a){var o=Vh[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function M_(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,i);if(Pi(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Vh={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.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=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const n4=r4;function i4(r){ip(r),r.registerComponentModel(ZG),r.registerComponentView(n4),e4(r)}var a4=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=Rn(Qo.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}(Qo);const o4=a4;var to=yt,D_=7,s4=1,Gh=30,l4=7,eo="horizontal",I_="vertical",u4=5,f4=["line","bar","candlestick","scatter"],h4={easing:"cubicOut",duration:100,delay:0},c4=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,n){this.api=n,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),ls(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}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Wo(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 n=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?l4:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===eo?{right:s.width-o.x-o.width,top:s.height-Gh-D_-a,width:o.width,height:Gh}:{right:D_,top:o.y,width:Gh,height:o.height},u=Ca(e.option);w(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=he(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===I_&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===eo&&!o?{scaleY:l?1:-1,scaleX:1}:i===eo&&o?{scaleY:l?1:-1,scaleX:-1}:i===I_&&!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=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new to({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new to({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:W(this._onClickPanel,this)}),s=this.api.getZr();a?(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)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,M){if(_>0&&M%_){m+=y;return}var D=C==null||isNaN(C)||C==="",I=D?0:Tt(C,h,c,!0);D&&!S&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,I]),g.push([m,I]),m+=y,S=D}),u=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(C){var M=b.getModel(C?"selectedDataBackground":"dataBackground"),D=new at,I=new Ir({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Ye({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(I),D.add(L),D}for(var T=0;T<3;T++){var A=x(T===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!i&&!(n!==!0&<(f4,u.get("type"))<0)){var f=a.getComponent(mn(o),s).axis,h=v4(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.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=n.filler=new to({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new to({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:s4,fill:"rgba(0,0,0,0)"}})),w([0,1],function(_){var S=l.get("handleIcon");!$l[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=re(S,-1,0,2,2,null,!0);b.attr({cursor:L_(this._orient),draggable:!0,drift:W(this._onDragMove,this,_),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),T=l.get("handleSize");this._handleHeight=j(T,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),xn(b);var A=l.get("handleColor");A!=null&&(b.style.fill=A),o.add(i[_]=b);var C=l.getModel("textStyle");e.add(a[_]=new mt({silent:!0,invisible:!0,style:Nt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(h){var d=j(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new yt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=re(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=n.moveZone=new yt({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:L_(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Tt(e[0],[0,100],n,!0),Tt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Pi(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Tt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Tt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=xr([Tt(a[0],o,l,!0),Tt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=xr(i.slice()),o=this._size;w([0,1],function(c){var d=n.handles[c],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[c]+(c?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new yt,h.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=xr(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(d){var p=bn(i.handles[d].parent,this.group),g=Du(d===0?"right":"left",p),y=this._handleWidth/2+u4,m=ir([v[d]+(d===0?-y:y),this._size[1]/2],p);a[d].setStyle({x:m[0],y:m[1],verticalAlign:o===eo?"middle":g,align:o===eo?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return K(a)?a(e,s):G(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!e),i[1].attr("invisible",!e),n.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(e,n,i,a){this._dragging=!0,Wr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ir([n,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new nt(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=xr([Tt(i.x,o,s,!0),Tt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Wr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new to({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),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 n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?h4:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=PT(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(np);function v4(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function L_(r){return r==="vertical"?"ns-resize":"ew-resize"}const d4=c4;function p4(r){r.registerComponentModel(o4),r.registerComponentView(d4),ip(r)}function g4(r){Xt(i4),Xt(p4)}var y4={get:function(r,t,e){var n=Z((m4[r]||{})[t]);return e&&F(n)?n[n.length-1]:n}},m4={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]}};const $T=y4;var P_=Se.mapVisual,_4=Se.eachVisual,S4=F,R_=w,x4=xr,b4=Tt,w4=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,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,n){var i=this.option;!n&&vG(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=W(e,this),this.controllerVisuals=m_(this.option.controller,n,e),this.targetVisuals=m_(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,n=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Dt(e),n},t.prototype.eachTargetSeries=function(e,n){w(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&e.call(n,a)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(i){i===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],F(e)&&(e=e.slice(),u=!0);var f=n?e:u?[h(e[0]),h(e[1])]:h(e);if(G(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+f[1]:e[1]===s[1]?i[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,n=x4([e.min,e.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(e){var n=this.option.dimension;if(n!=null)return e.getDimensionIndex(n);for(var i=e.dimensions,a=i.length-1;a>=0;a--){var o=i[a],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,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});et(a,i),et(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(h){S4(n.color)&&!h.inRange&&(h.inRange={color:n.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]={},R_(d,function(g,y){if(Se.isValidType(y)){var m=$T.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";R_(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&Z(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&Z(c)||(s?m[0]:[m[0],m[0]])),_.symbol=P_(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;_4(S,function(x){x>b&&(b=x)}),_.symbolSize=P_(S,function(x){return b4(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,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}(ct);const uu=w4;var E_=[20,140],T4=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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.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]=E_[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=E_[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):F(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=xr((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]<e[0]&&(n[0]=e[0]),n[1]<e[0]&&(n[1]=e[0]),n},t.prototype.getValueState=function(e){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=e)&&(n[1]>=i[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(e){var n=k_(this,"outOfRange",this.getExtent()),i=k_(this,"inRange",this.option.range.slice()),a=[];function o(c,d){a.push({value:c,color:e(c,d)})}for(var s=0,l=0,u=i.length,f=n.length;l<f&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var h=1;l<f;l++)(!i.length||i[i.length-1]<n[l])&&(h&&(a.length&&o(a[a.length-1].value,"outOfRange"),h=0),o(n[l],"outOfRange"));var v=a.length;return{stops:a,outerColors:[v?a[0].color:"transparent",v?a[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Rn(uu.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(uu);function k_(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,i=(e[1]-e[0])/n,a=e[0],o=[],s=0;s<=n&&a<e[1];s++)o.push(a),a+=i;return o.push(e[1]),o}const A4=T4;var C4=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n},t.prototype.render=function(e,n,i,a){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,i,a)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,i=Aa(n.get("padding")||0),a=e.getBoundingRect();e.add(new yt({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function f(c,d){s[c]=d}var h=o.controllerVisuals[a||o.getValueState(e)],v=Se.prepareVisualTypes(h);return w(v,function(c){var d=h[c];i.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",d=h.__alphaForOpacity),Se.dependsOn(c,n)&&d&&d.applyVisual(e,u,f)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,i=this.api;ld(e,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(e,n,i,a){},t.type="visualMap",t}(It);const ZT=C4;var O_=[["left","right","width"],["top","bottom","height"]];function qT(r,t,e){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=O_[o],l=[0,null,10],u={},f=0;f<3;f++)u[O_[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:n[s[f]];var h=[["x","width",3],["y","height",0]][o],v=he(u,a,n.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<a[h[1]]*.5?0:1]}function Cl(r,t){return w(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var gr=Tt,M4=w,B_=Math.min,Hh=Math.max,D4=12,I4=6,L4=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.doRender=function(e,n,i,a){this._api=i,(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,n=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(n);var i=e.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),h=this._applyTransform(i===0?"bottom":"top",u),v=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new mt({style:Nt(c,{x:f[0],y:f[1],verticalAlign:v==="horizontal"?"middle":h,align:v==="horizontal"?h:"center",text:a})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=qT(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),f=new at;u.add(f),f.add(i.outOfRange=N_()),f.add(i.inRange=N_(null,s?F_(this._orient):null,W(this._dragHandle,this,"all",!1),W(this._dragHandle,this,"all",!0))),f.setClipPath(new yt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var h=n.textStyleModel.getTextRect("国"),v=Hh(h.width,h.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,v,o),this._createHandle(n,u,1,a,v,o)),this._createIndicator(n,u,a,v,o),e.add(u)},t.prototype._createHandle=function(e,n,i,a,o,s){var l=W(this._dragHandle,this,i,!1),u=W(this._dragHandle,this,i,!0),f=ar(e.get("handleSize"),a[0]),h=re(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=F_(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Wr(y.event)}}),h.x=a[0]/2,h.useStyle(e.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Wv(h,!0),n.add(h);var c=this.visualMapModel.textStyleModel,d=new mt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){Wr(y.event)},ondragend:u,style:Nt(c,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[i]=h,g.handleLabelPoints[i]=p,g.handleLabels[i]=d},t.prototype._createIndicator=function(e,n,i,a,o){var s=ar(e.get("indicatorSize"),i[0]),l=re(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof ce){var f=l.style;l.useStyle(B({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var h=this.visualMapModel.textStyleModel,v=new mt({silent:!0,invisible:!0,style:Nt(h,{x:0,y:0,text:""})});this.group.add(v);var c=[(o==="horizontal"?a/2:I4)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=c,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():z_(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),i=e.getExtent(),a=[0,e.itemSize[1]];this._handleEnds=[gr(n[0],i,a,!0),gr(n[1],i,a,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Pi(n,a,o,e,0);var s=i.getExtent();this._dataInterval=[gr(a[0],o,s,!0),gr(a[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new os(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var i=100,a=[],o=(e[1]-e[0])/i;a.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=e[0]+o*s;if(l>e[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(e,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,i=this.visualMapModel.get("inverse");return new at(n==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();M4([0,1],function(f){var h=o[f];h.setStyle("fill",n.handlesColor[f]),h.y=e[f];var v=gr(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=ir(i.handleLabelPoints[f],bn(h,this.group));s[f].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,i,a){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=gr(e,s,u,!0),g=l[0]-d/2,y={x:h.x,y:h.y};h.y=p,h.x=g;var m=ir(f.indicatorLabelPoint,bn(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var T={x:g,y:p,style:{fill:c}},A={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(T,C),_.animateTo(A,C)}else h.attr(T),_.attr(A);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this._api.enterBlur(M[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,a=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);a[1]=B_(Hh(0,a[1]),i[1]),e._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();e=B_(Hh(o[0],e),o[1]);var l=P4(i,s,o),u=[e-l,e+l],f=gr(e,o,s,!0),h=[gr(u[0],o,s,!0),gr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),n&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(n||z_(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var d=N2(v,c);this._dispatchHighDown("downplay",Cl(d[0],i)),this._dispatchHighDown("highlight",Cl(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(vi(e.target,function(l){var u=ut(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this._api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Cl(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,n,i,a){var o=bn(n,a?null:this.group);return F(e)?ir(e,o,i):Du(e,o,i)},t.prototype._dispatchHighDown=function(e,n){n&&n.length&&this.api.dispatchAction({type:e,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(ZT);function N_(r,t,e,n){return new Ir({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(i){Wr(i.event)},ondragend:n})}function P4(r,t,e){var n=D4/2,i=r.get("hoverLinkDataSize");return i&&(n=gr(i,t,e,!0)/2),n}function z_(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function F_(r){return r==="vertical"?"ns-resize":"ew-resize"}const R4=L4;var E4={type:"selectDataRange",event:"dataRangeSelected",update:"update"},k4=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},O4=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||e.push(dG(n.stateList,n.targetVisuals,W(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(W(B4,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(e);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function B4(r,t,e,n){for(var i=t.targetVisuals[n],a=Se.prepareVisualTypes(i),o={color:eb(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=i[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,h,v)}return o.color;function h(c){return o[c]}function v(c,d){o[c]=d}}var V_=w;function N4(r){var t=r&&r.visualMap;F(t)||(t=t?[t]:[]),V_(t,function(e){if(e){Ki(e,"splitList")&&!Ki(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&F(n)&&V_(n,function(i){X(i)&&(Ki(i,"start")&&!Ki(i,"min")&&(i.min=i.start),Ki(i,"end")&&!Ki(i,"max")&&(i.max=i.end))})}})}function Ki(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var G_=!1;function KT(r){G_||(G_=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(E4,k4),w(O4,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(N4))}function z4(r){r.registerComponentModel(A4),r.registerComponentView(R4),KT(r)}var F4=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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],V4[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Z(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=V(this._pieceList,function(l){return l=Z(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},i=Se.listVisualTypes(),a=this.isCategory();w(e.pieces,function(s){w(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),w(n,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&w(this.stateList,function(f){(e[f]||(e[f]={}))[l]=$T.get(l,f==="inRange"?"active":"inactive",a)})},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,n){var i=this.option,a=this._pieceList,o=(n?i:e).selected||{};if(i.selected=o,w(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;w(a,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=Z(e)},t.prototype.getValueState=function(e){var n=Se.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Se.findPieceIndex(l,i);f===e&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var i=e.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,h){var v=a.getRepresentValue({interval:f});h||(h=a.getValueState(v));var c=e(v,h);f[0]===-1/0?i[0]=c:f[1]===1/0?i[1]=c:n.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 w(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Rn(uu.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}(uu),V4={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(e)!==a&&e<5;)e++;t.precision=e,a=+a.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),cc(r),w(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;w(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),H_(t,r)},pieces:function(r){var t=this.option;w(t.pieces,function(e,n){X(e)||(e={value:e});var i={text:"",index:n};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var a=i.value=e.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],c=0;c<3&&o[h]==null;c++)o[h]=e[v[c]],s[h]=l[c],f[h]=c===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=Se.retrieveVisuals(e),r.push(i)},this),H_(t,r),cc(r),w(r,function(e){var n=e.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function H_(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const G4=F4;var H4=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 n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),h=f.endsText,v=Hr(n.get("showLabel",!0),!h);h&&this._renderEndsText(e,h[0],u,v,l),w(f.viewPieceList,function(c){var d=c.piece,p=new at;p.onclick=W(this._onItemClick,this,d),this._enableHoverLink(p,c.indexInModelPieceList);var g=n.getRepresentValue(d);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);p.add(new mt({style:{x:l==="right"?-i:u[0]+i,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),_i(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var i=this;e.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Cl(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return qT(e,this.api,e.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,n,i,a,o){if(n){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new mt({style:Nt(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=V(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),a=e.get("orient"),o=e.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(e,n,i){e.add(re(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(e){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Z(i.selected),s=n.getSelectedMapKey(e);a==="single"||a===!0?(o[s]=!0,w(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(ZT);const W4=H4;function U4(r){r.registerComponentModel(G4),r.registerComponentView(W4),KT(r)}function Y4(r){Xt(z4),Xt(U4)}var X4={label:{enabled:!0},decal:{show:!1}},W_=bt(),$4={};function Z4(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Z(X4);et(n.label,r.getLocaleModel().get("aria"),!1),et(e.option,n,!1),i(),a();function i(){var u=e.getModel("decal"),f=u.get("show");if(f){var h=Y();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),W_(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Hg(v.ecModel,v.name,$4,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var d=v.getRawData(),p={},g=W_(v).scope;c.each(function(b){var x=c.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],T=d.getName(b)||b+"",A=Hg(v.ecModel,T,g,y),C=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(C,A))})}function S(b,x){var T=b?B(B({},x),b):x;return T.dirty=!0,T}})}}function a(){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(A,C){if(C<p){var M=void 0,D=A.get("name"),I=D?"withName":"withoutName";M=v>1?f.get(["series","multiple",I]):f.get(["series","single",I]),M=o(M,{seriesId:A.seriesIndex,seriesName:A.get("name"),seriesType:l(A.subType)});var L=A.getData();if(L.count()>c){var R=f.get(["data","partialData"]);M+=o(R,{displayCnt:c})}else M+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),O=f.get(["data","separator","end"]),U=[],N=0;N<L.count();N++)if(N<c){var H=L.getName(N),$=L.getValues(N),rt=f.get(["data",H?"withName":"withoutName"]);U.push(o(rt,{name:H,value:$.join(k)}))}M+=U.join(k)+O,_.push(M)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),T=b.get("end");g+=_.join(x)+T,h.setAttribute("aria-label",g)}}}function o(u,f){if(!G(u))return u;var h=u;return w(f,function(v,c){h=h.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),v)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function q4(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},w(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function K4(r){r.registerPreprocessor(q4),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Z4)}var Wh=Math.sin,Uh=Math.cos,QT=Math.PI,ei=Math.PI*2,Q4=180/QT,J4=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,n,i,a,o){this._add("C",t,e,n,i,a,o)},r.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},r.prototype.arc=function(t,e,n,i,a,o){this.ellipse(t,e,n,n,0,i,a,o)},r.prototype.ellipse=function(t,e,n,i,a,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=dn(h-ei)||(f?u>=ei:-u>=ei),c=u>0?u%ei:u%ei+ei,d=!1;v?d=!0:dn(h)?d=!1:d=c>=QT==!!f;var p=t+n*Uh(o),g=e+i*Wh(o);this._start&&this._add("M",p,g);var y=Math.round(a*Q4);if(v){var m=1/this._p,_=(f?1:-1)*(ei-m);this._add("A",n,i,y,1,+f,t+n*Uh(o+_),e+i*Wh(o+_)),m>.01&&this._add("A",n,i,y,0,+f,p,g)}else{var S=t+n*Uh(s),b=e+i*Wh(s);this._add("A",n,i,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,l,u){for(var f=[],h=this._p,v=1;v<arguments.length;v++){var c=arguments[v];if(isNaN(c)){this._invalid=!0;return}f.push(Math.round(c*h)/h)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const JT=J4;var Co="none",j4=Math.round;function tH(r){var t=r.fill;return t!=null&&t!==Co}function eH(r){var t=r.stroke;return t!=null&&t!==Co}var uv=["lineCap","miterLimit","lineJoin"],rH=V(uv,function(r){return"stroke-"+r.toLowerCase()});function nH(r,t,e,n){var i=t.opacity==null?1:t.opacity;if(e instanceof ce){r("opacity",i);return}if(tH(t)){var a=Po(t.fill);r("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&r("fill-opacity",o)}else r("fill",Co);if(eH(t)){var s=Po(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,h=t.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||h)&&r("paint-order",h?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),t.lineDash){var v=_d(e),c=v[0],d=v[1];c&&(d=j4(d||0),r("stroke-dasharray",c.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Co);for(var p=0;p<uv.length;p++){var g=uv[p];if(n||t[g]!==zl[g]){var y=t[g]||zl[g];y&&r(rH[p],y)}}}else n&&r("stroke",Co)}var jT="http://www.w3.org/2000/svg",tA="http://www.w3.org/1999/xlink",iH="http://www.w3.org/2000/xmlns/",aH="http://www.w3.org/XML/1998/namespace";function eA(r){return document.createElementNS(jT,r)}function Vt(r,t,e,n,i){return{tag:r,attrs:e||{},children:n,text:i,key:t}}function oH(r,t){var e=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),e.push(a))}return"<"+r+" "+e.join(" ")+">"}function sH(r){return"</"+r+">"}function up(r,t){t=t||{};var e=t.newline?`
- `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return oH(o,s)+(o!=="style"?oe(l):l||"")+(a?""+e+V(a,function(u){return n(u)}).join(e)+e:"")+sH(o)}return n(r)}function lH(r,t,e){e=e||{};var n=e.newline?`
- `:"",i=" {"+n,a=n+"}",o=V(st(r),function(l){return l+i+V(st(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=V(st(t),function(l){return"@keyframes "+l+i+V(st(t[l]),function(u){return u+i+V(st(t[l][u]),function(f){var h=t[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function fv(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function U_(r,t,e,n){return Vt("svg","root",{width:r,height:t,xmlns:jT,"xmlns:xlink":tA,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var Y_={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"},ai="transform-origin";function uH(r,t,e){var n=B({},r.shape);B(n,t),r.buildPath(e,n);var i=new JT;return i.reset(G1(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function fH(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[ai]=e+"px "+n+"px")}var hH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function rA(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function cH(r,t,e){var n=r.shape.paths,i={},a,o;if(w(n,function(l){var u=fv(e.zrId);u.animation=!0,rf(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=st(f),c=v.length;if(c){o=v[c-1];var d=f[o];for(var p in d){var g=d[p];i[p]=i[p]||{d:""},i[p].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=rA(i,e);return a.replace(o,s)}}function X_(r){return G(r)?Y_[r]?"cubic-bezier("+Y_[r]+")":Av(r)?r:"":""}function rf(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof Cu){var s=cH(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 f=i[u],h=[f.getMaxTime()/1e3+"s"],v=X_(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var d=h.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},T={},A="animation-timing-function";function C(Gt,Lt,At){for(var Q=Gt.getTracks(),ht=Gt.getMaxTime(),ve=0;ve<Q.length;ve++){var Pt=Q[ve];if(Pt.needsAnimate()){var Ze=Pt.keyframes,de=Pt.propName;if(At&&(de=At(de)),de)for(var Pr=0;Pr<Ze.length;Pr++){var Ri=Ze[Pr],qe=Math.round(Ri.time/ht*100)+"%",cs=X_(Ri.easing),jr=Ri.rawValue;(G(jr)||xt(jr))&&(Lt[qe]=Lt[qe]||{},Lt[qe][de]=Ri.rawValue,cs&&(Lt[qe][A]=cs))}}}}for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I?I==="shape"&&C(D,x):!n&&C(D,b)}for(var L in b){var R={};X1(R,r),B(R,b[L]);var k=H1(R),O=b[L][A];T[L]=k?{transform:k}:{},fH(T[L],R),O&&(T[L][A]=O)}var U,N=!0;for(var L in x){T[L]=T[L]||{};var H=!U,O=x[L][A];H&&(U=new Xr);var $=U.len();U.reset(),T[L].d=uH(r,x[L],U);var rt=U.len();if(!H&&$!==rt){N=!1;break}O&&(T[L][A]=O)}if(!N)for(var L in T)delete T[L].d;if(!n)for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I==="style"&&C(D,T,function(Q){return hH[Q]})}for(var J=st(T),ft=!0,gt,M=1;M<J.length;M++){var Ot=J[M-1],wt=J[M];if(T[Ot][ai]!==T[wt][ai]){ft=!1;break}gt=T[Ot][ai]}if(ft&>){for(var L in T)T[L][ai]&&delete T[L][ai];t[ai]=gt}if(Ct(J,function(Gt){return st(T[Gt]).length>0}).length){var Zt=rA(T,e);return Zt+" "+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 Jo=Math.round;function nA(r){return r&&G(r.src)}function iA(r){return r&&K(r.toDataURL)}function fp(r,t,e,n){nH(function(i,a){var o=i==="fill"||i==="stroke";o&&V1(a)?oA(t,r,i,n):o&&Mv(a)?sA(e,r,i,n):r[i]=a},t,e,!1),_H(e,r,n)}function $_(r){return dn(r[0]-1)&&dn(r[1])&&dn(r[2])&&dn(r[3]-1)}function vH(r){return dn(r[4])&&dn(r[5])}function hp(r,t,e){if(t&&!(vH(t)&&$_(t))){var n=e?10:1e4;r.transform=$_(t)?"translate("+Jo(t[4]*n)/n+" "+Jo(t[5]*n)/n+")":BD(t)}}function Z_(r,t,e){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(Jo(n[a][0]*e)/e),i.push(Jo(n[a][1]*e)/e);t.points=i.join(" ")}function q_(r){return!r.smooth}function dH(r){var t=V(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=e[o[0]];s!=null&&(n[o[1]]=Jo(s*i)/i)}}}var pH={circle:[dH(["cx","cy","r"])],polyline:[Z_,q_],polygon:[Z_,q_]};function gH(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function aA(r,t){var e=r.style,n=r.shape,i=pH[r.type],a={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&G1(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&gH(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;h&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var c=v.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==c||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new JT),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=c,d.__svgPathStrokePercent=l),a.d=p.getStr()}return hp(a,r.transform),fp(a,e,r,t),t.animation&&rf(r,a,t),Vt(s,r.id+"",a)}function yH(r,t){var e=r.style,n=e.image;if(n&&!G(n)&&(nA(n)?n=n.src:iA(n)&&(n=n.toDataURL())),!!n){var i=e.x||0,a=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),hp(l,r.transform),fp(l,e,r,t),t.animation&&rf(r,l,t),Vt("image",r.id+"",l)}}function mH(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var i=e.font||Tn,a=e.x||0,o=zD(e.y||0,gu(i),e.textBaseline),s=ND[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(bS(e)){var u="",f=e.fontStyle,h=xS(e.fontSize);if(!parseFloat(h))return;var v=e.fontFamily||l1,c=e.fontWeight;u+="font-size:"+h+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),c&&c!=="normal"&&(u+="font-weight:"+c+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),hp(l,r.transform),fp(l,e,r,t),t.animation&&rf(r,l,t),Vt("text",r.id+"",l,void 0,n)}}function K_(r,t){if(r instanceof _t)return aA(r,t);if(r instanceof ce)return yH(r,t);if(r instanceof Oo)return mH(r,t)}function _H(r,t,e){var n=r.style;if(FD(n)){var i=VD(r),a=e.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,h=n.shadowOffsetY||0,v=n.shadowBlur,c=Po(n.shadowColor),d=c.opacity,p=c.color,g=v/2/l,y=v/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Vt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Vt("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),a[i]=o}t.filter=pu(o)}}function oA(r,t,e,n){var i=r[e],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(z1(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(F1(i))a="radialGradient",o.cx=it(i.x,.5),o.cy=it(i.y,.5),o.r=it(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=rc(s[u].offset)*100+"%",v=s[u].color,c=Po(v),d=c.color,p=c.opacity,g={offset:h};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Vt("stop",u+"",g))}var y=Vt(a,"",o,l),m=up(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Vt(a,S,o,l)),t[e]=pu(S)}function sA(r,t,e,n){var i=r.style[e],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",h;if(N1(i)){var v=i.imageWidth,c=i.imageHeight,d=void 0,p=i.image;if(G(p)?d=p:nA(p)?d=p.src:iA(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";fe(v,g),fe(c,g)}else if(v==null||c==null){var y=function(M,D){if(M){var I=M.elm,L=v||D.width,R=c||D.height;M.tag==="pattern"&&(u?(R=1,L/=a.width):f&&(L=1,R/=a.height)),M.attrs.width=L,M.attrs.height=R,I&&(I.setAttribute("width",L),I.setAttribute("height",R))}},m=Nv(d,null,r,function(M){l||y(x,M),y(h,M)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=Vt("image","img",{href:d,width:v,height:c}),o.width=v,o.height=c}else i.svgElement&&(h=Z(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=H1(i);b&&(o.patternTransform=b);var x=Vt("pattern","",o,[h]),T=up(x),A=n.patternCache,C=A[T];C||(C=n.zrId+"-p"+n.patternIdx++,A[T]=C,o.id=C,x=n.defs[C]=Vt("pattern",C,o,[h])),t[e]=pu(C)}}function SH(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=Vt("clipPath",a,o,[aA(r,e)])}t["clip-path"]=pu(a)}function Q_(r){return document.createTextNode(r)}function li(r,t,e){r.insertBefore(t,e)}function J_(r,t){r.removeChild(t)}function j_(r,t){r.appendChild(t)}function lA(r){return r.parentNode}function uA(r){return r.nextSibling}function Yh(r,t){r.textContent=t}var t1=58,xH=120,bH=Vt("","");function hv(r){return r===void 0}function yr(r){return r!==void 0}function wH(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function ho(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function jo(r){var t,e=r.children,n=r.tag;if(yr(n)){var i=r.elm=eA(n);if(cp(bH,r),F(e))for(t=0;t<e.length;++t){var a=e[t];a!=null&&j_(i,jo(a))}else yr(r.text)&&!X(r.text)&&j_(i,Q_(r.text))}else r.elm=Q_(r.text);return r.elm}function fA(r,t,e,n,i){for(;n<=i;++n){var a=e[n];a!=null&&li(r,jo(a),t)}}function fu(r,t,e,n){for(;e<=n;++e){var i=t[e];if(i!=null)if(yr(i.tag)){var a=lA(i.elm);J_(a,i.elm)}else J_(r,i.elm)}}function cp(r,t){var e,n=t.elm,i=r&&r.attrs||{},a=t.attrs||{};if(i!==a){for(e in a){var o=a[e],s=i[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e.charCodeAt(0)!==xH?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(iH,e,o):e.charCodeAt(3)===t1?n.setAttributeNS(aH,e,o):e.charCodeAt(5)===t1?n.setAttributeNS(tA,e,o):n.setAttribute(e,o))}for(e in i)e in a||n.removeAttribute(e)}}function TH(r,t,e){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=e.length-1,u=e[0],f=e[l],h,v,c,d;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=e[++i]:f==null?f=e[--l]:ho(o,u)?(ta(o,u),o=t[++n],u=e[++i]):ho(s,f)?(ta(s,f),s=t[--a],f=e[--l]):ho(o,f)?(ta(o,f),li(r,o.elm,uA(s.elm)),o=t[++n],f=e[--l]):ho(s,u)?(ta(s,u),li(r,s.elm,o.elm),s=t[--a],u=e[++i]):(hv(h)&&(h=wH(t,n,a)),v=h[u.key],hv(v)?li(r,jo(u),o.elm):(c=t[v],c.tag!==u.tag?li(r,jo(u),o.elm):(ta(c,u),t[v]=void 0,li(r,c.elm,o.elm))),u=e[++i]);(n<=a||i<=l)&&(n>a?(d=e[l+1]==null?null:e[l+1].elm,fA(r,d,e,i,l)):fu(r,t,n,a))}function ta(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(cp(r,t),hv(t.text)?yr(n)&&yr(i)?n!==i&&TH(e,n,i):yr(i)?(yr(r.text)&&Yh(e,""),fA(e,null,i,0,i.length-1)):yr(n)?fu(e,n,0,n.length-1):yr(r.text)&&Yh(e,""):r.text!==t.text&&(yr(n)&&fu(e,n,0,n.length-1),Yh(e,t.text)))}function AH(r,t){if(ho(r,t))ta(r,t);else{var e=r.elm,n=lA(e);jo(t),n!==null&&(li(n,t.elm,uA(e)),fu(n,[r],0,0))}return t}var CH=0,MH=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=e1(),this.configLayer=e1(),this.storage=e,this._opts=n=B({},n),this.root=t,this._id="zr"+CH++,this._oldVNode=U_(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=eA("svg");cp(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.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",AH(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return K_(t,fv(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=fv(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=DH(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Vt("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=V(st(a.defs),function(v){return a.defs[v]});if(u.length&&o.push(Vt("defs","defs",{},u)),t.animation){var f=lH(a.cssNodes,a.cssAnims,{newline:!0});if(f){var h=Vt("style","stl",{},[],f);o.push(h)}}return U_(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},up(this.renderToVNode({animation:it(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:it(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var i=t.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var h=t[f];if(!h.invisible){var v=h.__clipPaths,c=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(c-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var y=p+1;y<c;y++){var m={};SH(v[y],m,e);var _=Vt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=v;var S=K_(h,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),i&&a&&(a.style.display="none",t=Ty(i,0,n),e=Ty(i,1,n),a.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,a){var o=a.style;o.width=t+"px",o.height=e+"px"}if(Mv(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=HD(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function e1(r){return function(){}}function DH(r,t,e,n){var i;if(e&&e!=="none")if(i=Vt("rect","bg",{width:r,height:t,x:"0",y:"0",id:"0"}),V1(e))oA({fill:e},i.attrs,"fill",n);else if(Mv(e))sA({style:{fill:e},dirty:Ht,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",n);else{var a=Po(e),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}const IH=MH;function LH(r){r.registerPainter("svg",IH)}Xt([XG,yG,cG,XF,CV,K4,Zz,UB,CB,n5,JN,tN,LH,sF,Pw,W3,g4,Y4,RG,EV,HV]);const{darkTheme:PH,appTheme:RH,appThemeList:EH}=mA,kH=yA({id:"app-design-setting",state:()=>({darkTheme:PH,appTheme:RH,appThemeList:EH}),getters:{getDarkTheme(){return this.darkTheme},getAppTheme(){return this.appTheme},getAppThemeList(){return this.appThemeList}},actions:{}});function OH(){const r=kH(),t=_n(()=>r.darkTheme),e=_n(()=>r.appTheme),n=_n(()=>r.appThemeList);return{getDarkTheme:t,getAppTheme:e,getAppThemeList:n}}var hA=(r=>(r[r.XS=480]="XS",r[r.SM=576]="SM",r[r.MD=768]="MD",r[r.LG=992]="LG",r[r.XL=1200]="XL",r[r.XXL=1600]="XXL",r))(hA||{});const Ia=new Map;Ia.set("XS",480);Ia.set("SM",576);Ia.set("MD",768);Ia.set("LG",992);Ia.set("XL",1200);Ia.set("XXL",1600);let BH,NH,zH;function FH(){return{screenRef:_n(()=>hn(BH)),widthRef:NH,screenEnum:hA,realWidthRef:zH}}function VH(r,t="default"){const{getDarkTheme:e}=OH(),n=_n(()=>{const d=e.value?"dark":"light";return t==="default"?d:t});let i=null,a=h;const o=Tr({});let s=()=>{};a=o1(h,200);const l=_n(()=>n.value!=="dark"?o.value:{backgroundColor:"transparent",...o.value});function u(d=t){const p=hn(r);if(!p||!hn(p))return;i=sm.init(p,d);const{removeEvent:g}=vM({el:window,name:"resize",listener:a});s=g;const{widthRef:y,screenEnum:m}=FH();(hn(y)<=m.MD||p.offsetHeight===0)&&of(()=>{a()},30)}function f(d,p=!0){var g;if(o.value=d,((g=hn(r))==null?void 0:g.offsetHeight)===0){of(()=>{f(hn(l))},30);return}_A(()=>{of(()=>{!i&&(u(n.value),!i)||(p&&(i==null||i.clear()),i==null||i.setOption(hn(l)))},30)})}function h(){i==null||i.resize()}cv(()=>n.value,d=>{i&&(i.dispose(),u(d),f(o.value))}),a1(c);function v(){return i||u(n.value),i}function c(){i&&(s(),i.dispose(),i=null)}return{setOptions:f,resize:h,echarts:sm,getInstance:v,disposeInstance:c}}const GH=Zr({name:"home-trainData",setup(){const r=Tr(null),{setOptions:t}=VH(r),e=Tr(!0),n=Tr(!0),i=vv({height:"360px",width:"100%",studentNum:0,paymentAmount:0,dateList:["2022-10-10","2022-10-11","2022-10-12","2022-10-13","2022-10-14","2022-10-15","2022-10-16"],studentList:[50,100,80,180,70,99,300],payInfoList:[100,200,300,450,330,200,10]}),a=()=>{t({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:2,color:"#A9C7FF"}}},legend:{show:!1,selected:{合格人数:e.value,不合格人数:n.value}},xAxis:{type:"category",boundaryGap:!1,axisLabel:{show:!0,interval:0},data:i.dateList},yAxis:[{type:"value",axisLabel:{formatter:"{value}人"},axisTick:{show:!1},splitArea:{show:!1,areaStyle:{color:["rgba(255,255,255,0.2)"]}}}],grid:{left:"1%",right:"1%",top:"2 %",bottom:0,containLabel:!0},series:[{data:i.studentList,symbolSize:10,type:"line",name:"不合格人数",symbol:"circle",smooth:!0,itemStyle:{color:"#FF7AA7",borderColor:"#fff",borderWidth:3},lineStyle:{width:3},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(255, 243, 246, 1)"},{offset:1,color:"rgba(255, 246, 248, 0)"}]}},emphasis:{disabled:!0}},{data:i.payInfoList,type:"line",name:"合格人数",symbolSize:10,symbol:"circle",smooth:!0,itemStyle:{color:"#198CFE",borderColor:"#fff",borderWidth:3},lineStyle:{width:2},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(212, 231, 255, 1)"},{offset:1,color:"rgba(221, 235, 254, 0)"}]}},emphasis:{disabled:!0}}],formatter:o=>Array.isArray(o)?[o[0].axisValueLabel,...o.map(s=>`<br/>${s.marker}<span style="margin-top:10px;margin-left:5px;font-size: 13px;font-weight: 500;
- color: #333333;
- line-height: 18px;">${s.seriesName}: ${s.value}人 </span>`)].join(""):o})};return a(),()=>P(Ti,null,[P("div",{class:z.homeTrainData},[P("div",{class:z.TrainDataTop},[P("div",{class:z.TrainDataTopLeft},[P("div",{class:z.TrainDataItem},[P("p",{class:z.TrainDataItemTitle},[P("span",null,[P(Ei,{from:0,to:6},null)]),ot("次")]),P("p",{class:z.TrainDataItemsubTitle},[ot("训练次数")])]),P("div",{class:z.TrainDataItem},[P("p",{class:z.TrainDataItemTitle},[P("span",null,[P(Ei,{from:0,to:100},null)]),ot("人次")]),P("p",{class:z.TrainDataItemsubTitle},[ot("应交总人次")])]),P("div",{class:z.TrainDataItem},[P("p",{class:z.TrainDataItemTitle},[P("span",null,[P(Ei,{from:0,to:40},null)]),ot("人次")]),P("p",{class:z.TrainDataItemsubTitle},[ot("提交总人次")])]),P("div",{class:z.TrainDataItem},[P("p",{class:z.TrainDataItemTitle},[P("span",null,[" ",P(Ei,{from:0,to:30},null)]),ot("人次")]),P("p",{class:z.TrainDataItemsubTitle},[ot("合格总人次")])]),P("div",{class:z.TrainDataItem},[P("p",{class:z.TrainDataItemTitle},[P("span",null,[P(Ei,{from:0,to:40},null),ot("%")])]),P("p",{class:z.TrainDataItemsubTitle},[ot("训练提交率")])]),P("div",{class:z.TrainDataItem},[P("p",{class:z.TrainDataItemTitle},[P("span",null,[P(Ei,{from:0,to:30},null),ot("%")])]),P("p",{class:z.TrainDataItemsubTitle},[ot("训练合格率")])])]),P("div",{class:z.TrainDataTopRight},[P("div",{onClick:()=>{e.value=!e.value,a()},class:[z.DataTopRightItem,e.value?"":z.DataTopRightItemDis]},[P("div",{class:z.DataTopRightDot},null),P("p",null,[ot("合格人数")])]),P("div",{onClick:()=>{n.value=!n.value,a()},class:[z.DataTopRightItem,n.value?"":z.DataTopRightItemDis]},[P("div",{class:[z.DataTopRightDot,z.red]},null),P("p",null,[ot("不合格人数")])])])]),P("div",{class:z.chatrs},[P("div",{ref:r,style:{height:i.height,width:i.width}},null)])])])}}),HH=Zr({name:"home-study",setup(){return()=>P(Ti,null,[P("div",{class:z.homeStudy},[P("div",{class:z.homeStudyTitle},[P("div",{class:z.homeStudyTitleDot},null),ot("学情")]),P("div",{class:z.homeStudyInfoList},[P("div",{class:z.homeStudyInfoTabs},[P("div",{class:[z.homeStudyInfoTabItem,z.active]},[ot("训练数据")]),P("div",{class:z.homeStudyInfoTabItem},[ot("练习数据")]),P("div",{class:z.homeStudyInfoTabItem},[ot("练习排行")])]),P("div",{class:z.homeStudyInfoDate},[P(n1,null,{default:()=>[P(hM,{separator:"-",type:"daterange"},null),P(Mo,{type:"primary",class:z.searchBtn},{default:()=>[ot("搜索")]}),P(Mo,{type:"primary",ghost:!0,class:z.resetBtn},{default:()=>[ot("重置")]})]})])]),P(GH,null,null)])])}}),WH=""+new URL("cloundIcon-8f2c10d8.png",import.meta.url).href,UH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAADZxJREFUeF7tXGusHVUV/uYWRAuKCJWg/YORoOITW9H4iBoggG149aIghVKhttQiUGuBFkqhvAoVKG1pEYNITKQgiYmmkig2mli0NQjVUAMFfBZ5WKkUSkvvMuvcWWXddffae8+ZQ6bGucnNPXfOnNlnvm+tb732OQXan0YRKBpdvV0cLQENG0FLQEtAwwg0vHzrAS0BDSPQ8PKtB7QENIxAw8u3HtAS0DACDS/fekBLQMMINLx86wEtAQ0j0PDyrQf8zxNwH+2PbRiHAYzDCByCAu8AcABARafXKr98o/p/fbyvRMGe+ySAvwKg8pdPGyjPlWP8l3+q/C9mJ6/VZsjH+oqtIKzC3piGRcVzrydH3XvAXXQQCPNR4CyA9hgCtAXUAq/JkMf6Na8C+BOAFwywFmwLfIgMOSbE6dfw+9IkDCOkuBfLi/7dj4A7aCoKLEJBI3dNFDzrDnlByOL5GJ/7Sgn+S8qyQxZe1RNC3iPIhkjg59gTbi322X0I+AXtgSdwMwo6N9viQ9LjydHLADaWJMQkJeYJHtCWMH2eEKylSbxjRV/3KpHBXLWLf4eWgkrwQzJjpUWsOue4gL/TaH6KiFQMqOo98l7lursNAbex7NCtuyTHC5yevIS0vuPmALYB4IDLVhqSFg/klFXL8/yXTY3/5niP9oTdgoAVdBAKPA6Umi9v0Au2sYzHxortAP4CgANvKKiGAMvR/xzPCBGoPY7f6/LdQYKW020AnTMsrRQCNBEhS7fppZzPAPwNAJOgU83QY5vNeOdUvY7EAo+wxgm4k/bHS3gaRZlqWuv2ABd58YIwH3+6lB9t+fqxTh1zrD7kQaEYoK08Jkm8ZuMELKMzAfpuRx7Ykm1gjQEtUhVKUZ8HsDUhOzpTicmFl/mkgPbijZDC113atAQtpXtQ0IRdBFSxeCHHEsFBd3Mg4OZYcCwmhIjIkaSYnDVOwBL6PUAfcrMfLxuyBZicx2nmvzLAt2BWsfJUcLWAWwnU2dOSLj3gEdoPH8AWFAXfsfuTrgNuoWcAGhXs44QkRkuSDc78P7cXdlTo7Qg4GtQQOTG58WoJz2M0IYsrEvAwHYxXsRigcegrfoKPFOPqEbCYBlCoxpoOqp7EeHGBpYd/Y4BYILW1CmBahqocs+vmeMrNmQQ8RnthM2YBuAQFvWmXZI+Jvz7tATcP0JB+j1cBx2oCfo5vlvs7oWKoG532JCkFatU4cWMGAQ/S0SAsAeiQXcALskfUJeCmkoBuii/tCZzrsxqGpCRVNMXqAk96cgiKeY/I0LciAD5Io7EDNwI0Idh652t8ohcEaNnxWsueHElTiwnQoHg6nrLgXLJCMuUFW32uNZAbAgByUxI4HwXmoaDBbqmOh9rwPlmXgBsHBt+e1AB2sRAhVo6s5XuSY3v2qd5NrmeEiE+ls/w8r28J+Dl9BsAygA4bBrqu+AWDT9clYNEAdYqvHC/wvCMiEwUBkw4FjhoNrH8euPNR4B8vmqaZWG7KO7SF57Qu9HU9z1pYAshWvx0rAJrcwSJUkFov4P8/2wsCbC/Hy/FDFS+/UW2pBsT5Y4HLxryWC2zZTpi7Blj6MNDxvVwgY53RWKEVIk0bzHUlgD+lYzBAq9wRqzZQ/fhzdQm4QQVhzXDOPICVckS8Dfz0RODAkcOTsd89Q5j6ALDumcS8N0fOtJTZ2JNqcVxTAvhj6gdo5bAJoJbkUFF6ZF0Crg9IkA4yXqeTj++l+vCOpdEUPxMeIMKyR4A5a4At0jFNAZbjCTZAi96HgrQQ8CPqRxEgICQ7GpOje0GAB3gs92frf2NiqE7c5E6XIpu2Es7/JbDysYrTspi8aE+IVdlXlQAyAQO0ckg8tHExlKAcU5eA64wEhSJ9aB4wEgCT4FW95XE6O01AmQLg/j8Tpq8GNnI7I5QxWQvOaU/EAjc/d2UJ4H3UDyo9IBQTPTKO6zUB3kKaBH78lhI2G0SNBtPkfAL4pdteJVy1Dli4DtjOJORmRrHZgo0Lmjgh4J5SgkJW7gVgPj6+LgHXBloRXtEhlsHSs3dJgNdzLy2PzqpGgHjDhs2EaQ8Aq/+ekKWcytt6gY4R80sAf0D96KOVHY8OZXvyxmyGeHxdAq4xQVjYjg3f3wpgT+UBoRxbJGhSdwTI/d61gTDzV8Czeh9RqrckFh8qxqxsXa4IEAnyvCAkxSf2ggAJwvzmLPCS50thwngeaMCP5PJ0Rj0CeKXN2wizfw3c/oeybPDGl1UyKCFpXgng98s0NCfw6luaUJeAq1UrwnM9fZwbsW+LyI9xd5pYnwDxhjWbCJN/BmzgaZun6zG5CSUMl5YAfk/VAakgrEnqr0vAglKCvEVtSb4fAG5PpWRAJOj03hEg3nD43cBTsq9UA54CP/T83BLAO8oYENJ6fQvWSL/YCwJ00PW8QKSJ90bn6L8E4dN6SwBfdt5vCFesjQRnLyaFvGaOIsDGAC8ZEcnmv6fVJeDKCvMAbjscnLmFvASBTn2dCFhXcfJmrV/IuKQE8HZVB4QSEBsb5LZO7wUBoYtbSeJzWHoOUgHYuyl1nL7UWwKee5kw9ofAU1vyE4EhxaL1jotKAFeYOiBm/RqbM+sScEWFeQAH31GBG/e6kWykp/SOgDX/JExeDWz4d6AF4rWbU9XybEWAliAvG7JyPakuAZdXmAew9XMNYAGPeAL11ydg8yuEi9YC394AkHQ+Qw23WFvaI2hWCeAyJUEafI8IOf6VXhAQyoD0MdHEdwHgHpBnVaKr6mZpQj0C7nqcMPO3wLO8vT2UxVgiUlM2e41vlADeYtJQyYYkC5QK2caHs+sSMK/CPOA9ZQYUkRw7nKGTuyNgwwuEaWuA1by/NNFvclNib4eGJmFmCeBNgRiQkwV9tS4Bl2XOA5j5D1ff308nVSNg207CVeuBhX8EtsueM014lXlATmV8oSKAY0CO/GhipvWCAC/F0u72BgAfzAh+JtemE/IJuH8TYfpaYON/Sv/P6YSmzgnFK+0Z55cALipjgG69CC6S94daNdPrEjA3cx7AHdD3Gx3OSUOPTxOw6WXCBQ8Bd/MHOTy5yclyDPnDPi1jWxF8/nklgAszWhFChDbYGb0mwIv6bwZwmCEg1oOXQmy8T0BnJLkRmLMe2KL3k8ZSx1AgTgEfel7WEAKuUSPJWOtBB2d+LB4kx83ftPnNyZwH7AvgfSYF1TfmSMETnwcODg3lNxOmPgSs48aa11fyZg3iDTFgNVExgr5WWjATYGNAqBjVrRq+rsSQrgm4JHMewEWYJiCWc6ubn/tu4MpDX7ODLTsIcx8Flj5RbktJWW+og1nlmL5+aC3R8AWBXRE6BoTScj4maWwtAjzZ4QUkKL0dwHsje4AiQE5+J3D0KGDjVmDJk8Amm9OHZMUrtDyvSxHpve7c0gPmR0aSNh3VZEgl3TUBF2fOA9gDJAuy7s1gxXYeeLpttd4GWk9iern+VEUA74qwEmONU4s6G6f0kromYHbmPICH8GOcNNRqcqo6FWBT7YScFDMkMVXWFwIupY8CWNv5rIQGnR9LOh46Lt3UWgRoF/N2xHEW9PFEDz5047nBMFZseUHaHo95oU1v5bVTVBp5GZ0IwmIQjQ7ukNNEyGOZqHVNwDcz5wFcB/C+4czg6+bgQoin2aldDp4s5dYJluhzTB5/Oe2DHZjX2Z7O3xITsn5tsDJTrkVASOdsCsabsI4KaH1Kx0PAeNVpzFvkOUtQt+vL9bxu5qV0GHZ2tqmz2fkydEXdQmxWhXnAkWYcmdN59HYw2FTSFnWxgKzJCJ0X81J7/uQ4gLiYJqLA9SA6cNjOaX4fC+oSMLPCPOBTALggC1mwzoRyshfPM7wMJyYx1juqrJ8YqHSsfzbtiwILAEwDaMSQ+HB1LwjInQccDmC0Mw9IdR6tVHgxIHRejkV3sz5fNzFSHCLts+hw9HVk6YjBTKnYimvjX/iUbkVcWGEewJ8RtNWwttgcvbfZiE1JLTHdAmslzpO8MxISZIMrUYFZOBt9mALgTiwsljjxd5Cj2JOd5y7InAfwuWz9H3M+1RIKkjEdT6Wdcr3YdUMBOXeTrhA9sSIBSUCHnpBHgI7yXs+Dj/OG3GOdHcuposl6Sipt1J5QJb/P1X9Z/8tNE/D1zHmA+NNxAAY/Jz7444GjLVEH6Cp1hEeSZ+Uh0lKemdhYVdHgh52e9gBLgABtA7MUJGPLzVkekNrSQ9ZoPcEC5L3Ga02HDMGTt5AXntq0B5wXqIS9YTQf551xgzmAvzvCBtoQWSHLFPBjub13rZxZsTUOvlZib+fr7wEzMucB/E7YC3hbygkVWhKeJqcKqFSRlytlqfVPadwD6EUQ7e1+DXFon+QXAPAu6VRwzLXWXI9JtbyrVt1UbEV/01/cOoPuAZkvo7A9cfs/z4a5KPNkyAZDfr1YtIDtWWZK2lJVeIjMkLR13nxxL05q+quLZ9IB2A7+vtBjARr85JdNRXVM4MecBZ2sqoxUShkCrRuJCZGjr+0BbdfiCnYnVmFPTMP43fXLu+tGn/b1u2y5haJBBNJ1QINv7v9h6ZaAhlluCWgJaBiBhpdvPaAloGEEGl6+9YCWgIYRaHj51gNaAhpGoOHlWw9oCWgYgYaXbz2gJaBhBBpevvWAloCGEWh4+f8C8tcn6FSw5YgAAAAASUVORK5CYII=",YH=Zr({name:"home-teachItem",props:["item"],setup(r,{emit:t}){return()=>P(Ti,null,[P("div",{class:z.teachGroupItemWrap},[P("div",{class:z.teachGroupItemLeft},[P(Pe,{previewDisabled:!0,src:r.item.image?r.item.image:s1,class:z.teachGroupItemHeader,"object-fit":"cover"},null)]),P("div",{class:z.teachGroupItemRight},[P("p",{class:z.teachGroupItemName},[r.item.teacherName,ot(" "),P("span",null,[r.item.classGroup])]),P("p",{class:z.teachGroupItemInfo},[r.item.conent])])])])}}),XH=Zr({props:["list","keys"],name:"home-teachGroup",setup(r,{emit:t}){return()=>P(Ti,null,[P("div",{class:z.teachGroup},[P("p",{class:z.teachGroupTitle},[r.keys]),P("div",{class:z.teachGroupList},[P("div",{class:z.teachGroupListDot},null),r.list.map(e=>P(YH,{item:e},null))])])])}}),$H=Zr({name:"home-teachList",setup(){const r={"06-18":[{classGroup:"3年级2班",teacherName:"孙忆枫",conent:"人教版二年级上册 | 第七单元 |【歌表演】大雁",image:""},{classGroup:"3年级2班",teacherName:"孙忆枫",conent:"人教版二年级上册 | 第六单元 |【歌表演】大雁",image:""}],"06-17":[{classGroup:"3年级2班",teacherName:"孙忆枫",conent:"人教版二年级上册 | 第五单元 |【歌表演】大雁",image:""},{classGroup:"3年级2班",teacherName:"孙忆枫",conent:"人教版二年级上册 | 第四单元 |【歌表演】大雁",image:""}],"06-16":[{classGroup:"3年级2班",teacherName:"孙忆枫",conent:"人教版二年级上册 | 第三单元 |【歌表演】大雁",image:""}],"06-15":[{classGroup:"3年级2班",teacherName:"孙忆枫",conent:"人教版二年级上册 | 第二单元 |【歌表演】大雁",image:""}],"06-14":[{classGroup:"3年级2班",teacherName:"孙忆枫",conent:"人教版二年级上册 | 第一单元 |【歌表演】大雁",image:""}]};return()=>P(Ti,null,[P("div",{class:z.teachListWrap},[Object.keys(r).map(t=>P(XH,{list:r[t],keys:t},null)),P("div",{class:z.teachListWrapWall},null)])])}}),ZH=Zr({name:"train-update",emits:["close"],setup(r,{emit:t}){const e=vv({version:null,classId:null,category:null,chapter:null}),n=i1(),i=()=>{const{href:a}=n.resolve({path:"/attend-class"});window.open(a,+new Date+"")};return()=>P("div",{class:z.trainUpdate},[P(SA,{labelAlign:"left",labelPlacement:"left"},{default:()=>[P(vs,{path:"classId"},{default:()=>[P(ds,ro({options:[{label:"三年级2班",value:"song0"},{label:"二年级1班",value:"song1"}],placeholder:"选择班级",clearable:!0},{value:e.classId,"onUpdate:value":a=>e.classId=a}),null)]}),P(vs,{path:"version"},{default:()=>[P(ds,ro({options:[{label:"人教版",value:"song0"},{label:"人音版",value:"song1"}],placeholder:"选择教材版本",clearable:!0},{value:e.version,"onUpdate:value":a=>e.version=a}),null)]}),P(vs,{path:"category"},{default:()=>[P(ds,ro({options:[{label:"一年级上册",value:"song0"},{label:"一年级下册",value:"song1"}],placeholder:"选择册别",clearable:!0},{value:e.category,"onUpdate:value":a=>e.category=a}),null)]}),P(vs,{path:"chapter"},{default:()=>[P(ds,ro({options:[{label:"第一单元|第一章",value:"song0"},{label:"第一单元|第二章",value:"song1"}],placeholder:"选择章节",clearable:!0},{value:e.chapter,"onUpdate:value":a=>e.chapter=a}),null)]}),P(n1,{class:z.updateBtnGroup},{default:()=>[P(Mo,{strong:!0,type:"default",round:!0,onClick:()=>t("close")},{default:()=>[ot("取消")]}),P(Mo,{strong:!0,type:"primary",round:!0,onClick:()=>i()},{default:()=>[ot("确认")]})]})]})])}}),qH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAR1JREFUSEu11DFqAkEUxvHvKYh2WZRoOuvUgmgdEDxCyA2sIsgk2GwXbGz0BpJLCDY2Ch5AhNSBSAJCSCIk+oIbtDDKvjezTrs7/98MvF3CiRdJ+5c+J96+UA/ez6Dz0qAPyV4xkDV8zcBjECUMKY2qBJED91zkNca7UwsRMbAJZ+/4lhltDaICbBA1oEWsAA1iDUgRJ0CCOAOHEAam3ymUFz4tIgEO3gToz1tUiQzIGa6tge7uG4lhMH+gq0iA/TgBT/EUSs8+vToD/+KE0ZmHyszQ+99vy2GFxZ0ASdwakMatAE1cDWjjKuCiyYXVDybbmaC9aTk2K+IpOjd8A6AXnEoYV90g73Pycwmz2eR5aG/nPGzKxTcICx17/gs/QaMZWM8inwAAAABJRU5ErkJggg==",KH=""+new URL("soureIcon-a8d17fc8.png",import.meta.url).href,rW=Zr({name:"home-page",setup(){const r=i1(),t=vv({loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[{teacherName:"孙忆枫",createTime:"2023-06-27",endTime:"2023-06-30",status:"ing",studentNum:100,submitNum:100,quantityNum:60,submitRate:100,quantityRate:60},{teacherName:"孙忆枫",createTime:"2023-06-27",endTime:"2023-06-30",status:"ing",studentNum:100,submitNum:100,quantityNum:60,submitRate:100,quantityRate:60},{teacherName:"孙忆枫",createTime:"2023-06-27",endTime:"2023-06-30",status:"ing",studentNum:100,submitNum:100,quantityNum:60,submitRate:100,quantityRate:60},{teacherName:"孙忆枫",createTime:"2023-06-25",endTime:"2023-06-26",status:"end",studentNum:100,submitNum:100,quantityNum:60,submitRate:100,quantityRate:60}],goCourseVisiable:!1}),e=()=>[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime"},{title:"截止时间",key:"endTime"},{title:"训练状态",key:"status",render(i){return i.status=="ing"?P("div",{class:z.indDot},[" ",P("span",null,null),ot(" 进行中")]):P("div",{class:z.endDot},[P("span",null,null),ot("已结束")])}},{title:"布置人数",key:"studentNum"},{title:"提交人数",key:"submitNum"},{title:"合格人数",key:"quantityNum"},{title:"提交率",key:"submitRate",render(i){return P("span",null,[i.submitRate,ot("%")])}},{title:"合格率",key:"quantityRate",render(i){return P("span",null,[i.quantityRate,ot("%")])}},{title:"操作",key:"id",render(i){return P(Mo,{text:!0,type:"primary"},{default:()=>[ot("详情")]})}}],n=()=>{console.log("1")};return()=>P("div",{class:z.homeWrap},[P("div",{class:z.homeInfoLeft},[P("div",{class:z.homeBanner},[P("img",{class:z.bannerPerson,src:rM},null),P("div",{class:z.bannerInfo},[P("h3",null,[ot("Hi,张老师 下午好!")]),P("p",{class:z.bannerMsg},[ot("您有 "),P("span",{class:z.bannerRed},[ot(" 4 ")]),P("span",{class:z.bannerRrey},[ot(" 条消息未读,")]),P("span",{class:z.bannerRed},[ot(" 3 ")]),ot("门课程未布置作业,请及时处理哦!")]),P("div",{class:z.bannerBtn},[ot("立即处理")," ",P(xA,{class:z.rotueRight},{default:()=>[P("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[P("path",{d:"M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z",fill:"currentColor"},null)])]})])]),P(Pe,{class:z.leftDot,src:nM},null),P(Pe,{class:z.rightDot,src:iM},null),P(Pe,{class:z.lineIcon,src:aM},null),P(Pe,{class:z.musicIcon,src:oM},null)]),P("div",{class:z.leftBottomWrap},[P(HH,null,null),P("div",{class:z.tableWrap},[P(bA,{class:z.classTable,loading:t.loading,columns:e(),data:t.tableList},null),P(AA,{page:t.pagination.page,"onUpdate:page":i=>t.pagination.page=i,pageSize:t.pagination.rows,"onUpdate:pageSize":i=>t.pagination.rows=i,pageTotal:t.pagination.pageTotal,"onUpdate:pageTotal":i=>t.pagination.pageTotal=i,onList:n,sync:!0,saveKey:"orchestraRegistration-key"},null)])])]),P("div",{class:z.homeInfoRight},[P("div",{class:z.homeInfoRightTop},[P("div",{class:z.HeaderWrap},[P(Pe,{previewDisabled:!0,class:z.headerD,src:CA},null),P(Pe,{previewDisabled:!0,class:z.defultHeade,src:s1},null)]),P("div",{class:z.headerInfo},[P("p",{class:z.headerTitle},[ot("张晚意")]),P("p",{class:z.headerSubTitle},[ot("武汉小学 | 音乐老师")])]),P("div",{class:z.quickEnter},[P("h3",{class:z.rightTitle},[P("div",{class:z.titleDot},null),ot("快捷入口")]),P("div",{class:z.quickList},[P("div",{class:z.quickItem,onClick:()=>t.goCourseVisiable=!0},[P(Pe,{previewDisabled:!0,class:z.quickItemImg,src:UH},null),P("p",null,[ot("开始上课")])]),P("div",{class:z.quickItem},[P(Pe,{previewDisabled:!0,class:z.quickItemImg,src:KH},null),P("p",null,[ot("布置作业")])]),P("div",{class:z.quickItem,onClick:()=>r.push("/natural-resources")},[P(Pe,{previewDisabled:!0,class:z.quickItemImg,src:WH},null),P("p",null,[ot("我的资源")])])])])]),P("div",{class:z.rightTeachingWrap},[P("div",{class:z.rightTeachingWrapTitle},[P("h3",{class:z.rightTitle},[P("div",{class:z.titleDot},null),ot("教学进度")]),P("div",{class:z.lookMore},[ot("查看全部")," ",P(Pe,{src:qH,class:z.lookMoreArrow,previewDisabled:!0},null)])]),P($H,null,null)])]),P(wA,{show:t.goCourseVisiable,"onUpdate:show":i=>t.goCourseVisiable=i,preset:"card",class:z.chioseModel,title:"选择课件"},{default:()=>[P(ZH,{onClose:()=>t.goCourseVisiable=!1},null)]})])}});export{rW as default};
|