import{A as i1,B as pA,C as gp,d as lr,D as gA,r as Te,E as Sn,q as mA,G as yA,f as P,o as Re,H as _A,I as no,F as An,w as vv,J as hn,K as SA,L as xA,M as bA,e as Ci,k as Q,O as dv,j as Mo,Q as a1,u as o1,N as wA,g as ds,R as ps,x as TA,z as AA}from"./index-0be85192.js";import{t as s1,u as l1,a as CA}from"./index-d5629f35.js";import{P as pv}from"./index-b09d176f.js";import{h as DA}from"./headerD-14ad9998.js";import{d as u1}from"./teacherIcon-b8e3946d.js";var mp=1/0,MA=17976931348623157e292;function IA(r){if(!r)return r===0?r:0;if(r=i1(r),r===mp||r===-mp){var t=r<0?-1:1;return t*MA}return r===r?r:0}function LA(r){var t=IA(r),e=t%1;return t===t?e?t-e:t:0}var PA=pA.isFinite,RA=Math.min;function EA(r){var t=Math[r];return function(e,n){if(e=i1(e),n=n==null?0:RA(LA(n),292),n&&PA(e)){var i=(gp(e)+"e").split("e"),a=t(i[0]+"e"+(+i[1]+n));return i=(gp(a)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}var kA=EA("round");const OA=kA,BA=r=>1-Math.pow(1-r,5);function NA(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)*BA(u/n);if(u===n){a();return}i(f),requestAnimationFrame(o)},s=performance.now();o()}const FA={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},cn=lr({name:"NumberAnimation",props:FA,setup(r){const{localeRef:t}=gA("name"),{duration:e}=r,n=Te(r.from),i=Sn(()=>{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&&NA({from:v,to:c,duration:e,onUpdate:o,onFinish:s})},u=Sn(()=>{var v;const d=OA(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,m=r.showSeparator?p.format(Number(d[0])):d[0],y=d[1];return{integer:m,decimal:y,decimalSeparator:g}});function f(){a||l()}return mA(()=>{yA(()=>{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 yp(r,t){return zA.call(r)===`[object ${t}]`}function VA(r){return yp(r,"Function")||yp(r,"AsyncFunction")}const GA="_homeWrap_1tdgv_1",HA="_homeInfoLeft_1tdgv_6",WA="_homeBanner_1tdgv_11",UA="_bannerPerson_1tdgv_18",YA="_bannerInfo_1tdgv_26",XA="_bannerRrey_1tdgv_44",$A="_bannerRed_1tdgv_47",ZA="_bannerBtn_1tdgv_50",qA="_rotueRight_1tdgv_70",KA="_leftDot_1tdgv_74",QA="_rightDot_1tdgv_81",JA="_lineIcon_1tdgv_88",jA="_musicIcon_1tdgv_96",tC="_homeInfoRight_1tdgv_103",eC="_homeStudy_1tdgv_107",rC="_homeStudyTitle_1tdgv_110",nC="_homeStudyTitleDot_1tdgv_119",iC="_homeStudyInfoList_1tdgv_125",aC="_homeStudyInfoTabs_1tdgv_132",oC="_homeStudyInfoTabItem_1tdgv_137",sC="_active_1tdgv_155",lC="_homeStudyInfoDate_1tdgv_159",uC="_searchBtn_1tdgv_165",fC="_resetBtn_1tdgv_174",hC="_homeTrainData_1tdgv_182",cC="_TrainDataTop_1tdgv_185",vC="_TrainDataTopLeft_1tdgv_192",dC="_TrainDataItem_1tdgv_197",pC="_TrainDataItemTitle_1tdgv_200",gC="_TrainDataItemsubTitle_1tdgv_214",mC="_TrainDataTopRight_1tdgv_223",yC="_DataTopRightItem_1tdgv_228",_C="_DataTopRightDot_1tdgv_238",SC="_DataTopRightDotBlue_1tdgv_245",xC="_red_1tdgv_248",bC="_DataTopRightItemDis_1tdgv_251",wC="_leftBottomWrap_1tdgv_254",TC="_tableWrap_1tdgv_260",AC="_homeInfoRightTop_1tdgv_295",CC="_HeaderWrap_1tdgv_303",DC="_headerD_1tdgv_306",MC="_defultHeade_1tdgv_310",IC="_headerInfo_1tdgv_319",LC="_headerTitle_1tdgv_319",PC="_headerSubTitle_1tdgv_328",RC="_quickEnter_1tdgv_334",EC="_quickList_1tdgv_338",kC="_quickItem_1tdgv_345",OC="_quickItemImg_1tdgv_354",BC="_rightTitle_1tdgv_363",NC="_titleDot_1tdgv_371",FC="_rightTeachingWrap_1tdgv_377",zC="_rightTeachingWrapTitle_1tdgv_385",VC="_lookMore_1tdgv_391",GC="_lookMoreArrow_1tdgv_398",HC="_teachListWrap_1tdgv_402",WC="_teachListWrapWall_1tdgv_405",UC="_teachGroup_1tdgv_413",YC="_teachGroupTitle_1tdgv_416",XC="_teachGroupList_1tdgv_426",$C="_teachGroupListDot_1tdgv_433",ZC="_teachGroupItemWrap_1tdgv_443",qC="_teachGroupItemLeft_1tdgv_456",KC="_teachGroupItemHeader_1tdgv_464",QC="_teachGroupItemRight_1tdgv_473",JC="_teachGroupItemName_1tdgv_476",jC="_teachGroupItemInfo_1tdgv_492",tD="_indDot_1tdgv_497",eD="_endDot_1tdgv_498",rD="_chioseModel_1tdgv_521",nD="_updateBtnGroup_1tdgv_556",O={homeWrap:GA,homeInfoLeft:HA,homeBanner:WA,bannerPerson:UA,bannerInfo:YA,bannerRrey:XA,bannerRed:$A,bannerBtn:ZA,rotueRight:qA,leftDot:KA,rightDot:QA,lineIcon:JA,musicIcon:jA,homeInfoRight:tC,homeStudy:eC,homeStudyTitle:rC,homeStudyTitleDot:nC,homeStudyInfoList:iC,homeStudyInfoTabs:aC,homeStudyInfoTabItem:oC,active:sC,homeStudyInfoDate:lC,searchBtn:uC,resetBtn:fC,homeTrainData:hC,TrainDataTop:cC,TrainDataTopLeft:vC,TrainDataItem:dC,TrainDataItemTitle:pC,TrainDataItemsubTitle:gC,TrainDataTopRight:mC,DataTopRightItem:yC,DataTopRightDot:_C,DataTopRightDotBlue:SC,red:xC,DataTopRightItemDis:bC,leftBottomWrap:wC,tableWrap:TC,homeInfoRightTop:AC,HeaderWrap:CC,headerD:DC,defultHeade:MC,headerInfo:IC,headerTitle:LC,headerSubTitle:PC,quickEnter:RC,quickList:EC,quickItem:kC,quickItemImg:OC,rightTitle:BC,titleDot:NC,rightTeachingWrap:FC,rightTeachingWrapTitle:zC,lookMore:VC,lookMoreArrow:GC,teachListWrap:HC,teachListWrapWall:WC,teachGroup:UC,teachGroupTitle:YC,teachGroupList:XC,teachGroupListDot:$C,teachGroupItemWrap:ZC,teachGroupItemLeft:qC,teachGroupItemHeader:KC,teachGroupItemRight:QC,teachGroupItemName:JC,teachGroupItemInfo:jC,indDot:tD,endDot:eD,chioseModel:rD,updateBtnGroup:nD},iD=""+new URL("bannerPerson-c4a83458.png",import.meta.url).href,aD=""+new URL("leftDot-5a0f1cca.png",import.meta.url).href,oD=""+new URL("rightDot-4b44ee64.png",import.meta.url).href,sD="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=",lD=""+new URL("musicIcon-2ab1b215.png",import.meta.url).href,uD="_CdataWrap_1eby9_1",fD="_dateIcons_1eby9_16",of={CdataWrap:uD,dateIcons:fD},hD="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==",cD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAmCAYAAAC29NkdAAAAAXNSR0IArs4c6QAAAZtJREFUWEftmDFLBDEQhb9TFAWxEm1ExFJEwcpSLEQQ/LFWctWVVoIiliJio1iJoCgn8mADMe6yk+wu7EJSHXszb15eJpNMRtjGGrBXmF4Dzza3f1bROCNjoGNgobD9BMZGv9AsGsdK8CyIdJ5IMBpnkASXgQ1gFVgEZhPVsrpNgQ/gBXgE3nxHX8EZYAfYtCJ3ZPcA3AI/wncERe4AWOkoaCzsK3Apko7gbg+UCychJW9EUDl3GPyrUnIHaCb6Hb37KiQrw1H50spte6XMuU9EUHm35QGK0AT48r51SdCFmS+EcvVW3+9F8AhY8shcAU+BAtEFtkLBOpx1YN/zfRfB06CU6JSQiv6IPqIqCNbhSD1Nwo2pCLa1fLE7tcr+D59BErxoS4pEnJPwJAmXOBG3G7eyJe4mUiLqIAl+J062Lbe5uhxMvYy2RXD4ZSYrWJMLeYmbbpasYFYwl5nYMmO58jfNK6t/6ZXf0jRZAzS1K22aLG1n08AW/8q209K4WwKk2tQ27gLu9dOHCPb+8ciR7O3zm58/vXrA/AXVhWYx5GPH2gAAAABJRU5ErkJggg==",vD=lr({name:"CDatePicker",props:{type:{type:String,default:"daterange"},separator:{type:String,default:"-"}},setup(r,{emit:t,attrs:e}){const n=Te(!1),i=Te(null),a=()=>{console.log("更新日期",i.value),t("update:value",i.value)};return()=>P(An,null,[P("div",{class:of.CdataWrap},[P(Re,{previewDisabled:!0,class:of.dateIcons,src:n.value?hD:cD},null),P(_A,no(e,{class:of.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(An,null,[P("span",null,null)])})])])}});function sf(r,t,e=!1){if(!VA(r))throw new Error("handle is not Function!");const{readyRef:n,stop:i,start:a}=dD(t);return e?r():vv(n,o=>{o&&r()},{immediate:!1}),{readyRef:n,stop:i,start:a}}function dD(r){const t=Te(!1);let e;function n(){t.value=!1,e&&window.clearTimeout(e)}function i(){n(),e=setTimeout(()=>{t.value=!0},r)}return i(),s1(n),{readyRef:t,stop:n,start:i}}function pD({el:r=window,name:t,listener:e,options:n,autoRemove:i=!0,isDebounce:a=!0,wait:o=80}){let s=()=>{};const l=Te(!1);if(r){const u=Te(r),f=a?l1(e,o):CA(e,o),h=o?f:e,v=p=>{l.value=!0,p.removeEventListener(t,h,n)},c=p=>p.addEventListener(t,h,n),d=vv(u,(p,g,m)=>{p&&(!hn(l)&&c(p),m(()=>{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 $h=function(r,t){return $h=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])},$h(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");$h(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var gD=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),mD=function(){function r(){this.browser=new gD,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}(),ii=new mD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ii.wxa=!0,ii.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ii.worker=!0:typeof navigator>"u"?(ii.node=!0,ii.svgSupported=!0):yD(navigator.userAgent,ii);function yD(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=ii;var gv=12,f1="sans-serif",Cn=gv+"px "+f1,_D=20,SD=100,xD="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function bD(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",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 QD(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?Sp(s,o):Sp(o,s))}function A1(r){return r.nodeName.toUpperCase()==="CANVAS"}var JD=/([&<>"'])/g,jD={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(r){return r==null?"":(r+"").replace(JD,function(t,e){return jD[e]})}var tM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,uf=[],eM=vt.browser.firefox&&+vt.browser.version.split(".")[0]<39;function Jh(r,t,e,n){return e=e||{},n?bp(r,t,e):eM&&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):bp(r,t,e),e}function bp(r,t,e){if(vt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(A1(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Qh(uf,r,n,i)){e.zrX=uf[0],e.zrY=uf[1];return}}e.zrX=e.zrY=0}function Av(r){return r||window.event}function Ee(r,t,e){if(t=Av(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&&Jh(r,o,t,e)}else{Jh(r,t,t,e);var a=rM(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&tM.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function rM(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 nM(r,t,e,n){r.removeEventListener(t,e,n)}var Ur=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function wp(r){return r.which===2||r.which===3}var iM=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;o1&&n&&n.length>1){var a=Tp(n)/Tp(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=aM(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Ue(){return[1,0,0,1,0,0]}function rs(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function pu(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 Cr(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 Yr(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 En(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 Cv(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 xa(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 oM(r){var t=Ue();return pu(t,r),t}const sM=Object.freeze(Object.defineProperty({__proto__:null,clone:oM,copy:pu,create:Ue,identity:rs,invert:xa,mul:Cr,rotate:En,scale:Cv,translate:Yr},Symbol.toStringTag,{value:"Module"}));var lM=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 it=lM;var ms=Math.min,ys=Math.max,Bn=new it,Nn=new it,Fn=new it,zn=new it,Pa=new it,Ra=new it,uM=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=ms(t.x,this.x),n=ms(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=Ue();return Yr(a,a,[-e.x,-e.y]),Cv(a,a,[n,i]),Yr(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=!(ad&&(d=_,pd&&(d=S,m=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}Bn.x=Fn.x=e.x,Bn.y=zn.y=e.y,Nn.x=zn.x=e.x+e.width,Nn.y=Fn.y=e.y+e.height,Bn.transform(n),zn.transform(n),Nn.transform(n),Fn.transform(n),t.x=ms(Bn.x,Nn.x,Fn.x,zn.x),t.y=ms(Bn.y,Nn.y,Fn.y,zn.y);var l=ys(Bn.x,Nn.x,Fn.x,zn.x),u=ys(Bn.y,Nn.y,Fn.y,zn.y);t.width=l-t.x,t.height=u-t.y},r}();const pt=uM;var C1="silent";function fM(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:hM}}function hM(){Ur(this.event)}var cM=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}(ur),Ea=function(){function r(t,e){this.x=t,this.y=e}return r}(),vM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hf=new pt(0,0,0,0),D1=function(r){E(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Ea(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new cM,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new XD(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(w(vM,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=M1(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 Ea(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 Ea(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=fM(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 Ea(e,n);if(Ap(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)&&(hf.copy(v.getBoundingRect()),v.transform&&hf.applyTransform(v.transform),hf.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function dM(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?C1:!0}return!1}function Ap(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=dM(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==C1)){t.target=o;break}}}function M1(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const pM=D1;var I1=32,ka=7;function gM(r){for(var t=0;r>=I1;)t|=r&1,r>>=1;return r+t}function Cp(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function mM(r,t,e){for(e--;t>>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 cf(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function vf(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function yM(r,t){var e=ka,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])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]=ka||T>=ka);if(A)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(m=0;m=0;m--)r[x+m]=r[b+m];r[S]=o[_];return}for(var T=e;;){var A=0,C=0,D=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],A++,C=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],C++,A=0,--g===1){D=!0;break}while((A|C)=0;m--)r[x+m]=r[b+m];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(C=g-cf(r[y],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,m=0;m=ka||C>=ka);if(D)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),g===1){for(S-=d,y-=d,x=S+1,b=y+1,m=d-1;m>=0;m--)r[x+m]=r[b+m];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),m=0;ms&&(l=s),Dp(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 Sr=1,io=2,Ji=4,Mp=!1;function df(){Mp||(Mp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ip(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var _M=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ip}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(df(),f.z=0),isNaN(f.z2)&&(df(),f.z2=0),isNaN(f.zlevel)&&(df(),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=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 SM=_M;var L1;L1=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 Lp=L1;var cl={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-cl.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?cl.bounceIn(r*2)*.5:cl.bounceOut(r*2-1)*.5+.5}};const P1=cl;var _s=Math.pow,xn=Math.sqrt,Rl=1e-8,R1=1e-4,Pp=xn(3),Ss=1/3,xr=Pi(),Ne=Pi(),oa=Pi();function vn(r){return r>-Rl&&rRl||r<-Rl}function Ft(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 Rp(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function El(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(vn(f)&&vn(h))if(vn(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(vn(p)){var g=h/f,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m)}else if(p>0){var y=xn(p),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-_s(-_,Ss):_=_s(_,Ss),S<0?S=-_s(-S,Ss):S=_s(S,Ss);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*xn(f*f*f)),x=Math.acos(b)/3,T=xn(f),A=Math.cos(x),d=(-s-2*T*A)/(3*o),m=(-s+T*(A+Pp*Math.sin(x)))/(3*o),C=(-s+T*(A-Pp*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m),C>=0&&C<=1&&(a[c++]=C)}}return c}function k1(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(vn(o)){if(E1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(vn(f))i[0]=-a/(2*o);else if(f>0){var h=xn(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 kl(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 xM(r,t,e,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,p,g,m;xr[0]=l,xr[1]=u;for(var y=0;y<1;y+=.05)Ne[0]=Ft(r,e,i,o,y),Ne[1]=Ft(t,n,a,s,y),g=mi(xr,Ne),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(vn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=xn(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 O1(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ol(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 TM(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;xr[0]=o,xr[1]=s;for(var v=0;v<1;v+=.05){Ne[0]=Qt(r,e,i,v),Ne[1]=Qt(t,n,a,v);var c=mi(xr,Ne);c=0&&c=1?1:El(0,n,a,1,l,s)&&Ft(0,i,o,1,s[0])}}}var DM=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:P1[t]||Dv(t)},r}();const MM=DM;var B1=function(){function r(t){this.value=t}return r}(),IM=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new B1(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}(),LM=function(){function r(t){this._list=new IM,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 B1(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 ns=LM;var kp={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 nr(r){return r=Math.round(r),r<0?0:r>255?255:r}function PM(r){return r=Math.round(r),r<0?0:r>360?360:r}function Lo(r){return r<0?0:r>1?1:r}function pf(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?nr(parseFloat(t)/100*255):nr(parseInt(t,10))}function yi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Lo(parseFloat(t)/100):Lo(parseFloat(t))}function gf(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 dn(r,t,e){return r+(t-r)*e}function Pe(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function tc(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var N1=new ns(20),xs=null;function Bi(r,t){xs&&tc(xs,t),xs=N1.put(r,xs||t.slice())}function le(r,t){if(r){t=t||[];var e=N1.get(r);if(e)return tc(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in kp)return tc(t,kp[n]),Bi(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)){Pe(t,0,0,0,1);return}return Pe(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),Bi(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Pe(t,0,0,0,1);return}return Pe(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Bi(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?Pe(t,+u[0],+u[1],+u[2],1):Pe(t,0,0,0,1);f=yi(u.pop());case"rgb":if(u.length>=3)return Pe(t,pf(u[0]),pf(u[1]),pf(u[2]),u.length===3?f:yi(u[3])),Bi(r,t),t;Pe(t,0,0,0,1);return;case"hsla":if(u.length!==4){Pe(t,0,0,0,1);return}return u[3]=yi(u[3]),ec(u,t),Bi(r,t),t;case"hsl":if(u.length!==3){Pe(t,0,0,0,1);return}return ec(u,t),Bi(r,t),t;default:return}}Pe(t,0,0,0,1)}}function ec(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=yi(r[1]),i=yi(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Pe(t,nr(gf(o,a,e+1/3)*255),nr(gf(o,a,e)*255),nr(gf(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function RM(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 rc(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 ir(e,e.length===4?"rgba":"rgb")}}function EM(r){var t=le(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function po(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]=nr(dn(o[0],s[0],l)),e[1]=nr(dn(o[1],s[1],l)),e[2]=nr(dn(o[2],s[2],l)),e[3]=Lo(dn(o[3],s[3],l)),e}}var kM=po;function Mv(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=ir([nr(dn(o[0],s[0],l)),nr(dn(o[1],s[1],l)),nr(dn(o[2],s[2],l)),Lo(dn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var OM=Mv;function vl(r,t,e,n){var i=le(r);if(r)return i=RM(i),t!=null&&(i[0]=PM(t)),e!=null&&(i[1]=yi(e)),n!=null&&(i[2]=yi(n)),ir(ec(i),"rgba")}function F1(r,t){var e=le(r);if(e&&t!=null)return e[3]=Lo(t),ir(e,"rgba")}function ir(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 Po(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 BM(){return ir([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const NM=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:po,fastMapToColor:kM,lerp:Mv,lift:rc,lum:Po,mapToColor:OM,modifyAlpha:F1,modifyHSL:vl,parse:le,random:BM,stringify:ir,toHex:EM},Symbol.toStringTag,{value:"Module"}));var Bl=Math.round;function Ro(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 Op=1e-4;function pn(r){return r-Op}function bs(r){return Bl(r*1e3)/1e3}function nc(r){return Bl(r*1e4)/1e4}function FM(r){return"matrix("+bs(r[0])+","+bs(r[1])+","+bs(r[2])+","+bs(r[3])+","+nc(r[4])+","+nc(r[5])+")"}var zM={left:"start",right:"end",center:"middle",middle:"middle"};function VM(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function GM(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function HM(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 z1(r){return r&&!!r.image}function WM(r){return r&&!!r.svgElement}function Iv(r){return z1(r)||WM(r)}function V1(r){return r.type==="linear"}function G1(r){return r.type==="radial"}function H1(r){return r&&(r.type==="linear"||r.type==="radial")}function gu(r){return"url(#"+r+")"}function W1(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 U1(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*vo,i=at(r.scaleX,1),a=at(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("+Bl(o*vo)+"deg, "+Bl(s*vo)+"deg)"),l.join(" ")}var UM=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}}(),ic=Array.prototype.slice;function Br(r,t,e){return(t-r)*e+r}function mf(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=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=Np,l=e;if(ee(e)){var u=ZM(e);s=u,(u===1&&!xt(e[0])||u===2&&!xt(e[0][0]))&&(o=!0)}else if(xt(e)&&!Io(e))s=Ts;else if(G(e))if(!isNaN(+e))s=Ts;else{var f=le(e);f&&(l=f,s=ao)}else if(vu(e)){var h=N({},l);h.colorStops=V(e.colorStops,function(c){return{offset:c.offset,color:le(c.color)}}),V1(e)?s=ac:G1(e)&&(s=oc),l=h}a===0?this.valType=s:(s!==this.valType||s===Np)&&(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:P1[n]||Dv(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=As(i),u=Fp(i),f=0;f=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=h;fe);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-c.percent,m=g===0?1:v((e-c.percent)/g,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:u?Oa:t[l];if((As(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?c.rawValue:d.rawValue;else if(As(a))a===pl?mf(y,c[i],d[i],m):YM(y,c[i],d[i],m);else if(Fp(a)){var _=c[i],S=d[i],b=a===ac;t[l]={type:b?"linear":"radial",x:Br(_.x,S.x,m),y:Br(_.y,S.y,m),colorStops:V(_.colorStops,function(T,A){var C=S.colorStops[A];return{offset:Br(T.offset,C.offset,m),color:dl(mf([],T.color,C.color,m))}}),global:S.global},b?(t[l].x2=Br(_.x2,S.x2,m),t[l].y2=Br(_.y2,S.y2,m)):t[l].r=Br(_.r,S.r,m)}else if(u)mf(y,c[i],d[i],m),n||(t[l]=dl(y));else{var x=Br(c[i],d[i],m);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===Ts?t[n]=t[n]+i:e===ao?(le(t[n],Oa),ws(Oa,Oa,i,1),t[n]=dl(Oa)):e===pl?ws(t[n],t[n],i,1):e===Y1&&Bp(t[n],t[n],i,1)},r}(),KM=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){Sv("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;o0&&l.addKeyframe(0,go(u),i),this._trackKeys.push(s)}l.addKeyframe(t,go(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;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Lv=KM;function ra(){return new Date().getTime()}var QM=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=ra()-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&&(Lp(n),!e._paused&&e.update())}Lp(n)},t.prototype.start=function(){this._running||(this._time=ra(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ra(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ra()-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 Lv(e,n.loop);return this.addAnimator(i),i},t}(ur);const JM=QM;var jM=300,yf=vt.domSupported,_f=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}}(),zp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Vp=!1;function sc(r){var t=r.pointerType;return t==="pen"||t==="touch"}function t2(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 Sf(r){r&&(r.zrByTouch=!0)}function e2(r,t){return Ee(r.dom,new r2(r,t),!0)}function X1(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 r2=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}(),tr={mousedown:function(r){r=Ee(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ee(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=Ee(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ee(this.dom,r);var t=r.toElement||r.relatedTarget;X1(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Vp=!0,r=Ee(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Vp||(r=Ee(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ee(this.dom,r),Sf(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),tr.mousemove.call(this,r),tr.mousedown.call(this,r)},touchmove:function(r){r=Ee(this.dom,r),Sf(r),this.handler.processGesture(r,"change"),tr.mousemove.call(this,r)},touchend:function(r){r=Ee(this.dom,r),Sf(r),this.handler.processGesture(r,"end"),tr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentUp||r<-Up}var Gn=[],Ni=[],bf=Ue(),wf=Math.abs,l2=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 Vn(this.rotation)||Vn(this.x)||Vn(this.y)||Vn(this.scaleX-1)||Vn(this.scaleY-1)||Vn(this.skewX)||Vn(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&Wp(n);return}n=n||Ue(),e?this.getLocalTransform(n):Wp(n),t&&(e?Cr(n,t,n):pu(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Gn);var n=Gn[0]<0?-1:1,i=Gn[1]<0?-1:1,a=((Gn[0]-n)*e+n)/Gn[0]||0,o=((Gn[1]-i)*e+i)/Gn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ue(),xa(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&&(Cr(Ni,t.invTransform,e),e=Ni);var n=this.originX,i=this.originY;(n||i)&&(bf[4]=n,bf[5]=i,Cr(Ni,e,bf),Ni[4]-=n,Ni[5]-=i,e=Ni),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&&wf(t[0]-1)>1e-10&&wf(t[3]-1)>1e-10?Math.sqrt(wf(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Z1(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&&En(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}(),Dr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Z1(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Nl(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+=or(n[0],e.width),u+=or(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 Tf="__zr_normal__",Af=Dr.concat(["ignore"]),u2=We(Dr,function(r,t){return r[t]=!0,r},{ignore:!1}),Fi={},f2=new pt(0,0,0,0),Pv=function(){function r(t){this.id=_v(),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=f2;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fi,n,f):Nl(Fi,n,f),a.x=Fi.x,a.y=Fi.y,o=Fi.align,s=Fi.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=or(h[0],f.width),c=or(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={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=Sr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?hc:fc},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,ir(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||{},N(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;a0},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(Tf,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===Tf,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){Sv("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&=~Sr),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;l0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,v),g&&g.useStates(t,e,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Sr)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var 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=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;o0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var v=0;v0||i.force&&!o.length){var A=void 0,C=void 0,D=void 0;if(s){C={},v&&(A={});for(var S=0;S<_;S++){var m=p[S];C[m]=e[m],v?A[m]=n[m]:e[m]=n[m]}}else if(v){D={};for(var S=0;S<_;S++){var m=p[S];D[m]=go(e[m]),c2(e,n,m)}}var b=new Lv(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),D&&b.whenWithKeys(0,D,p),b.whenWithKeys(u??500,s?C:n,p).delay(f||0),r.addAnimator(b,t),o.push(b)}}const K1=Pv;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=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;i0&&(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;e0){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 tt(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)?w2(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),j1),r=(+r).toFixed(t),e?r:+r}function wr(r){return r.sort(function(t,e){return t-e}),r}function Tr(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 tS(r)}function tS(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 Rv(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 T2(r,t,e){if(!r[t])return 0;var n=eS(r,e);return n[t]||0}function eS(r,t){var e=We(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=We(o,function(c,d){return c+d},0),l=V(i,function(c,d){return c-o[d]});su&&(u=l[h],f=h);++o[f],l[f]=0,++s}return V(o,function(c){return c/n})}function A2(r,t){var e=Math.max(Tr(r),Tr(t)),n=r+t;return e>j1?n:Et(n,e)}var C2=9007199254740991;function Ev(r){var t=Math.PI*2;return(r%t+t)%t}function Eo(r){return r>-$p&&r<$p}var D2=/^(?:(\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 Ce(r){if(r instanceof Date)return r;if(G(r)){var t=D2.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 rS(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 kv(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 M2(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 vc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n=0||a&<(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var j2=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],tI=ha(j2),eI=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return tI(this,t,e)},r}(),dc=new ns(50);function rI(r){if(typeof r=="string"){var t=dc.get(r);return t&&t.image}else return r}function zv(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=dc.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Su(t)&&a.pending.push(o)):(t=Dn.loadImage(r,Qp,Qp),t.__zrImageSrc=r,dc.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=o;l++)s-=o;var u=Ae(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 dS(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=Ae(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?nI(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=Ae(r,n)}return r===""&&(r=t.placeholder),r}function nI(r,t,e,n){for(var i=0,a=0,o=r.length;ac&&u){var d=Math.floor(c/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var p=vS(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&If(e,r.substring(s,u),t,o),If(e,l[2],t,o,l[1]),s=Mf.lastIndex}si){b>0?(y.tokens=y.tokens.slice(0,b),g(y,S,_),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m);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=Ae(x.text,D);else{if(L){var R=T.backgroundColor,k=R&&R.image;k&&(k=rI(k),Su(k)&&(x.width=Math.max(x.width,k.width*M/k.height)))}var B=d&&n!=null?n-S:null;B!=null&&B0&&d+n.accumWidth>n.width&&(f=t.split(` `),u=!0),n.accumWidth=d}else{var p=pS(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=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var uI=We(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function fI(r){return lI(r)?!!uI[r]:!0}function pS(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;he: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 pc="__zr_style_"+Math.round(Math.random()*10),_i={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},xu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_i[pc]=!0;var jp=["z","z2","invisible"],hI=["invisible"],cI=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;i1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Cs[0]=Ef(i)*e+r,Cs[1]=Rf(i)*n+t,Ds[0]=Ef(a)*e+r,Ds[1]=Rf(a)*n+t,u(s,Cs,Ds),f(l,Cs,Ds),i=i%Wn,i<0&&(i=i+Wn),a=a%Wn,a<0&&(a=a+Wn),i>a&&!o?a+=Wn:ii&&(Ms[0]=Ef(c)*e+r,Ms[1]=Rf(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},Un=[],Yn=[],vr=[],tn=[],dr=[],pr=[],kf=Math.min,Of=Math.max,Xn=Math.cos,$n=Math.sin,Er=Math.abs,gc=Math.PI,un=gc*2,Bf=typeof Float32Array<"u",Ba=[];function Nf(r){var t=Math.round(r/gc*1e8)/1e8;return t%2*gc}function mI(r,t){var e=Nf(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-Nf(e-i)):t&&e0&&(this._ux=Er(n/Hp/t)||0,this._uy=Er(n/Hp/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=Er(t-this._xi),i=Er(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(),Ba[0]=i,Ba[1]=a,mI(Ba,o),i=Ba[0],a=Ba[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=Xn(a)*n+t,this._yi=$n(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)&&Bf&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){vr[0]=vr[1]=dr[0]=dr[1]=Number.MAX_VALUE,tn[0]=tn[1]=pr[0]=pr[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||Er(_)>i||v===e-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case St.C:{var S=t[v++],b=t[v++],g=t[v++],m=t[v++],x=t[v++],T=t[v++];p=bM(a,o,S,b,g,m,x,T,10),a=x,o=T;break}case St.Q:{var S=t[v++],b=t[v++],g=t[v++],m=t[v++];p=AM(a,o,S,b,g,m,10),a=g,o=m;break}case St.A:var A=t[v++],C=t[v++],D=t[v++],M=t[v++],I=t[v++],L=t[v++],R=L+I;v+=1,t[v++],d&&(s=Xn(I)*D+A,l=$n(I)*M+C),p=Of(D,M)*kf(un,Math.abs(L)),a=Xn(R)*D+A,o=$n(R)*M+C;break;case St.R:{s=a=t[v++],l=o=t[v++];var k=t[v++],B=t[v++];p=k*2+B*2;break}case St.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),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,m=0,y,_=0,S,b;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,y=e*p,!y)))t:for(var x=0;x0&&(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=Er(h-u),D=Er(v-f);if(C>i||D>a){if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+h*I,f*(1-I)+v*I);break t}g+=M}t.lineTo(h,v),u=h,f=v,_=0}else{var L=C*C+D*D;L>_&&(S=h,b=v,_=L)}break}case St.C:{var R=n[x++],k=n[x++],B=n[x++],U=n[x++],F=n[x++],H=n[x++];if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;kl(u,R,B,F,I,Un),kl(f,k,U,H,I,Yn),t.bezierCurveTo(Un[1],Yn[1],Un[2],Yn[2],Un[3],Yn[3]);break t}g+=M}t.bezierCurveTo(R,k,B,U,F,H),u=F,f=H;break}case St.Q:{var R=n[x++],k=n[x++],B=n[x++],U=n[x++];if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;Ol(u,R,B,I,Un),Ol(f,k,U,I,Yn),t.quadraticCurveTo(Un[1],Yn[1],Un[2],Yn[2]);break t}g+=M}t.quadraticCurveTo(R,k,B,U),u=B,f=U;break}case St.A:var $=n[x++],nt=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=Er(j-ft)>.001,At=gt+Ot,J=!1;if(c){var M=d[m++];g+M>y&&(At=gt+Ot*(y-g)/M,J=!0),g+=M}if(Lt&&t.ellipse?t.ellipse($,nt,j,ft,wt,gt,At,Zt):t.arc($,nt,Gt,gt,At,Zt),J)break t;A&&(s=Xn(gt)*j+$,l=$n(gt)*ft+nt),u=Xn(At)*j+$,f=$n(At)*ft+nt;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 M=d[m++];if(g+M>y){var Pt=y-g;t.moveTo(h,v),t.lineTo(h+kf(Pt,ht),v),Pt-=ht,Pt>0&&t.lineTo(h+ht,v+kf(Pt,ve)),Pt-=ve,Pt>0&&t.lineTo(h+Of(ht-Pt,0),v+ve),Pt-=ht,Pt>0&&t.lineTo(h,v+Of(ve-Pt,0));break t}g+=M}t.rect(h,v,ht,ve);break;case St.Z:if(c){var M=d[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=M}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 $r=yI;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||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&u>e+h&&u>i+h&&u>o+h||ut+u&&l>n+u&&l>a+u||lr+u&&s>e+u&&s>i+u||se||f+ui&&(i+=Na);var v=Math.atan2(l,s);return v<0&&(v+=Na),v>=n&&v<=i||v+Na>=n&&v+Na<=i}function Nr(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var en=$r.CMD,Zn=Math.PI*2,bI=1e-4;function wI(r,t){return Math.abs(r-t)t&&u>n&&u>a&&u>s||u1&&TI(),c=Ft(t,n,a,s,Oe[0]),v>1&&(d=Ft(t,n,a,s,Oe[1]))),v===2?gt&&s>n&&s>a||s=0&&u<=1){for(var f=0,h=Qt(t,n,a,u),v=0;ve||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>=Zn-1e-4){n=0,i=Zn;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+=Zn,i+=Zn);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=Zn+p),(p>=n&&p<=i||p+Zn>=n&&p+Zn<=i)&&(p>Math.PI/2&&p1&&(e||(s+=Nr(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+=Nr(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case en.C:if(e){if(_I(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=AI(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(SI(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=CI(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 m=a[d++],y=a[d++],_=a[d++],S=a[d++],b=a[d++],x=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(b)*_+m,c=Math.sin(b)*S+y,g?(f=v,h=c):s+=Nr(l,u,v,c,n,i);var A=(n-m)*S/_+m;if(e){if(xI(m,y,S,b,b+x,T,t,A,i))return!0}else s+=DI(m,y,S,b,b+x,T,A,i);l=Math.cos(b+x)*_+m,u=Math.sin(b+x)*S+y;break;case en.R:f=l=a[d++],h=u=a[d++];var C=a[d++],D=a[d++];if(v=f+C,c=h+D,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+=Nr(v,h,v,c,n,i),s+=Nr(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+=Nr(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!wI(u,h)&&(s+=Nr(l,u,f,h,n,i)||0),s!==0}function MI(r,t,e){return gS(r,0,!1,t,e)}function II(r,t,e,n){return gS(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},_i),LI={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},xu.style)},Ff=Dr.concat(["invisible","culling","z","z2","zlevel","parent"]),PI=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.5?fc:n>.2?s2:hc}else if(e)return hc}return fc},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(G(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Po(e,0)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&Ji)&&(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)),II(s,l/u,e,n)))return!0}if(this.hasFill())return MI(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ji,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:N(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ji)},t.prototype.createStyle=function(e){return es(zl,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=N({},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=N({},i.shape),N(u,n.shape)):(u=N({},a?this.shape:i.shape),N(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=N({},this.shape);for(var f={},h=st(u),v=0;v0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return es(RI,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=is(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}(Xr);mS.prototype.type="tspan";const Bo=mS;var EI=q({x:0,y:0},_i),kI={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},xu.style)};function OI(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var yS=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return es(EI,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=OI(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 kI},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}(Xr);yS.prototype.type="image";const ce=yS;function BI(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 na=Math.round;function _S(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&&(na(n*2)===na(i*2)&&(r.x1=r.x2=vi(n,s,!0)),na(a*2)===na(o*2)&&(r.y1=r.y2=vi(a,s,!0))),r}}function SS(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=vi(n,s,!0),r.y=vi(i,s,!0),r.width=Math.max(vi(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(vi(i+o,s,!1)-r.y,o===0?0:1)),r}}function vi(r,t,e){if(!t)return r;var n=na(r*2);return(n+na(t))%2===0?n/2:(n+(e?1:-1))/2}var NI=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),FI={},xS=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new NI},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=SS(FI,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?BI(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(_t);xS.prototype.type="rect";const mt=xS;var ig={fill:"#000"},ag=2,zI={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},xu.style)},bS=function(r){E(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ig,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;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,R=0;R=0&&(R=x[L],R.align==="right");)this._placeToken(R,e,A,m,I,"right",_),C-=R.width,I-=R.width,L--;for(M+=(a-(M-g)-(y-I)-C)/2;D<=L;)R=x[D],this._placeToken(R,e,A,m,M+R.width/2,"center",_),M+=R.width,D++;m+=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=hg(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Bo),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,S=fg("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),b=ug("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!m.autoStroke||y)?(_=ag,m.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||Cn,g.opacity=ia(u.opacity,n.opacity,1),sg(g,u),b&&(g.lineWidth=ia(u.lineWidth,n.lineWidth,_),g.lineDash=at(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(oo(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(mt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=c,p.dirtyShape()}if(v){var y=p.style;y.fill=l||null,y.fillOpacity=at(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 y=p.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=at(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.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=ia(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return TS(e)&&(n=[e.fontStyle,e.fontWeight,wS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&He(n)||e.textFont||e.font},t}(Xr),VI={left:!0,right:1,center:1},GI={top:1,bottom:1,middle:1},og=["fontStyle","fontWeight","fontSize","fontFamily"];function wS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?gv+"px":r+"px"}function sg(r,t){for(var e=0;e=0,a=!1;if(r instanceof _t){var o=AS(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Vi(s)||Vi(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=N({},n),u=N({},u),u.fill=s):!Vi(u.fill)&&Vi(s)?(a=!0,n=N({},n),u=N({},u),u.fill=gg(s)):!Vi(u.stroke)&&Vi(l)&&(a||(n=N({},n),u=N({},u)),u.stroke=gg(l)),n.style=u}}if(n&&n.z2==null){a||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??CS)}return n}function qI(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??UI)}return e}function KI(r,t,e){var n=lt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:$I(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Vf(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return ZI(this,r,t,e);if(r==="blur")return KI(this,r,e);if(r==="select")return qI(this,r,e)}return e}function Wv(r){r.stateProxy=Vf;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Vf),e&&(e.stateProxy=Vf)}function yg(r,t){!ES(r,t)&&!r.__highByOuter&&qr(r,DS)}function _g(r,t){!ES(r,t)&&!r.__highByOuter&&qr(r,MS)}function ca(r,t){r.__highByOuter|=1<<(t||0),qr(r,DS)}function va(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&qr(r,MS)}function QI(r){qr(r,Hv)}function LS(r){qr(r,IS)}function PS(r){qr(r,YI)}function RS(r){qr(r,XI)}function ES(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function kS(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=Vv(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){IS(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;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function bn(r,t,e){Yv(r,!0),qr(r,Wv),iL(r,t,e)}function nL(r){Yv(r,!1)}function Mn(r,t,e,n){n?nL(r):bn(r,t,e)}function iL(r,t,e){var n=ut(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var xg=["emphasis","blur","select"],aL={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function da(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=Gf(d),s*=Gf(d));var p=(i===a?-1:1)*Gf((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,m=p*-s*v/o,y=(r+e)/2+Ps(h)*g-Ls(h)*m,_=(t+n)/2+Ls(h)*g+Ps(h)*m,S=Ag([1,0],[(v-g)/o,(c-m)/s]),b=[(v-g)/o,(c-m)/s],x=[(-1*v-g)/o,(-1*c-m)/s],T=Ag(b,x);if(bc(b,x)<=-1&&(T=Fa),bc(b,x)>=1&&(T=0),T<0){var A=Math.round(T/Fa*1e6)/1e6;T=Fa*2+A%2*Fa}f.addData(u,y,_,o,s,S,T,h,a)}var cL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,vL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dL(r){var t=new $r;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=$r.CMD,l=r.match(cL);if(!l)return t;for(var u=0;uR*R+k*k&&(A=D,C=M),{cx:A,cy:C,x0:-f,y0:-h,x1:A*(i/b-1),y1:C*(i/b-1)}}function xL(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function bL(r,t){var e,n=so(t.r,0),i=so(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=Dg(u-l),d=c>Hf&&c%Hf;if(d>je&&(c=d),!(n>je))r.moveTo(f,h);else if(c>Hf-je)r.moveTo(f+n*Hi(l),h+n*qn(l)),r.arc(f,h,n,l,u,!v),i>je&&(r.moveTo(f+i*Hi(u),h+i*qn(u)),r.arc(f,h,i,u,l,v));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,S=void 0,b=void 0,x=void 0,T=void 0,A=void 0,C=void 0,D=void 0,M=void 0,I=void 0,L=void 0,R=void 0,k=n*Hi(l),B=n*qn(l),U=i*Hi(u),F=i*qn(u),H=c>je;if(H){var $=t.cornerRadius;$&&(e=xL($),p=e[0],g=e[1],m=e[2],y=e[3]);var nt=Dg(n-i)/2;if(_=gr(nt,m),S=gr(nt,y),b=gr(nt,p),x=gr(nt,g),C=T=so(_,S),D=A=so(b,x),(T>je||A>je)&&(M=n*Hi(u),I=n*qn(u),L=i*Hi(l),R=i*qn(l),cje){var Lt=gr(m,C),At=gr(y,C),J=Rs(L,R,k,B,n,Lt,v),ht=Rs(M,I,U,F,n,At,v);r.moveTo(f+J.cx+J.x0,h+J.cy+J.y0),C0&&r.arc(f+J.cx,h+J.cy,Lt,qt(J.y0,J.x0),qt(J.y1,J.x1),!v),r.arc(f,h,n,qt(J.cy+J.y1,J.cx+J.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+B),r.arc(f,h,n,l,u,!v);if(!(i>je)||!H)r.lineTo(f+U,h+F);else if(D>je){var Lt=gr(p,D),At=gr(g,D),J=Rs(U,F,M,I,i,-At,v),ht=Rs(k,B,L,R,i,-Lt,v);r.lineTo(f+J.cx+J.x0,h+J.cy+J.y0),D0&&r.arc(f+J.cx,h+J.cy,At,qt(J.y0,J.x0),qt(J.y1,J.x1),!v),r.arc(f,h,i,qt(J.cy+J.y1,J.cx+J.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+F),r.arc(f,h,i,u,l,v)}r.closePath()}}}var wL=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}(),HS=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new wL},t.prototype.buildPath=function(e,n){bL(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(_t);HS.prototype.type="sector";const Ir=HS;var TL=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}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){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);WS.prototype.type="ring";const os=WS;function AL(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=2){if(n){var a=AL(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;sQn[1]){if(s=!1,a)return s;var f=Math.abs(Qn[0]-Kn[1]),h=Math.abs(Kn[0]-Qn[1]);Math.min(f,h)>i.len()&&(f0){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){qv("update",r,t,e,n,i,a)}function ue(r,t,e,n,i,a){qv("enter",r,t,e,n,i,a)}function bo(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Lg(r){return!r.isGroup}function WL(r){return r.shape!=null}function Lu(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Lg(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return WL(o)&&(s.shape=N({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Lg(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 jv(r,t){return V(r,function(e){var n=e[0];n=Wl(n,t.x),n=Ul(n,t.x+t.width);var i=e[1];return i=Wl(i,t.y),i=Ul(i,t.y+t.height),[n,i]})}function ex(r,t){var e=Wl(r.x,t.x),n=Ul(r.x+r.width,t.x+t.width),i=Wl(r.y,t.y),a=Ul(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 wa(r,t,e){var n=N({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 UL(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Wf(c,d,f,h)/v;return!(g<0||g>1)}function Wf(r,t,e,n){return r*n-e*t}function YL(r){return r<=1e-6&&r>=-1e-6}function Ta(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){et(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 Pg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Pu(r,t){if(r)if(z(r))for(var e=0;e=0&&s.push(l)}),s}}function kn(r,t){return rt(rt({},r,!0),t,!0)}const sP={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:". "}}}},lP={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 Yl="ZH",td="EN",Vo=td,Sl={},ed={},ax=vt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Yl)>-1?Yl:Vo}():Vo;function rd(r,t){r=r.toUpperCase(),ed[r]=new Dt(t),Sl[r]=t}function uP(r){if(G(r)){var t=Sl[r.toUpperCase()]||{};return r===Yl||r===td?Z(t):rt(Z(t),Z(Sl[Vo]),!1)}else return rt(Z(r),Z(Sl[Vo]),!1)}function Tc(r){return ed[r]}function fP(){return ed[Vo]}rd(td,sP);rd(Yl,lP);var nd=1e3,id=nd*60,wo=id*60,Ge=wo*24,Fg=Ge*365,lo={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}"},Os="{yyyy}-{MM}-{dd}",zg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Os,hour:Os+" "+lo.hour,minute:Os+" "+lo.minute,second:Os+" "+lo.second,millisecond:lo.none},Xf=["year","month","day","hour","minute","second","millisecond"],ox=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function me(r,t){return r+="","0000".substr(0,t-r.length)+r}function sa(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 hP(r){return r===sa(r)}function cP(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ls(r,t,e,n){var i=Ce(r),a=i[ad(e)](),o=i[la(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[Ou(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[Go(e)](),h=(f-1)%12+1,v=i[Bu(e)](),c=i[Nu(e)](),d=i[Fu(e)](),p=n instanceof Dt?n:Tc(n||ax)||fP(),g=p.getModel("time"),m=g.get("month"),y=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,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,me(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,me(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,me(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,me(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,me(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,me(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,me(d,3)).replace(/{S}/g,d+"")}function vP(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=N({},lo);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(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 ls(new Date(r.value),a,i,n)}function sx(r,t){var e=Ce(r),n=e[la(t)]()+1,i=e[Ou(t)](),a=e[Go(t)](),o=e[Bu(t)](),s=e[Nu(t)](),l=e[Fu(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 Vg(r,t,e){var n=xt(r)?Ce(r):r;switch(t=t||sx(r,e),t){case"year":return n[ad(e)]();case"half-year":return n[la(e)]()>=6?1:0;case"quarter":return Math.floor((n[la(e)]()+1)/4);case"month":return n[la(e)]();case"day":return n[Ou(e)]();case"half-day":return n[Go(e)]()/24;case"hour":return n[Go(e)]();case"minute":return n[Bu(e)]();case"second":return n[Nu(e)]();case"millisecond":return n[Fu(e)]()}}function ad(r){return r?"getUTCFullYear":"getFullYear"}function la(r){return r?"getUTCMonth":"getMonth"}function Ou(r){return r?"getUTCDate":"getDate"}function Go(r){return r?"getUTCHours":"getHours"}function Bu(r){return r?"getUTCMinutes":"getMinutes"}function Nu(r){return r?"getUTCSeconds":"getSeconds"}function Fu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function dP(r){return r?"setUTCFullYear":"setFullYear"}function lx(r){return r?"setUTCMonth":"setMonth"}function ux(r){return r?"setUTCDate":"setDate"}function fx(r){return r?"setUTCHours":"setHours"}function hx(r){return r?"setUTCMinutes":"setMinutes"}function cx(r){return r?"setUTCSeconds":"setSeconds"}function vx(r){return r?"setUTCMilliseconds":"setMilliseconds"}function pP(r,t,e,n,i,a,o,s){var l=new yt({style:{text:r,font:t,align:e,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function od(r){if(!Ov(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 sd(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 Ca=bv;function Ac(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&He(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?Ce(r):r;if(isNaN(+l)){if(s)return"-"}else return ls(l,n,e)}if(t==="ordinal")return Ml(r)?i(r):xt(r)&&a(r)?r+"":"-";var u=ko(r);return a(u)?od(u):Ml(r)?i(r):typeof r=="boolean"?r+"":"-"}var Gg=["a","b","c","d","e","f","g"],$f=function(r,t){return"{"+r+(t??"")+"}"};function ld(r,t,e){z(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';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 mP(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd yyyy`);var n=Ce(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",me(o,2)).replace("M",o).replace("yyyy",a).replace("yy",me(a%100+"",2)).replace("dd",me(s,2)).replace("d",s).replace("hh",me(l,2)).replace("h",l).replace("mm",me(u,2)).replace("m",u).replace("ss",me(f,2)).replace("s",f).replace("SSS",me(h,3)),r}function yP(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Mi(r,t){return t=t||"transparent",G(r)?r:X(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Hg(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var xl=w,px=["left","right","top","bottom","width","height"],di=[["width","left","right"],["height","top","bottom"]];function ud(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 xi=ud;dt(ud,"vertical");dt(ud,"horizontal");function he(r,t,e){e=Ca(e||0);var n=t.width,i=t.height,a=tt(r.left,n),o=tt(r.top,i),s=tt(r.right,n),l=tt(r.bottom,i),u=tt(r.width,n),f=tt(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 fd(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 _P(r,t){return r[di[t][0]]!=null||r[di[t][1]]!=null&&r[di[t][2]]!=null}function Ho(r){var t=r.layoutMode||r.constructor.layoutMode;return X(t)?t:t?{type:t}:null}function In(r,t,e){var n=e&&e.ignoreSize;!z(n)&&(n=[n,n]);var i=o(di[0],0),a=o(di[1],1);u(di[0],r,i),u(di[1],r,a);function o(f,h){var v={},c=0,d={},p=0,g=2;if(xl(f,function(_){d[_]=r[_]}),xl(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 m=0;m=0;l--)s=rt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return as(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}(Dt);hS(Ma,Dt);_u(Ma);aP(Ma);oP(Ma,xP);function xP(r){var t=[];return w(Ma.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=V(t,function(e){return Ar(e).main}),r!=="dataset"&<(t,"dataset")<=0&&t.unshift("dataset"),t}const ct=Ma;var mx="";typeof navigator<"u"&&(mx=navigator.platform||"");var Wi="rgba(0, 0, 0, 0.2)";const bP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:mx.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 yx=Y(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ze="original",be="arrayRows",fr="objectRows",Pr="keyedColumns",Tn="typedArray",_x="unknown",Hr="column",Ia="row",Ut={Must:1,Might:2,Not:3},Sx=bt();function wP(r){Sx(r).datasetMap=Y()}function TP(r,t,e){var n={},i=hd(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=Sx(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),w(r,function(p,g){var m=X(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,h=d(m)),n[m.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=v.valueWayDim;c(n[m],_,y),c(o,_,y),v.valueWayDim+=y}else if(f===g)c(n[m],0,y),c(a,0,y);else{var _=v.categoryWayDim;c(n[m],_,y),c(o,_,y),v.categoryWayDim+=y}});function c(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function Ax(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:IP(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 LP(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Bs,za,Yg,Xg="\0_ec_inner",PP=1,Cx=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 Dt(a),this._locale=new Dt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=qg(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,qg(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"?Yg(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;wP(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):rt(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=DP(this,h,Mt(e[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=sS(c,v,d);N2(p,h,ct),i[h]=null,a.set(h,null),o.set(h,0);var g=[],m=[],y=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 D=N({componentIndex:b},S.keyInfo);x=new C(T,this,this,D),N(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),i[h]=g,a.set(h,m),o.set(h,y),h==="series"&&Bs(this)}this._seriesIndices||Bs(this)},t.prototype.getOption=function(){var e=Z(this.option);return w(e,function(n,i){if(ct.hasClass(i)){for(var a=Mt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Oo(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Xg],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=t:e==="max"?r<=t:r===t}function HP(r,t){return r.join(",")===t.join(",")}const WP=FP;var Qe=w,Wo=X,Kg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qf(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Kg.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,c)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=A2(v,y),p=y;break}}}return n[0]=v,n[1]=p,n})})}var Vu=function(){function r(t){this.data=t.data||(t.sourceFormat===Pr?{}:[]),this.sourceFormat=t.sourceFormat||_x,this.seriesLayoutBy=t.seriesLayoutBy||Hr,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;np&&(p=_)}c[0]=d,c[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};nm=(t={},t[be+"_"+Hr]={pure:!0,appendData:a},t[be+"_"+Ia]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[fr]={pure:!0,appendData:a},t[Pr]={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[Ze]={appendData:a},t[Tn]={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=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return pa(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function sm(r){var t,e;return X(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function To(r){return new oR(r)}var oR=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(y){return!(y>=1)&&(y=1),y}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||c1&&n>0?s:o}};return a;function o(){return t=r?null:li?-this._resultLT:0},r}(),lR=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 bl(t,e)},r}();function uR(r,t){var e=new lR,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Hr&&ye(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";et(l,m)&&ye(_),l[m]=y}});else for(var f=0;f65535?mR:yR}function Ui(){return[1/0,-1/0]}function _R(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function fm(r,t,e,n,i){var a=Vx[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[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(y){return y.property}),f=0;fm[1]&&(m[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=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)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=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=h&&y<=v||isNaN(y))&&(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],m=0;m=h&&y<=v||isNaN(y))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var m=0;m=h&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var m=0;mt[D][1])&&(A=!1)}A&&(l[u++]=e.getRawIndex(m))}return um[1]&&(m[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(Ga(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;df&&(f=h,v=S)}M>0&&Mf-d&&(l=f-d,s.length=l);for(var p=0;ph[1]&&(h[1]=m),v[c++]=y}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();al&&(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=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 bl(e[a],this._dimensions[a])}Jf={arrayRows:t,objectRows:function(e,n,i,a){return bl(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return bl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}();const Mc=SR;var xR=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(Ns(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)?Tn:Ze,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=at(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=at(h.sourceHeader,v.sourceHeader),p=at(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;i=g?[Dc(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(e);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Dc(_,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&&hm(a)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&hm(h),s.push(f),l.push(u._getVersionSign())}),n?o=pR(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[jP(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return w(r.blocks,function(i){var a=Ux(i);a>=t&&(t=a+ +(n&&(!a||Ic(i)&&!i.noHeader)))}),t}return 0}function TR(r,t,e,n){var i=t.noHeader,a=CR(Ux(t)),o=[],s=t.blocks||[];fe(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(et(u,l)){var f=new sR(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,m=Wx(d)(g?N(N({},r),{valueFormatter:g}):r,d,p>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Lc(o.join(""),i?e:a.html);if(i)return h;var v=Ac(t.header,"ordinal",r.useUTC),c=Hx(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Yx(r,v,c)+a.richText+h:Lc('
'+oe(v)+"
"+h,e)}function AR(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=z(S)?S:[S],V(S,function(b,x){return Ac(b,z(c)?c[x]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=a?"":Ac(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value),p=!s||!a,g=!s&&a,m=Hx(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(a?"":Yx(r,v,y))+(o?"":IR(r,d,p,g,_)):Lc((s?"":h)+(a?"":DR(v,!s,y))+(o?"":MR(d,p,g,_)),e)}}function cm(r,t,e,n,i,a){if(r){var o=Wx(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function CR(r){return{html:bR[r],richText:wR[r]}}function Lc(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function DR(r,t,e){var n=t?"margin-left:2px":"";return''+oe(r)+""}function MR(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=z(r)?r:[r],''+V(r,function(o){return oe(o)}).join("  ")+""}function Yx(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function IR(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(z(t)?t.join(" "):t,a)}function Xx(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Mi(n)}function $x(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var jf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=nS()}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=dx({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={};z(e)?w(e,function(a){return N(n,a)}):N(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function LR(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=z(s),u=Xx(t,e),f,h,v,c;if(o>1||l&&!o){var d=PR(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=pa(i,e,a[0]),h=p.type}else c=f=l?s[0]:s;var g=Bv(t),m=g&&t.name||"",y=i.getName(e),_=n?m:y;return Mr("section",{header:m,noHeader:n||!g,sortParam:c,blocks:[Mr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!He(_),value:f,valueType:h})].concat(v||[])})}function PR(r,t,e,n,i){var a=t.getData(),o=We(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(pa(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 Fs(r,t){return r.getName(t)||r.getId(t)}var RR="__universalTransitionEnabled",Hu=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=To({count:kR,reset:OR}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=rn(this).sourceManager=new xR(this);a.prepareSource();var o=this.getInitialData(e,i);dm(o,this),this.dataTask.context.data=o,rn(this).dataBeforeProcessed=o,vm(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Ho(this),a=i?Da(e):{},o=this.subType;ct.hasClass(o)&&(o+="Series"),rt(e,n.getTheme().get(this.subType)),rt(e,this.getDefaultOption()),Fl(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&In(e,a,i)},t.prototype.mergeOption=function(e,n){e=rt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Ho(this);i&&In(this.option,e,i);var a=rn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);dm(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,rn(this).dataBeforeProcessed=o,vm(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!xe(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=cd.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=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[Fs(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[RR])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;f0&&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(Hu,Nx);$t(Hu,cd);hS(Hu,ct);function vm(r){var t=r.name;Bv(r)||(r.name=ER(r)||t)}function ER(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 kR(r){return r.model.getRawData().count()}function OR(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),BR}function BR(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function dm(r,t){w(_1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,dt(NR,t))})}function NR(r,t){var e=Pc(r);return e&&e.setOutputEnd((t||this).count()),t}function Pc(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 De=Hu;var md=function(){function r(){this.group=new ot,this.uid=Aa("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}();Fv(md);_u(md);const It=md;function yd(){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 Zx=bt(),FR=yd(),_d=function(){function r(){this.group=new ot,this.uid=Aa("viewChart"),this.renderTask=To({plan:zR,reset:VR}),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&&gm(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&gm(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){Pu(this.group,t)},r.markUpdateMethod=function(t,e){Zx(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function pm(r,t,e){r&&Sc(r)&&(t==="emphasis"?ca:va)(r,e)}function gm(r,t,e){var n=Di(r,t),i=t&&t.highlightKey!=null?sL(t.highlightKey):null;n!=null?w(Mt(n),function(a){pm(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){pm(a,e,i)})}Fv(_d);_u(_d);function zR(r){return FR(r.model)}function VR(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&Zx(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),GR[l]}var GR={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=_d;var Xl="\0__throttleOriginMethod",mm="\0__throttleRate",ym="\0__throttleType";function Wu(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=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 us(r,t,e,n){var i=r[t];if(i){var a=i[Xl]||i,o=i[ym],s=i[mm];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Wu(a,e,n==="debounce"),i[Xl]=a,i[ym]=n,i[mm]=e}return i}}function Uo(r,t){var e=r[t];e&&e[Xl]&&(e.clear&&e.clear(),r[t]=e[Xl])}var _m=bt(),Sm={itemStyle:ha(ix,!0),lineStyle:ha(nx,!0)},HR={lineStyle:"stroke",itemStyle:"fill"};function qx(r,t){var e=r.visualStyleMapper||Sm[t];return e||(console.warn("Unknown style type '"+t+"'."),Sm.itemStyle)}function Kx(r,t){var e=r.visualDrawType||HR[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var WR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=qx(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Kx(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=N({},o);g[l]=f(p),c.setItemVisual(d,"style",g)}}}},Ha=new Dt,UR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=qx(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ha.option=l[n];var u=i(Ha),f=o.ensureUniqueItemVisual(s,"style");N(f,u),Ha.option.decal&&(o.setItemVisual(s,"decal",Ha.option.decal),Ha.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},YR={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)),_m(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=_m(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Kx(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 XR(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 ot,n=new mt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new yt({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 mt({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 Cu({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 $R=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,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(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)||To({plan:JR,reset:jR,count:eE}));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||To({reset:ZR});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,m=l.set(g,s&&s.get(g)||(v=!0,To({reset:qR,onDirty:QR})));m.context={model:p,overallProgress:h},m.agent=o,m.__block=h,a._pipe(p,m)}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:rE(t)}),t.uid=Aa("stageHandler"),e&&(t.visualType=e),t},r}();function ZR(r){r.overallReset(r.ecModel,r.api,r.payload)}function qR(r){return r.overallProgress&&KR}function KR(){this.agent.dirty(),this.getDownstream().dirty()}function QR(){this.agent&&this.agent.dirty()}function JR(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function jR(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?V(t,function(e,n){return Qx(n)}):tE}var tE=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;a0&&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}(),Rc=["symbol","symbolSize","symbolRotate","symbolOffset"],Tm=Rc.concat(["symbolKeepAspect"]),oE={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=0&&gi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Am(r,t,e){for(var n=t.type==="radial"?wE(r,t,e):bE(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:xt(r)?[r]:z(r)?r:null}function xd(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&AE(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 CE=new $r(!0);function ql(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Dm(r){return typeof r=="string"&&r!=="none"}function Kl(r){var t=r.fill;return t!=null&&t!=="none"}function Mm(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 Im(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 Lm(r,t,e){var n=zv(t.image,t.__image,e);if(Su(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)*vo),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function DE(r,t,e,n){var i,a=ql(e),o=Kl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||CE,h=t.__dirty;if(!n){var v=e.fill,c=e.stroke,d=o&&!!v.colorStops,p=a&&!!c.colorStops,g=o&&!!v.image,m=a&&!!c.image,y=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(y=h?Am(r,v,x):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=h?Am(r,c,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Lm(r,v,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(b=h||!t.__canvasStrokePattern?Lm(r,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=y:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:m&&(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=xd(t),A=i[0],C=i[1]);var D=!0;(u||h&Ji)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,l?s:1),A&&(r.setLineDash(A),r.lineDashOffset=C),n||(e.strokeFirst?(a&&Im(r,e),o&&Mm(r,e)):(o&&Mm(r,e),a&&Im(r,e))),A&&r.setLineDash([])}function ME(r,t,e){var n=t.__image=zv(e.image,t.__image,t,t.onload);if(!(!n||!Su(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 IE(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Cn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=xd(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ql(e)&&r.strokeText(i,e.x,e.y),Kl(e)&&r.fillText(i,e.x,e.y)):(Kl(e)&&r.fillText(i,e.x,e.y),ql(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Pm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Rm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ab(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)?_i.opacity:o}(n||t.blend!==e.blend)&&(a||(_e(r,i),a=!0),r.globalCompositeOperation=t.blend||_i.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,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 WP(this._api),u=this._theme,f=this._model=new Dx;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Oc);var h={seriesTransition:s,optionChanged:!0};if(i)this[ge]={silent:a,updateParams:h},this[Kt]=!1,this.getZr().wakeUp();else{try{Xi(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,Wa.call(this,a),Ua.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(eu[i]){var l=s,u=s,f=-s,h=-s,v=[],c=e&&e.pixelRatio||this.getDevicePixelRatio();w(bi,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=Dn.createCanvas(),m=cc(g,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:p}),n){var y="";return w(v,function(_){var S=_.left-l,b=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return e.connectedBackgroundColor&&m.add(new mt({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}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return ih(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return ih(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?rb(s,l,n):nb(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(ek,function(n){var i=function(a){var o=e.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&pi(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=N({},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(Ao,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)}),uE(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&&uS(this.getDom(),Td,"");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 bi[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&&Xi(this),nn.update.call(this,{type:"resize",animation:N({duration:0},e&&e.animation)})}catch(o){throw this[Kt]=!1,o}this[Kt]=!1,Wa.call(this,a),Ua.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(),!!Bc[e]){var i=Bc[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=N({},e);return n.type=Ao[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;oh.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&vt.browser.weChat&&this._throttledZrFlush(),Wa.call(this,i),Ua.call(this,i)}},t.prototype.updateLabelLayout=function(){er.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(){Xi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),nh(h,!0),nh(h,!1),v.plan()},nh=function(h,v){for(var c=h._model,d=h._scheduler,p=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_v.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=h._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.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(),m=h.isGroup;if(m)for(var y=h.childrenRef(),_=0;_0?{duration:p,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(m){if(m.states&&m.states.emphasis){if(bo(m))return;if(m instanceof _t&&lL(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}Ym=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){ca(d,p),Me(h)},c.prototype.leaveEmphasis=function(d,p){va(d,p),Me(h)},c.prototype.enterBlur=function(d){QI(d),Me(h)},c.prototype.leaveBlur=function(d){LS(d),Me(h)},c.prototype.enterSelect=function(d){PS(d),Me(h)},c.prototype.leaveSelect=function(d){RS(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}(Mx))(h)},bb=function(h){function v(c,d){for(var p=0;p=0)){$m.push(e);var a=tb.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function Ld(r,t){Bc[r]=t}function fk(r){h1({createCanvas:r})}function Ib(r,t,e){var n=cb("registerMap");n&&n(r,t,e)}function hk(r){var t=cb("getMap");return t&&t(r)}var Lb=dR;On(bd,WR);On(Yu,UR);On(Yu,YR);On(bd,oE);On(Yu,sE);On(pb,NE);Dd(Lx);Md(UE,QP);Ld("default",XR);hr({type:Si,event:Si,update:Si},Ht);hr({type:yl,event:yl,update:yl},Ht);hr({type:_o,event:_o,update:_o},Ht);hr({type:_l,event:_l,update:_l},Ht);hr({type:So,event:So,update:So},Ht);Cd("light",nE);Cd("dark",iE);var ck={};function Ya(r){return r==null?0:r.length||1}function Zm(r){return r}var vk=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Zm,this._newKeyGetter=i||Zm,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;o1){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;s1&&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;c1)for(var s=0;s30}var Xa=X,an=V,xk=typeof Int32Array>"u"?Array:Int32Array,bk="e\0\0",qm=-1,wk=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Tk=["_approximateExtent"],Km,Us,$a,Za,uh,Ys,fh,Ak=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;Rb(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=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ze;if(l&&!i.pure)for(var u=[],f=t;f0},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),z(a)?a=a.slice():Xa(a)&&(a=N({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Xa(e)?N(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Xa(t)?N(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?N(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;WI(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)),uh(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(du(arguments)))})},r.internalField=function(){Km=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 xk(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),i[e]=l}}}(),r}();const $u=Ak;function Ck(r,t){return Rd(r,t).dimensions}function Rd(r,t){vd(r)||(r=dd(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=Y(),a=[],o=Mk(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Ob(o),l=n===r.dimensionsDefine,u=l?kb(r):Eb(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),v=new zx(o),c=0;c0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Mk(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 Ik(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 Lk=function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r}();function Pk(r){var t=r.get("coordinateSystem"),e=new Lk(t),n=Rk[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var Rk={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",zt).models[0],a=r.getReferringComponents("yAxis",zt).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),$i(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),$i(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",zt).models[0];t.coordSysDims=["single"],e.set("single",i),$i(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",zt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),$i(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),$i(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),$i(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function $i(r){return r.get("type")==="category"}function Bb(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;Ek(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(y,_){G(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),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(y){y.coordDim===c&&p++});var g={name:h,coordDim:c,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={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),m.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function Ek(r){return!Rb(r.schema)}function Ln(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Nb(r,t){return Ln(r,t)?r.getCalculationInfo("stackResultDimension"):t}function kk(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=gk(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Ok(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 Zu(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=dd(r)):(i=n.getSource(),a=i.sourceFormat===Ze);var o=Pk(t),s=kk(t,o),l=e.useEncodeDefaulter,u=K(l)?l:l?dt(TP,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Rd(i,f),v=Ok(h.dimensions,e.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=Bb(t,{schema:h,store:c}),p=new $u(h,t);p.setCalculationInfo(d);var g=v!=null&&Bk(i)?function(m,y,_,S){return S===v?_:this.defaultDimValueGetter(m,y,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:c,null,g),p}function Bk(r){if(r.sourceFormat===Ze){var t=Nk(r.data||[]);return!z(ba(t))}}function Nk(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var 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}();_u(Fb);const Jr=Fb;var Fk=0,zk=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Fk}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&V(n,Vk);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 Vk(r){return X(r)&&r.value!=null?r.value:r+""}const Nc=zk;function Fc(r){return r.type==="interval"||r.type==="log"}function Gk(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=kv(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=zb(o),l=i.niceTickExtent=[Et(Math.ceil(r[0]/o)*o,s),Et(Math.floor(r[1]/o)*o,s)];return Hk(l,r),i}function hh(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 zb(r){return Tr(r)+2}function Qm(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Hk(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Qm(r,0,t),Qm(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function qu(r,t){return r>=t[0]&&r<=t[1]}function Ku(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Qu(r,t){return r*(t[1]-t[0])+t[0]}var Vb=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 Nc({})),z(i)&&(i=new Nc({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),qu(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ku(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Qu(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=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Jr);Jr.registerClass(Vb);const Ed=Vb;var ei=Et,Gb=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 qu(e,this._extent)},t.prototype.normalize=function(e){return Ku(e,this._extent)},t.prototype.scale=function(e){return Qu(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[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=zb(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]l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:ei(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;oa[0]&&c0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function Ub(r){var t=Yk(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=tt(n.get("barWidth"),s),p=tt(n.get("barMaxWidth"),s),g=tt(n.get("barMinWidth")||(Zb(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:Od(a),stackId:kd(n)})}),Xk(e)}function Xk(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=tt(s,o),f=tt(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),w(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),m.width=S,h-=S+f*S,v--}else{var S=c;y&&yS&&(S=_),S!==c&&(m.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(m,y){m.width||(m.width=c),p=m,d+=m.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;w(a,function(m,y){e[i][y]=e[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+f)})}),e}function $k(r,t,e){if(r&&t){var n=r[Od(t)];return n!=null&&e!=null?n[kd(e)]:n}}function Yb(r,t){var e=Wb(r,t),n=Ub(e);w(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=kd(i),u=n[Od(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function Xb(r){return{seriesType:r,plan:yd(),reset:function(t){if($b(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=Ln(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=Zk(i,a),d=Zb(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),m=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Vr(b*3),T=d&&l&&Vr(b*3),A=d&&Vr(b),C=n.master.getRect(),D=v?C.width:C.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var R=I.get(h?g:o,M),k=I.get(s,M),B=c,U=void 0;h&&(U=+R-I.get(o,M));var F=void 0,H=void 0,$=void 0,nt=void 0;if(v){var j=n.dataToPoint([R,k]);if(h){var ft=n.dataToPoint([U,k]);B=ft[0]}F=B,H=j[1]+y,$=j[0]-B,nt=m,Math.abs($)>>1;r[i][1]i&&(this._approxInterval=i);var s=Xs.length,l=Math.min(qk(Xs,this._approxInterval,0,s),s-1);this._interval=Xs[l][1],this._minLevelUnit=Xs[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return xt(e)?e:+Ce(e)},t.prototype.contain=function(e){return qu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ku(this.parse(e),this._extent)},t.prototype.scale=function(e){return Qu(e,this._extent)},t.type="time",t}(Pn),Xs=[["second",nd],["minute",id],["hour",wo],["quarter-day",wo*6],["half-day",wo*12],["day",Ge*1.2],["half-week",Ge*3.5],["week",Ge*7],["month",Ge*31],["quarter",Ge*95],["half-year",Fg/2],["year",Fg]];function Kk(r,t,e,n){var i=Ce(t),a=Ce(e),o=function(d){return Vg(i,d,n)===Vg(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/=Ge,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Jk(r){var t=30*Ge;return r/=t,r>6?6:r>3?3:r>2?2:1}function jk(r){return r/=wo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Jm(r,t){return r/=t?id:nd,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function tO(r){return kv(r,!0)}function eO(r,t,e){var n=new Date(r);switch(sa(t)){case"year":case"month":n[lx(e)](0);case"day":n[ux(e)](1);case"hour":n[fx(e)](0);case"minute":n[hx(e)](0);case"second":n[cx(e)](0),n[vx(e)](0)}return n.getTime()}function rO(r,t,e,n){var i=1e4,a=ox,o=0;function s(D,M,I,L,R,k,B){for(var U=new Date(M),F=M,H=U[L]();F1&&k===0&&I.unshift({value:I[0].value-F})}}for(var k=0;k=n[0]&&y<=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(D){return Ct(D,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(D){return D.length>0}),b=[],x=S.length-1,c=0;c0;)a*=10;var s=[Et(aO(n[0]/a)*a),Et(iO(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Co.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=Je(e)/Je(this.base),qu(e,this._extent)},t.prototype.normalize=function(e){return e=Je(e)/Je(this.base),Ku(e,this._extent)},t.prototype.scale=function(e){return e=Qu(e,this._extent),$s(this.base,e)},t.type="log",t}(Jr),Qb=Bd.prototype;Qb.getMinorTicks=Co.getMinorTicks;Qb.getLabel=Co.getLabel;function Zs(r,t){return nO(r,Tr(t))}Jr.registerClass(Bd);const oO=Bd;var sO=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[uO[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=lO[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),lO={min:"_determinedMin",max:"_determinedMax"},uO={min:"_dataMin",max:"_dataMax"};function Jb(r,t,e){var n=r.rawExtentInfo;return n||(n=new sO(r,t,e),r.rawExtentInfo=n,n)}function qs(r,t){return t==null?null:Io(t)?NaN:r.parse(t)}function jb(r,t){var e=r.type,n=Jb(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=Wb("bar",o),l=!1;if(w(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Ub(s),f=fO(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function fO(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=$k(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 ga(r,t){var e=t,n=jb(r,e),i=n.extent,a=e.get("splitNumber");r instanceof oO&&(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 Ju(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Ed({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Kb({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Jr.getClass(t)||Pn)}}function hO(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function fs(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(Nd(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Nd(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function cO(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Ed?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=fs(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var hs=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function pO(r){return Zu(null,r)}var gO={isDimensionStacked:Ln,enableDataStack:Bb,getStackedDimension:Nb};function mO(r,t){var e=t;t instanceof Dt||(e=new Dt(t));var n=Ju(e);return n.setExtent(r[0],r[1]),ga(n,e),n}function yO(r){$t(r,hs)}function _O(r,t){return t=t||{},Nt(r,null,null,t.state!=="normal")}const SO=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Ck,createList:pO,createScale:mO,createSymbol:re,createTextStyle:_O,dataStack:gO,enableHoverEmphasis:bn,getECData:ut,getLayoutRect:he,mixinAxisModelCommonMethods:yO},Symbol.toStringTag,{value:"Module"}));var ty=[],xO={registerPreprocessor:Dd,registerProcessor:Md,registerPostInit:Ab,registerPostUpdate:Cb,registerUpdateLifecycle:Xu,registerAction:hr,registerCoordinateSystem:Db,registerLayout:Mb,registerVisual:On,registerTransform:Lb,registerLoading:Ld,registerMap:Ib,registerImpl:zE,PRIORITY:gb,ComponentModel:ct,ComponentView:It,SeriesModel:De,ChartView:te,registerComponentModel:function(r){ct.registerClass(r)},registerComponentView:function(r){It.registerClass(r)},registerSeriesModel:function(r){De.registerClass(r)},registerChartView:function(r){te.registerClass(r)},registerSubTypeDefaulter:function(r,t){ct.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){J1(r,t)}};function Xt(r){if(z(r)){w(r,function(t){Xt(t)});return}lt(ty,r)>=0||(ty.push(r),K(r)&&(r={install:r}),r.install(xO))}var bO=1e-8;function ey(r,t){return Math.abs(r-t)i&&(n=o,i=l)}if(n)return TO(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"?ny(s.exterior,i,a,e):w(s.points,function(l){ny(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>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=CO(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 iy(o[0],o.slice(1)));break;case"MultiPolygon":w(i.coordinates,function(l){l[0]&&a.push(new iy(l[0],l.slice(1)))});break;case"LineString":a.push(new ay([i.coordinates]));break;case"MultiLineString":a.push(new ay(i.coordinates))}var s=new rw(n[t||"name"],a,n.cp);return s.properties=n,s})}const DO=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:C2,asc:wr,getPercentWithPrecision:T2,getPixelPrecision:Rv,getPrecision:Tr,getPrecisionSafe:tS,isNumeric:Ov,isRadianAroundZero:Eo,linearMap:Tt,nice:kv,numericToNumber:ko,parseDate:Ce,quantile:M2,quantity:rS,quantityExponent:yu,reformIntervals:vc,remRadian:Ev,round:Et},Symbol.toStringTag,{value:"Module"})),MO=Object.freeze(Object.defineProperty({__proto__:null,format:ls,parse:Ce},Symbol.toStringTag,{value:"Module"})),IO=Object.freeze(Object.defineProperty({__proto__:null,Arc:Cu,BezierCurve:Xv,BoundingRect:pt,Circle:sr,CompoundPath:Du,Ellipse:Au,Group:ot,Image:ce,IncrementalDisplayable:QS,Line:se,LinearGradient:ss,Polygon:Lr,Polyline:Xe,RadialGradient:$v,Rect:mt,Ring:os,Sector:Ir,Text:yt,clipPointsByRect:jv,clipRectByRect:ex,createIcon:wa,extendPath:jS,extendShape:JS,getShapeClass:Kv,getTransform:wn,initProps:ue,makeImage:Qv,makePath:Mu,mergePath:Ve,registerShape:$e,resizePath:Jv,updateProps:kt},Symbol.toStringTag,{value:"Module"})),LO=Object.freeze(Object.defineProperty({__proto__:null,addCommas:od,capitalFirst:yP,encodeHTML:oe,formatTime:mP,formatTpl:ld,getTextRect:pP,getTooltipMarker:dx,normalizeCssArray:Ca,toCamelCase:sd,truncateText:cS},Symbol.toStringTag,{value:"Module"})),PO=Object.freeze(Object.defineProperty({__proto__:null,bind:W,clone:Z,curry:dt,defaults:q,each:w,extend:N,filter:Ct,indexOf:lt,inherits:xv,isArray:z,isFunction:K,isObject:X,isString:G,map:V,merge:rt,reduce:We},Symbol.toStringTag,{value:"Module"}));var $o=bt();function RO(r){return r.type==="category"?kO(r):BO(r)}function EO(r,t){return r.type==="category"?OO(r,t):{ticks:V(r.scale.getTicks(),function(e){return e.value})}}function kO(r){var t=r.getLabelModel(),e=iw(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function iw(r,t){var e=aw(r,"labels"),n=Fd(t),i=ow(e,n);if(i)return i;var a,o;return K(n)?a=uw(r,n):(o=n==="auto"?NO(r):n,a=lw(r,o)),sw(e,n,{labels:a,labelCategoryInterval:o})}function OO(r,t){var e=aw(r,"ticks"),n=Fd(t),i=ow(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),K(n))a=uw(r,n,!0);else if(n==="auto"){var s=iw(r,r.getLabelModel());o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tickValue})}else o=n,a=lw(r,o,!0);return sw(e,n,{ticks:a,tickCategoryInterval:o})}function BO(r){var t=r.scale.getTicks(),e=fs(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 aw(r,t){return $o(r)[t]||($o(r)[t]=[])}function ow(r,t){for(var e=0;e40&&(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=is(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 m=v/f,y=c/h;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),S=$o(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 zO(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 lw(r,t,e){var n=fs(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=tw(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 m={value:g};s.push(e?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function uw(r,t,e){var n=r.scale,i=fs(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 oy=[0,1],VO=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 Rv(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(),sy(n,i.count())),Tt(t,oy,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),sy(n,i.count()));var a=Tt(t,n,oy,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=EO(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 GO(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 RO(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 FO(this)},r}();function sy(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function GO(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:c0){t=t/180*Math.PI,gn.fromArray(r[0]),Rt.fromArray(r[1]),Yt.fromArray(r[2]),it.sub(mn,gn,Rt),it.sub(br,Yt,Rt);var e=mn.len(),n=br.len();if(!(e<.001||n<.001)){mn.scale(1/e),br.scale(1/n);var i=mn.dot(br),a=Math.cos(t);if(a1&&it.copy(ae,Yt),ae.toArray(r[1])}}}}function $O(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,gn.fromArray(r[0]),Rt.fromArray(r[1]),Yt.fromArray(r[2]),it.sub(mn,Rt,gn),it.sub(br,Yt,Rt);var n=mn.len(),i=br.len();if(!(n<.001||i<.001)){mn.scale(1/n),br.scale(1/i);var a=mn.dot(t),o=Math.cos(e);if(a=l)it.copy(ae,Yt);else{ae.scaleAndAdd(br,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?it.copy(ae,Rt):h>1&&it.copy(ae,Yt)}ae.toArray(r[1])}}}}function ly(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 ZO(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=Pl(n[0],n[1]),a=Pl(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=fl([],n[1],n[0],o/i),l=fl([],n[1],n[2],o/a),u=fl([],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;f0&&a&&b(-f/o,0,o);var p=r[0],g=r[o-1],m,y;_(),m<0&&x(-m,.8),y<0&&x(y,.8),_(),S(m,y,1),S(y,m,-1),_(),m<0&&T(-m),y<0&&T(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[e]}function S(A,C,D){if(A<0){var M=Math.min(C,-A);if(M>0){b(M*D,0,o);var I=M+A;I<0&&x(-I*D,1)}else x(-A*D,1)}}function b(A,C,D){A!==0&&(u=!0);for(var M=C;M0)for(var I=0;I0;I--){var B=D[I-1]*k;b(-B,I,o)}}}function T(A){var C=A<0?-1:1;A=Math.abs(A);for(var D=Math.ceil(A/(o-1)),M=0;M0?b(D,0,M+1):b(-D,o-M-1,o),A-=D,A<=0)return}return u}function jO(r,t,e,n){return JO(r,"y","height",t,e,n)}function tB(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-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}(De);const rB=eB;function ju(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=pa(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var nB=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=iB,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(){ca(this.childAt(0))},t.prototype.downplay=function(){va(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),Fo(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,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var y=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),p=Qr(y),g=_.getShallow("scale"),m=y.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Uu(e.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),m&&s.attr("cursor",m);var x=e.getItemVisual(n,"style"),T=x.fill;if(s instanceof ce){var A=s.style;s.useStyle(N({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},x))}else s.__isEmptyBrush?s.useStyle(N({},x)):s.useStyle(x),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var M=o&&o.useNameLabel;Kr(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:I,inheritColor:T,defaultOpacity:x.opacity});function I(k){return M?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),Mn(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&&No(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();No(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return Sd(e.getItemVisual(n,"symbolSize"))},t}(ot);function iB(r,t){this.parent.drift(r,t)}const zd=nB;function dh(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 fy(r){return r!=null&&!X(r)&&(r={isIgnore:r}),r||{}}function hy(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 aB=function(){function r(t){this.group=new ot,this._SymbolCtor=t||zd}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=fy(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=hy(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(dh(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(!dh(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 m={x:d[0],y:d[1]};s?c.attr(m):kt(c,m,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=hy(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=fy(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=n[0]:n[1]<0&&(e=n[1]),e}function vw(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 lB(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 uB(r,t,e,n,i,a,o,s){for(var l=lB(r,t),u=[],f=[],h=[],v=[],c=[],d=[],p=[],g=cw(i,t,o),m=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=i||p<0)break;if(wi(m,y)){if(l){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](m,y),h=m,v=y;else{var _=m-u,S=y-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===m&&T===y&&g=n||wi(x,T))c=m,d=y;else{D=x-u,M=T-f;var R=m-u,k=x-m,B=y-f,U=T-y,F=void 0,H=void 0;if(s==="x"){F=Math.abs(R),H=Math.abs(k);var $=D>0?1:-1;c=m-$*F*o,d=y,I=m+$*H*o,L=y}else if(s==="y"){F=Math.abs(B),H=Math.abs(U);var nt=M>0?1:-1;c=m,d=y-nt*F*o,I=m,L=y+nt*H*o}else F=Math.sqrt(R*R+B*B),H=Math.sqrt(k*k+U*U),C=H/(H+F),c=m-D*o*(1-C),d=y-M*o*(1-C),I=m+D*o*C,L=y+M*o*C,I=on(I,sn(x,m)),L=on(L,sn(T,y)),I=sn(I,on(x,m)),L=sn(L,on(T,y)),D=I-m,M=L-y,c=m-D*F/H,d=y-M*F/H,c=on(c,sn(u,m)),d=on(d,sn(f,y)),c=sn(c,on(u,m)),d=sn(d,on(f,y)),D=m-c,M=y-d,I=m+D*H/F,L=y+M*H/F}r.bezierCurveTo(h,v,c,d,m,y),h=I,v=L}else r.lineTo(m,y)}u=m,f=y,p+=a}return g}var dw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),fB=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 dw},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&wi(i[o*2-2],i[o*2-1]);o--);for(;a=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++],m=a[h++],y=a[h++];var b=u?El(s,c,p,m,e,f):El(l,d,g,y,e,f);if(b>0)for(var x=0;x=0){var S=u?Ft(l,d,g,y,T):Ft(s,c,p,m,T);return u?[e,S]:[S,e]}}s=m,l=y;break}}},t}(_t),hB=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(dw),cB=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 hB},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&&wi(i[s*2-2],i[s*2-1]);s--);for(;ot){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 gB(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=pB(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,m=g-p;if(m<.001)return"transparent";w(v,function(_){_.offset=(_.coord-p)/m}),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 y=new ss(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=g,y}}}function mB(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&yB(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 yB(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;on)return!1;return!0}function _B(r,t){return isNaN(r)||isNaN(t)}function SB(r){for(var t=r.length/2;t>0&&_B(r[t*2-2],r[t*2-1]);t--);return t-1}function gy(r,t){return[r[t*2],r[t*2+1]]}function xB(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function mw(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var $=p.getState("emphasis").style;$.lineWidth=+p.style.lineWidth+1}ut(p).seriesIndex=e.seriesIndex,Mn(p,U,F,H);var nt=py(e.get("smooth")),j=e.get("smoothMonotone");if(p.setShape({smooth:nt,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=py(ft.get("smooth"))),g.setShape({smooth:nt,stackedOnSmooth:gt,smoothMonotone:j,connectNulls:A}),da(g,e,"areaStyle"),ut(g).seriesIndex=e.seriesIndex,Mn(g,U,F,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=M,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=Di(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 zd(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=Di(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;mc(this._polyline,e),n&&mc(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new fB({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 cB({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],m=void 0,y=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,_=-b[1]/180*Math.PI):(m=S.r0,y=S.r,_=b[0])}else{var x=i;a?(m=x.x,y=x.x+x.width,_=c.x):(m=x.y+x.height,y=x.y,_=c.y)}var T=y===m?0:(_-m)/(y-m);l&&(T=1-T);var A=K(h)?h(d):f*T+v,C=p.getSymbolPath(),D=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(mw(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 yt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=SB(l);f>=0&&(Kr(s,Qr(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?hw(o,c):ju(o,h)},enableTextSetter:!0},bB(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(),m=g.isHorizontal(),y=g.inverse,_=n.shape,S=y?m?_.x:_.y+_.height:m?_.x+_.width:_.y,b=(m?p:0)*(y?-1:1),x=(m?0:-p)*(y?-1:1),T=m?"x":"y",A=xB(h,S,T),C=A.range,D=C[1]-C[0],M=void 0;if(D>=1){if(D>1&&!c){var I=gy(h,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(M=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&&(M=U2(i,d,L,R,A.t))}a.lastFrameIndex=C[0]}else{var k=e===1||a.lastFrameIndex>0?C[0]:0,I=gy(h,k);o&&(M=v.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}o&&ku(u).setLabelText(M)}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,v=uB(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)),dy(c,p)>3e3||f&&dy(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 m={shape:{points:p}};v.current!==c&&(m.shape.__points=v.next),u.stopAnimation(),kt(u,m,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 y=[],_=v.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&y.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;At&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&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=CB[a]:K(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,DB))}}}}}function MB(r){r.registerChartView(TB),r.registerSeriesModel(rB),r.registerLayout(AB("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,yw("line"))}var _w=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 Zu(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 m=void 0,y=void 0,_=1,S=0;Sp){y=(b+m)/2;break}S===1&&(_=x-d[0].tickValue)}y==null&&(m?m&&(y=d[d.length-1].coord):y=d[0].coord),s[c]=v.toGlobalCoord(y)}});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}(De);De.registerClass(_w);const iu=_w;var IB=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 Zu(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=kn(iu.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}(iu);const LB=IB;var PB=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}(),RB=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 PB},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-fMath.PI/2&&fs)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){Hl(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),yy={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=gh(t.x,r.x),s=mh(t.x+t.width,i),l=gh(t.y,r.y),u=mh(t.y+t.height,a),f=si?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=mh(t.r,r.r),a=gh(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}},_y={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new mt({shape:N({},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?my:Ir,f=new u({shape:n,z2:1});f.name="item";var h=Sw(i);if(f.calculateTextPosition=EB(h,{isRoundCap:u===my}),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 NB(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 Sy(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 xy(r,t){for(var e=0;e0?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 VB(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Sw(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 wy(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=fo(n.getModel("itemStyle"),f,!0);N(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,kB(r,g==="outside"?c:g,Sw(o),n.get(["label","rotate"]))}KL(p,d,a.getRawValue(e),function(y){return hw(t,y)});var m=n.getModel(["emphasis"]);Mn(r,m.get("focus"),m.get("blurScope"),m.get("disabled")),da(r,n),VB(i)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function GB(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 HB=function(){function r(){}return r}(),Ty=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 HB},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=0?e:null},30,!1);function WB(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=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function xw(r,t,e){if(Vd(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 UB(r,t,e){var n=r.type==="polar"?Ir:mt;return new n({shape:xw(t,e,r),silent:!0,z2:0})}const YB=BB;function XB(r){r.registerChartView(YB),r.registerSeriesModel(LB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,dt(Yb,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Xb("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,yw("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,Dy=Math.PI/180;function bw(r,t){return he(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ww(r,t){var e=bw(r,t),n=r.get("center"),i=r.get("radius");z(i)||(i=[0,i]);var a=tt(e.width,t.getWidth()),o=tt(e.height,t.getHeight()),s=Math.min(a,o),l=tt(i[0],s/2),u=tt(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 z(n)||(n=[n,n]),f=tt(n[0],a)+e.x,h=tt(n[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function $B(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=bw(n,e),s=ww(n,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*Dy,c=n.get("minAngle")*Dy,d=0;i.each(a,function(D){!isNaN(D)&&d++});var p=i.getSum(a),g=Math.PI/(p||d)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var b=js,x=0,T=v,A=m?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(D,M){var I;if(isNaN(D)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:h,r:y?NaN:f});return}y!=="area"?I=p===0&&_?g:D*g:I=js/d,Ie?m: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)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 KB(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*ZB,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(),D=T.getTextGuideLine(),M=t.getItemModel(x),I=M.getModel("label"),L=I.get("position")||M.get(["emphasis","label","position"]),R=I.get("distanceToLabelLine"),k=I.get("alignTo"),B=tt(I.get("edgeDistance"),u),U=I.get("bleedMargin"),F=M.getModel("labelLine"),H=F.get("length");H=tt(H,u);var $=F.get("length2");if($=tt($,u),Math.abs(A.endAngle-A.startAngle)0?"right":"left":j>0?"left":"right"}var qe=Math.PI,de=0,Rr=I.get("rotate");if(xt(Rr))de=Rr*(qe/180);else if(L==="center")de=0;else if(Rr==="radial"||Rr===!0){var ki=j<0?-nt+qe:-nt;de=ki}else if(Rr==="tangential"&&L!=="outside"&&L!=="outer"){var Ke=Math.atan2(j,ft);Ke<0&&(Ke=qe*2+Ke);var vs=ft>0;vs&&(Ke=qe+Ke),de=Ke-qe}if(a=!!de,C.x=gt,C.y=Ot,C.rotation=de,C.setStyle({verticalAlign:"middle"}),Gt){C.setStyle({align:Zt});var af=C.states.select;af&&(af.x+=C.x,af.y+=C.y)}else{var jr=C.getBoundingRect().clone();jr.applyTransform(C.getComputedTransform());var pp=(C.style.margin||0)+2.1;jr.y-=pp/2,jr.height+=pp,e.push({label:C,labelLine:D,position:L,len:H,len2:$,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new it(j,ft),linePoints:wt,textAlign:Zt,labelDistance:R,labelAlignTo:k,edgeDistance:B,bleedMargin:U,rect:jr,unconstrainedWidth:jr.width,labelStyleWidth:C.style.width})}T.setTextConfig({inside:Gt})}}),!a&&r.get("avoidLabelOverlap")&&qB(e,n,i,l,u,v,f,h);for(var p=0;p0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=a.r0}},t.type="pie",t}(te);const jB=JB;function Gd(r,t,e){t=z(t)&&{coordDimensions:t}||N({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Rd(n,t).dimensions,a=new $u(i,r);return a.initData(n,e),a}var t5=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 Cw=t5;var e5=bt(),r5=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 Cw(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 Gd(this,{coordDimensions:["value"],encodeDefaulter:dt(xx,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=e5(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=eS(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){Fl(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}(De);const n5=r5;function i5(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 a5(r){r.registerChartView(jB),r.registerSeriesModel(n5),ib("pie",r.registerAction),r.registerLayout(dt($B,"pie")),r.registerProcessor(Tw("pie")),r.registerProcessor(i5("pie"))}var o5=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 s5=o5;var Gc=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},t.type="cartesian2dAxis",t}(ct);$t(Gc,hs);var Dw={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)"]}}},l5=rt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Dw),Hd=rt({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}}},Dw),u5=rt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Hd),f5=q({logBase:10},Hd);const Mw={category:l5,value:Hd,time:u5,log:f5};var h5={value:1,category:1,time:1,log:1};function Zo(r,t,e,n){w(h5,function(i,a){var o=rt(rt({},Mw[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=Ho(this),c=v?Da(f):{},d=h.getTheme();rt(f,d.get(a+"Axis")),rt(f,this.getDefaultOption()),f.type=Iy(f),v&&In(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Nc.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",Iy)}function Iy(r){return r.type||(r.data?"category":"value")}var c5=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 v5=c5;var Hc=["x","y"];function Ly(r){return r.type==="interval"||r.type==="time"}var d5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Hc,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Ly(e)||!Ly(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=xa([],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}(v5),p5=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}(cr);const g5=p5;function Wc(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),Wr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function Py(r){return r.get("coordinateSystem")==="cartesian2d"}function Ry(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,zt).models[0];t[n]=a}),t}var _h=Math.log;function Iw(r,t,e){var n=Pn.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),l=jb(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=_h(r.base);u=[_h(u[0])/v,_h(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;gu[0]&&isFinite(p)&&isFinite(u[0]);)d=hh(d),p=u[1]-d*o;else{var m=r.getTicks().length-1;m>o&&(d=hh(d));var y=d*o;g=Math.ceil(u[1]/d)*d,p=Et(g-y),p<0&&u[0]>=0?(p=0,g=Et(y)):g>0&&u[1]<=0&&(g=0,p=-Et(y))}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 m5=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Hc,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;Fc(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(ga(p,d),Fc(p)&&(s=c))}f.length&&(s||(s=f.pop(),ga(s.scale,s.model)),w(f,function(g){Iw(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};w(n.x,function(o){Ey(n,"y",o,a)}),w(n.y,function(o){Ey(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=cO(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]),y5(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;i0?"top":"bottom",a="center"):Eo(i-yn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"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}(),Oy={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=N({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=Uu(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(m,y){if(v[y]!=="none"&&v[y]!=null){var _=re(v[y],-p/2,-g/2,p,g,f.stroke,!0),S=m.r+m.offset,b=u?l:s;_.attr({rotation:m.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=b5(e,n,t,r),a=T5(e,n,t,r);if(x5(t,a,i),w5(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}}}));tB(o)}},axisName:function(r,t,e,n){var i=Wr(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,Ny(a)?r.labelOffset+o*l:0],v,c=t.get("nameRotate");c!=null&&(c=c*yn/180);var d;Ny(a)?v=Ti.innerTextLayout(r.rotation,c??r.rotation,o):(v=S5(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)||{},m=g.ellipsis,y=Wr(r.nameTruncateMaxWidth,g.maxWidth,d),_=new yt({x:h[0],y:h[1],rotation:v.rotation,silent:Ti.isLabelSilent(t),style:Nt(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Ta({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Ti.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ut(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function S5(r,t,e,n){var i=Ev(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Eo(i-yn/2)?(o=l?"bottom":"top",a="center"):Eo(i-yn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iyn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function x5(r,t,e){if(!tw(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?(Ie(a),Ie(u)):By(a,o)&&(n?(Ie(o),Ie(f)):(Ie(a),Ie(u))),i===!1?(Ie(s),Ie(h)):By(l,s)&&(i?(Ie(l),Ie(v)):(Ie(s),Ie(h)))}}function Ie(r){r&&(r.ignore=!0)}function By(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=rs([]);return En(i,i,-r.rotation),e.applyTransform(Cr([],i,r.getLocalTransform())),n.applyTransform(Cr([],i,t.getLocalTransform())),e.intersect(n)}}function Ny(r){return r==="middle"||r==="center"}function Lw(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l=0||r===t}function L5(r){var t=Wd(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=Uc(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]),o0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=q({color:d.color},l));var g=rt(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 m=g.name;g.name=f.replace("{value}",m??"")}else K(f)&&(g.name=f(g.name,g));var y=new Dt(g,null,this.ecModel);return $t(y,hs.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},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:rt({lineStyle:{color:"#bbb"}},qa.axisLine),axisLabel:tl(qa.axisLabel,!1),axisTick:tl(qa.axisTick,!1),splitLine:tl(qa.splitLine,!0),splitArea:tl(qa.splitArea,!0),indicator:[]},t}(ct);const Z5=$5;var q5=["axisLine","axisTickLabel","axisName"],K5=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 Rn(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(q5,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=z(v)?v:[v],p=z(c)?c:[c],g=[],m=[];function y(k,B,U){var F=U%B.length;return k[F]=k[F]||[],F}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var T=y(g,d,x);g[T].push(new sr({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var T=y(m,p,x);m[T].push(new os({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var A,C=V(i,function(k,B){var U=k.getTicksCoords();return A=A==null?U.length-1:Math.min(U.length-1,A),V(U,function(F){return n.coordToPoint(F.coord,B)})}),D=[],x=0;x<=A;x++){for(var M=[],I=0;I3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;bh(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);bh(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Wy(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;bh(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ur);function bh(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Ur(n.event),kw(r,t,e,n,i))}function kw(r,t,e,n,i){i.isAvailableBehavior=W(Tl,null,e,n),r.trigger(t,i)}function Tl(r,t,e){var n=e[r];return!r||n&&(!G(n)||t.event[n+"Key"])}const Ow=aN;function oN(r,t,e){var n=r.target;n.x+=t,n.y+=e,n.dirty()}function sN(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 lN={axisPointer:1,tooltip:1,brush:1};function Bw(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!lN.hasOwnProperty(n.mainType)&&i&&i.model!==e}function Nw(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 wh,au={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"},Uy=st(au),ou={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Yy=st(ou),uN=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=Nw(t);this._defsUsePending=[];var i=new ot;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;cN(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=tf(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=zw(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var c=i;i=new ot,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 mt({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=wh[s];if(f&&et(wh,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=Xy[s];if(c&&et(Xy,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 Bo({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Le(e,n),we(t,n,this._defsUsePending,!1,!1),fN(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(){wh={g:function(t,e){var n=new ot;return Le(e,n),we(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new mt;return Le(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 sr;return Le(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 Le(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 Au;return Le(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=qy(n));var a=new Lr({shape:{points:i||[]},silent:!0});return Le(e,a),we(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var n=t.getAttribute("points"),i;n&&(i=qy(n));var a=new Xe({shape:{points:i||[]},silent:!0});return Le(e,a),we(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var n=new ce;return Le(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 ot;return Le(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 ot;return Le(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=FS(n);return Le(e,i),we(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),Xy={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 ss(t,e,n,i);return $y(r,a),Zy(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 $v(t,e,n);return $y(r,i),Zy(r,i),i}};function $y(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Zy(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={};Fw(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}e=e.nextSibling}}function Le(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),q(t.__inheritedStyle,r.__inheritedStyle))}function qy(r){for(var t=tf(r),e=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=tf(o);switch(i=i||Ue(),s){case"translate":Yr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Cv(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":En(i,i,-parseFloat(l[0])*Th);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Th);Cr(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Th);Cr(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 Qy=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fw(r,t,e){var n=r.getAttribute("style");if(n){Qy.lastIndex=0;for(var i;(i=Qy.exec(n))!=null;){var a=i[1],o=et(au,a)?au[a]:null;o&&(t[o]=i[2]);var s=et(ou,a)?ou[a]:null;s&&(e[s]=i[2])}}}function gN(r,t,e){for(var n=0;n0,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=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&&(Vw(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 r0(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 n0(r,t,e,n,i){r.data||Ta({el:t,componentModel:i,itemName:e,itemTooltipOption:n.get("tooltip")})}function i0(r,t,e,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Mn(t,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&oL(t,i,e),o}function a0(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-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}(De);const FN=NN;function zN(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;f1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=y[1]-S.height/2,S.x=y[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 UN(r,t){w(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var YN=function(){function r(){this.dimensions=Ww}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 u0(l+s,l,N({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=f0,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 u0(s,s,N({nameMap:d1(l)},i(o[0])));u.zoomLimit=Wr.apply(null,V(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=f0,u.resize(o[0],e),w(o,function(f){f.coordinateSystem=u,UN(u,f)})}),n},r.prototype.getFilledRegions=function(t,e,n,i){for(var a=(t||[]).slice(),o=Y(),s=0;s=0;a--)n[a]==null&&(delete e[t[a]],t.pop())}function Ah(r,t){var e=r.visual,n=[];X(e)?Ko(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]),Xw(r,n)}function rl(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:$c([0,1])}}function c0(r){var t=this.option.visual;return t[Math.round(Tt(r,[0,1],[0,t.length-1],!0))]||{}}function Qa(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function ho(r){var t=this.option.visual;return t[this.option.loop&&r!==su?r%t.length:r]}function oi(){return this.option.visual[0]}function $c(r){return{linear:function(t){return Tt(t,r,this.option.visual,!0)},category:ho,piecewise:function(t,e){var n=Zc.call(this,e);return n==null&&(n=Tt(t,r,this.option.visual,!0)),n},fixed:oi}}function Zc(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Xd.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function Xw(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 i3={linear:function(r){return Tt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Xd.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??su},fixed:Ht};function nl(r,t,e){return r?t<=e:tl3)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||!Ch(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 Ch(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const h3=u3;var c3=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&&rt(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 v3=c3;var d3=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}(cr);const p3=d3;function Ei(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=qi(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=qi(s,[0,o]),i=a=qi(s,[i,a]),n=0}t[0]=qi(t[0],e),t[1]=qi(t[1],e);var l=Dh(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=qi(t[n],f);var h;return h=Dh(t,n),i!=null&&(h.sign!==l.sign||h.spana&&(t[1-n]=t[n]+h.sign*a),t}function Dh(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 qi(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,$w=Math.min,Zw=Math.max,v0=Math.floor,g3=Math.ceil,d0=Et,m3=Math.PI,y3=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 p3(o,Ju(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)),ga(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=il(t.get("axisExpandWidth"),l),h=il(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=il(c[1]-c[0],l),c[1]=c[0]+d;else{d=il(f*(h-1),l);var p=t.get("axisExpandCenter")||v0(u/2);c=[f*p-d/2],c[1]=c[0]+d}var g=(s-d)/(u-h);g<3&&(g=0);var m=[v0(d0(c[0]/f,1))+1,g3(d0(c[1]/f,1))-1],y=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:m,axisExpandWindow0Pos:y}},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?S3:_3)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:m3/2,vertical:0},h=[u[a].x+t.x,u[a].y+t.y],v=f[a],c=Ue();En(c,c,v),Yr(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;fa*(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?Ei(l,i,o,"all"):u="none";else{var c=i[1]-i[0],d=o[1]*s/c;i=[Zw(0,d-c/2)],i[1]=$w(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r}();function il(r,t){return $w(Zw(r,t[0]),t[1])}function _3(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function S3(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=0;i--)wr(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;aD3}function eT(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function rT(r,t,e,n){var i=new ot;return i.add(new mt({name:"main",style:Kd(e),silent:!0,draggable:!0,cursor:"move",drift:dt(y0,r,t,i,["n","s","w","e"]),ondragend:dt(Li,t,{isEnd:!0})})),w(n,function(a){i.add(new mt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:dt(y0,r,t,i,a),ondragend:dt(Li,t,{isEnd:!0})}))}),i}function nT(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=ma(i,M3),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,m=p+i;Or(r,t,"main",o,s,d,p),n.transformable&&(Or(r,t,"w",l,u,a,m),Or(r,t,"e",v,u,a,m),Or(r,t,"n",l,u,g,a),Or(r,t,"s",l,c,g,a),Or(r,t,"nw",l,u,a,a),Or(r,t,"ne",v,u,a,a),Or(r,t,"sw",l,c,a,a),Or(r,t,"se",v,c,a,a))}function Kc(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Kd(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?Qc(r,a[0]):O3(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?L3[s]+"-resize":null})})}function Or(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(N3(Qd(r,t,[[n,i],[n+a,i+o]])))}function Kd(r){return q({strokeNoScale:!0},r.brushStyle)}function iT(r,t,e,n){var i=[Qo(r,e),Qo(t,n)],a=[ma(r,e),ma(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function k3(r){return wn(r.group)}function Qc(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Iu(e[t],k3(r));return n[i]}function O3(r,t){var e=[Qc(r,t[0]),Qc(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function y0(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=aT(t,i,a);w(n,function(u){var f=I3[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(iT(s[0][0],s[1][0],s[0][1],s[1][1])),$d(t,e),Li(t,{isEnd:!1})}function B3(r,t,e,n){var i=t.__brushOption.range,a=aT(r,e,n);w(i,function(o){o[0]+=a[0],o[1]+=a[1]}),$d(r,t),Li(r,{isEnd:!1})}function aT(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=tT(r,t);return n&&n!==Ii?n.clipPath(e,r._transform):Z(e)}function N3(r){var t=Qo(r[0][0],r[1][0]),e=Qo(r[0][1],r[1][1]),n=ma(r[0][0],r[1][0]),i=ma(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function F3(r,t,e){if(!(!r._brushType||V3(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=qd(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ef={lineX:x0(0),lineY:x0(1),rect:{createCover:function(r,t){function e(n){return n}return rT({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=eT(r);return iT(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){nT(r,t,e,n)},updateCommon:Kc,contain:jc},polygon:{createCover:function(r,t){var e=new ot;return e.add(new Xe({name:"main",style:Kd(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Lr({name:"main",draggable:!0,drift:dt(B3,r,t),ondragend:dt(Li,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Qd(r,t,e)})},updateCommon:Kc,contain:jc}};function x0(r){return{createCover:function(t,e){return rT({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=eT(t),n=Qo(e[0][r],e[1][r]),i=ma(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=tT(t,e);if(o!==Ii&&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(),nT(t,e,l,i)},updateCommon:Kc,contain:jc}}const sT=R3;function lT(r){return r=Jd(r),function(t){return jv(t,r)}}function uT(r,t){return r=Jd(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 fT(r,t,e){var n=Jd(r);return function(i,a){return n.contain(a[0],a[1])&&!Bw(i,t,e)}}function Jd(r){return pt.create(r)}var G3=["axisLine","axisTickLabel","axisName"],H3=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 sT(n.getZr())).on("brush",W(this._onBrush,this))},t.prototype.render=function(e,n,i,a){if(!W3(e,n,a)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ot,this.group.add(this._axisGroup),!!e.get("show")){var s=Y3(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,h=e.axis.dim,v=l.getAxisLayout(h),c=N({strokeContainThreshold:f},v),d=new Rn(e,c);w(G3,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(c,u,e,s,f,i),Lu(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:lT(h),isTargetByCursor:fT(h,s,a),getLinearBrushOtherExtent:uT(h,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(U3(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 W3(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function U3(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 Y3(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const X3=H3;var $3={type:"axisAreaSelect",event:"axisAreaSelected"};function Z3(r){r.registerAction($3,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 q3={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function K3(r){r.registerComponentView(h3),r.registerComponentModel(v3),r.registerCoordinateSystem("parallel",T3),r.registerPreprocessor(a3),r.registerComponentModel(p0),r.registerComponentView(X3),Zo(r,"parallel",p0,q3),Z3(r)}var Q3=["itemStyle","borderWidth"],b0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Ih=new sr,J3=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:b0[+f],categoryDim:b0[1-+f]};return o.diff(s).add(function(c){if(o.hasValue(c)){var d=T0(o,c),p=w0(o,c,d,v),g=A0(o,v,p);o.setItemGraphicEl(c,g),a.add(g),D0(g,v,p)}}).update(function(c,d){var p=s.getItemGraphicEl(d);if(!o.hasValue(c)){a.remove(p);return}var g=T0(o,c),m=w0(o,c,g,v),y=gT(o,m);p&&y!==p.__pictorialShapeStr&&(a.remove(p),o.setItemGraphicEl(c,null),p=null),p?aF(p,v,m):p=A0(o,v,m,!0),o.setItemGraphicEl(c,p),p.__pictorialSymbolMeta=m,a.add(p),D0(p,v,m)}).remove(function(c){var d=s.getItemGraphicEl(c);d&&C0(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){C0(a,ut(o).dataIndex,e,o)}):i.removeAll()},t.type="pictorialBar",t}(te);function w0(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};j3(e,a,i,n,v),tF(r,t,i,a,o,v.boundingLength,v.pxSign,f,n,v),eF(e,v.symbolScale,u,n,v);var c=v.symbolSize,d=Uu(e.get("symbolOffset"),c);return rF(e,c,i,a,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function j3(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(z(o)){var h=[Lh(s,o[0])-l,Lh(s,o[1])-l];h[1]0?1:-1}function Lh(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function tF(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;z(c)?d=c.slice():c==null?d=["100%","100%"]:d=[c,c],d[h.index]=tt(d[h.index],v),d[f.index]=tt(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 eF(r,t,e,n,i){var a=r.get(Q3)||0;a&&(Ih.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Ih.updateTransform(),a/=Ih.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function rF(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 m=Math.abs(l),y=Wr(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var S=tt(y,t[c.index]),b=Math.max(p+S*2,0),x=_?0:S*2,T=Ov(n),A=T?n:M0((m+x)/b),C=m-A*p;S=C/2/(_?A:Math.max(A-1,1)),b=p+S*2,x=_?0:S*2,!T&&n!=="fixed"&&(A=u?M0((Math.abs(u)+x)/b):0),g=A*b-x,h.repeatTimes=A,h.symbolMargin=S}var D=d*(g/2),M=h.pathPosition=[];M[v.index]=e[v.wh]/2,M[c.index]=o==="start"?D:o==="end"?l-D:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var I=h.bundlePosition=[];I[v.index]=e[v.xy],I[c.index]=e[c.xy];var L=h.barRectShape=N({},e);L[c.wh]=d*Math.max(Math.abs(e[c.wh]),Math.abs(M[c.index]+D)),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 hT(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 cT(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(jd(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f0:m<0)&&(y=u-1-p),g[l.index]=h*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function vT(r,t,e,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?ua(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=hT(e),i.add(a),ua(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 dT(r,t,e){var n=N({},t.barRectShape),i=r.__pictorialBarRect;i?ua(i,null,{shape:n},t,e):(i=r.__pictorialBarRect=new mt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function pT(r,t,e,n){if(e.symbolClip){var i=r.__pictorialClipPath,a=N({},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 mt({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=e.clipShape[o.wh],Ru[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function T0(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=nF,e.isAnimationEnabled=iF,e}function nF(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function iF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function A0(r,t,e,n){var i=new ot,a=new ot;return i.add(a),i.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?cT(i,t,e):vT(i,t,e),dT(i,e,n),pT(i,t,e,n),i.__pictorialShapeStr=gT(r,e),i.__pictorialSymbolMeta=e,i}function aF(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?cT(r,t,e,!0):vT(r,t,e,!0),dT(r,e,!0),pT(r,t,e,!0)}function C0(r,t,e,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];jd(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),w(a,function(o){No(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function gT(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function jd(r,t,e){w(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function ua(r,t,e,n,i,a){t&&r.attr(t),n.symbolClip&&!i?e&&r.attr(e):e&&Ru[i?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,a)}function D0(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");jd(r,function(p){if(p instanceof ce){var g=p.style;p.useStyle(N({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var m=p.ensureState("emphasis");m.style=o,v&&(m.scaleX=p.scaleX*1.1,m.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}),Mn(r,f,h,a.get("disabled"))}function M0(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const oF=J3;var sF=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=kn(iu.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}(iu);const lF=sF;function uF(r){r.registerChartView(oF),r.registerSeriesModel(lF),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,dt(Yb,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Xb("pictorialBar"))}function fF(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||et(r,"text")))}function hF(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},et(n,"text")&&(o.text=n.text),et(n,"rich")&&(o.rich=n.rich),et(n,"textFill")&&(o.fill=n.textFill),et(n,"textStroke")&&(o.stroke=n.textStroke),et(n,"fontFamily")&&(o.fontFamily=n.fontFamily),et(n,"fontSize")&&(o.fontSize=n.fontSize),et(n,"fontStyle")&&(o.fontStyle=n.fontStyle),et(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=et(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),et(n,"textPosition")&&(i.position=n.textPosition),et(n,"textOffset")&&(i.offset=n.textOffset),et(n,"textRotation")&&(i.rotation=n.textRotation),et(n,"textDistance")&&(i.distance=n.textDistance)}return I0(o,r),w(o.rich,function(l){I0(l,l)}),{textConfig:i,textContent:a}}function I0(r,t){t&&(t.font=t.textFont||t.font,et(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),et(t,"textAlign")&&(r.align=t.textAlign),et(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),et(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),et(t,"textWidth")&&(r.width=t.textWidth),et(t,"textHeight")&&(r.height=t.textHeight),et(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),et(t,"textPadding")&&(r.padding=t.textPadding),et(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),et(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),et(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),et(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),et(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),et(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),et(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}var mT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},L0=st(mT);We(Dr,function(r,t){return r[t]=1,r},{});Dr.join(", ");var lu=["","style","shape","extra"],ya=bt();function tp(r,t,e,n,i){var a=r+"Animation",o=Zv(r,n,i)||{},s=ya(t).userDuring;return o.duration>0&&(o.during=s?W(mF,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),N(o,e[a]),o}function Ph(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(_F(r,t,h),R0("shape",t,h),R0("extra",t,h),!a&&s&&(yF(r,t,f),P0("shape",r,t,f),P0("extra",r,t,f),SF(r,t,u,f)),h.style=u,vF(r,h,o),pF(r,t),s)if(a){var v={};w(lu,function(d){var p=d?t[d]:t;p&&p.enterFrom&&(d&&(v[d]=v[d]||{}),N(d?v[d]:v,p.enterFrom))});var c=tp("enter",r,t,e,i);c.duration>0&&r.animateFrom(v,c)}else dF(r,t,i||0,e,f);yT(r,t),u?r.dirty():r.markRedraw()}function yT(r,t){for(var e=ya(r).leaveToProps,n=0;n0&&r.animateFrom(i,a)}}function pF(r,t){et(t,"silent")&&(r.silent=t.silent),et(t,"ignore")&&(r.ignore=t.ignore),r instanceof Xr&&et(t,"invisible")&&(r.invisible=t.invisible),r instanceof _t&&et(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var mr={},gF={setTransform:function(r,t){return mr.el[r]=t,this},getTransform:function(r){return mr.el[r]},setShape:function(r,t){var e=mr.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=mr.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=mr.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=mr.el.style;if(t)return t[r]},setExtra:function(r,t){var e=mr.el.extra||(mr.el.extra={});return e[r]=t,this},getExtra:function(r){var t=mr.el.extra;if(t)return t[r]}};function mF(){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}mr.el=t,n(gF)}}function P0(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]={}),Ai(l))N(o,a);else for(var u=Mt(l),f=0;f=0){!o&&(o=n[r]={});for(var c=st(a),f=0;f=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!a&&(a=n.style={});for(var d=st(e),u=0;us)return!0;if(o){var l=Wd(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=li(t).pointerEl=new Ru[a.type](E0(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=li(t).labelEl=new yt(E0(e.label));t.add(a),O0(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=li(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=li(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),O0(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=wa(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ur(u.event)},onmousedown:Rh(this._onHandleDragMove,this,0,0),drift:Rh(this._onHandleDragMove,this),ondragend:Rh(this._onHandleDragEnd,this)}),n.add(i)),B0(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,us(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){k0(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Eh(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(Eh(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Eh(i)),li(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),Uo(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 k0(r,t,e,n){ST(li(e).lastProp,n)||(li(e).lastProp=n,t?kt(e,n,r):(e.stopAnimation(),e.attr(n)))}function ST(r,t){if(X(r)&&X(t)){var e=!0;return w(t,function(n,i){e=e&&ST(r[i],n)}),!!e}else return r===t}function O0(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Eh(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function B0(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 xT=TF;function bT(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 wT(r,t,e,n,i){var a=e.get("value"),o=TT(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ca(s.get("padding")||0),u=s.getFont(),f=is(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),AF(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 AF(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 TT(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:Nd(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 AT(r,t,e){var n=Ue();return En(n,n,e.rotation),Yr(n,n,e.position),ar([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function CF(r,t,e,n,i,a){var o=Rn.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),wT(t,n,i,a,{position:AT(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function CT(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function DF(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function N0(r,t,e,n,i,a){return{cx:r,cy:t,r0:e,r:n,startAngle:i,endAngle:a,clockwise:!0}}var MF=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=F0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=bT(a),c=IF[u](s,h,f);c.style=v,e.graphicKey=c.type,e.pointer=c}var d=Wc(l.model,i);CF(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Wc(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=AT(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=F0(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}(xT);function F0(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var IF={line:function(r,t,e){var n=CT([t,e[0]],[t,e[1]],z0(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:DF([t-n/2,e[0]],[n,i],z0(r))}}};function z0(r){return r.dim==="x"?0:1}const LF=MF;var PF=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 RF=PF;var Gr=bt(),EF=w;function DT(r,t,e){if(!vt.node){var n=t.getZr();Gr(n).records||(Gr(n).records={}),kF(n,t);var i=Gr(n).records[r]||(Gr(n).records[r]={});i.handler=e}}function kF(r,t){if(Gr(r).initialized)return;Gr(r).initialized=!0,e("click",dt(V0,"click")),e("mousemove",dt(V0,"mousemove")),e("globalout",BF);function e(n,i){r.on(n,function(a){var o=NF(t);EF(Gr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),OF(o.pendings,t)})}}function OF(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 BF(r,t,e){r.handler("leave",null,e)}function V0(r,t,e,n){t.handler(r,e,n)}function NF(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 ev(r,t){if(!vt.node){var e=t.getZr(),n=(Gr(e).records||{})[r];n&&(Gr(e).records[r]=null)}}var FF=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";DT("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){ev("axisPointer",n)},t.prototype.dispose=function(e,n){ev("axisPointer",n)},t.type="axisPointer",t}(It);const zF=FF;function MT(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Di(a,r);if(o==null||o<0||z(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(m){return a.mapDimension(m)}),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 G0=bt();function VF(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){Al(i)&&(i=MT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Al(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||Al(i),v={},c={},d={list:[],map:{}},p={showPointer:dt(HF,c),showTooltip:dt(WF,d)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);w(s.coordSysAxesInfo[y],function(S,b){var x=S.axis,T=$F(u,S);if(!h&&_&&(!u||T)){var A=T&&T.value;A==null&&!l&&(A=x.pointToData(i)),A!=null&&H0(S,A,p,!1,v)}})});var g={};return w(f,function(m,y){var _=m.linkGroup;_&&!c[y]&&w(_.axesInfo,function(S,b){var x=c[b];if(S!==m&&x){var T=x.value;_.mapper&&(T=m.axis.scale.parse(_.mapper(T,W0(S),W0(m)))),g[m.key]=T}})}),w(g,function(m,y){H0(f[y],m,p,!0,v)}),UF(c,f,v),YF(d,i,r,o),XF(f,o,e),v}}function H0(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=GF(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&N(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function GF(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=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 HF(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function WF(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=qo(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 UF(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 YF(r,t,e,n){if(Al(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 XF(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=G0(n)[i]||{},o=G0(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 $F(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 W0(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 Al(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ep(r){cs.registerAxisPointerClass("CartesianAxisPointer",LF),r.registerComponentModel(RF),r.registerComponentView(zF),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=A5(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},VF)}function ZF(r){Xt(V5),Xt(ep)}var qF=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=bT(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=KF(n,i,a,l,p);wT(e,i,a,o,g)},t}(xT);function KF(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=Ue();En(v,v,s),Yr(v,v,[n.cx,n.cy]),u=ar([o,-i],v);var c=t.getModel("axisLabel").get("rotate")||0,d=Rn.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,m=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var QF={line:function(r,t,e,n){return r.dim==="angle"?{type:"Line",shape:CT(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:N0(t.cx,t.cy,n[0],n[1],(-e-i/2)*a,(-e+i/2)*a)}:{type:"Sector",shape:N0(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const JF=qF;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.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 tz=jF;var rp=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",zt).models[0]},t.type="polarAxis",t}(ct);$t(rp,hs);var ez=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}(rp),rz=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}(rp),np=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}(cr);np.prototype.dataToRadius=cr.prototype.dataToCoord;np.prototype.radiusToData=cr.prototype.coordToData;const nz=np;var iz=bt(),ip=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=is(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=iz(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}(cr);ip.prototype.dataToAngle=cr.prototype.dataToCoord;ip.prototype.angleToData=cr.prototype.coordToData;const az=ip;var IT=["radius","angle"],oz=function(){function r(t){this.dimensions=IT,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new nz,this._angleAxis=new az,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=us;)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=U0(e);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var i=U0(e);return i===this?this.pointToData(n):null},r}();function U0(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const sz=oz;function lz(r,t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight();r.cx=tt(n[0],i),r.cy=tt(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[tt(l[0],s),tt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function uz(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(ru(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),w(ru(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),ga(n.scale,n.model),ga(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 fz(r){return r.mainType==="angleAxis"}function Y0(r,t){if(r.type=t.get("type"),r.scale=Ju(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),fz(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 hz={dimensions:IT,create:function(r,t){var e=[];return r.eachComponent("polar",function(n,i){var a=new sz(i+"");a.update=uz;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");Y0(o,l),Y0(s,u),lz(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",zt).models[0];n.coordinateSystem=i.coordinateSystem}}),e}};const cz=hz;var vz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function al(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 ol(r){var t=r.getRadiusAxis();return t.inverse?0:1}function X0(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 dz=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});X0(u),X0(s),w(vz,function(f){e.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&pz[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(cs),pz={axisLine:function(r,t,e,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=ol(e),l=s?0:1,u;a[l]===0?u=new sr({shape:{cx:e.cx,cy:e.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new os({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[ol(e)],u=V(n,function(f){return new se({shape:al(e,[l,l+s],f.coord)})});r.add(Ve(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[ol(e)],f=[],h=0;hm?"left":"right",S=Math.abs(g[1]-y)/p<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[d]){var b=s[d];X(b)&&b.textStyle&&(c=new Dt(b.textStyle,l,l.ecModel))}var x=new yt({silent:Rn.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=Rn.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=0?"p":"n",L=T;b&&(n[f][M]||(n[f][M]={p:T,n:T}),L=n[f][M][I]);var R=void 0,k=void 0,B=void 0,U=void 0;if(d.dim==="radius"){var F=d.dataToCoord(D)-T,H=l.dataToCoord(M);Math.abs(F)=U})}}})}function Tz(r){var t={};w(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=PT(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=LT(n);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var d=tt(n.get("barWidth"),f),p=tt(n.get("barMaxWidth"),f),g=n.get("barGap"),m=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),m!=null&&(h.categoryGap=m)});var e={};return w(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=tt(n.categoryGap,o),l=tt(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 m=p.maxWidth;m&&m+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},m=this._formatterLabel(p,g),y=new yt({z2:30,style:Nt(o,{text:m})});y.attr(this._yearTextPositionControl(y,c[l],i,l,s)),a.add(y)}},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=Tc(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=i.start.time&&n.times.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/kh)-Math.floor(e[0].time/kh)+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&&ei.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 Z0(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const kz=Ez;function Oz(r){r.registerComponentModel(Lz),r.registerComponentView(Rz),r.registerCoordinateSystem("calendar",kz)}function Bz(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 q0(r,t){var e;return w(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function Nz(r,t,e){var n=N({},e),i=r[t],a=e.$action||"merge";a==="merge"?i?(rt(i,n,!0),In(i,n,{ignoreSize:!0}),gx(e,i),sl(e,i),sl(e,i,"shape"),sl(e,i,"style"),sl(e,i,"extra"),e.clipPath=i.clipPath):r[t]=n:a==="replace"?r[t]=n:a==="remove"&&i&&(r[t]=null)}var RT=["transition","enterFrom","leaveTo"],Fz=RT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function sl(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?RT:Fz,i=0;i=0;f--){var h=i[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(c){var d=c.parent,m=Be(d),y=d===a?{width:s,height:l}:{width:m.width,height:m.height},_={},S=fd(c,h,y,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Be(c).isNew&&S){for(var b=h.transition,x={},T=0;T=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){Cl(i,Be(i).option,n,e._lastGraphicModel)}),this._elMap=Y()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(It);function rv(r){var t=et(K0,r)?K0[r]:Kv(r),e=new t({});return Be(e).type=r,e}function Q0(r,t,e,n){var i=rv(e);return t.add(i),n.set(r,i),Be(i).id=r,Be(i).isNew=!0,i}function Cl(r,t,e,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){Cl(a,t,e,n)}),cF(r,t,n),e.removeKey(Be(r).id))}function J0(r,t,e,n){r.isGroup||w([["cursor",Xr.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(i){var a=i[0];et(t,a)?r[a]=at(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}}),et(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Hz(r){return r=N({},r),w(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(px),function(t){delete r[t]}),r}function Wz(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 Uz(r){r.registerComponentModel(Vz),r.registerComponentView(Gz),r.registerPreprocessor(function(t){var e=t.graphic;z(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var j0=["x","y","radius","angle","single"],Yz=["cartesian2d","polar","singleAxis"];function Xz(r){var t=r.get("coordinateSystem");return lt(Yz,t)>=0}function _n(r){return r+"Axis"}function $z(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 ET(r){var t=r.ecModel,e={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(_n(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 Oh=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}(),Zz=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=t_(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=t_(e);rt(this.option,e,!0),rt(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(j0,function(i){var a=this.getReferringComponents(_n(i),G2);if(a.specified){n=!0;var o=new Oh;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 Oh;if(v.add(h.componentIndex),e.set(f,v),a=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",zt).models[0];c&&w(u,function(d){h.componentIndex!==d.componentIndex&&c===d.getReferringComponents("grid",zt).models[0]&&v.add(d.componentIndex)})}}}a&&w(j0,function(u){if(a){var f=i.findComponents({mainType:_n(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Oh;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(_n(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(_n(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;ao[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else ta(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)}});ta(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;ta(["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=Rv(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 eV(r,t,e){var n=[1/0,-1/0];ta(e,function(o){dO(n,o.getData(),t)});var i=r.getAxisModel(),a=Jb(i.axis.scale,i,n).calculate();return[a.min,a.max]}const rV=tV;var nV={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(_n(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 rV(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 iV=nV;function aV(r){r.registerAction("dataZoom",function(t,e){var n=$z(e,t);w(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var r_=!1;function op(r){r_||(r_=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,iV),aV(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function oV(r){r.registerComponentModel(Kz),r.registerComponentView(jz),op(r)}var rr=function(){function r(){}return r}(),kT={};function Ja(r,t){kT[r]=t}function OT(r){return kT[r]}var sV=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=OT(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),rt(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 lV=sV;function uV(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=he(n,a,i);xi(t.get("orient"),r,t.get("itemGap"),o.width,o.height),fd(r,n,a,i)}function BT(r,t){var e=Ca(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new mt({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 fV=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 Pd(this._featureNames||[],h).add(v).update(v).remove(dt(v,null)).execute(),this._featureNames=h;function v(d,p){var g=h[d],m=h[p],y=u[g],_=new Dt(y,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(hV(g))S={onclick:_.option.onclick,featureName:g};else{var b=OT(g);if(!b)return;S=new b}f[g]=S}else if(S=f[m],!S)return;S.uid=Aa("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof rr;if(!g&&m){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,D=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[T]=A,D[T]&&(A==="emphasis"?ca:va)(D[T])},S instanceof rr&&S.render&&S.render(_,n,i,a)}function c(d,p,g){var m=d.getModel("iconStyle"),y=d.getModel(["emphasis","iconStyle"]),_=p instanceof rr&&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 D=wa(A,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(m.getItemStyle());var M=D.ensureState("emphasis");M.style=y.getItemStyle();var I=new yt({style:{text:x[C],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});D.setTextContent(I),Ta({el:D,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),D.__title=x[C],D.on("mouseover",function(){var L=y.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:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),D.setTextConfig({position:y.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"?ca:va)(D),o.add(D),D.on("click",W(p.onclick,p,n,i,C)),T[C]=D})}uV(o,e,i),o.add(BT(o.getBoundingRect(),e)),l||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=d.getTextContent(),_=y&&y.ensureState("emphasis");if(_&&!K(_)&&p){var S=_.style||(_.style={}),b=is(p,yt.makeFont(S)),x=d.x+o.x,T=d.y+o.y+s,A=!1;T+b.height>i.getHeight()&&(m.position="top",A=!0);var C=A?-5-b.height:s+10;x+b.width/2>i.getWidth()?(m.position=["100%",C],S.align="right"):x-b.width/2<0&&(m.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){w(this._features,function(o){o instanceof rr&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){w(this._features,function(i){i instanceof rr&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){w(this._features,function(i){i instanceof rr&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(It);function hV(r){return r.indexOf("my")===0}const cV=fV;var vV=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,m=new Uint8Array(g);g--;)m[g]=d.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,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='',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}(rr);const dV=vV;var n_="__ec_magicType_stack__",pV=[["line","bar"],["stack"]],gV=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(i_[i]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,d=i_[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 m=g.dim,y=m+"Axis",_=h.getReferringComponents(y,zt).models[0],S=_.componentIndex;s[y]=s[y]||[];for(var b=0;b<=S;b++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};w(pV,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=rt({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}(rr),i_={line:function(r,t,e,n){if(r==="bar")return rt({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 rt({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")===n_;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),rt({id:t,stack:i?"":n_},n.get(["option","stack"])||{},!0)}};hr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const mV=gV;var rf=new Array(60).join("-"),_a=" ";function yV(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 _V(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(_a)],f=0;f=0)return!0}var nv=new RegExp("["+_a+"]+","g");function wV(r){for(var t=r.split(/\n+/g),e=uu(t.shift()).split(nv),n=[],i=V(e,function(l){return{name:l,data:[]}}),a=0;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 LV(r){var t=sp(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return NT(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 PV(r){FT(r).snapshots=null}function RV(r){return sp(r).length}function sp(r){var t=FT(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var EV=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){PV(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}(rr);hr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const kV=EV;var OV=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BV=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=a_(e,t);w(NV,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=Bh[n.brushType](0,a,i);n.__rangeOffset={offset:u_[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=Bh[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=Bh[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?u_[n.brushType](a.values,o.offset,FV(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:lT(i),isTargetByCursor:fT(i,t,n.coordSysModel),getLinearBrushOtherExtent:uT(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=a_(e,t),a=0;ar[1]&&r.reverse(),r}function a_(r,t){return yo(r,t,{includeMainTypes:OV})}var NV={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:s_.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:s_.geo})})}},o_=[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}],s_={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(wn(r)),t}},Bh={lineX:dt(l_,0),lineY:dt(l_,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=[iv([i[0],a[0]]),iv([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 l_(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=iv(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 u_={lineX:dt(f_,0),lineY:dt(f_,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 f_(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function FV(r,t){var e=h_(r),n=h_(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 h_(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const zT=BV;var av=w,zV=B2("toolbox-dataZoom_"),VV=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 sT(i.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),WV(e,n,this,a,i),HV(e,n)},t.prototype.onclick=function(e,n,i){GV[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 zT(lp(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)}}),IV(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=Ei(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=[];av(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}(rr),GV={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(LV(this.ecModel))}};function lp(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 HV(r,t){r.setIconStatus("back",RV(t)>1?"emphasis":"normal")}function WV(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 zT(lp(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)}CP("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=lp(n),o=yo(r,a);av(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),av(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:zV+u+h};v[f]=h,i.push(v)}return i});const UV=VV;function YV(r){r.registerComponentModel(lV),r.registerComponentView(cV),Ja("saveAsImage",dV),Ja("magicType",mV),Ja("dataView",MV),Ja("dataZoom",UV),Ja("restore",kV),Xt(oV)}var XV=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 $V=XV;function VT(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function GT(r){if(vt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-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'
'}function tG(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?","+up+n:",left"+n+",top"+n),KV+":"+i}function c_(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;"+up+":"+o+";":[["top",0],["left",0],[HT,o]]}function eG(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 rG(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=$x(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(tG(i,e)),a&&n.push("background-color:"+a),w(["width","color","radius"],function(c){var d="border-"+c,p=sd(d),g=r.get(p);g!=null&&n.push(d+":"+g+(c==="color"?"":"px"))}),n.push(eG(f)),h!=null&&n.push("padding:"+Ca(h).join("px ")+"px"),n.join(";")+";"}function v_(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&qD(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 nG=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;v_(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();Ee(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=qV(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=QV+rG(t,!this._firstShow,this._longHide)+c_(a[0],a[1],!0)+("border-color:"+Mi(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"&&!VT(n)&&(s=jV(n,i,a)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l=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=g_(a,i);this._ticket="";var s=a.dataByCoordSys,l=cG(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=sG;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=MT(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(g_(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;pi(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(y){w(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=TT(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),T=Mr("section",{header:x,noHeader:!He(x),sortBlocks:!0,blocks:[]});f.blocks.push(T),w(_.seriesDataIndices,function(A){var C=i.getSeriesByIndex(A.seriesIndex),D=A.dataIndexInside,M=C.getDataParams(D);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Nd(S.axis,{value:b}),M.axisValueLabel=x,M.marker=v.makeTooltipMarker("item",Mi(M.color),l);var I=sm(C.formatTooltip(D,!0,null)),L=I.frag;if(L){var R=ja([C],a).get("valueFormatter");T.blocks.push(R?N({valueFormatter:R},L):L)}I.text&&h.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),p=cm(f,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?` `:"
",m=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,m,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 m=u.getDataParams(f,h),y=new jf;m.marker=y.makeTooltipMarker("item",Mi(m.color),c);var _=sm(u.formatTooltip(f,!1,h)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,T=x?cm(b?N({valueFormatter:b},x):x,y,c,S,a.get("useUTC"),p.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,A,e.offsetX,e.offsetY,e.position,e.target,y)}),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"),m=z(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;c=v,y&&(c=ls(m.axisValue,c,g)),c=ld(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"||z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(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()})),z(n))i=tt(n[0],u),a=tt(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 m=hG(n,d,h,e.get("borderWidth"));i=m[0],a=m[1]}else{var m=uG(i,a,o,u,f,v?null:20,c?null:20);i=m[0],a=m[1]}if(v&&(i-=m_(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=m_(c)?h[1]/2:c==="bottom"?h[1]:0),VT(e)){var m=fG(i,a,o,u,f);i=m[0],a=m[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(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&w(v.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&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()||(Uo(this,"_updatePosition"),this._tooltipContent.dispose(),ev("itemTooltip",n))},t.type="tooltip",t}(It);function ja(r,t,e){var n=t.ecModel,i;e?(i=new Dt(e,n,n),i=new Dt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Dt&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(i=new Dt(o,i,n)))}return i}function g_(r,t){return r.dispatchAction||W(t.dispatchAction,t)}function uG(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 fG(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 hG(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 m_(r){return r==="center"||r==="middle"}function cG(r,t,e){var n=Nv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=as(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 vG=lG;function dG(r){Xt(ep),r.registerComponentModel($V),r.registerComponentView(vG),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ht),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ht)}var y_=w;function __(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function S_(r,t,e){var n={};return y_(t,function(a){var o=n[a]=i();y_(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 pG(r,t,e){var n;w(e,function(i){t.hasOwnProperty(i)&&__(t[i])&&(n=!0)}),n&&w(e,function(i){t.hasOwnProperty(i)&&__(t[i])?r[i]=Z(t[i]):delete r[i]})}function gG(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 rb(s,h,b)}function f(b,x){lE(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],m=i[p],y=0,_=m.length;y<_;y++){var S=m[y];g[S]&&g[S].applyVisual(d,u,f)}}}}}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={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),yG=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=at(e.get("textBaseline"),e.get("textVerticalAlign")),f=new yt({style:Nt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=e.get("subtext"),c=new yt({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(){Hg(d,"_"+e.get("target"))}),p&&c.on("click",function(){Hg(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 m=a.getBoundingRect(),y=e.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=he(y,{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),m=a.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var T=new mt({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},t.type="title",t}(It);function _G(r){r.registerComponentModel(mG),r.registerComponentView(yG)}var SG=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(ba(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 $u([{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 x_=SG;var UT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=kn(x_.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}(x_);$t(UT,Nx.prototype);const xG=UT;var bG=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 wG=bG;var TG=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}(cr);const AG=TG;var Nh=Math.PI,b_=bt(),CG=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=MG(e,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Nh/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,m=e.get(["label","rotate"])||0;m=m*Nh/180;var y,_,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,D=h;b==="left"||b==="bottom"?(x&&(y=[0,0],C+=g),T&&(_=[C,0],C+=g),A&&(S=[D-d,0],D-=g)):(x&&(y=[D-d,0],D-=g),T&&(_=[0,0],C+=g),A&&(S=[D-d,0],D-=g));var M=[C,D];return e.get("inverse")&&M.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:f[a],labelRotation:m,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,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=Ue(),l=o.x,u=o.y+o.height;Yr(s,s,[-l,-u]),En(s,s,-Nh/2),Yr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=y(o),h=y(i.getBoundingRect()),v=y(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,m(i),m(a);function m(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function y(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=DG(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 AG("value",o,e.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new ot;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:N({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=w_(h,v,n,p);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),bn(g);var m=ut(g);h.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.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),m=new yt({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})});m.ensureState("emphasis").style=Nt(d),m.ensureState("progress").style=Nt(p),n.add(m),bn(m),b_(m).dataIndex=h,o._tickLabels.push(m)})}},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 m=or(at(a.get(["controlStyle",d+"BtnSize"]),o),o),y=[0,-m/2,m,m],_=IG(a,d+"Icon",y,{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(_),bn(_)}}},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),T_(h,u._progressLine,s,i,a,!0)},onUpdate:function(h){T_(h,u._progressLine,s,i,a)}};this._currentPointer=w_(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=wr(a.getExtent().slice());i>o[1]&&(i=o[1]),i=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 ov=BG;var Ki=dt,sv=w,ll=ot,NG=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 ll),this.group.add(this._selectorGroup=new ll),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=BT(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)}),sv(n.getData(),function(c,d){var p=c.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new ll;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),b=y.getVisual("style"),x=this._createItem(m,p,d,c,n,e,_,b,S,h,a);x.on("click",Ki(C_,p,null,a,v)).on("mouseover",Ki(lv,m.name,null,a,v)).on("mouseout",Ki(uv,m.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),D=A.getItemVisual(C,"style"),M=A.getItemVisual(C,"legendIcon"),I=le(D.fill);I&&I[3]===0&&(I[3]=.2,D=N(N({},D),{fill:ir(I,"rgba")}));var L=this._createItem(T,p,d,c,n,e,{},D,M,h,a);L.on("click",Ki(C_,null,p,a,v)).on("mouseover",Ki(lv,null,p,a,v)).on("mouseout",Ki(uv,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();sv(e,function(u){var f=u.type,h=new yt({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}),bn(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),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=FG(f,a,l,u,c,g,v),b=new ll,x=a.getModel("textStyle");if(K(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?m==="inherit"?e.getData().getVisual("symbolRotate"):m:0;b.add(zG({itemWidth:d,itemHeight:p,icon:f,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?d+5:-5,C=s,D=o.get("formatter"),M=n;G(D)&&D?M=D.replace("{name}",n??""):K(D)&&(M=D(n));var I=a.get("inactiveColor");b.add(new yt({style:Nt(x,{text:M,x:A,y:p/2,fill:g?x.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new mt({shape:b.getBoundingRect(),invisible:!0}),R=a.getModel("tooltip");return R.get("show")&&Ta({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),bn(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xi(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){xi("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",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?c[p]+=f[g]+d:h[p]+=v[g]+d,c[1-p]+=f[m]/2-v[m]/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],_[m]=Math.max(f[m],v[m]),_[y]=Math.min(0,v[y]+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 FG(r,t,e,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),sv(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}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:Ql(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 zG(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 C_(r,t,e,n){uv(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),lv(r,t,e,n)}function YT(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],g=[-c.x,-c.y];n||(g[a]=f[u]);var m=[0,0],y=[-d.x,-d.y],_=at(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=c[s]/2-d[s]/2,f.setPosition(g),h.setPosition(m),v.setPosition(y);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]+y[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 mt({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=Fh[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,m=p,y=p,_=null;g<=v;++g)_=S(f[g]),(!_&&y.e>m.s+a||_&&!b(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(y,_.s))&&m.i=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}(XT);const YG=UG;function XG(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 $G(r){Xt($T),r.registerComponentModel(WG),r.registerComponentView(YG),XG(r)}function ZG(r){Xt($T),Xt($G)}var qG=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=kn(Jo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Jo);const KG=qG;var fp=bt();function QG(r,t,e){fp(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function JG(r,t){for(var e=fp(r).coordSysRecordMap,n=e.keys(),i=0;in[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function n4(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=fp(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Y());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=ET(a);w(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,jG(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){ZT(i,a);return}var f=r4(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),us(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var i4=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(Vh.pan,this),zoom:W(Vh.zoom,this),scrollMove:W(Vh.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){JG(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(ap),Vh={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=Gh[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(Ei(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:I_(function(r,t,e,n,i,a){var o=Gh[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:I_(function(r,t,e,n,i,a){var o=Gh[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function I_(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(Ei(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Gh={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 a4=i4;function o4(r){op(r),r.registerComponentModel(KG),r.registerComponentView(a4),n4(r)}var s4=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=kn(Jo.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}(Jo);const l4=s4;var eo=mt,L_=7,u4=1,Hh=30,f4=7,ro="horizontal",P_="vertical",h4=5,c4=["line","bar","candlestick","scatter"],v4={easing:"cubicOut",duration:100,delay:0},d4=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),us(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(){Uo(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 ot;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?f4:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ro?{right:s.width-o.x-o.width,top:s.height-Hh-L_-a,width:o.width,height:Hh}:{right:L_,top:o.y,width:Hh,height:o.height},u=Da(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===P_&&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===ro&&!o?{scaleY:l?1:-1,scaleX:1}:i===ro&&o?{scaleY:l?1:-1,scaleX:-1}:i===P_&&!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 eo({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new eo({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=[],m=d[1]/(o.count()-1),y=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,D){if(_>0&&D%_){y+=m;return}var M=C==null||isNaN(C)||C==="",I=M?0:Tt(C,h,c,!0);M&&!S&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(p.push([y,0]),g.push([y,0])),p.push([y,I]),g.push([y,I]),y+=m,S=M}),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 D=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new ot,I=new Lr({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Xe({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(L),M}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&<(c4,u.get("type"))<0)){var f=a.getComponent(_n(o),s).axis,h=p4(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 eo({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new eo({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:u4,fill:"rgba(0,0,0,0)"}})),w([0,1],function(_){var S=l.get("handleIcon");!Zl[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:R_(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=tt(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(),bn(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 yt({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=tt(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new mt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,m=n.moveHandleIcon=re(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(d,10));c=n.moveZone=new mt({invisible:!0,shape:{y:s[1]-y,height:d+y}}),c.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(c)}c.attr({draggable:!0,cursor:R_(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];Ei(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=wr([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=wr(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;fn[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 it(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=wr([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&&(Ur(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 eo({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?v4:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=ET(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}(ap);function p4(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function R_(r){return r==="vertical"?"ns-resize":"ew-resize"}const g4=d4;function m4(r){r.registerComponentModel(l4),r.registerComponentView(g4),op(r)}function y4(r){Xt(o4),Xt(m4)}var _4={get:function(r,t,e){var n=Z((S4[r]||{})[t]);return e&&z(n)?n[n.length-1]:n}},S4={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 qT=_4;var E_=Se.mapVisual,x4=Se.eachVisual,b4=z,k_=w,w4=wr,T4=Tt,A4=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&&pG(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=S_(this.option.controller,n,e),this.targetVisuals=S_(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=Mt(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||["<",">"],z(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=w4([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={});rt(a,i),rt(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){b4(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]={},k_(d,function(g,m){if(Se.isValidType(m)){var y=qT.get(m,"inactive",s);y!=null&&(p[m]=y,m==="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";k_(this.stateList,function(m){var y=this.itemSize,_=h[m];_||(_=h[m]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&Z(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&Z(c)||(s?y[0]:[y[0],y[0]])),_.symbol=E_(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;x4(S,function(x){x>b&&(b=x)}),_.symbolSize=E_(S,function(x){return T4(x,[0,b],[0,y[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 fu=A4;var O_=[20,140],C4=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]=O_[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=O_[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):z(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=wr((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]=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=B_(this,"outOfRange",this.getExtent()),i=B_(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;le[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 ot(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();I4([0,1],function(f){var h=o[f];h.setStyle("fill",n.handlesColor[f]),h.y=e[f];var v=yr(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=ar(i.handleLabelPoints[f],wn(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=yr(e,s,u,!0),g=l[0]-d/2,m={x:h.x,y:h.y};h.y=p,h.x=g;var y=ar(f.indicatorLabelPoint,wn(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:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};h.x=m.x,h.y=m.y,h.animateTo(T,C),_.animateTo(A,C)}else h.attr(T),_.attr(A);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var M=0;Mo[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||V_(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var d=z2(v,c);this._dispatchHighDown("downplay",Dl(d[0],i)),this._dispatchHighDown("highlight",Dl(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(pi(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=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function F4(r,t,e,n){for(var i=t.targetVisuals[n],a=Se.prepareVisualTypes(i),o={color:nb(r.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(O4,B4),w(N4,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(z4))}function V4(r){r.registerComponentModel(D4),r.registerComponentView(k4),JT(r)}var G4=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=[],H4[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]=qT.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=kn(fu.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}(fu),H4={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","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function U_(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const W4=G4;var U4=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=Wr(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 ot;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 m=this.visualMapModel.getValueState(g);p.add(new yt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}e.add(p)},this),h&&this._renderEndsText(e,h[1],u,v,l),xi(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:Dl(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 ot,l=this.visualMapModel.textStyleModel;s.add(new yt({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}(KT);const Y4=U4;function X4(r){r.registerComponentModel(W4),r.registerComponentView(Y4),JT(r)}function $4(r){Xt(V4),Xt(X4)}var Z4={label:{enabled:!0},decal:{show:!1}},Y_=bt(),q4={};function K4(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Z(Z4);rt(n.label,r.getLocaleModel().get("aria"),!1),rt(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)),Y_(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 y=Ug(v.ecModel,v.name,q4,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,y))}else{var d=v.getRawData(),p={},g=Y_(v).scope;c.each(function(b){var x=c.getRawIndex(b);p[x]=b});var m=d.count();d.each(function(b){var x=p[b],T=d.getName(b)||b+"",A=Ug(v.ecModel,T,g,m),C=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(C,A))})}function S(b,x){var T=b?N(N({},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 m=s();if(m){var y=f.get(["general","withTitle"]);g=o(y,{title:m})}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(C1?f.get(["series","multiple",I]):f.get(["series","single",I]),D=o(D,{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"]);D+=o(R,{displayCnt:c})}else D+=f.get(["data","allData"]);for(var k=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),U=[],F=0;F=ni:-u>=ni),c=u>0?u%ni:u%ni+ni,d=!1;v?d=!0:pn(h)?d=!1:d=c>=jT==!!f;var p=t+n*Yh(o),g=e+i*Uh(o);this._start&&this._add("M",p,g);var m=Math.round(a*j4);if(v){var y=1/this._p,_=(f?1:-1)*(ni-y);this._add("A",n,i,m,1,+f,t+n*Yh(o+_),e+i*Uh(o+_)),y>.01&&this._add("A",n,i,m,0,+f,p,g)}else{var S=t+n*Yh(s),b=e+i*Uh(s);this._add("A",n,i,m,+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"}function uH(r){return""}function hp(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 lH(o,s)+(o!=="style"?oe(l):l||"")+(a?""+e+V(a,function(u){return n(u)}).join(e)+e:"")+uH(o)}return n(r)}function fH(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?"":[""].join(n)}function hv(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function X_(r,t,e,n){return Vt("svg","root",{width:r,height:t,xmlns:eA,"xmlns:xlink":rA,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var $_={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"},si="transform-origin";function hH(r,t,e){var n=N({},r.shape);N(n,t),r.buildPath(e,n);var i=new tA;return i.reset(W1(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function cH(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[si]=e+"px "+n+"px")}var vH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function iA(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function dH(r,t,e){var n=r.shape.paths,i={},a,o;if(w(n,function(l){var u=hv(e.zrId);u.animation=!0,nf(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 m in h){var y=h[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=iA(i,e);return a.replace(o,s)}}function Z_(r){return G(r)?$_[r]?"cubic-bezier("+$_[r]+")":Dv(r)?r:"":""}function nf(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof Du){var s=dH(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var Zt=iA(T,e);return Zt+" "+y[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var jo=Math.round;function aA(r){return r&&G(r.src)}function oA(r){return r&&K(r.toDataURL)}function cp(r,t,e,n){aH(function(i,a){var o=i==="fill"||i==="stroke";o&&H1(a)?lA(t,r,i,n):o&&Iv(a)?uA(e,r,i,n):r[i]=a},t,e,!1),xH(e,r,n)}function q_(r){return pn(r[0]-1)&&pn(r[1])&&pn(r[2])&&pn(r[3]-1)}function pH(r){return pn(r[4])&&pn(r[5])}function vp(r,t,e){if(t&&!(pH(t)&&q_(t))){var n=e?10:1e4;r.transform=q_(t)?"translate("+jo(t[4]*n)/n+" "+jo(t[5]*n)/n+")":FM(t)}}function K_(r,t,e){for(var n=r.points,i=[],a=0;a"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 m=function(D,M){if(D){var I=D.elm,L=v||M.width,R=c||M.height;D.tag==="pattern"&&(u?(R=1,L/=a.width):f&&(L=1,R/=a.height)),D.attrs.width=L,D.attrs.height=R,I&&(I.setAttribute("width",L),I.setAttribute("height",R))}},y=zv(d,null,r,function(D){l||m(x,D),m(h,D)});y&&y.width&&y.height&&(v=v||y.width,c=c||y.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=U1(i);b&&(o.patternTransform=b);var x=Vt("pattern","",o,[h]),T=hp(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]=gu(C)}}function bH(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,[sA(r,e)])}t["clip-path"]=gu(a)}function j_(r){return document.createTextNode(r)}function fi(r,t,e){r.insertBefore(t,e)}function t1(r,t){r.removeChild(t)}function e1(r,t){r.appendChild(t)}function fA(r){return r.parentNode}function hA(r){return r.nextSibling}function Xh(r,t){r.textContent=t}var r1=58,wH=120,TH=Vt("","");function cv(r){return r===void 0}function _r(r){return r!==void 0}function AH(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 co(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function ts(r){var t,e=r.children,n=r.tag;if(_r(n)){var i=r.elm=nA(n);if(dp(TH,r),z(e))for(t=0;ta?(d=e[l+1]==null?null:e[l+1].elm,cA(r,d,e,i,l)):hu(r,t,n,a))}function ea(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(dp(r,t),cv(t.text)?_r(n)&&_r(i)?n!==i&&CH(e,n,i):_r(i)?(_r(r.text)&&Xh(e,""),cA(e,null,i,0,i.length-1)):_r(n)?hu(e,n,0,n.length-1):_r(r.text)&&Xh(e,""):r.text!==t.text&&(_r(n)&&hu(e,n,0,n.length-1),Xh(e,t.text)))}function DH(r,t){if(co(r,t))ea(r,t);else{var e=r.elm,n=fA(e);ts(t),n!==null&&(fi(n,t.elm,hA(e)),hu(n,[r],0,0))}return t}var MH=0,IH=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=n1(),this.configLayer=n1(),this.storage=e,this._opts=n=N({},n),this.root=t,this._id="zr"+MH++,this._oldVNode=X_(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=nA("svg");dp(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",DH(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return J_(t,hv(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=hv(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=LH(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=fH(a.cssNodes,a.cssAnims,{newline:!0});if(f){var h=Vt("style","stl",{},[],f);o.push(h)}}return X_(n,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},hp(this.renderToVNode({animation:at(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:at(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=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=a[o-1];for(var m=p+1;m({darkTheme:EH,appTheme:kH,appThemeList:OH}),getters:{getDarkTheme(){return this.darkTheme},getAppTheme(){return this.appTheme},getAppThemeList(){return this.appThemeList}},actions:{}});function NH(){const r=BH(),t=Sn(()=>r.darkTheme),e=Sn(()=>r.appTheme),n=Sn(()=>r.appThemeList);return{getDarkTheme:t,getAppTheme:e,getAppThemeList:n}}var vA=(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))(vA||{});const La=new Map;La.set("XS",480);La.set("SM",576);La.set("MD",768);La.set("LG",992);La.set("XL",1200);La.set("XXL",1600);let FH,zH,VH;function GH(){return{screenRef:Sn(()=>hn(FH)),widthRef:zH,screenEnum:vA,realWidthRef:VH}}function dA(r,t="default"){const{getDarkTheme:e}=NH(),n=Sn(()=>{const d=e.value?"dark":"light";return t==="default"?d:t});let i=null,a=h;const o=Te({});let s=()=>{};a=l1(h,200);const l=Sn(()=>n.value!=="dark"?o.value:{backgroundColor:"transparent",...o.value});function u(d=t){const p=hn(r);if(!p||!hn(p))return;i=uy.init(p,d);const{removeEvent:g}=pD({el:window,name:"resize",listener:a});s=g;const{widthRef:m,screenEnum:y}=GH();(hn(m)<=y.MD||p.offsetHeight===0)&&sf(()=>{a()},30)}function f(d,p=!0){var g;if(o.value=d,((g=hn(r))==null?void 0:g.offsetHeight)===0){sf(()=>{f(hn(l))},30);return}bA(()=>{sf(()=>{!i&&(u(n.value),!i)||(p&&(i==null||i.clear()),i==null||i.setOption(hn(l)))},30)})}function h(){i==null||i.resize()}vv(()=>n.value,d=>{i&&(i.dispose(),u(d),f(o.value))}),s1(c);function v(){return i||u(n.value),i}function c(){i&&(s(),i.dispose(),i=null)}return{setOptions:f,resize:h,echarts:uy,getInstance:v,disposeInstance:c}}const HH=lr({name:"home-trainData",setup(){const r=Te(null),{setOptions:t}=dA(r),e=Te(!0),n=Te(!0),i=Ci({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=Ci({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}),o=()=>[{title:"布置老师",key:"teacherName"},{title:"布置时间",key:"createTime"},{title:"截止时间",key:"endTime"},{title:"训练状态",key:"status",render(u){return u.status=="ing"?P("div",{class:O.indDot},[" ",P("span",null,null),Q(" 进行中")]):P("div",{class:O.endDot},[P("span",null,null),Q("已结束")])}},{title:"布置人数",key:"studentNum"},{title:"提交人数",key:"submitNum"},{title:"合格人数",key:"quantityNum"},{title:"提交率",key:"submitRate",render(u){return P("span",null,[u.submitRate,Q("%")])}},{title:"合格率",key:"quantityRate",render(u){return P("span",null,[u.quantityRate,Q("%")])}},{title:"操作",key:"id",render(u){return P(Mo,{text:!0,type:"primary"},{default:()=>[Q("详情")]})}}],s=()=>{console.log("1")},l=()=>{t({tooltip:{trigger:"axis",axisPointer:{lineStyle:{width:2,color:"#A9C7FF"}}},legend:{show:!1,selected:{合格人数:e.value,不合格人数:n.value}},xAxis:{type:"category",boundaryGap:!0,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:u=>Array.isArray(u)?[u[0].axisValueLabel,...u.map(f=>`
${f.marker}${f.seriesName}: ${f.value}人 `)].join(""):u})};return l(),()=>P(An,null,[P("div",{class:O.homeTrainData},[P("div",{class:O.TrainDataTop},[P("div",{class:O.TrainDataTopLeft},[P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[P(cn,{from:0,to:6},null)]),Q("次")]),P("p",{class:O.TrainDataItemsubTitle},[Q("训练次数")])]),P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[P(cn,{from:0,to:100},null)]),Q("人次")]),P("p",{class:O.TrainDataItemsubTitle},[Q("应交总人次")])]),P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[P(cn,{from:0,to:40},null)]),Q("人次")]),P("p",{class:O.TrainDataItemsubTitle},[Q("提交总人次")])]),P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[" ",P(cn,{from:0,to:30},null)]),Q("人次")]),P("p",{class:O.TrainDataItemsubTitle},[Q("合格总人次")])]),P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[P(cn,{from:0,to:40},null),Q("%")])]),P("p",{class:O.TrainDataItemsubTitle},[Q("训练提交率")])]),P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[P(cn,{from:0,to:30},null),Q("%")])]),P("p",{class:O.TrainDataItemsubTitle},[Q("训练合格率")])])]),P("div",{class:O.TrainDataTopRight},[P("div",{onClick:()=>{e.value=!e.value,l()},class:[O.DataTopRightItem,e.value?"":O.DataTopRightItemDis]},[P("div",{class:O.DataTopRightDot},null),P("p",null,[Q("合格人数")])]),P("div",{onClick:()=>{n.value=!n.value,l()},class:[O.DataTopRightItem,n.value?"":O.DataTopRightItemDis]},[P("div",{class:[O.DataTopRightDot,O.red]},null),P("p",null,[Q("不合格人数")])])])]),P("div",{class:O.chatrs},[P("div",{ref:r,style:{height:i.height,width:i.width}},null)]),P("div",{class:O.tableWrap},[P(dv,{class:O.classTable,loading:a.loading,columns:o(),data:a.tableList},null),P(pv,{page:a.pagination.page,"onUpdate:page":u=>a.pagination.page=u,pageSize:a.pagination.rows,"onUpdate:pageSize":u=>a.pagination.rows=u,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":u=>a.pagination.pageTotal=u,onList:s,sync:!0,saveKey:"orchestraRegistration-key"},null)])])])}}),WH=lr({name:"home-practiceData",setup(){const r=Te(null),{setOptions:t}=dA(r),e=Te(!0),n=Ci({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"],timeList:[90,128,242,120,186,77,148]}),i=Ci({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}),a=()=>[{title:"日期",key:"createTime"},{title:"练习人数",key:"quantityNum",render(l){return P("span",null,[l.quantityNum,Q("人")])}},{title:"平均练习时长(分钟)",key:"submitNum",render(l){return P("span",null,[l.submitNum,Q("分钟")])}}],o=()=>{console.log("1")};return(()=>{t({tooltip:{trigger:"axis",axisPointer:{type:"none"}},legend:{show:!1,selected:{"练习时长(分钟)":e.value}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0,interval:0},data:n.dateList},yAxis:[{type:"value",axisLabel:{formatter:"{value} min"},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:n.timeList,type:"bar",barWidth:"48px",label:{show:!0,position:"top",color:"#333",fontSize:"12px",fontWeight:600},itemStyle:{normal:{barBorderRadius:[8,8,0,0],color:"#D5E9FF"},emphasis:{color:"#3583FA"}}}],formatter:l=>Array.isArray(l)?[l[0].axisValueLabel,...l.map(u=>`
${u.marker}练习时长: ${u.value}分钟 `)].join(""):l})})(),()=>P(An,null,[P("div",{class:O.homeTrainData},[P("div",{class:O.TrainDataTop},[P("div",{class:O.TrainDataTopLeft},[P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[P(cn,{from:0,to:32},null)]),Q("人")]),P("p",{class:O.TrainDataItemsubTitle},[Q("练习人数")])]),P("div",{class:O.TrainDataItem},[P("p",{class:O.TrainDataItemTitle},[P("span",null,[P(cn,{from:0,to:32},null)]),Q("分钟")]),P("p",{class:O.TrainDataItemsubTitle},[Q("平均练习时长")])])]),P("div",{class:O.TrainDataTopRight},[P("div",{class:[O.DataTopRightItem,e.value?"":O.DataTopRightItemDis]},[P("div",{class:[O.DataTopRightDot,O.DataTopRightDotBlue]},null),P("p",null,[Q("练习时长(分钟)")])])])]),P("div",{class:O.chatrs},[P("div",{ref:r,style:{height:n.height,width:n.width}},null)]),P("div",{class:O.tableWrap},[P(dv,{class:O.classTable,loading:i.loading,columns:a(),data:i.tableList},null),P(pv,{page:i.pagination.page,"onUpdate:page":l=>i.pagination.page=l,pageSize:i.pagination.rows,"onUpdate:pageSize":l=>i.pagination.rows=l,pageTotal:i.pagination.pageTotal,"onUpdate:pageTotal":l=>i.pagination.pageTotal=l,onList:o,sync:!0,saveKey:"orchestraRegistration-key"},null)])])])}}),UH=lr({name:"student-studentList",setup(r,{emit:t}){const e=Ci({searchWord:"",orchestraType:null,courseTypeCode:null,subjectId:null,classId:null,studentType:null,loading:!1,pagination:{page:1,rows:10,pageTotal:4},tableList:[{studentName:"胡小小",phone:"17625367893",trainNum:"49",trainDay:"9",averageNum:"35"},{studentName:"丁曼蓉",phone:"14677789334",trainNum:"49",trainDay:"9",averageNum:"35"},{studentName:"李书意",phone:"13467857893",trainNum:"49",trainDay:"9",averageNum:"35"},{studentName:"夏小满",phone:"13925367893",trainNum:"49",trainDay:"9",averageNum:"35"}]}),n=()=>{console.log("getList")},i=()=>[{title:"姓名",key:"studentName"},{title:"练习天数",key:"trainDay",render(a){return P("span",null,[a.trainDay,Q("天")])}},{title:"练习总时长",key:"trainNum",render(a){return P("span",null,[a.trainNum,Q("分钟")])}},{title:"平均练习时长",key:"averageNum",render(a){return P("span",null,[a.averageNum,Q("分钟")])}}];return()=>P("div",{class:O.listWrap},[P("div",{class:O.tableWrap},[P(dv,{class:O.classTable,loading:e.loading,columns:i(),data:e.tableList},null),P(pv,{page:e.pagination.page,"onUpdate:page":a=>e.pagination.page=a,pageSize:e.pagination.rows,"onUpdate:pageSize":a=>e.pagination.rows=a,pageTotal:e.pagination.pageTotal,"onUpdate:pageTotal":a=>e.pagination.pageTotal=a,onList:n,sync:!0,saveKey:"orchestraRegistration-key"},null)])])}}),YH=lr({name:"home-study",setup(){const r=Te("trainData");return()=>P(An,null,[P("div",{class:O.homeStudy},[P("div",{class:O.homeStudyTitle},[P("div",{class:O.homeStudyTitleDot},null),Q("学情")]),P("div",{class:O.homeStudyInfoList},[P("div",{class:O.homeStudyInfoTabs},[P("div",{onClick:()=>{r.value="trainData"},class:[O.homeStudyInfoTabItem,r.value=="trainData"?O.active:null]},[Q("训练数据")]),P("div",{onClick:()=>{r.value="practiceData"},class:[O.homeStudyInfoTabItem,r.value=="practiceData"?O.active:null]},[Q("练习数据")]),P("div",{onClick:()=>{r.value="practiceRanking"},class:[O.homeStudyInfoTabItem,r.value=="practiceRanking"?O.active:null]},[Q("练习排行")])]),P("div",{class:O.homeStudyInfoDate},[P(a1,null,{default:()=>[P(vD,{separator:"-",type:"daterange"},null),P(Mo,{type:"primary",class:O.searchBtn},{default:()=>[Q("搜索")]}),P(Mo,{type:"primary",ghost:!0,class:O.resetBtn},{default:()=>[Q("重置")]})]})])]),r.value=="trainData"?P(HH,null,null):null,r.value=="practiceData"?P(WH,null,null):null,r.value=="practiceRanking"?P(UH,null,null):null])])}}),XH=""+new URL("cloundIcon-8f2c10d8.png",import.meta.url).href,$H="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=",ZH=lr({name:"home-teachItem",props:["item"],setup(r,{emit:t}){return()=>P(An,null,[P("div",{class:O.teachGroupItemWrap},[P("div",{class:O.teachGroupItemLeft},[P(Re,{previewDisabled:!0,src:r.item.image?r.item.image:u1,class:O.teachGroupItemHeader,"object-fit":"cover"},null)]),P("div",{class:O.teachGroupItemRight},[P("p",{class:O.teachGroupItemName},[r.item.teacherName,Q(" "),P("span",null,[r.item.classGroup])]),P("p",{class:O.teachGroupItemInfo},[r.item.conent])])])])}}),qH=lr({props:["list","keys"],name:"home-teachGroup",setup(r,{emit:t}){return()=>P(An,null,[P("div",{class:O.teachGroup},[P("p",{class:O.teachGroupTitle},[r.keys]),P("div",{class:O.teachGroupList},[P("div",{class:O.teachGroupListDot},null),r.list.map(e=>P(ZH,{item:e},null))])])])}}),KH=lr({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(An,null,[P("div",{class:O.teachListWrap},[Object.keys(r).map(t=>P(qH,{list:r[t],keys:t},null)),P("div",{class:O.teachListWrapWall},null)])])}}),QH=lr({name:"train-update",emits:["close"],setup(r,{emit:t}){const e=Ci({version:null,classId:null,category:null,chapter:null}),n=o1(),i=()=>{const{href:a}=n.resolve({path:"/attend-class"});window.open(a,+new Date+"")};return()=>P("div",{class:O.trainUpdate},[P(wA,{labelAlign:"left",labelPlacement:"left"},{default:()=>[P(ds,{path:"classId"},{default:()=>[P(ps,no({options:[{label:"三年级2班",value:"song0"},{label:"二年级1班",value:"song1"}],placeholder:"选择班级",clearable:!0},{value:e.classId,"onUpdate:value":a=>e.classId=a}),null)]}),P(ds,{path:"version"},{default:()=>[P(ps,no({options:[{label:"人教版",value:"song0"},{label:"人音版",value:"song1"}],placeholder:"选择教材版本",clearable:!0},{value:e.version,"onUpdate:value":a=>e.version=a}),null)]}),P(ds,{path:"category"},{default:()=>[P(ps,no({options:[{label:"一年级上册",value:"song0"},{label:"一年级下册",value:"song1"}],placeholder:"选择册别",clearable:!0},{value:e.category,"onUpdate:value":a=>e.category=a}),null)]}),P(ds,{path:"chapter"},{default:()=>[P(ps,no({options:[{label:"第一单元|第一章",value:"song0"},{label:"第一单元|第二章",value:"song1"}],placeholder:"选择章节",clearable:!0},{value:e.chapter,"onUpdate:value":a=>e.chapter=a}),null)]}),P(a1,{class:O.updateBtnGroup},{default:()=>[P(Mo,{strong:!0,type:"default",round:!0,onClick:()=>t("close")},{default:()=>[Q("取消")]}),P(Mo,{strong:!0,type:"primary",round:!0,onClick:()=>i()},{default:()=>[Q("确认")]})]})]})])}}),JH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAR1JREFUSEu11DFqAkEUxvHvKYh2WZRoOuvUgmgdEDxCyA2sIsgk2GwXbGz0BpJLCDY2Ch5AhNSBSAJCSCIk+oIbtDDKvjezTrs7/98MvF3CiRdJ+5c+J96+UA/ez6Dz0qAPyV4xkDV8zcBjECUMKY2qBJED91zkNca7UwsRMbAJZ+/4lhltDaICbBA1oEWsAA1iDUgRJ0CCOAOHEAam3ymUFz4tIgEO3gToz1tUiQzIGa6tge7uG4lhMH+gq0iA/TgBT/EUSs8+vToD/+KE0ZmHyszQ+99vy2GFxZ0ASdwakMatAE1cDWjjKuCiyYXVDybbmaC9aTk2K+IpOjd8A6AXnEoYV90g73Pycwmz2eR5aG/nPGzKxTcICx17/gs/QaMZWM8inwAAAABJRU5ErkJggg==",jH=""+new URL("soureIcon-a8d17fc8.png",import.meta.url).href,aW=lr({name:"home-page",setup(){const r=o1(),t=Ci({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});return()=>P("div",{class:O.homeWrap},[P("div",{class:O.homeInfoLeft},[P("div",{class:O.homeBanner},[P("img",{class:O.bannerPerson,src:iD},null),P("div",{class:O.bannerInfo},[P("h3",null,[Q("Hi,张老师 下午好!")]),P("p",{class:O.bannerMsg},[Q("您有 "),P("span",{class:O.bannerRed},[Q(" 4 ")]),P("span",{class:O.bannerRrey},[Q(" 条消息未读,")]),P("span",{class:O.bannerRed},[Q(" 3 ")]),Q("门课程未布置作业,请及时处理哦!")]),P("div",{class:O.bannerBtn},[Q("立即处理")," ",P(TA,{class:O.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(Re,{class:O.leftDot,src:aD,previewDisabled:!0},null),P(Re,{class:O.rightDot,src:oD,previewDisabled:!0},null),P(Re,{class:O.lineIcon,src:sD,previewDisabled:!0},null),P(Re,{class:O.musicIcon,src:lD,previewDisabled:!0},null)]),P("div",{class:O.leftBottomWrap},[P(YH,null,null)])]),P("div",{class:O.homeInfoRight},[P("div",{class:O.homeInfoRightTop},[P("div",{class:O.HeaderWrap},[P(Re,{previewDisabled:!0,class:O.headerD,src:DA},null),P(Re,{previewDisabled:!0,class:O.defultHeade,src:u1},null)]),P("div",{class:O.headerInfo},[P("p",{class:O.headerTitle},[Q("张晚意")]),P("p",{class:O.headerSubTitle},[Q("武汉小学 | 音乐老师")])]),P("div",{class:O.quickEnter},[P("h3",{class:O.rightTitle},[P("div",{class:O.titleDot},null),Q("快捷入口")]),P("div",{class:O.quickList},[P("div",{class:O.quickItem,onClick:()=>t.goCourseVisiable=!0},[P(Re,{previewDisabled:!0,class:O.quickItemImg,src:$H},null),P("p",null,[Q("开始上课")])]),P("div",{class:O.quickItem},[P(Re,{previewDisabled:!0,class:O.quickItemImg,src:jH},null),P("p",null,[Q("布置作业")])]),P("div",{class:O.quickItem,onClick:()=>r.push("/natural-resources")},[P(Re,{previewDisabled:!0,class:O.quickItemImg,src:XH},null),P("p",null,[Q("我的资源")])])])])]),P("div",{class:O.rightTeachingWrap},[P("div",{class:O.rightTeachingWrapTitle},[P("h3",{class:O.rightTitle},[P("div",{class:O.titleDot},null),Q("教学进度")]),P("div",{class:O.lookMore},[Q("查看全部")," ",P(Re,{src:JH,class:O.lookMoreArrow,previewDisabled:!0},null)])]),P(KH,null,null)])]),P(AA,{show:t.goCourseVisiable,"onUpdate:show":e=>t.goCourseVisiable=e,preset:"card",class:O.chioseModel,title:"选择课件"},{default:()=>[P(QH,{onClose:()=>t.goCourseVisiable=!1},null)]})])}});export{aW as default};